diff --git a/.gitignore b/.gitignore index f5d481179ccea5d77ab7d723bd7271e21004c11b..a9a481ad2c1603f267a762489cddc000046b47cc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,8 @@ app/admin/import-export/upload/ config.php css/*/images/logo/logo.png functions/scripts/custom/ -functions/assets/ api/_lock.txt app/dashboard/widgets/custom/ +functions/vendor .idea .vscode diff --git a/app/admin/2fa/edit_user.php b/app/admin/2fa/edit_user.php index fe8c112540ee280e9c808bdf0d889cbeb9ecabaf..3e1ba016f3490e3c76e5ceb3b1f7b8cac9b07ebf 100644 --- a/app/admin/2fa/edit_user.php +++ b/app/admin/2fa/edit_user.php @@ -16,6 +16,9 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(true); + // check id if(!is_numeric($_POST['id'])) { $Result->show("danger", _("Invalid id"), true, true); } diff --git a/app/admin/2fa/save.php b/app/admin/2fa/save.php index dc2063f19913ac9147d47f130d89e38a95352b33..7158cce69aef7ba3a026b19f9f8ba64da3eecb03 100644 --- a/app/admin/2fa/save.php +++ b/app/admin/2fa/save.php @@ -16,6 +16,9 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); + // validate csrf cookie $User->Crypto->csrf_cookie ("validate", "2fa", $_POST['csrf_cookie']) === false ? $Result->show("danger", _("Invalid CSRF cookie"), true) : ""; diff --git a/app/admin/api/edit-result.php b/app/admin/api/edit-result.php index 9958cc62ed162a16816b3ed6607f6c91389fb80f..3e1aa133d54c142ea9092463af27ef226ea7843d 100755 --- a/app/admin/api/edit-result.php +++ b/app/admin/api/edit-result.php @@ -15,6 +15,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); diff --git a/app/admin/authentication-methods/edit-result.php b/app/admin/authentication-methods/edit-result.php index 9644ea8301fae1d1f56850977684714382648333..5fb8723ca004737338a666d903b4770e798a828e 100644 --- a/app/admin/authentication-methods/edit-result.php +++ b/app/admin/authentication-methods/edit-result.php @@ -16,6 +16,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); diff --git a/app/admin/groups/add-users-result.php b/app/admin/groups/add-users-result.php index 72ec4616e33cf60ec8fb93f1b40e0c829507b1d8..ae8d9c3795396ed4c07b063f5729699d3669ca73 100755 --- a/app/admin/groups/add-users-result.php +++ b/app/admin/groups/add-users-result.php @@ -15,6 +15,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); @@ -59,6 +61,4 @@ if(isset($errors)) { } else { $Result->show("success", _('Users added to group'), true); -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/admin/groups/edit-group-result.php b/app/admin/groups/edit-group-result.php index 585abfd4c0833146dff396ffc7d3f07cc08cef04..afe5d987acbd4ed14616247faa05b970b6db098e 100755 --- a/app/admin/groups/edit-group-result.php +++ b/app/admin/groups/edit-group-result.php @@ -17,6 +17,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); @@ -93,6 +95,4 @@ if (!is_blank($_POST['gmembers'])) { $Admin->add_group_to_user ($gid, $user->id); } } -} - -?> +} \ No newline at end of file diff --git a/app/admin/groups/remove-users-result.php b/app/admin/groups/remove-users-result.php index f893ed43ed63363303d25a5b6378c390d13d734d..03a731c33ff24c60e330f29e4e7cca97b0454608 100755 --- a/app/admin/groups/remove-users-result.php +++ b/app/admin/groups/remove-users-result.php @@ -15,6 +15,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); @@ -55,6 +57,4 @@ if(isset($errors)) { } else { $Result->show("success", _('Users removed from group'), true); -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/admin/languages/edit-result.php b/app/admin/languages/edit-result.php index 069dee29594972a876c28d8dc646a60060808bed..3040a7ba08d706cc902ba1a689bfc0b4b88c803b 100755 --- a/app/admin/languages/edit-result.php +++ b/app/admin/languages/edit-result.php @@ -16,6 +16,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); @@ -37,5 +39,4 @@ $values = array("l_id"=>@$_POST['l_id'], # update if(!$Admin->object_modify("lang", $_POST['action'], "l_id", $values)) { $Result->show("danger", _("Language $_POST[action] error"), true); } -else { $Result->show("success", _("Language $_POST[action] success"), true); } -?> \ No newline at end of file +else { $Result->show("success", _("Language $_POST[action] success"), true); } \ No newline at end of file diff --git a/app/admin/mail/edit.php b/app/admin/mail/edit.php index 93fbc39af22cd117e40626948c37e05e557d2b5f..92c93efaee5e834f34f0a8a322b1c214995069a0 100755 --- a/app/admin/mail/edit.php +++ b/app/admin/mail/edit.php @@ -15,6 +15,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); @@ -36,5 +38,4 @@ $values = array("id"=>1, # update if(!$Admin->object_modify("settingsMail", "edit", "id", $values)) { $Result->show("danger", _('Cannot update settings').'!', true); } -else { $Result->show("success", _('Settings updated successfully')."!", true); } -?> \ No newline at end of file +else { $Result->show("success", _('Settings updated successfully')."!", true); } \ No newline at end of file diff --git a/app/admin/mail/test-mail.php b/app/admin/mail/test-mail.php index 0d2307c2f8eb160a8577d1c742f2aebe1d96c7b7..48c161da1e453ccb3bc685f2158d06ba94977d56 100755 --- a/app/admin/mail/test-mail.php +++ b/app/admin/mail/test-mail.php @@ -15,6 +15,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # try to send try { @@ -51,5 +53,4 @@ try { } //if error not sent print ok -$Result->show("success alert-absolute", "Message sent to site admin (".$User->settings->siteAdminMail.")!", true); -?> \ No newline at end of file +$Result->show("success alert-absolute", "Message sent to site admin (".$User->settings->siteAdminMail.")!", true); \ No newline at end of file diff --git a/app/admin/password-policy/save.php b/app/admin/password-policy/save.php index 9b68b23d053e5eb6545289f8397485db759e57cf..e2d9d82e52ab5ead26e09b3ab6e7869b38e21ec4 100644 --- a/app/admin/password-policy/save.php +++ b/app/admin/password-policy/save.php @@ -16,6 +16,8 @@ $Params = new Params ($_POST); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # validate csrf cookie $User->Crypto->csrf_cookie ("validate", "settings", $Params->csrf_cookie) === false ? $Result->show("danger", _("Invalid CSRF cookie"), true) : ""; diff --git a/app/admin/powerDNS/defaults-save.php b/app/admin/powerDNS/defaults-save.php index ea0148066d25cf14cb1621581712d90d9d004ddf..f6c20eb9dd32d5f29a3894dfe7428bd93b2548e5 100644 --- a/app/admin/powerDNS/defaults-save.php +++ b/app/admin/powerDNS/defaults-save.php @@ -15,6 +15,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); diff --git a/app/admin/powerDNS/settings-save.php b/app/admin/powerDNS/settings-save.php index 18a1acb12344b1790da87bf09483d4e07a733b09..503859923bdc44996c7749ff5b34f535737c10fa 100644 --- a/app/admin/powerDNS/settings-save.php +++ b/app/admin/powerDNS/settings-save.php @@ -15,6 +15,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); diff --git a/app/admin/scan-agents/edit-result.php b/app/admin/scan-agents/edit-result.php index eddf869a8c21fa12ac34d16f1309bd92a3696af8..67b8cc289ae93954dc8563b57805d41ed18ffb4d 100644 --- a/app/admin/scan-agents/edit-result.php +++ b/app/admin/scan-agents/edit-result.php @@ -15,6 +15,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); @@ -85,6 +87,4 @@ else { // references removed $Result->show("info", _("Scan agent references removed")); } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/admin/sections/edit-result.php b/app/admin/sections/edit-result.php index ecbf01d31c22e4fc475982db1c7798aec0d6115c..3661590b65cafddd1ecce226c649580c75849f65 100755 --- a/app/admin/sections/edit-result.php +++ b/app/admin/sections/edit-result.php @@ -18,6 +18,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); @@ -122,4 +124,4 @@ else { // apply permission changes $Subnets->set_permissions ($section_subnets, $removed_permissions, $changed_permissions); } -} +} \ No newline at end of file diff --git a/app/admin/settings/index.php b/app/admin/settings/index.php index 7c8d95a123d3e545a66c8604a7df70f3fb8ece29..fc1d69ded7c53bac636d2e8f3f44bd1af6e53ccc 100755 --- a/app/admin/settings/index.php +++ b/app/admin/settings/index.php @@ -552,6 +552,17 @@ $(document).ready(function() { </td> </tr> +<!-- Passkeys --> +<tr> + <td class="title"><?php print _("Enable Passkeys"); ?></td> + <td> + <input type="checkbox" class="input-switch" value="1" name="passkeys" <?php if($settings['passkeys'] == 1) print 'checked'; ?>> + </td> + <td class="info2"> + <?php print _('Enable passkeys for passwordless login'); ?> + </td> +</tr> + <!-- ICPM --> <tr class="settings-title"> diff --git a/app/admin/settings/settings-save.php b/app/admin/settings/settings-save.php index 4526465322797d595c94c3af363e88c177ad6848..f2c6aa1d9317db98b300789b13225c8a4523b876 100755 --- a/app/admin/settings/settings-save.php +++ b/app/admin/settings/settings-save.php @@ -16,6 +16,8 @@ $Result = new Result (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # validate csrf cookie $User->Crypto->csrf_cookie ("validate", "settings", $_POST['csrf_cookie']) === false ? $Result->show("danger", _("Invalid CSRF cookie"), true) : ""; @@ -87,6 +89,7 @@ $values = array("id"=>1, "enforceUnique" =>$Admin->verify_checkbox(@$_POST['enforceUnique']), "enableRouting" =>$Admin->verify_checkbox(@$_POST['enableRouting']), "enableVaults" =>$Admin->verify_checkbox(@$_POST['enableVaults']), + "passkeys" =>$Admin->verify_checkbox(@$_POST['passkeys']), //"enableDHCP" =>$Admin->verify_checkbox(@$_POST['enableDHCP']), "enableFirewallZones" =>$Admin->verify_checkbox(@$_POST['enableFirewallZones']), "maintaneanceMode" =>$Admin->verify_checkbox(@$_POST['maintaneanceMode']), diff --git a/app/admin/users/edit-result.php b/app/admin/users/edit-result.php index 041e08395d662f9dd55065fcdd8ab9edcd2d239d..8cc518d795e488d69838d34c1eb1d06341ea6f44 100755 --- a/app/admin/users/edit-result.php +++ b/app/admin/users/edit-result.php @@ -17,6 +17,8 @@ $Password_check = new Password_check (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # check maintaneance mode $User->check_maintaneance_mode (); @@ -31,7 +33,6 @@ $User->Crypto->csrf_cookie ("validate", "user", $_POST['csrf_cookie']) === false $auth_method = $Admin->fetch_object ("usersAuthMethod", "id", $_POST['authMethod']); $auth_method!==false ? : $Result->show("danger", _("Invalid authentication method"), true); - /* checks */ # ID must be numeric @@ -106,7 +107,6 @@ if(sizeof($myFields) > 0) { $values = array( "id" =>@$_POST['userId'], "real_name" =>$_POST['real_name'], - "username" =>$_POST['username'], "email" =>$_POST['email'], "role" =>$_POST['role'], "authMethod" =>$_POST['authMethod'], @@ -118,6 +118,10 @@ $values = array( ); +# username only on add +if($_POST['action']=="add") { + $values['username'] = $_POST['username']; +} # custom fields if (sizeof($myFields)>0) { @@ -161,6 +165,27 @@ foreach ($User->get_modules_with_permissions() as $m) { # formulate permissions $values['module_permissions'] = json_encode($permissions); +# 2fa +if ($User->settings->{'2fa_provider'}!=='none') { + if(!isset($_POST['2fa'])) { + $values['2fa'] = 0; + $values['2fa_secret'] = NULL; + } +} + +# passkeys +$passkeys_to_remove = []; +foreach($_POST as $key=>$post) { + if(substr($key, 0,15) == "delete-passkey-") { + $passkeys_to_remove[] = str_replace("delete-passkey-", "", $key); + } +} + +# passkey only +if ($User->settings->{'passkeys'}==1) { + $values['passkey_only'] = !isset($_POST['passkey_only']) ? 0 : 1; +} + # execute if(!$Admin->object_modify("users", $_POST['action'], "id", $values)) { $Result->show("danger", _("User")." ".$_POST["action"]." "._("failed").'!', true); @@ -169,5 +194,13 @@ else { $Result->show("success", _("User")." ".$_POST["action"]." "._("successful").'!', false); } +# remove passkeys if required +if (sizeof($passkeys_to_remove)>0) { + // lalala + foreach ($passkeys_to_remove as $pk) { + $User->delete_passkey ($pk); + } +} + # mail user if($Admin->verify_checkbox(@$_POST['notifyUser'])!="0") { include("edit-notify.php"); } diff --git a/app/admin/users/edit.php b/app/admin/users/edit.php index 9cb461a3e4094b9f6c8d48a681bcc6c72c130011..b85c92f3830d369cd69b478e9df1d16023034f25 100755 --- a/app/admin/users/edit.php +++ b/app/admin/users/edit.php @@ -51,6 +51,12 @@ else { //set default lang $user['lang']=$User->settings->defaultLang; } + +# disabled +$disabled = $_POST['action']=="delete" ? "disabled" : ""; + +# passkeys +$user_passkeys = $User->get_user_passkeys($user['id']); ?> <script> @@ -84,16 +90,18 @@ $(document).ready(function(){ <!-- real name --> <tr> <td><?php print _('Real name'); ?></td> - <td><input type="text" class="form-control input-sm" name="real_name" value="<?php print @$user['real_name']; ?>"></td> + <td><input type="text" class="form-control input-sm" name="real_name" value="<?php print @$user['real_name']; ?>" <?php print $disabled; ?>></td> <td class="info2"><?php print _('Enter users real name'); ?></td> </tr> <!-- username --> <tr> <td><?php print _('Username'); ?></td> - <td><input type="text" class="form-control input-sm" name="username" value="<?php print @$user['username']; ?>" <?php if($_POST['action']=="edit"||$_POST['action']=="delete") print 'readonly'; ?>></td> + <td><input type="text" class="form-control input-sm" name="username" value="<?php print @$user['username']; ?>" <?php if($_POST['action']=="edit"||$_POST['action']=="delete") print 'readonly disabled'; ?> <?php print $disabled; ?>></td> <td class="info2"> + <?php if($_POST['action']=="add") { ?> <a class='btn btn-xs btn-default adsearchuser' rel='tooltip' title='Search AD for user details'><i class='fa fa-search'></i></a> + <?php } ?> <?php print _('Enter username'); ?> </td> </tr> @@ -101,10 +109,16 @@ $(document).ready(function(){ <!-- email --> <tr> <td><?php print _('e-mail'); ?></td> - <td><input type="text" class="form-control input-sm input-w-250" name="email" value="<?php print @$user['email']; ?>"></td> + <td><input type="text" class="form-control input-sm input-w-250" name="email" value="<?php print @$user['email']; ?>" <?php print $disabled; ?>></td> <td class="info2"><?php print _('Enter users email address'); ?></td> </tr> + <?php if($_POST['action']!="delete") { ?> + + <tr> + <td colspan="3"><hr></td> + </tr> + <!-- Status --> <tr> <td><?php print _('Status'); ?></td> @@ -159,6 +173,42 @@ $(document).ready(function(){ <td class="info2"><?php print _("Select authentication method for user"); ?></td> </tr> + <?php if ($User->settings->{'2fa_provider'}!=='none' && $user['2fa'] == "1") { ?> + + <tr> + <td style="padding-top:10px;"><?php print _('2fa enabled'); ?></td> + <td style="padding-top:10px;"><input type="checkbox" value="1" class="input-switch" name="2fa" <?php if($user['2fa'] == "1") { print 'checked'; } else { print "disabled"; } ?>></td> + <td style="padding-top:10px;" class="info2"><?php print _('Disable 2fa for user'); ?></td> + </tr> + <?php } ?> + + + <?php if ($User->settings->{'passkeys'}=="1" && sizeof($user_passkeys)>0 && $_POST['action']!=="delete") { ?> + <tr> + <td colspan="3"><hr></td> + <tr> + <td style="padding-top:10px;"><?php print _('Passkeys'); ?></td> + <td style="padding-top:10px;"> + <?php + foreach ($user_passkeys as $passkey) { + $passkey->comment = is_null($passkey->comment) ? "-- Unknown --" : $passkey->comment; + print "<input type='checkbox' name='delete-passkey-".$passkey->id."' value='1'> "; + print $User->strip_input_tags($passkey->comment)."<br>"; + } + ?> + </td> + <td style="padding-top:10px;" class="info2"><?php print _('Check passkey you want to remove'); ?></td> + </tr> + + <tr> + <td style="padding-top:10px;"><?php print _('Passkey login only'); ?></td> + <td style="padding-top:10px;"><input type="checkbox" value="1" class="input-switch" name="passkey_only" <?php if($user['passkey_only'] == "1") { print 'checked'; } ?>></td> + <td style="padding-top:10px;" class="info2"><?php print _('Select to only allow account login with passkey'); ?></td> + </tr> + </tr> + + <?php } ?> + <tr> <td colspan="3"><hr></td> </tr> @@ -407,6 +457,7 @@ $(document).ready(function(){ } ?> + <?php } ?> </table> </form> diff --git a/app/admin/users/print-all.php b/app/admin/users/print-all.php index 1fe6ee0efb64442aeb4733c910a2792d7d331670..89a2c469d4addab191ce3a23f6fa014d308f0ce2 100644 --- a/app/admin/users/print-all.php +++ b/app/admin/users/print-all.php @@ -12,7 +12,7 @@ $users = $Admin->fetch_all_objects("users", "username"); # fetch custom fields $custom = $Tools->fetch_custom_fields('users'); -/* check customfields */ +// check customfields $ffields = pf_json_decode($User->settings->hiddenCustomFields, true); $ffields = is_array(@$ffields['users']) ? $ffields['users'] : array(); ?> @@ -60,6 +60,15 @@ $ffields = is_array(@$ffields['users']) ? $ffields['users'] : array(); foreach ($users as $user) { //cast $user = (array) $user; + + // passkeys + if ($User->settings->{'passkeys'}=="1") { + // get user passkeys + $user_passkeys = $User->get_user_passkeys($user['id']); + // set passkey_only flag + $passkey_only = $User->settings->{'passkeys'}=="1" && sizeof($user_passkeys)>0 && $user['passkey_only']=="1" ? true : false; + } + print '<tr>' . "\n"; # set icon based on normal user or admin @@ -88,8 +97,27 @@ foreach ($users as $user) { $auth_method = $Admin->fetch_object("usersAuthMethod", "id", $user['authMethod']); //false print "<td>"; - if($auth_method===false) { print "<span class='text-muted'>No auth method</span>"; } - else { print $auth_method->type." <span class='text-muted'>(".$auth_method->description."</a>)"; } + if($auth_method===false) { print "<span class='text-muted'>No auth method</span>"; } + elseif($passkey_only) { print "<span class='badge badge1 badge5 alert-success'>"._("Passkey only")."</span>"; } + else { print "<span class='badge badge1 badge5 alert-success'>".$auth_method->type."</span> <span class='text-muted'>(".$auth_method->description."</a>)"; } + // 2fa + if ($User->settings->{'2fa_provider'}!=='none' && $passkey_only!==true) { + if (!is_null($user['2fa_secret']) && $user['2fa']=="1") { + print "<br><span class='badge badge1 badge5 alert-success'>"._("2fa enabled")."</span>"; + } + else { + print "<br><span class='badge badge1 badge5 alert-warning'>"._("2fa disabled")."</span>"; + } + } + + // passkeys + if ($User->settings->{'passkeys'}=="1") { + // get user passkeys + $user_passkeys = $User->get_user_passkeys($user['id']); + if (sizeof($user_passkeys)>0) { + print "<br><span class='badge badge1 badge5 alert-success'>".sizeof($user_passkeys)." "._("Passkeys")."</span>"; + } + } print "</span></td>"; # Module permisisons @@ -98,7 +126,9 @@ foreach ($users as $user) { } else { print "<td>"; + print "<btn class='btn btn-xs btn-default toggle-module-permissions'>Show <i class='fa fa-angle-down'></i></btn><div class='hidden module-permissions'>"; include("print_module_permissions.php"); + print "</div>"; print "</td>"; } diff --git a/app/admin/users/print_module_permissions.php b/app/admin/users/print_module_permissions.php index c223fac25ff1792ecd0eaebaca9c0921f4378033..4aceef18f61253f5b375fdd709cceea76c63baac 100644 --- a/app/admin/users/print_module_permissions.php +++ b/app/admin/users/print_module_permissions.php @@ -23,55 +23,76 @@ foreach ($User->get_modules_with_permissions() as $m) { } } -print "<table class='table-noborder popover_table'>"; - // VLAN -print "<tr><td>"._("VLAN")."</td><td>".$User->print_permission_badge($user['perm_vlan'])."</td></tr>"; - +$perm_names['perm_vlan'] = "VLAN"; // L2Domains -print "<tr><td>"._("L2Domains")."</td><td>".$User->print_permission_badge($user['perm_l2dom'])."</td></tr>"; - +$perm_names['perm_l2dom'] = "L2 Domains"; // VRF -print "<tr><td>"._("VRF")."</td><td>".$User->print_permission_badge($user['perm_vrf'])."</td></tr>"; - +$perm_names['perm_vrf'] = "VRF"; // PDNS if ($User->settings->enablePowerDNS==1) -print "<tr><td>"._("PowerDNS")."</td><td>".$User->print_permission_badge($user['perm_pdns'])."</td></tr>"; - +$perm_names['perm_pdns'] = "PowerDNS"; // Devices -print "<tr><td>"._("Devices")."</td><td>".$User->print_permission_badge($user['perm_devices'])."</td></tr>"; - +$perm_names['perm_devices'] = "Devices"; // Racks if ($User->settings->enableRACK==1) -print "<tr><td>"._("Racks")."</td><td>".$User->print_permission_badge($user['perm_racks'])."</td></tr>"; - +$perm_names['perm_racks'] = "Racks"; // Circuits if ($User->settings->enableCircuits==1) -print "<tr><td>"._("Circuits")."</td><td>".$User->print_permission_badge($user['perm_circuits'])."</td></tr>"; - +$perm_names['perm_circuits'] = "Circuits"; // NAT if ($User->settings->enableNAT==1) -print "<tr><td>"._("NAT")."</td><td>".$User->print_permission_badge($user['perm_nat'])."</td></tr>"; - +$perm_names['perm_nat'] = "NAT"; // Customers if ($User->settings->enableCustomers==1) -print "<tr><td>"._("Customers")."</td><td>".$User->print_permission_badge($user['perm_customers'])."</td></tr>"; - +$perm_names['perm_customers'] = "Customers"; // Locations if ($User->settings->enableLocations==1) -print "<tr><td>"._("Locations")."</td><td>".$User->print_permission_badge($user['perm_locations'])."</td></tr>"; - +$perm_names['perm_locations'] = "Locations"; // pstn if ($User->settings->enablePSTN==1) -print "<tr><td>"._("PSTN")."</td><td>".$User->print_permission_badge($user['perm_pstn'])."</td></tr>"; - +$perm_names['perm_pstn'] = "PSTN"; // routing if ($User->settings->enableRouting==1) -print "<tr><td>"._("Routing")."</td><td>".$User->print_permission_badge($user['perm_routing'])."</td></tr>"; - +$perm_names['perm_routing'] = "Routing"; // vaults if ($User->settings->enableVaults==1) -print "<tr><td>"._("Vaults")."</td><td>".$User->print_permission_badge($user['perm_vaults'])."</td></tr>"; - -print "</table>"; \ No newline at end of file +$perm_names['perm_vaults'] = "Vaults"; + + +// user page +if((@$_GET['page']=="administration" && @$_GET['section']=="users" && @$_GET['sPage']=="modules") || ($_GET['section']=="user-menu")) { + + print '<div class="panel panel-default" style="max-width:600px;min-width:350px;">'; + print '<div class="panel-heading">'._("User permissions for phpipam modules").'</div>'; + print ' <ul class="list-group">'; + + foreach ($user as $key=>$u) { + if(strpos($key, "perm_")!==false && array_key_exists($key, $perm_names)) { + print '<li class="list-group-item">'; + // title + print "<span style='padding-top:8px;' class='pull-l1eft'>"; + print "<strong>"._($perm_names[$key])."</strong>"; + print "</span>"; + // perms + print ' <strong class="btn-group pull-right">'; + print $User->print_permission_badge($user[$key]); + print ' </strong>'; + print '</li>'; + + print "<div class='clearfix'></div>"; + } + } + print ' </ul>'; + print '</div>'; +} +else { + print "<table class='table-noborder popover_table'>"; + foreach ($user as $key=>$u) { + if(strpos($key, "perm_")!==false && array_key_exists($key, $perm_names)) { + print "<tr><td>"._($perm_names[$key])."</td><td>".$User->print_permission_badge($user[$key])."</td></tr>"; + } + } + print "</table>"; +} \ No newline at end of file diff --git a/app/admin/verify-database/fix.php b/app/admin/verify-database/fix.php index 7a35c8e5f71b9270698ffb6b9073656a0751aa5f..5d03211511ce774cfa9e401d6c651afba0a81961 100755 --- a/app/admin/verify-database/fix.php +++ b/app/admin/verify-database/fix.php @@ -37,5 +37,4 @@ else { else { $Result->show("danger", _("Wrong parameters"), true); } -} -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/admin/verify-database/index.php b/app/admin/verify-database/index.php index 400323d8693fc055c855a125ee163b8217b14a43..aacbde3ce64d3ba3adefee234852b93af8820487 100755 --- a/app/admin/verify-database/index.php +++ b/app/admin/verify-database/index.php @@ -117,6 +117,4 @@ print "<h4>"._('Missing indexes').'</h4><hr>'; if($Tools->verify_database_indexes()===true) { $Result->show ("success", _("No missing indexes detected"), false); -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/dashboard/index.php b/app/dashboard/index.php index bd5bc7ed9dc0afad29aed8fafd5b537ccd155b8f..13dbadec3b91458a0cb68a61a5a5acb15808bf1d 100755 --- a/app/dashboard/index.php +++ b/app/dashboard/index.php @@ -145,6 +145,9 @@ if(sizeof($uwidgets)>1) { print '<div class="row-fluid">'; + if(defined('IS_DEMO')) + print '<div class="alert alert-info" style="margin:auto;text-align:center;margin:10px;"><i class="fa fa-info fa-pad-right"></i> You can download latest phpIPAM version <a href="https://phpipam.net/download/" target="_blank">here</a>!</div>'; + foreach($uwidgetschunk as $w) { # print itams in a row foreach($w as $c) { diff --git a/app/install/index.php b/app/install/index.php index 6ed9dafc5b98893130193ca9ac08a4c1a7d92f9b..c3f5a7d4dc5be0ae097d53c9fe31a5e9c5a839a6 100755 --- a/app/install/index.php +++ b/app/install/index.php @@ -66,7 +66,7 @@ if($Install->check_db_connection(false) && $Install->check_table("vrf", false)) <link rel="shortcut icon" href="css/images/favicon.png"> <!-- js --> - <script src="js/jquery-3.5.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> + <script src="js/jquery-3.7.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script src="js/install.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script src="js/bootstrap.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script> diff --git a/app/login/2fa/index.php b/app/login/2fa/index.php index 99a56362087a53317eabfd0a7f602ff079106955..9b14858fe73cdae41252fe81b467ddb59ceef7a2 100644 --- a/app/login/2fa/index.php +++ b/app/login/2fa/index.php @@ -45,7 +45,7 @@ if ($User->twofa_required()===false || $User->user->{'2fa'}==0) { <link rel="shortcut icon" href="css/images/favicon.png"> <!-- js --> - <script src="js/jquery-3.5.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> + <script src="js/jquery-3.7.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script src="js/login.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script src="js/bootstrap.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script> diff --git a/app/login/index.php b/app/login/index.php index 403e2c7ffeee30bbf10515e24e33e8a84c827d7b..174625511f1048c2c144257e1f66096c72e5de75 100755 --- a/app/login/index.php +++ b/app/login/index.php @@ -50,7 +50,7 @@ if(@$config['requests_public']===false) { <link rel="shortcut icon" href="css/images/favicon.png"> <!-- js --> - <script src="js/jquery-3.5.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> + <script src="js/jquery-3.7.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script src="js/login.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script src="js/bootstrap.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script> @@ -133,41 +133,6 @@ if(@$config['requests_public']===false) { else { $_GET['subnetId'] = "404"; print "<div id='error'>"; include_once('app/error.php'); print "</div>"; } ?> - <!-- login response --> - <div id="loginCheck"> - <?php - # deauthenticate user - if ( $User->is_authenticated()===true ) { - # print result - if(isset($_GET['section']) && $_GET['section']=="timeout") - $Result->show("success", _('You session has timed out')); - else - $Result->show("success", _('You have logged out')); - - # write log - $Log->write( _("User logged out"), _("User")." ".$User->username." "._("has logged out"), 0, $User->username ); - - # destroy session - $User->destroy_session(); - } - - //check if SAML2 login is possible - $saml2settings=$Tools->fetch_object("usersAuthMethod", "type", "SAML2"); - - if ($saml2settings!=false) { - $version = pf_json_decode(@file_get_contents(dirname(__FILE__).'/../../functions/php-saml/src/Saml2/version.json'), true); - $version = $version['php-saml']['version']; - - if ($version < 3.4) { - $Result->show("danger", _('php-saml library missing, please update submodules')); - } else { - $Result->show("success", _('You can login with SAML2').' <a href="'.create_link('saml2').'">'._('here').'</a>!'); - } - } - - ?> - </div> - </div> </div> diff --git a/app/login/login_form.php b/app/login/login_form.php index 366d4d3d5df28eedd50726e5021f79447b8dd3c0..22e6bf9cb3da71ed182d98fe7b38d41dfb4d712d 100755 --- a/app/login/login_form.php +++ b/app/login/login_form.php @@ -46,11 +46,99 @@ </div> <?php } ?> - <div class="col-xs-12"> - <hr> - <input type="submit" value="<?php print _('Login'); ?>" class="btn btn-sm btn-default pull-right"></input> + <div class="col-xs-12" style="padding-top:15px;"> + <!-- <hr style="margin-top:5px;margin-bottom:10px;"> --> + <input type="submit" value="<?php print _('Login'); ?>" class="btn btn-sm btn-success" style="width:100%"></input> </div> + + <!-- login response --> + <div id="loginCheck" class="col-xs-12 text-center"> + <?php + # deauthenticate user + if ( $User->is_authenticated()===true ) { + # print result + if(isset($_GET['section']) && $_GET['section']=="timeout") + $Result->show("success", _('You session has timed out')); + else + $Result->show("success", _('You have logged out')); + + # write log + $Log->write( _("User logged out"), _("User")." ".$User->username." "._("has logged out"), 0, $User->username ); + + # destroy session + $User->destroy_session(); + } + + //check if SAML2 login is possible + $saml2settings=$Tools->fetch_object("usersAuthMethod", "type", "SAML2"); + + if ($saml2settings!=false) { + $version = pf_json_decode(@file_get_contents(dirname(__FILE__).'/../../functions/php-saml/src/Saml2/version.json'), true); + $version = $version['php-saml']['version']; + + if ($version < 3.4) { + $Result->show("danger", _('php-saml library missing, please update submodules')); + } else { + $Result->show("success", _('You can login with SAML2').' <a href="'.create_link('saml2').'">'._('here').'</a>!'); + } + } + + ?> + </div> + + + <?php if($User->settings->{'passkeys'}=="1") { ?> + <div class="col-xs-12" style="padding-top:20px;"> + + <div style="width: 45%;" class='text-center pull-left'> + <hr style="padding-top: 3px"> + </div> + <div style="width: 10%;" class='text-center pull-left'> + or + </div> + <div style="width: 45%;" class='text-center pull-left'> + <hr style="padding-top: 3px"> + </div> + + <button class="btn btn-sm btn-default passkey_login" style="width:100%;margin-top:20px;"> + <svg height="14" aria-hidden="true" viewBox="0 -3 32 24" version="1.1" width="20" data-view-component="true" class="octicon octicon-passkey-fill"> + <path d="M9.496 2a5.25 5.25 0 0 0-2.519 9.857A9.006 9.006 0 0 0 .5 20.228a.751.751 0 0 0 .728.772h5.257c3.338.001 6.677.002 10.015 0a.5.5 0 0 0 .5-.5v-4.669a.95.95 0 0 0-.171-.551 9.02 9.02 0 0 0-4.814-3.423A5.25 5.25 0 0 0 9.496 2Z"></path> + <path d="M23.625 10.313c0 1.31-.672 2.464-1.691 3.134a.398.398 0 0 0-.184.33v.886a.372.372 0 0 1-.11.265l-.534.534a.188.188 0 0 0 0 .265l.534.534c.071.07.11.166.11.265v.347a.374.374 0 0 1-.11.265l-.534.534a.188.188 0 0 0 0 .265l.534.534a.37.37 0 0 1 .11.265v.431a.379.379 0 0 1-.097.253l-1.2 1.319a.781.781 0 0 1-1.156 0l-1.2-1.319a.379.379 0 0 1-.097-.253v-5.39a.398.398 0 0 0-.184-.33 3.75 3.75 0 1 1 5.809-3.134ZM21 9.75a1.125 1.125 0 1 0-2.25 0 1.125 1.125 0 0 0 2.25 0Z"></path> + </svg> + <span> + <?php print _("Login with a passkey"); ?> + </span> + </button> + + </div> + <div id="loginCheckPasskeys" class="col-xs-12 text-center"></div> + <?php } ?> + + <?php if(defined('IS_DEMO')) { ?> + + </div> + + <div class="alert alert-warning" style="width:400px;margin:auto;margin-top:30px;"> + <strong>Demo accounts:</strong> + <span class="pull-right"> + <!-- Place this tag where you want the +1 button to render --> + <g:plusone size="medium" class='pull-right'></g:plusone> + <!-- Place this render call where appropriate --> + <script type="text/javascript"> + (function() { + var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; + po.src = 'https://apis.google.com/js/plusone.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); + })(); + </script> + </span> + <hr> + <strong>Admin demo:</strong> Admin / ipamadmin<br> + <strong>Viewer demo:</strong> demo / demo1234<br> + + <?php } ?> + </div> </form> diff --git a/app/login/passkey_login_check.php b/app/login/passkey_login_check.php new file mode 100644 index 0000000000000000000000000000000000000000..58cdadec4b9c4c23c3b4c2e5bf087430367cd6ea --- /dev/null +++ b/app/login/passkey_login_check.php @@ -0,0 +1,94 @@ +<?php + +/** + * + * Save users passkey + * + */ + + +# include composer +require __DIR__ . '/../../functions/vendor/autoload.php'; + +// phpipam stuff +require_once( dirname(__FILE__) . '/../../functions/functions.php' ); + +# initialize required objects +$Database = new Database_PDO; +$User = new User ($Database); + +// set header typw +header('Content-Type: text/html; charset=utf-8'); + +// webauthn modules +use Firehed\WebAuthn\{ + ChallengeManagerInterface, + Codecs, + CredentialContainer, + RelyingParty, + SessionChallengeManager, + SingleOriginRelyingParty, + ResponseParser, + ArrayBufferResponseParser, + BinaryString +}; + +// process request json +$json = file_get_contents('php://input'); +$data = json_decode($json, true); + +// parser +$parser = new ArrayBufferResponseParser(); +$getResponse = $parser->parseGetResponse($data); + +// Set relaying party +$rp = new \Firehed\WebAuthn\SingleOriginRelyingParty($User->createURL ()); +// challange manager +$challengeManager = new \Firehed\WebAuthn\SessionChallengeManager(); + +// get user credentials +$passkey = $User->get_user_passkey_by_keyId ($data['keyId']); + +// none found +if (is_null($passkey)) { + header('HTTP/1.1 404 Not Found'); + return; +} +else { + try { + // set user id + $User->set_passkey_user_id ($passkey->user_id); + + // init credentails + $codec = new Codecs\Credential(); + + // set credentials + $credentials[0] = $codec->decode($passkey->credential);; + + // container + $credentialContainer = new CredentialContainer($credentials); + + // Verify credentials, if it fails exit + $updatedCredential = $getResponse->verify($challengeManager, $rp, $credentialContainer); + + // Auth success. Now update credential and save session + + // encode credentials to store to database + $codec = new Codecs\Credential(); + $encodedCredential = $codec->encode($updatedCredential); + + // confirm login + $User->auth_passkey ($updatedCredential->getStorageId(), $encodedCredential, $data['keyId']); + + // print result + header('HTTP/1.1 200 OK'); + header('Content-type: application/json'); + echo json_encode([ + 'success' => true, + 'credential_ids' => $updatedCredential->getStorageId() + ]); + } + catch (Exception $e) { + header('HTTP/1.1 500 '.$e->getMessage()); + } +} \ No newline at end of file diff --git a/app/subnets/scan/subnet-scan-execute-scan-icmp.php b/app/subnets/scan/subnet-scan-execute-scan-icmp.php index 4ea3fe7dc53268b71c0867a80b6ad561574e373f..d825a7176c4ad07df52ed77ce7b96c6b4ff167cd 100644 --- a/app/subnets/scan/subnet-scan-execute-scan-icmp.php +++ b/app/subnets/scan/subnet-scan-execute-scan-icmp.php @@ -3,6 +3,9 @@ # Check we have been included and not called directly require( dirname(__FILE__) . '/../../../functions/include-only.php' ); +# check if site is demo +$User->is_demo(); + /* * Discover new hosts with ping *******************************/ diff --git a/app/subnets/scan/subnet-scan-execute-scan-snmp-arp.php b/app/subnets/scan/subnet-scan-execute-scan-snmp-arp.php index 4ea92847d87a0ff96edb6cbc45a7b83dad60f258..130e19ac05291b2120bfe2c7f0ad3d0b373cae25 100644 --- a/app/subnets/scan/subnet-scan-execute-scan-snmp-arp.php +++ b/app/subnets/scan/subnet-scan-execute-scan-snmp-arp.php @@ -3,6 +3,9 @@ # Check we have been included and not called directly require( dirname(__FILE__) . '/../../../functions/include-only.php' ); +# check if site is demo +$User->is_demo(); + # Don't corrupt output with php errors! disable_php_errors(); diff --git a/app/subnets/scan/subnet-scan-execute-scan-telnet.php b/app/subnets/scan/subnet-scan-execute-scan-telnet.php index eacf5c39aa63225c2156a0b6664ebdb20efc7ec9..b51e0f3518e0be3938e640575e84d42570bd23f7 100755 --- a/app/subnets/scan/subnet-scan-execute-scan-telnet.php +++ b/app/subnets/scan/subnet-scan-execute-scan-telnet.php @@ -3,6 +3,9 @@ # Check we have been included and not called directly require( dirname(__FILE__) . '/../../../functions/include-only.php' ); +# check if site is demo +$User->is_demo(); + /* * Discover new hosts with telnet scan *******************************/ diff --git a/app/subnets/scan/subnet-scan-execute-snmp-mac.php b/app/subnets/scan/subnet-scan-execute-snmp-mac.php index cd4572d2979a96f2280e629b0bcffad41d1c9ae5..7cd4d8d0c295e68dc08464306c870e9c161e155a 100644 --- a/app/subnets/scan/subnet-scan-execute-snmp-mac.php +++ b/app/subnets/scan/subnet-scan-execute-snmp-mac.php @@ -3,6 +3,9 @@ # Check we have been included and not called directly require( dirname(__FILE__) . '/../../../functions/include-only.php' ); +# check if site is demo +$User->is_demo(); + # Don't corrupt output with php errors! disable_php_errors(); diff --git a/app/subnets/scan/subnet-scan-execute-snmp-route-all.php b/app/subnets/scan/subnet-scan-execute-snmp-route-all.php index 4216272a01ca8014f43c974d45973b8cfa4ba26c..e64bf950efdfe28f9fe32ee7bf37b06beba4235f 100644 --- a/app/subnets/scan/subnet-scan-execute-snmp-route-all.php +++ b/app/subnets/scan/subnet-scan-execute-snmp-route-all.php @@ -3,6 +3,9 @@ # Check we have been included and not called directly require( dirname(__FILE__) . '/../../../functions/include-only.php' ); +# check if site is demo +$User->is_demo(); + # Don't corrupt output with php errors! disable_php_errors(); diff --git a/app/subnets/scan/subnet-scan-execute-snmp-route.php b/app/subnets/scan/subnet-scan-execute-snmp-route.php index 836a5c566c61294f1c9daec2d19dec7eff8fe9a6..1e1ee65ebb85ad6c63aa72e596d09a5bf8c2aeb6 100644 --- a/app/subnets/scan/subnet-scan-execute-snmp-route.php +++ b/app/subnets/scan/subnet-scan-execute-snmp-route.php @@ -3,6 +3,9 @@ # Check we have been included and not called directly require( dirname(__FILE__) . '/../../../functions/include-only.php' ); +# check if site is demo +$User->is_demo(); + # Don't corrupt output with php errors! disable_php_errors(); diff --git a/app/subnets/scan/subnet-scan-execute-update-icmp.php b/app/subnets/scan/subnet-scan-execute-update-icmp.php index a61691a0a438791cf61f2a202d50f4ff716f4993..5ec099ce07ab09cc89e6459d7c3854d990c9c52a 100755 --- a/app/subnets/scan/subnet-scan-execute-update-icmp.php +++ b/app/subnets/scan/subnet-scan-execute-update-icmp.php @@ -3,6 +3,9 @@ # Check we have been included and not called directly require( dirname(__FILE__) . '/../../../functions/include-only.php' ); +# check if site is demo +$User->is_demo(); + /* * Update alive status of all hosts in subnet ***************************/ diff --git a/app/subnets/scan/subnet-scan-execute-update-snmp-arp.php b/app/subnets/scan/subnet-scan-execute-update-snmp-arp.php index cebeb6fb1e60a4ebebc7e3909a759e85852dbacf..2601890664881d7e290c92a582f52fb01b58eca5 100644 --- a/app/subnets/scan/subnet-scan-execute-update-snmp-arp.php +++ b/app/subnets/scan/subnet-scan-execute-update-snmp-arp.php @@ -3,6 +3,9 @@ # Check we have been included and not called directly require( dirname(__FILE__) . '/../../../functions/include-only.php' ); +# check if site is demo +$User->is_demo(); + # Don't corrupt output with php errors! disable_php_errors(); diff --git a/app/subnets/subnet-details/subnet-map-vertical.php b/app/subnets/subnet-details/subnet-map-vertical.php new file mode 100644 index 0000000000000000000000000000000000000000..538ecbe196361425486f3475f144bb7d7a1691af --- /dev/null +++ b/app/subnets/subnet-details/subnet-map-vertical.php @@ -0,0 +1,153 @@ +<?php + +# array +$free_subnets = []; + + +// ipv6 +if($Tools->identify_address($subnet['subnet'])=="IPv6") { + $maxmask = $subnet['mask']+10>128 ? 128 : $subnet['mask']+10; + $pow = 128; +} +else { + $maxmask = $subnet['mask']+10>32 ? 32 : $subnet['mask']+10; + $pow = 32; +} + + +# reset if search +if(@$from_search===true) { + $maxmask = $_GET['ipaddrid']+1; + $subnetmask = $_GET['ipaddrid']-1; +} +else { + $subnetmask = $subnet['mask']; +} + +// print $subnet['mask']; +// print $maxmask; + +# create free objects +for($searchmask=$subnetmask+1; $searchmask<$maxmask; $searchmask++) { + $found = $Subnets->search_available_subnets ($subnet['id'], $searchmask, $count = Subnets::SEARCH_FIND_ALL, $direction = Subnets::SEARCH_FIND_FIRST); + if($found!==false) { + // check if subnet has addresses + if($Addresses->count_subnet_addresses ($subnet['id'])>0) { + // subnet aqddresses + $subnet_addresses = $Addresses->fetch_subnet_addresses ($subnet['id'], null, null, $fields = ['ip_addr']); + + // remove found subnets with hosts ! + foreach($found as $k=>$f) { + // parse + $parsed = explode("/", $f); + // boundaries + $boundaries = $Subnets->get_network_boundaries ($parsed[0], $searchmask); + // broadcast to int + $maxint = isset($boundaries['broadcast']) ? $Subnets->transform_address ($boundaries['broadcast'],"decimal") : 0; + + if(sizeof($subnet_addresses)>0) { + foreach ($subnet_addresses as $a) { + if ($a->ip_addr>=$Subnets->transform_address($parsed[0],"decimal") && $a->ip_addr<=$maxint ) { + unset($found[$k]); + } + } + } + } + + // save remaining + $free_subnets[$searchmask] = $found; + } + else { + $free_subnets[$searchmask] = $found; + } + } + else { + $free_subnets[$searchmask] = []; + } +} + +# if some found print +if (sizeof($free_subnets)>0) { + + // get maximum number of subnets that will be calculated + $max_all_subnets = pow(2,array_keys($free_subnets)[count($free_subnets)-1]-$subnet['mask']); + $levels = sizeof($free_subnets); + + // content + print "<div id='showFreeSubnets'>"; + + // table + print "<table>"; + + // headers + print "<tr>"; + foreach ($free_subnets as $free_mask=>$items) { + print " <td>/".$free_mask."</td>"; + } + print "</tr>"; + + + $all_keys = array_keys($free_subnets); + + + for($m=0; $m<=$max_all_subnets;$m++) { + + // save start + $subnet_start = $subnet['subnet']; + + print "<tr>"; + foreach ($all_keys as $array_key) { + // max subnets + $max_subnets = pow(2,$array_key-$subnet['mask']); + + + if(in_array($Subnets->transform_address($subnet_start, "dotted")."/".$array_key, $free_subnets[$array_key])) { + print "<td>".$free_subnets[$array_key][$m]."/".$array_key."</td>"; + } + else { + print "<td>/</td>"; + } + + // next subnet + $subnet_start = gmp_strval(gmp_add($subnet_start, gmp_pow(2, ($pow-$array_key)))); + + + // rowspan + // $rowspan = $max_all_subnets/$max_subnets; + + } + print "</tr>"; + } + + + + // items + foreach ($free_subnets as $free_mask=>$items) { + break; + + // max + $max_subnets = pow(2,$free_mask-$subnet['mask']); + + // save start + $subnet_start = $subnet['subnet']; + + // print + print "<div class='ip_vis_subnet'>"; + for($m=1; $m<=$max_subnets;$m++) { + if(in_array($Subnets->transform_address($subnet_start, "dotted")."/".$free_mask, $items)) { + print "<span class='subnet_map subnet_map_$pow subnet_map_found'><a href='' data-sectionid='".$section['id']."' data-mastersubnetid='".$subnet['id']."' class='createfromfree' data-cidr='".$Subnets->transform_address($subnet_start, "dotted")."/".$free_mask."' rel='tooltip' title='"._("Create subnet")."'>".$Subnets->transform_address($subnet_start, "dotted")."/".$free_mask."</a></span>"; + } + else { + print "<span class='subnet_map subnet_map_$pow subnet_map_notfound'>".$Subnets->transform_address($subnet_start, "dotted")."/".$free_mask."</span>"; + } + + // next subnet + // $subnet_start = $subnet_start + pow(2,($pow-$free_mask)); + $subnet_start = gmp_strval(gmp_add($subnet_start, gmp_pow(2, ($pow-$free_mask)))); + + } + } + + print "</table>"; + print "</div>"; +} \ No newline at end of file diff --git a/app/temp_share/index.php b/app/temp_share/index.php index 91f6b99fc785b9efe512ba0e466ccbfff9d2dcc4..f930dedc4ca35baf688caddf90336a7cd91140d5 100644 --- a/app/temp_share/index.php +++ b/app/temp_share/index.php @@ -38,7 +38,7 @@ $settings = $Tools->get_settings(); <?php } ?> <!-- js --> - <script src="js/jquery-3.5.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> + <script src="js/jquery-3.7.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script src="js/bootstrap.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script> $(document).ready(function(){ diff --git a/app/tools/user-menu/2fa.php b/app/tools/user-menu/2fa.php index d7a7eadf70e70275b462866aa89e15534b978502..da5cd012de4f3cc64194c052227f9a68cd44a7d6 100644 --- a/app/tools/user-menu/2fa.php +++ b/app/tools/user-menu/2fa.php @@ -22,22 +22,37 @@ if (is_null($User->user->{'2fa_secret'}) && $User->user->{'2fa'}=="1") { // get QR code $username = strtolower($User->user->username)."@".$User->settings->{'2fa_name'}; + +// passkey only +if ($User->settings->{'passkeys'}=="1") { + // get user passkeys + $user_passkeys = $User->get_user_passkeys($User->user->id); + // set passkey_only flag + $passkey_only = $User->settings->{'passkeys'}=="1" && sizeof($user_passkeys)>0 && $User->user->passkey_only=="1" ? true : false; +} ?> + + <h4><?php print _('Two-factor authentication'); ?></h4> <hr> <span class="info2"><?php print _("Here you can change settings for two-factor authentication and get your 2fa secret."); ?></span> <br><br> +<?php if(!$passkey_only) { ?> +<div class="panel panel-default" style="max-width:300px;min-width:350px;"> +<ul class="list-group"> +<div class="panel-heading"><?php print _('2fa account status'); ?></div> +<li class="list-group-item"> <form name="2fa_user" id="2fa_user"> -<table id="userModSelf" class="table table-condensed"> +<table id="userModSelf" class="table table-condensed" style='margin-bottom:0px;width:100%'> <tr> <td class="title"><?php print _('2fa status'); ?></td> <?php if ($User->settings->{'2fa_userchange'}=="1") { ?> <td> <input type="checkbox" value="1" class="input-switch" name="2fa" <?php if($User->user->{'2fa'} == 1) print 'checked'; ?>> </td> - <td> + <td class="text-right"> <input type="submit" class="btn btn-default btn-success btn-sm submit_popup" data-script="app/tools/user-menu/2fa_save.php" data-result_div="userModSelf2faResult" data-form='2fa_user' value="<?php print _("Save"); ?>"> </td> <?php } else { ?> @@ -51,22 +66,28 @@ $username = strtolower($User->user->username)."@".$User->settings->{'2fa_name'}; </table> <input type="hidden" name="csrf_cookie" value="<?php print $csrf; ?>"> </form> +</li> +</ul> +</div> +<?php } ?> + <!-- result --> <div id="userModSelf2faResult" style="margin-bottom:90px;display:none"></div> - -<hr> -<br><br> <?php -if($User->user->{'2fa_secret'}!=null) { +if ($passkey_only) { + $Result->show ("warning alert-absolute", _("You can only login to your account using passkeys").".", false); +} +elseif($User->user->{'2fa_secret'}!=null && $User->user->{'2fa'}==1) { $html = []; - $html[] = '<div class="loginForm row" style="width:400px;">'; + $html[] = "<hr><br>"; + $html[] = '<div class="loginForm row" style="width:500px;">'; $html[] = ' '._('Details for your preferred authenticator application are below. Please write down your details, otherwise you will not be able to login to phpipam')."."; $html[] = ' <div style="border: 2px dashed red;margin:20px;padding: 10px" class="text-center row">'; - $html[] = ' <div class="col-xs-12" style="padding:5px 10px 3px 20px;"><strong>'._('Account').': <span style="color:red; font-size: 16px">'.$username.'</span></strong></div>'; - $html[] = ' <div class="col-xs-12" style="padding:0px 10px 3px 20px;"><strong>'._('Secret').' : <span style="color:red; font-size: 16px">'.$User->user->{'2fa_secret'}.'</span></strong></div>'; + $html[] = ' <div class="col-xs-12" style="padding:5px 10px 3px 20px;"><strong>'._('Account').':<br> <span style="color:red; font-size: 16px">'.$username.'</span></strong><hr></div>'; + $html[] = ' <div class="col-xs-12" style="padding:0px 10px 3px 20px;"><strong>'._('Secret').' :<br> <span style="color:red; font-size: 16px">'.$User->user->{'2fa_secret'}.'</span></strong></div>'; $html[] = ' </div>'; $html[] = ' <div class="text-center">'; $html[] = ' <hr>'._('You can also scan following QR code with your preferred authenticator application').':<br><br>'; diff --git a/app/tools/user-menu/2fa_save.php b/app/tools/user-menu/2fa_save.php index 61d381323048995fe0fd57ab0a7b76220a4c464d..0ac748ee431a4542bee6bdbd2a1c6e5591498214 100644 --- a/app/tools/user-menu/2fa_save.php +++ b/app/tools/user-menu/2fa_save.php @@ -19,6 +19,8 @@ $ga = new PHPGangsta_GoogleAuthenticator(); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # validate csrf cookie $User->Crypto->csrf_cookie ("validate", "user-menu", $_POST['csrf_cookie']) === false ? $Result->show("danger", _("Invalid CSRF cookie"), true) : ""; diff --git a/app/tools/user-menu/account.php b/app/tools/user-menu/account.php index 8acc832577c16778cee31e761f23fa6fe4f06770..88b5a03184d7c686ef25bb8251df28826e8d6b3d 100644 --- a/app/tools/user-menu/account.php +++ b/app/tools/user-menu/account.php @@ -21,6 +21,14 @@ $User->check_user_session(); # fetch all languages $langs = $User->fetch_langs(); + +// passkeys +if ($User->settings->{'passkeys'}=="1") { + // get user passkeys + $user_passkeys = $User->get_user_passkeys($User->user->id); + // set passkey_only flag + $passkey_only = $User->settings->{'passkeys'}=="1" && sizeof($user_passkeys)>0 && $User->user->passkey_only=="1" ? true : false; +} ?> <!-- test --> @@ -75,6 +83,21 @@ if($User->user->authMethod == 1) { </tr> <?php } ?> + +<?php if ($User->settings->{'passkeys'}=="1") { ?> +<!-- passkey login only --> +<tr> + <td><?php print _('Passkey login only'); ?></td> + <td> + <input type="checkbox" value="1" class="input-switch" name="passkey_only" <?php if($User->user->passkey_only == "1") print 'checked'; ?>> + </td> + <td class="info2"><?php print _('Select to only allow account login with passkey'); ?> + <?php if(sizeof($user_passkeys)==0 && $User->user->passkey_only=="1") { print "<br><span class='text-warning'>". _("You can login to your account with normal authentication method only untill you create passkeys.")."</span>"; } ?> + </td> +</tr> +<?php } ?> + + <!-- select theme --> <tr> <td><?php print _('Theme'); ?></td> diff --git a/app/tools/user-menu/index.php b/app/tools/user-menu/index.php index 7c092a79ecaa5d92b6e6c644979bbaab83473da0..f245bb8a5c818fa3c13f1b92f4afcde3f30ffd9d 100755 --- a/app/tools/user-menu/index.php +++ b/app/tools/user-menu/index.php @@ -35,6 +35,11 @@ print "<hr><br>"; $subpages['2fa'] = "Two-factor authentication"; } + // Passkeys + if ($User->settings->{'passkeys'}=="1") { + $subpages['passkeys'] = "Passwordless authentication"; + } + // default tab if(!isset($_GET['subnetId'])) { $_GET['subnetId'] = "account"; diff --git a/app/tools/user-menu/passkey_challenge.php b/app/tools/user-menu/passkey_challenge.php new file mode 100644 index 0000000000000000000000000000000000000000..06113c5139b15fbf6faad2546b7c41a3c6b98364 --- /dev/null +++ b/app/tools/user-menu/passkey_challenge.php @@ -0,0 +1,28 @@ +<?php + +# +# Create challenge for webauthn +# + +// include composer +require __DIR__ . '/../../../functions/vendor/autoload.php'; + +// phpipam stuff +require_once( dirname(__FILE__) . '/../../../functions/functions.php' ); + +# initialize required objects - to start session +$Database = new Database_PDO; +$User = new User ($Database); + +// webauthn modules +use Firehed\WebAuthn\{ + SessionChallengeManager +}; + +// Generate challenge +$challengeManager = new \Firehed\WebAuthn\SessionChallengeManager(); +$challenge = $challengeManager->createChallenge(); + +// Send json challenge to user +header('Content-type: application/json'); +echo json_encode($challenge->getBase64()); \ No newline at end of file diff --git a/app/tools/user-menu/passkey_edit.php b/app/tools/user-menu/passkey_edit.php new file mode 100644 index 0000000000000000000000000000000000000000..c2da207df606394cf4106eb4305b793d6d4ece6c --- /dev/null +++ b/app/tools/user-menu/passkey_edit.php @@ -0,0 +1,90 @@ +<?php + +/** + * + * Name created passkey + */ + +# include required scripts +require_once( dirname(__FILE__) . '/../../../functions/functions.php' ); + +# initialize user object +$Database = new Database_PDO; +$User = new User ($Database); +$Result = new Result (); + +# verify that user is logged in +$User->check_user_session(); + +# validate action +$User->validate_action ($_POST['action'], true); + +# create csrf token +$csrf = $User->Crypto->csrf_cookie ("create", "passkeyedit"); + +# fetch passkey +$passkey = $User->get_user_passkey_by_keyId ($_POST['keyid']); + +# validate +if(is_null($passkey)) +$Result->show("danger", _("Passkey not found"), true, true); +?> + + +<!-- header --> +<div class="pHeader"><?php print _("Edit")." "._("passkey"); ?></div> + +<!-- content --> +<div class="pContent"> + + <?php + if($_POST['action']=="add") { + $Result->show("success", _("New passkey succesfully registered!")); + print "<hr>"; + } + ?> + + <form id="passkeyEdit" name="passkeyEdit"> + + <?php if ($_POST['action']!="delete") { ?> + <table class="groupEdit table table-noborder table-condensed"> + <!-- name --> + <tr> + <td><?php print _('Name your passkey'); ?>:</td> + <td> + + <input type="text" name="comment" class="form-control input-sm" value="<?php print escape_input(@$passkey->comment); ?>" <?php if($_POST['action'] == "delete") print "readonly"; ?>> + <input type="hidden" name="keyid" value="<?php print escape_input($_POST['keyid']); ?>"> + <input type="hidden" name="action" value="<?php print escape_input($_POST['action']); ?>"> + <input type="hidden" name="csrf_cookie" value="<?php print $csrf; ?>"> + </td> + </tr> + </table> + <?php } else { ?> + <input type="hidden" name="keyid" value="<?php print escape_input($_POST['keyid']); ?>"> + <input type="hidden" name="action" value="<?php print escape_input($_POST['action']); ?>"> + <input type="hidden" name="csrf_cookie" value="<?php print $csrf; ?>"> + <?php } ?> + + <?php + if($_POST['action']=="delete") { + $Result->show("danger", _("You are about to delete your passkey ").escape_input($passkey->comment)."!", false); + } + ?> +</form> + +</div> + + +<!-- footer --> +<div class="pFooter"> + <div class="btn-group"> + <button class="btn btn-sm btn-default hidePopups"><?php print _('Cancel'); ?></button> + <button class='btn btn-sm btn-default submit_popup <?php if($_POST['action']=="delete") { print "btn-danger"; } else { print "btn-success"; } ?>' data-script="app/tools/user-menu/passkey_edit_result.php" data-result_div="passkeyEditResult" data-form='passkeyEdit'> + <i class="fa <?php if($_POST['action']=="add") { print "fa-plus"; } else if ($_POST['action']=="delete") { print "fa-trash-o"; } else { print "fa-check"; } ?>"></i> <?php print escape_input(ucwords(_($_POST['action']))); ?> + </button> + + </div> + <!-- Result --> + <div id="passkeyEditResult"></div> +</div> \ No newline at end of file diff --git a/app/tools/user-menu/passkey_edit_result.php b/app/tools/user-menu/passkey_edit_result.php new file mode 100644 index 0000000000000000000000000000000000000000..2ee0b3f3699d207c717309495d9bea2bb380ca4c --- /dev/null +++ b/app/tools/user-menu/passkey_edit_result.php @@ -0,0 +1,45 @@ +<?php + +/** + * + * Rename passkey + * + */ + +# include required scripts +require_once( dirname(__FILE__) . '/../../../functions/functions.php' ); + +# initialize required objects +$Database = new Database_PDO; +$Result = new Result; +$User = new User ($Database); + +# verify that user is logged in +$User->check_user_session(); + +# strip input tags +$_POST = $User->strip_input_tags($_POST); + +# validate csrf cookie +$User->Crypto->csrf_cookie ("validate", "passkeyedit", $_POST['csrf_cookie']) === false ? $Result->show("danger", _("Invalid CSRF cookie"), true) : ""; + +# fetch passkey +$passkey = $User->get_user_passkey_by_keyId ($_POST['keyid']); + +# validate +if(is_null($passkey)) { + $Result->show("danger", _("Passkey not found"), true); +} +elseif ($passkey->user_id!=$User->user->id) { + $Result->show("danger", _("Passkey not found"), true); +} +else { + if($_POST['action']=="edit" || $_POST['action']=="add") { + if($User->rename_passkey ($passkey->id, $_POST['comment'])) { $Result->show("success", _("Passkey renamed"), false); } + else { $Result->show("success", _("Failed to rename passkey"), false); } + } + else { + if($User->delete_passkey ($passkey->id)) { $Result->show("success", _("Passkey removed"), false); } + else { $Result->show("success", _("Failed to remove passkey"), false); } + } +} \ No newline at end of file diff --git a/app/tools/user-menu/passkey_save.php b/app/tools/user-menu/passkey_save.php new file mode 100644 index 0000000000000000000000000000000000000000..a37d70cf2e71c04307f64eaa923584dddf9c4d4a --- /dev/null +++ b/app/tools/user-menu/passkey_save.php @@ -0,0 +1,85 @@ +<?php + +/** + * + * Save users passkey + * + */ + +# include composer +require __DIR__ . '/../../../functions/vendor/autoload.php'; + +// phpipam stuff +require_once( dirname(__FILE__) . '/../../../functions/functions.php' ); + +# initialize required objects +$Database = new Database_PDO; +$User = new User ($Database); + +// set header typw +header('Content-Type: text/html; charset=utf-8'); + +// webauthn modules +use Firehed\WebAuthn\{ + ChallengeManagerInterface, + Codecs, + CredentialContainer, + RelyingParty, + SessionChallengeManager, + SingleOriginRelyingParty, + JsonResponseParser, + ArrayBufferResponseParser +}; + +# process request +$json = file_get_contents('php://input'); +$data = json_decode($json, true); + +// +// we dont try to catch exceptions, as messages are unclear, check webserver/php-fpm error_logs +// + +// try { + // parser + $parser = new ArrayBufferResponseParser(); + $createResponse = $parser->parseCreateResponse($data); + + // escape keyId + $data['keyId'] = $User->strip_input_tags ($data['keyId']); + + // Relaying party + $rp = new \Firehed\WebAuthn\SingleOriginRelyingParty($User->createURL ()); + // challange manager + $challengeManager = new \Firehed\WebAuthn\SessionChallengeManager(); + + // Verify credentials, if it fails exit + try { + $credential = $createResponse->verify($challengeManager, $rp); + } catch (Throwable) { + header('HTTP/1.1 403 Unauthorized'); + return; + } + + // encode credentials to store to database + $codec = new Codecs\Credential(); + $encodedCredential = $codec->encode($credential); + + + // save passkey + $User->save_passkey ($encodedCredential, $credential->getStorageId(), $data['keyId']); + + // print result + header('HTTP/1.1 200 OK'); + header('Content-type: application/json'); + echo json_encode([ + 'success' => true, + 'credentialId' => $credential->getStorageId() + ]); +// } catch (exception $e) { +// header('HTTP/1.1 500 '.$e->getMessage()); +// } +// catch (Throwable) { +// // Verification failed. Send an error to the user? +// header('HTTP/1.1 403 Unauthorized'); +// return; +// } \ No newline at end of file diff --git a/app/tools/user-menu/passkeys.php b/app/tools/user-menu/passkeys.php new file mode 100644 index 0000000000000000000000000000000000000000..ed3c91b5c6342dca9e10d0b2a8cfe70eb265ea7d --- /dev/null +++ b/app/tools/user-menu/passkeys.php @@ -0,0 +1,223 @@ +<?php + +/** + * Usermenu - passkeys + */ + +# verify that user is logged in +$User->check_user_session(); +?> + + +<h4><?php print _('Passwordless authentication'); ?></h4> +<hr> +<span class="info2"><?php print _("Here you can manage passkey authentication for your account"); ?>. <?php print _("Passkeys are a password replacement that validates your identity using touch, facial recognition, a device password, or a PIN"); ?>.</span> +<br><br> + +<?php + +# tls check +if (!$Tools->isHttps()) { + $Result->show("danger", _("TLS is required for passcode authentication"), false); +} +# are passkeys enabled ? +elseif (!$User->settings->{'passkeys'}=="1") { + $Result->show("danger", _("Passkey authentication is disabled"), false); +} +else { + // get user passkeys + $user_passkeys = $User->get_user_passkeys(false); + + + # passkey 0nly ? + if(sizeof($user_passkeys)>0 && $User->user->passkey_only=="1") { + $Result->show("warning alert-absolute", _("You can login to your account with with passkeys only").".<hr>"._("This can be changed under Account details tab")."."); + } + elseif($User->user->passkey_only=="1") { + $Result->show("warning alert-absolute", _("You can login to your account with normal authentication method only untill you create passkeys".".<hr>"._("This can be changed under Account details tab."))); + } + else { + $Result->show("warning alert-absolute", _("You can login to your account with normal authentication method or with passkeys".".<hr>"._("This can be changed under Account details tab."))); + } + print "<div class='clearfix'></div>"; + + // none ? + if (sizeof($user_passkeys)>0) { + print '<div class="panel panel-default" style="max-width:600px">'; + print '<div class="panel-heading">'._("Your passkeys").'</div>'; + print ' <ul class="list-group">'; + + foreach ($user_passkeys as $passkey) { + + // format last used and created + $created = date("M d, Y", strtotime($passkey->created)); + $last_used = is_null($passkey->used) ? _("Never") : date("M d, Y", strtotime($passkey->used)); + $passkey->comment = is_null($passkey->comment) ? "-- Unknown --" : $passkey->comment; + $this_browser = $passkey->keyId == @$_SESSION['keyId'] ? "<span class='badge' style='margin-bottom:2px;margin-left:10px;'>"._("You authenticated with this passkey")."</span>" : ""; + + print '<li class="list-group-item">'; + print "<div>"; + print ' <div style="width:40px;float:left" class="text-muted">'; + print ' <span class="float-left text-center text-muted"> + <svg height="40" aria-hidden="true" viewBox="0 -8 32 32" version="1.1" width="40" data-view-component="true" class="octicon octicon-passkey-fill" style="color:red !important;"> + <path d="M9.496 2a5.25 5.25 0 0 0-2.519 9.857A9.006 9.006 0 0 0 .5 20.228a.751.751 0 0 0 .728.772h5.257c3.338.001 6.677.002 10.015 0a.5.5 0 0 0 .5-.5v-4.669a.95.95 0 0 0-.171-.551 9.02 9.02 0 0 0-4.814-3.423A5.25 5.25 0 0 0 9.496 2Z"></path> + <path d="M23.625 10.313c0 1.31-.672 2.464-1.691 3.134a.398.398 0 0 0-.184.33v.886a.372.372 0 0 1-.11.265l-.534.534a.188.188 0 0 0 0 .265l.534.534c.071.07.11.166.11.265v.347a.374.374 0 0 1-.11.265l-.534.534a.188.188 0 0 0 0 .265l.534.534a.37.37 0 0 1 .11.265v.431a.379.379 0 0 1-.097.253l-1.2 1.319a.781.781 0 0 1-1.156 0l-1.2-1.319a.379.379 0 0 1-.097-.253v-5.39a.398.398 0 0 0-.184-.33 3.75 3.75 0 1 1 5.809-3.134ZM21 9.75a1.125 1.125 0 1 0-2.25 0 1.125 1.125 0 0 0 2.25 0Z"></path> + </svg>'; + print ' </span>'; + print " </div>"; + + print "<div class='pull-left' style='padding-top:8px;'>"; + print "<strong>".$User->strip_input_tags($passkey->comment)."</strong> ".$this_browser; + print "</div>"; + + print ' <div class="btn-group pull-right" style="padding-top:8px;">'; + print ' <button class="btn btn-xs btn-default open_popup" data-script="app/tools/user-menu/passkey_edit.php" data-action="edit" data-keyId="'.$passkey->keyId.'" rel="tooltip" title="" data-original-title="'._("Rename").'"><i class="fa fa-pencil"></i></button>'; + print ' <button class="btn btn-xs btn-default open_popup" data-script="app/tools/user-menu/passkey_edit.php" data-action="delete" data-keyId="'.$passkey->keyId.'" rel="tooltip" title="" data-original-title="'._("Delete").'"><i class="fa fa-times"></i></button>'; + print ' </div>'; + + // print "<div class='clearfix'></div>"; + print "<br><br>"; + print "<span class='text-muted' style='padding-left:0px;'>"._("Added on")." ".$created." :: "._("Last used")." $last_used</span>"; + print '</div>'; + + + print '</li>'; + } + print ' </ul>'; + print '</div>'; + } + // result + print '<div id="loginCheckPasskeys" style="max-width:600px"></div>'; + + // add + print '<button class="btn btn-sm btn-success addPasskey"><i class="fa fa-plus"></i> '._("Add a passkey").'</button>'; +} +?> + + +<script type="text/javascript"> + +function loginRedirect2() { + location.reload() +} + +// register function +const startRegister = async (e) => { + + // check if browser supports webauthn + if (!window.PublicKeyCredential) { + return + } + + try { + // get and parse challenge + const challengeReq = await fetch('app/tools/user-menu/passkey_challenge.php') + const challenge = await challengeReq.json() + + // create + const createOptions = { + publicKey: { + rp: { + name: '<?php print $User->createURL (); ?>', + }, + user: { + name: "<?php print $User->user->username; ?>", + displayName: "<?php print $User->user->real_name; ?>", + id: Uint8Array.from("<?php print $User->user->id; ?>", c => c.charCodeAt(0)), + }, + // This base64-decodes the response and translates it into the Webauthn-required format. + // challenge: Uint8Array.from(atob(challenge), c => c.charCodeAt(0)), + challenge: Uint8Array.from(atob(challenge), c => c.charCodeAt(0)), + pubKeyCredParams: [ + { + alg: -7, // ES256 + type: "public-key", + } + ] + }, + attestation: 'direct', + } + + // Call the WebAuthn browser API and get the response. This may throw, which you + // should handle. Example: user cancels or never interacts with the device. + const credential = await navigator.credentials.create(createOptions) + + // Format the credential to send to the server. This must match the format + // handed by the ResponseParser class. The formatting code below can be used + // without modification. + const dataForResponseParser = { + // rawId: Array.from(new Uint8Array(credential.rawId)), + rawId: Array.from(new Uint8Array(credential.rawId)), + keyId: credential.id, + type: credential.type, + attestationObject: Array.from(new Uint8Array(credential.response.attestationObject)), + clientDataJSON: Array.from(new Uint8Array(credential.response.clientDataJSON)), + transports: credential.response.getTransports(), + } + + // Send this to your endpoint - adjust to your needs. + const request = new Request('app/tools/user-menu/passkey_save.php', { + body: JSON.stringify(dataForResponseParser), + headers: { + 'Content-type': 'application/json', + }, + method: 'POST', + }) + const result = await fetch(request) + + // process result + if(result.status==200) { + // $('#loginCheckPasskeys').html("<div class='alert alert-success'>New passkey registered!</div>"); + + // open popup to name passkey + $('div.loading').show(); + // post + $.post("/app/tools/user-menu/passkey_edit.php", {"keyid":credential.id, "action":"add"}, function(data) { + // set content + $('#popupOverlay .popup_w500').html(data).show(); + // show overlay + $("#popupOverlay").fadeIn('fast'); + $('#popupOverlay2 > div').empty(); + $('div.loading').hide(); + //disable page scrolling on bottom + $('body').addClass('stop-scrolling'); + // reset size + var myheight = $(window).height() - 250; + $(".popup .pContent").css('max-height', myheight); + + }).fail(function(jqxhr, textStatus, errorThrown) { + + $('div.jqueryError').fadeIn('fast'); + $('.jqueryErrorText').html(jqxhr.statusText+"<br>Status: "+textStatus+"<br>Error: "+errorThrown).show(); + $('div.loading').hide(); + }); + } + else { + $('#loginCheckPasskeys').html("<div class='alert alert-danger'>Failed to register new passkey. <strong>Error : </strong>"+result.statusText+"</div>"); + console.log(result) + $('div.loading').hide(); + } + } + catch(err) { + $('#loginCheckPasskeys').html("<div class='alert alert-danger'>Failed to register new passkey.</div>"); + console.log(err); + } +} + + +// Start registration of new passkey +$(document).ready(function() { + // check if browser supports webauthn and disable add passkey button + if (!window.PublicKeyCredential) { + $('.addPasskey').addClass('disabled').removeClass('addPasskey') + } + // add passkey + $('.addPasskey').click(function () { + startRegister () + return false; + }) + +}) + + +</script> \ No newline at end of file diff --git a/app/tools/user-menu/user-edit.php b/app/tools/user-menu/user-edit.php index 915ea69fba730cf80569208af825f29650306f4c..0224a5b3bb7ff6479faf87403f972c3d5d6abe30 100755 --- a/app/tools/user-menu/user-edit.php +++ b/app/tools/user-menu/user-edit.php @@ -19,6 +19,8 @@ $Password_check = new Password_check (); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # validate csrf cookie $User->Crypto->csrf_cookie ("validate", "user-menu", $_POST['csrf_cookie']) === false ? $Result->show("danger", _("Invalid CSRF cookie"), true) : ""; @@ -43,6 +45,26 @@ if (!empty($_POST['theme'])) { if (!in_array($_POST['theme'], ['default', 'white', 'dark'])) { $Result->show("danger alert-absolute", _('Invalid theme'), true); } } +# passkeys +if ($User->settings->{'passkeys'}=="1") { + // fetch passkeys + $user_passkeys = $User->get_user_passkeys($User->user->id); + // check + if(isset($_POST['passkey_only'])) { + if(sizeof($user_passkeys)==0) { + $Result->show("warning alert-absolute", _('There are no passkeys set for user. Resetting passkey login only to false.'), false); + print "<div class='clearfix'></div>"; + $_POST['passkey_only'] = 0; + } + else { + $_POST['passkey_only'] = 1; + } + } + else { + $_POST['passkey_only'] = 0; + } +} + # set override $_POST['compressOverride'] = @$_POST['compressOverride']=="Uncompress" ? "Uncompress" : "default"; diff --git a/app/tools/user-menu/user-widgets-set.php b/app/tools/user-menu/user-widgets-set.php index 36e34878ba958b137a0707b9dbf23df2547c69ca..233573a5624a6330cd179239442c0a173484d4c4 100755 --- a/app/tools/user-menu/user-widgets-set.php +++ b/app/tools/user-menu/user-widgets-set.php @@ -16,11 +16,12 @@ $User = new User ($Database); # verify that user is logged in $User->check_user_session(); +# check if site is demo +$User->is_demo(); # validate csrf cookie $User->Crypto->csrf_cookie ("validate", "user-menu", $_POST['csrf_cookie']) === false ? $Result->show("danger", _("Invalid CSRF cookie"), true) : ""; /* save widgets */ if (!$User->self_update_widgets ($_POST['widgets'])) { $Result->show("danger", _('Error updating'),true); } -else { $Result->show("success", _('Widgets updated'),true); } -?> \ No newline at end of file +else { $Result->show("success", _('Widgets updated'),true); } \ No newline at end of file diff --git a/app/tools/vaults/all-vaults.php b/app/tools/vaults/all-vaults.php index c1d0e88a176cca9f590f408edd3d44016c8e7744..7056e31b45e33ad9d3eb25178ce478d2d73cbfd2 100644 --- a/app/tools/vaults/all-vaults.php +++ b/app/tools/vaults/all-vaults.php @@ -37,7 +37,7 @@ else { foreach ($all_vault_types as $key=>$all_vaults_grouped) { // title - print "<h4 style='margin-top:30px;'>".ucwords(_($key))."</h4><hr>"; + print "<h4 style='margin-top:30px;'>"._(ucwords($key))."</h4><hr>"; print '<table id="userPrint" class="table sorted table-striped sorted tab1le-auto" data-cookie-id-table="admin_vaults">'; # headers diff --git a/app/upgrade/index.php b/app/upgrade/index.php index f43530c1ae50d7053ab1be623dfd17d2514bb9a1..a22ed776fd93c4e145d733dcc4c8f4f58146d9ed 100755 --- a/app/upgrade/index.php +++ b/app/upgrade/index.php @@ -39,7 +39,7 @@ $Upgrade = new Upgrade ($Database); <link rel="shortcut icon" href="css/images/favicon.png"> <!-- js --> - <script src="js/jquery-3.5.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> + <script src="js/jquery-3.7.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script src="js/jclock.jquery.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script src="js/login.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script src="js/install.js?v=<?php print SCRIPT_PREFIX; ?>"></script> diff --git a/css/bootstrap/bootstrap-custom-dark.css b/css/bootstrap/bootstrap-custom-dark.css index 463b68979ae6d2418098cf01377119535ebfd656..3891e021bc030f5b882f1ad79b499f18c8685af7 100644 --- a/css/bootstrap/bootstrap-custom-dark.css +++ b/css/bootstrap/bootstrap-custom-dark.css @@ -1,2 +1,1015 @@ -html{min-height:100% !important}html body{background:url("../images/bg-light.png") no-repeat center center fixed;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;background-repeat:repeat;height:100% !important;min-height:100% !important;color:#e5e5e5;background-color:transparent}html #header{background:rgba(0,0,0,0.4)}html .hero-unit a{text-shadow:none}html .hero-unit a:hover{color:white;text-decoration:none}html blockquote{border-left-color:#58606b}html .content_overlay{padding-bottom:50px}html h1,html h2,html h3,html h4,html h5{color:white !important;text-shadow:none}html a,html a:hover{color:#58ACFA}html .wrapper{background:transparent url("../images/noise.png");height:100% !important}html .subtitle{background:rgba(0,0,0,0.2);border-bottom:1px solid rgba(0,0,0,0.4)}html pre{background:rgba(0,0,0,0.1);border:1px solid #58606b;color:#ccc}html .text-muted{color:#999}html hr{border-top:none;border-bottom:1px solid rgba(255,255,255,0.1)}html hr.title{border-top:none;border-bottom:none;margin-bottom:10px}html .alert.alert-info{background:rgba(0,0,0,0.2);border-color:#58ACFA;color:#58ACFA}html .alert.alert-warning{background:rgba(0,0,0,0.2);color:#faebcc;border-color:#8a6d3b}html .alert.alert-success{background:rgba(0,0,0,0.2);color:#d6e9c6;border-color:#d6e9c6}html .alert.alert-danger{background:rgba(0,0,0,0.2);color:#f2dede;border-color:#a94442}html .alert.alert-muted{background:transparent;color:#999}html span.text-success,html span.text-danger{border:1px solid #58606b;background:rgba(0,0,0,0.2);padding:2px 5px;border-radius:3px}html span.text-success{color:#d6e9c6;border:1px solid #d6e9c6}html span.text-danger{color:#ebccd1;border:1px solid #a94442}html table td.info2,html .info2,html .muted{text-shadow:none;color:#999}html .form-control{border:1px solid #58606b}html .form-inline{border-bottom:1px solid #58606b}html input{color:#58606b !important}html .badge{background:rgba(0,0,0,0.2) !important;border:1px solid #58606b !important}html .badge.alert-success{color:#dff0d8 !important;border-color:#3c763d !important}html .badge.alert-danger{background:rgba(0,0,0,0.2);color:#ebccd1 !important;border-color:#a94442 !important}html .badge.alert-warning{background:rgba(0,0,0,0.2);color:#faebcc !important;border-color:#8a6d3b !important}html .badge.alert-info{background:rgba(0,0,0,0.2);color:#e3eaf2 !important;border-color:#436587 !important}html span.status{border-color:rgba(0,0,0,0.6)}html span.status.status-neutral{background:rgba(0,0,0,0.1)}html span.status.status-error{background:#a94442}html span.status.status-success{background:#3c763d}html i.fa-Offline{color:#a94442 !important}html .navbar .navbar-nav.sections li.active a{background:rgba(0,0,0,0.4) !important}html .navbar .navbar-nav.sections li.dropdown ul.dropdown-menu li:hover active{background:rgba(0,0,0,0.4) !important}html .navbar .navbar-nav li{min-width:10px}html .navbar .navbar-nav li a{color:white}html .navbar a span.badge{margin-left:7px;padding:2px 5px;color:#58606b}html .navbar.navbar-default{border-top:1px solid rgba(255,255,255,0.3) !important;border-bottom:1px solid rgba(255,255,255,0.3) !important}html .navbar .navbar-nav li{min-width:10px}html .navbar#menu-navbar{background:rgba(0,0,0,0.3)}html .navbar#menu-navbar a{font-weight:normal}html .dropdown-menu .divider{background-color:#333 !important}html ul.dropdown-menu{background:url("../images/bg-light.png") no-repeat center center fixed;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;background-repeat:repeat}html ul.dropdown-menu li.disabled{background:rgba(0,0,0,0.1);border-color:#58606b}html .navbar#menu-navbar .navbar-nav li.administration a{background:#a94442 !important}html .navbar#menu-navbar .navbar-nav li.administration li a{background:#40454a !important}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu{border:none;border-radius:none;box-shadow:none;padding-top:0px !important;margin-top:5px}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu li{background:transparent url("../images/noise.png") !important}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu li a{border-left:1px solid #58606b;border-left:none}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li{border-left:1px solid #58606b}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li:first-child{border-top:1px solid #58606b !important}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li:last-child{border-bottom:1px solid #58606b !important}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li.active{border-left:2px solid #d43f3a !important}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li.active a{background:#272b30 !important}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li.nav-header{background:rgba(0,0,0,0.2) !important;border-bottom:1px solid #58606b}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li.nav-header:hover{background:rgba(0,0,0,0.2) !important}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.tools_dropdown li{border-radius:0px !important}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.tools_dropdown li a{border-radius:0px !important}html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.tools_dropdown li.active{border-left:2px solid #58ACFA !important}html .nav-tabs{border-bottom:1px solid #999}html .nav-tabs>li.active>a,html .nav-tabs>li.active>a:focus,html .nav-tabs>li.active>a:hover{background:rgba(0,0,0,0.3);border:1px solid #999 !important;border-bottom:none !important;color:white !important}html .nav-tabs>li>a:hover{background:rgba(0,0,0,0.1);border:1px solid transparent !important;border-bottom:0px solid #999 !important;color:white !important}html .nav-tabs li a{border-bottom:none !important}html .btn:hover i.prefix{color:white}html ul.dropdown-menu{border:1px solid rgba(0,0,0,0.5)}html ul.dropdown-menu li a{color:white !important}html ul.dropdown-menu li a:hover{background:rgba(0,0,0,0.2)}html .btn{color:#58ACFA;border:1px solid #58606b}html .btn:hover{background:#58ACFA;color:white}html .btn[disabled]:hover{color:#58ACFA;border-color:#58ACFA}html .btn.btn-success{border:1px solid transparent !important;background:rgba(0,255,0,0.2) !important}html .btn.btn-success:hover{background:#3c763d;color:white;border-color:#adadad !important}html .btn{background:rgba(0,0,0,0.2);color:white}html .btn:hover{background:rgba(0,0,0,0.4)}html .input-group-addon{background:rgba(0,0,0,0.2);color:white;border:1px solid #58606b}html .breadcrumb .active{color:#999}html div.btn-group{border:1px solid #58606b;border:none;border-radius:4px}html div.btn-group.noborder{border:none}html div.btn-group.noborder .btn-group{border:none}html div.btn-group .btn.btn-danger{color:#fff;background-color:#d9534f !important;border-color:#d43f3a}html .btn-default.active,html .btn-default:active,html .open>.dropdown-toggle.btn-default{background:rgba(0,0,0,0.2) !important;color:white !important}html .btn:focus{background-position:0 -14px}html ul#subnets li.folder i,html ul.submenu li i.fa-folder-close-o,html ul.submenu li i.fa-folder-open-o,html ul.submenu li i.fa-folder{background:transparent;color:white !important}html .fa-gray{color:white !important}html .fa-folder-open{color:white !important}html .action{text-shadow:none;background:transparent;border-top:1px solid #58606b;border-bottom:1px solid #58606b}html .action .btn-success{background:#3c763d;border:1px solid #58606b !important}html .tooltip{font-size:12px}html .popover{background:url("../images/bg-light.png") no-repeat center center fixed;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;background-repeat:repeat;color:#e5e5e5;background-color:transparent;border:2px solid rgba(0,0,0,0.2)}html .popover .popover-title{background:rgba(0,0,0,0.3);border-bottom:1px solid #999}html .popover .popover-content table{background:transparent !important}html .popover.right>.arrow:after{border-right-color:rgba(0,0,0,0.1) !important}html .table.ipaddresses tbody tr:hover td table.popover_table tbody td{background:transparent !important;border:none !important}html table#userModSelf.table td{border:none !important}html table.table-certificates tr.warning td{color:#FFC47B !important}html table.table-certificates tr.warning td a{color:#FFC47B !important}html table.table-certificates tr.danger td{color:#EA6C85 !important}html table.table-certificates tr.danger td a{color:#EA6C85 !important}html .legend .legendLabel{color:#999}html ul[class*="submenu-"] li{padding-left:20px !important;background:url("../images/li-dark.png") no-repeat 4px -3px}html ul[class*="submenu-"] li:last-child{background:url("../images/ul-li-bg-dark.png") no-repeat 3px 0px}html li.active ul[class*="submenu-"] li:last-child{background:url("../images/ul-li-bg-active-dark.png") no-repeat 3px 0px !important}html ul#subnets li.folder li.leaf.active{background:#F1FAFE url("../images/li-dark.png") no-repeat 4px -3px !important}html ul[class*="submenu-"] li.folder.active{background:#F1FAFE url("../images/ul-li-bg-dark.png") no-repeat 3px 0px !important}html ul#subnets li.folder li.leaf.active:last-of-type{background:#F1FAFE url("../images/ul-li-bg-active-dark.png") no-repeat 3px 0px !important}html table#manageSubnets tr td:nth-child(1) a{color:white}html table#manageSubnets .structure{background:url("../images/sn-bg-dark.png") 0px 7px}html table#manageSubnets .structure-last{background:url("../images/sn-bg-last-dark.png") no-repeat 1px 0px}html ul.submenu-dns li{background:url("../images/li-dns-dark.png") no-repeat 4px -3px !important;font-size:10px}html ul.submenu-dns li:last-child{background:url("../images/li-dns-last-dark.png") no-repeat 4px -3px !important}html table#manageSubnets>tbody>tr:last-child .structure{background:url("../images/sn-bg-last-dark.png") no-repeat 1px 0px !important}html ul.submenu-linked li{background:url("../images/li-dns-dark.png") no-repeat 4px -1px !important}html ul.submenu-linked li:last-child{background:url("../images/li-dns-last-dark.png") no-repeat 4px -1px !important}html table tr.similar td:nth-child(1){background:url("../images/li-dns-dark.png") no-repeat 17px -5px !important}html table tr.similar-last td:nth-child(1){background:url("../images/li-dns-last-dark.png") no-repeat 17px -5px !important}html table tr.similar-last td:nth-child(1){background:url("../images/li-dns-last-dark.png") no-repeat 17px -5px !important}html .ipaddress_subnet .subnet_badge{background:rgba(0,0,0,0.3) !important}html .table.ipaddresses tbody tr:hover td,html .table.slaves tbody tr:hover td,html .table-striped tbody tr:hover td{background:rgba(0,0,0,0.1) !important}html .table-striped tbody tr:nth-child(even) td.th{background:transparent !important}html table.table.ipaddresses .unused{text-shadow:none !important;color:white;background:rgba(0,255,0,0.1) !important}html table.table.ipaddresses tr.dhcp td{text-shadow:none !important;color:white;background:rgba(0,0,0,0.1) !important}html table.table.ipaddresses tr:hover td.unused{background:rgba(0,255,0,0.1) !important}html table.table.ipaddresses td{border-bottom:none !important;border-top:1px solid #58606b !important}html table.table.address_details td{border:none !important}html table#logs tr td.severity span{color:#272b30}html table#logs tr.success td a{border:none}html table#logs tr.danger td{background:#a94442 !important}html table.table-threshold td{border-bottom:none !important}html .ip_vis span{background:rgba(0,0,0,0.2) !important}html .ip_vis span.ip-unused{border-color:#999;color:#ccc !important}html .ip_vis span.ip-0{color:white !important}html .ip_vis span.ip-1{border-color:#a94442;background-color:rgba(255,0,0,0.05) !important;color:white !important}html .ip_vis span.ip-2{border-color:#d6e9c6;background:rgba(0,255,0,0.05) !important;color:white !important}html .ip_vis span.ip-4{border-color:#58ACFA;color:#e3eaf2 !important}html #popupOverlay{background:rgba(0,0,0,0.6) !important}html #popup{background:url("../images/bg-light.png") no-repeat center center fixed;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;background-repeat:repeat;color:#e5e5e5;background-color:transparent;border:2px solid rgba(0,0,0,0.2)}html #popup div.pHeader{background:rgba(0,0,0,0.3);border-bottom:1px solid #999}html #popup div.pContent{background:transparent url("../images/noise.png")}html #popup div.pFooter{background:rgba(0,0,0,0.3);border-top:1px solid #999 !important;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}html #popup div.pFooter .btn{border:1px solid #58606b !important}html #popup div.col-xs-12.col-md-6{border-right-color:#58606b !important}html #popup .sortable li{background:rgba(0,0,0,0.2);border:1px solid #58606b !important}html .bootstrap-switch{border-color:#999}html .bootstrap-switch .bootstrap-switch-label{background:transparent}html .bootstrap-switch .bootstrap-switch-handle-off,html .bootstrap-switch .bootstrap-switch-handle-on{color:white !important;background:rgba(0,0,0,0.2) !important}html table.table.table-top th{background:white;margin:0px}html table.table.table{background:transparent}html table.table.table-noborder th,html table.table.table-noborder td{border:none}html table.table.statistics td{border:none !important;padding-top:2px;padding-bottom:2px}html table.table td{font-size:13px}html table.table td.th{padding-top:25px !important;border-bottom:1px solid #999 !important}html table.table td.border-bottom{border-bottom:1px solid #999 !important}html table.table tr.success td{text-shadow:none !important;color:white;background:rgba(0,255,0,0.1) !important;border-bottom:none !important;border-bottom:none !important}html table.table tr.success td btn,html table.table tr.success td a{border:1px solid #999}html table.table tr.success:hover td{background:rgba(0,255,0,0.1) !important}html table.vlans tr td{border:none !important}html table.vlans tr.change td{border-top:1px solid #58606b !important}html .bootstrap-table .table{border-bottom:1px solid #58606b}html table.table th,html table.table tr,html table.table td{background:transparent !important}html table.table td.ip a,html table.table td.ipaddress a{color:white !important}html table.table th{background:rgba(0,0,0,0.2) !important;border-bottom:1px solid #272b30 !important;border-top:none !important}html table.table th i.fa{background:rgba(0,0,0,0.2);border:1px solid rgba(255,255,255,0.4)}html table.table tr:hover td{background:rgba(0,0,0,0.1) !important}html table.table tr.weeknumber th{border-top:none}html table.table tr.today{background:rgba(88,172,250,0.1) !important}html table.table tr.pw-status-V_teku{background:#3c763d !important}html table.table tr.pw-status-V_teku a{color:white}html table.table tr.pw-status-V_teku span.badge-warning{border:1px solid white;color:white !important}html table.table td{border-top:1px solid #58606b !important}html table.table td.izpad{color:white}html table.table.table-noborder tr th,html table.table.table-noborder tr td{background:transparent !important;border:none !important}html input,html textarea,html select{background:rgba(0,0,0,0.2) !important;color:white !important}html input.btn.btn-success,html textarea.btn.btn-success,html select.btn.btn-success{border:1px solid #58606b !important}html select{background:rgba(255,255,255,0.2) !important}html input[type=submit]{background:rgba(0,0,0,0.2) !important}html select{line-height:24px}html select optgroup{color:#58606b}html select option{color:#999}html table#subnetsMenu td#subnetsLeft{border-right:1px solid #58606b}html table#subnetsMenu td#subnetsLeft #leftMenu{margin-top:0px}html table#subnetsMenu td#subnetsLeft h4{padding:10px;margin:0px;background:rgba(0,0,0,0.3);border-bottom:1px solid #58606b}html table#subnetsMenu td#subnetsLeft hr{display:none}html table#subnetsMenu td#subnetsLeft a{color:white}html table#subnetsMenu td#subnetsLeft li.leaf i{color:#999 !important}html table#subnetsMenu td#subnetsLeft li.active{background-color:rgba(0,0,0,0.4) !important;background-color:#4b7387 !important;text-shadow:none;border-top:1px solid #58606b;border-bottom:1px solid #58606b}html table#subnetsMenu td#subnetsLeft li.active i{background:transparent}html .adminMenu,html .toolsMenu{background:transparent !important}html .adminMenu .panel-heading,html .toolsMenu .panel-heading{background:transparent !important;border-bottom:1px solid rgba(0,0,0,0.5)}html .adminMenu ul.list-group,html .toolsMenu ul.list-group{background:transparent !important}html .adminMenu ul.list-group li,html .toolsMenu ul.list-group li{background:rgba(0,0,0,0.2) !important;border-left-color:#58606b !important}html .adminMenu ul.list-group li.list-group-item,html .toolsMenu ul.list-group li.list-group-item{border:none}html .adminMenu ul.list-group li.active,html .toolsMenu ul.list-group li.active{background:rgba(0,0,0,0.6) !important;border:1px solid #58606b}html .adminMenu ul.list-group li:hover,html .toolsMenu ul.list-group li:hover{background:rgba(0,0,0,0.3) !important}html #dashboard .inner{background:rgba(0,0,0,0.2) !important;border:1px solid #58606b}html #dashboard .inner h4{background:rgba(0,0,0,0.35) !important;text-shadow:none}html #dashboard .inner .hContent{border-top:1px solid #58606b !important}html #dashboard .inner .hContent .icon{border-right:1px solid #58606b !important}html #dashboard .widget-dash .inner{box-shadow:none !important}html #dashboard #w-access_logs a,html #dashboard #w-error_logs a{color:white}html #dashboard span.severity0{border:1px solid #58606b;background:rgba(0,0,0,0.2);padding:2px 5px;border-radius:4px}html #dashboard span.severity1{border:1px solid #58606b;background:rgba(0,0,0,0.2);padding:2px 5px;border-radius:4px}html #dashboard span.severity2{border:1px solid #58606b;background:rgba(0,0,0,0.2);padding:2px 5px;border-radius:4px}html .menu-tools #dashboard .inner .hContent,html .menu-admin #dashboard .inner .hContent{border-top:none !important}html .adminMenu ul.list-group li.active{border-left-color:#a94442 !important}html .menu-tools ul.list-group li.active{border-left-color:#58ACFA !important}html .footer{border-top:1px solid #58606b}html .pagination ul li a{background:transparent;border:1px solid #999}html .pagination ul li a:hover{background:rgba(0,0,0,0.2);border:1px solid #999}html .pagination ul li.active a,html .pagination ul li.active a:hover{background:rgba(0,0,0,0.5)}html .res_val{background:rgba(0,0,0,0.2) !important}html .ui-slider-handle,html .slider-handle{background:#58606b !important}html .ui-slider,html .slider-track,html .slider-selection{background:#999 !important}html .progress{background:rgba(0,0,0,0.1) !important}html .progress .progress-limit-negative{background:transparent !important;border-color:rgba(0,0,0,0.1) !important}html .progress .progress-bar-info{background:rgba(0,255,0,0.15);border-color:rgba(0,0,0,0.1) !important;color:white}html table#switchMainTable tr.switch-title,html table#vrf tr.vrf-title,html table#subnets tr.subnets-title,html table#settings tr.settings-title,html table#settings{background:transparent !important}html table#switchMainTable tr.switch-title th,html table#vrf tr.vrf-title th,html table#subnets tr.subnets-title th,html table#settings tr.settings-title th,html table#settings th{background:transparent !important;border-bottom:none !important}html table#switchMainTable tr.switch-title th h4,html table#vrf tr.vrf-title th h4,html table#subnets tr.subnets-title th h4,html table#settings tr.settings-title th h4,html table#settings th h4{background:transparent !important}html table#switchMainTable tr.switch-title td,html table#switchMainTable tr.switch-title th,html table#vrf tr.vrf-title td,html table#vrf tr.vrf-title th,html table#subnets tr.subnets-title td,html table#subnets tr.subnets-title th,html table#settings tr.settings-title td,html table#settings tr.settings-title th,html table#settings td,html table#settings th{border:none !important}html table#settings tr.settings-title{border-bottom:1px solid #58606b}html #gmap{border-color:rgba(0,0,0,0.2)}html ul#sortable{max-width:500px}html ul#sortable li{background:rgba(0,0,0,0.2);border-color:#999 !important}html .instructions{background:transparent;border:1px solid #999}html ul.icon-ul>li{border:1px solid rgba(0,0,0,0.4) !important}html .ipreqMenu{background:rgba(0,0,0,0.2);border:1px solid #58606b;right:5px}html .fixed-table-loading{background:rgba(0,0,0,0.3)}html div#login{background:rgba(0,0,0,0.2);border:1px solid #999 !important}html div#login legend{color:white}html div#login form{border-bottom:none}html div#login .iprequest{background:rgba(0,0,0,0.1);border-color:#58606b;text-shadow:none}html .install h4{border-bottom:none !important}html #searchSelect{background:#40454a !important}.subnet_map_found{border-color:#d6e9c6;background:rgba(0,255,0,0.15) !important;color:white !important}.subnet_map_found:hover{background:rgba(0,255,0,0.2) !important}.subnet_map_notfound{background-color:rgba(255,0,0,0.15) !important;color:white !important}.subnet_map_found a{color:white !important}.ip_vis_subnet span{box-shadow:0px 0px 1px #777;border:1px solid rgba(255,255,255,0.2);padding:3px;padding-top:7px;text-align:center;font-size:12px;margin-right:0px;margin-bottom:0px;width:120px;height:30px;float:left;border-left:none}.clearfix1{border-left:1px solid rgba(255,255,255,0.2)}.ip_vis_subnet span a{font-size:12px} -/*# sourceMappingURL=bootstrap-custom-dark.css.map */ +html { + min-height: 100% !important; + /* active leaf */ + /* active submenu background */ +} +html body { + background: url("../images/bg-light.png") no-repeat center center fixed; + -webkit-background-size: cover; + -moz-background-size: cover; + -o-background-size: cover; + background-size: cover; + background-repeat: repeat; + height: 100% !important; + min-height: 100% !important; + color: #e5e5e5; + background-color: rgba(0, 0, 0, 0); +} +html #header { + background: rgba(0, 0, 0, 0.4); +} +html .hero-unit a { + text-shadow: none; +} +html .hero-unit a:hover { + color: white; + text-decoration: none; +} +html blockquote { + border-left-color: #58606b; +} +html .content_overlay { + padding-bottom: 50px; +} +html h1, html h2, html h3, html h4, html h5 { + color: white !important; + text-shadow: none; +} +html a, html a:hover { + color: #58ACFA; +} +html .wrapper { + background: transparent url("../images/noise.png"); + height: 100% !important; +} +html .subtitle { + background: rgba(0, 0, 0, 0.2); + border-bottom: 1px solid rgba(0, 0, 0, 0.4); +} +html pre { + background: rgba(0, 0, 0, 0.1); + border: 1px solid #58606b; + color: #ccc; +} +html .text-muted { + color: #999; +} +html hr { + border-top: none; + border-bottom: 1px solid rgba(255, 255, 255, 0.1); +} +html hr.title { + border-top: none; + border-bottom: none; + margin-bottom: 10px; +} +html .alert.alert-info { + background: rgba(0, 0, 0, 0.2); + border-color: #58ACFA; + color: #58ACFA; +} +html .alert.alert-warning { + background: rgba(0, 0, 0, 0.2); + color: #faebcc; + border-color: #8a6d3b; +} +html .alert.alert-success { + background: rgba(0, 0, 0, 0.2); + color: #d6e9c6; + border-color: #d6e9c6; +} +html .alert.alert-danger { + background: rgba(0, 0, 0, 0.2); + color: #f2dede; + border-color: #a94442; +} +html .alert.alert-muted { + background: transparent; + color: #999; +} +html span.text-success, html span.text-danger { + border: 1px solid #58606b; + background: rgba(0, 0, 0, 0.2); + padding: 2px 5px; + border-radius: 3px; +} +html span.text-success { + color: #d6e9c6; + border: 1px solid #d6e9c6; +} +html span.text-danger { + color: #ebccd1; + border: 1px solid #a94442; +} +html table td.info2, +html .info2, +html .muted { + text-shadow: none; + color: #999; +} +html .form-control { + border: 1px solid #58606b; +} +html .form-inline { + border-bottom: 1px solid #58606b; +} +html input { + color: #58606b !important; +} +html .badge { + background: rgba(0, 0, 0, 0.2) !important; + border: 1px solid #58606b !important; +} +html .badge.alert-success { + color: #dff0d8 !important; + border-color: #3c763d !important; +} +html .badge.alert-danger { + background: rgba(0, 0, 0, 0.2); + color: #ebccd1 !important; + border-color: #a94442 !important; +} +html .badge.alert-warning { + background: rgba(0, 0, 0, 0.2); + color: #faebcc !important; + border-color: #8a6d3b !important; +} +html .badge.alert-info { + background: rgba(0, 0, 0, 0.2); + color: #e3eaf2 !important; + border-color: #436587 !important; +} +html span.status { + border-color: rgba(0, 0, 0, 0.6); +} +html span.status.status-neutral { + background: rgba(0, 0, 0, 0.1); +} +html span.status.status-error { + background: #a94442; +} +html span.status.status-success { + background: #3c763d; +} +html i.fa-Offline { + color: #a94442 !important; +} +html .navbar .navbar-nav.sections li.active a { + background: rgba(0, 0, 0, 0.4) !important; +} +html .navbar .navbar-nav.sections li.dropdown ul.dropdown-menu li:hover active { + background: rgba(0, 0, 0, 0.4) !important; +} +html .navbar .navbar-nav li { + min-width: 10px; +} +html .navbar .navbar-nav li a { + color: white; +} +html .navbar a span.badge { + margin-left: 7px; + padding: 2px 5px; + color: #58606b; +} +html .navbar.navbar-default { + border-top: 1px solid rgba(255, 255, 255, 0.3) !important; + border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important; +} +html .navbar .navbar-nav li { + min-width: 10px; +} +html .navbar#menu-navbar { + background: rgba(0, 0, 0, 0.3); +} +html .navbar#menu-navbar a { + font-weight: normal; +} +html .dropdown-menu .divider { + background-color: #333 !important; +} +html ul.dropdown-menu { + background: url("../images/bg-light.png") no-repeat center center fixed; + -webkit-background-size: cover; + -moz-background-size: cover; + -o-background-size: cover; + background-size: cover; + background-repeat: repeat; +} +html ul.dropdown-menu li.disabled { + background: rgba(0, 0, 0, 0.1); + border-color: #58606b; +} +html .navbar#menu-navbar .navbar-nav li.administration a { + background: #a94442 !important; +} +html .navbar#menu-navbar .navbar-nav li.administration li a { + background: #40454a !important; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu { + border: none; + border-radius: none; + box-shadow: none; + padding-top: 0px !important; + margin-top: 5px; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu li { + background: transparent url("../images/noise.png") !important; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu li a { + border-left: 1px solid #58606b; + border-left: none; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li { + border-left: 1px solid #58606b; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li:first-child { + border-top: 1px solid #58606b !important; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li:last-child { + border-bottom: 1px solid #58606b !important; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li.active { + border-left: 2px solid #d43f3a !important; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li.active a { + background: #272b30 !important; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li.nav-header { + background: rgba(0, 0, 0, 0.2) !important; + border-bottom: 1px solid #58606b; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.admin li.nav-header:hover { + background: rgba(0, 0, 0, 0.2) !important; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.tools_dropdown li { + border-radius: 0px !important; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.tools_dropdown li a { + border-radius: 0px !important; +} +html .navbar#menu-navbar .navbar-nav ul.dropdown-menu.tools_dropdown li.active { + border-left: 2px solid #58ACFA !important; +} +html .nav-tabs { + border-bottom: 1px solid #999; +} +html .nav-tabs > li.active > a, html .nav-tabs > li.active > a:focus, html .nav-tabs > li.active > a:hover { + background: rgba(0, 0, 0, 0.3); + border: 1px solid #999 !important; + border-bottom: none !important; + color: white !important; +} +html .nav-tabs > li > a:hover { + background: rgba(0, 0, 0, 0.1); + border: 1px solid transparent !important; + border-bottom: 0px solid #999 !important; + color: white !important; +} +html .nav-tabs li a { + border-bottom: none !important; +} +html .btn:hover i.prefix { + color: white; +} +html ul.dropdown-menu { + border: 1px solid rgba(0, 0, 0, 0.5); +} +html ul.dropdown-menu li a { + color: white !important; +} +html ul.dropdown-menu li a:hover { + background: rgba(0, 0, 0, 0.2); +} +html .btn { + color: #58ACFA; + border: 1px solid #58606b; +} +html .btn:hover { + background: #58ACFA; + color: white; +} +html .btn[disabled]:hover { + color: #58ACFA; + border-color: #58ACFA; +} +html .btn.btn-success { + border: 1px solid transparent !important; + background: rgba(0, 255, 0, 0.2) !important; +} +html .btn.btn-success:hover { + background: #3c763d; + color: white; + border-color: #adadad !important; +} +html .btn { + background: rgba(0, 0, 0, 0.2); + color: white; +} +html .btn:hover { + background: rgba(0, 0, 0, 0.4); +} +html .input-group-addon { + background: rgba(0, 0, 0, 0.2); + color: white; + border: 1px solid #58606b; +} +html .breadcrumb .active { + color: #999; +} +html div.btn-group { + border: 1px solid #58606b; + border: none; + border-radius: 4px; +} +html div.btn-group.noborder { + border: none; +} +html div.btn-group.noborder .btn-group { + border: none; +} +html div.btn-group .btn.btn-danger { + color: #fff; + background-color: #d9534f !important; + border-color: #d43f3a; +} +html .btn-default.active, +html .btn-default:active, +html .open > .dropdown-toggle.btn-default { + background: rgba(0, 0, 0, 0.2) !important; + color: white !important; +} +html .btn:focus { + background-position: 0 -14px; +} +html ul#subnets li.folder i, +html ul.submenu li i.fa-folder-close-o, +html ul.submenu li i.fa-folder-open-o, +html ul.submenu li i.fa-folder { + background: transparent; + color: white !important; +} +html .fa-gray { + color: white !important; +} +html .fa-folder-open { + color: white !important; +} +html .action { + text-shadow: none; + background: transparent; + border-top: 1px solid #58606b; + border-bottom: 1px solid #58606b; +} +html .action .btn-success { + background: #3c763d; + border: 1px solid #58606b !important; +} +html .tooltip { + font-size: 12px; +} +html .popover { + background: url("../images/bg-light.png") no-repeat center center fixed; + -webkit-background-size: cover; + -moz-background-size: cover; + -o-background-size: cover; + background-size: cover; + background-repeat: repeat; + color: #e5e5e5; + background-color: rgba(0, 0, 0, 0); + border: 2px solid rgba(0, 0, 0, 0.2); +} +html .popover .popover-title { + background: rgba(0, 0, 0, 0.3); + border-bottom: 1px solid #999; +} +html .popover .popover-content table { + background: transparent !important; +} +html .popover.right > .arrow:after { + border-right-color: rgba(0, 0, 0, 0.1) !important; +} +html .table.ipaddresses tbody tr:hover td table.popover_table tbody td { + background: transparent !important; + border: none !important; +} +html table#userModSelf.table td { + border: none !important; +} +html table.table-certificates tr.warning td { + color: #FFC47B !important; +} +html table.table-certificates tr.warning td a { + color: #FFC47B !important; +} +html table.table-certificates tr.danger td { + color: #EA6C85 !important; +} +html table.table-certificates tr.danger td a { + color: #EA6C85 !important; +} +html .legend .legendLabel { + color: #999; +} +html ul[class*=submenu-] li { + /* horizontal ul lines */ + padding-left: 20px !important; + background: url("../images/li-dark.png") no-repeat 4px -3px; +} +html ul[class*=submenu-] li:last-child { + /* last child in inactive line */ + background: url("../images/ul-li-bg-dark.png") no-repeat 3px 0px; +} +html li.active ul[class*=submenu-] li:last-child { + /* last child in active line */ + background: url("../images/ul-li-bg-active-dark.png") no-repeat 3px 0px !important; +} +html ul#subnets li.folder li.leaf.active { + background: #F1FAFE url("../images/li-dark.png") no-repeat 4px -3px !important; +} +html ul[class*=submenu-] li.folder.active { + background: #F1FAFE url("../images/ul-li-bg-dark.png") no-repeat 3px 0px !important; +} +html ul#subnets li.folder li.leaf.active:last-of-type { + background: #F1FAFE url("../images/ul-li-bg-active-dark.png") no-repeat 3px 0px !important; +} +html table#manageSubnets tr td:nth-child(1) a { + color: white; +} +html table#manageSubnets .structure { + background: url("../images/sn-bg-dark.png") 0px 7px; +} +html table#manageSubnets .structure-last { + background: url("../images/sn-bg-last-dark.png") no-repeat 1px 0px; +} +html ul.submenu-dns li { + background: url("../images/li-dns-dark.png") no-repeat 4px -3px !important; + font-size: 10px; +} +html ul.submenu-dns li:last-child { + background: url("../images/li-dns-last-dark.png") no-repeat 4px -3px !important; +} +html table#manageSubnets > tbody > tr:last-child .structure { + background: url("../images/sn-bg-last-dark.png") no-repeat 1px 0px !important; +} +html ul.submenu-linked li { + background: url("../images/li-dns-dark.png") no-repeat 4px -1px !important; +} +html ul.submenu-linked li:last-child { + background: url("../images/li-dns-last-dark.png") no-repeat 4px -1px !important; +} +html table tr.similar td:nth-child(1) { + background: url("../images/li-dns-dark.png") no-repeat 17px -5px !important; +} +html table tr.similar-last td:nth-child(1) { + background: url("../images/li-dns-last-dark.png") no-repeat 17px -5px !important; +} +html table tr.similar-last td:nth-child(1) { + background: url("../images/li-dns-last-dark.png") no-repeat 17px -5px !important; +} +html .ipaddress_subnet .subnet_badge { + background: rgba(0, 0, 0, 0.3) !important; +} +html .table.ipaddresses tbody tr:hover td, +html .table.slaves tbody tr:hover td, +html .table-striped tbody tr:hover td { + background: rgba(0, 0, 0, 0.1) !important; +} +html .table-striped tbody tr:nth-child(even) td.th { + background: transparent !important; +} +html table.table.ipaddresses .unused { + text-shadow: none !important; + color: white; + background: rgba(0, 255, 0, 0.1) !important; +} +html table.table.ipaddresses tr.dhcp td { + text-shadow: none !important; + color: white; + background: rgba(0, 0, 0, 0.1) !important; +} +html table.table.ipaddresses tr:hover td.unused { + background: rgba(0, 255, 0, 0.1) !important; +} +html table.table.ipaddresses td { + border-bottom: none !important; + border-top: 1px solid #58606b !important; +} +html table.table.address_details td { + border: none !important; +} +html table#logs tr td.severity span { + color: #272b30; +} +html table#logs tr.success td a { + border: none; +} +html table#logs tr.danger td { + background: #a94442 !important; +} +html table.table-threshold td { + border-bottom: none !important; +} +html .ip_vis span { + background: rgba(0, 0, 0, 0.2) !important; +} +html .ip_vis span.ip-unused { + border-color: #999; + color: #ccc !important; +} +html .ip_vis span.ip-0 { + color: white !important; +} +html .ip_vis span.ip-1 { + border-color: #a94442; + background-color: rgba(255, 0, 0, 0.05) !important; + color: white !important; +} +html .ip_vis span.ip-2 { + border-color: #d6e9c6; + background: rgba(0, 255, 0, 0.05) !important; + color: white !important; +} +html .ip_vis span.ip-4 { + border-color: #58ACFA; + color: #e3eaf2 !important; +} +html #popupOverlay { + background: rgba(0, 0, 0, 0.6) !important; +} +html #popup { + background: url("../images/bg-light.png") no-repeat center center fixed; + -webkit-background-size: cover; + -moz-background-size: cover; + -o-background-size: cover; + background-size: cover; + background-repeat: repeat; + color: #e5e5e5; + background-color: rgba(0, 0, 0, 0); + border: 2px solid rgba(0, 0, 0, 0.2); +} +html #popup div.pHeader { + background: rgba(0, 0, 0, 0.3); + border-bottom: 1px solid #999; +} +html #popup div.pContent { + background: transparent url("../images/noise.png"); +} +html #popup div.pFooter { + background: rgba(0, 0, 0, 0.3); + border-top: 1px solid #999 !important; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +html #popup div.pFooter .btn { + border: 1px solid #58606b !important; +} +html #popup div.col-xs-12.col-md-6 { + border-right-color: #58606b !important; +} +html #popup .sortable li { + background: rgba(0, 0, 0, 0.2); + border: 1px solid #58606b !important; +} +html .bootstrap-switch { + border-color: #999; +} +html .bootstrap-switch .bootstrap-switch-label { + background: transparent; +} +html .bootstrap-switch .bootstrap-switch-handle-off, +html .bootstrap-switch .bootstrap-switch-handle-on { + color: white !important; + background: rgba(0, 0, 0, 0.2) !important; +} +html table.table.table-top th { + background: white; + margin: 0px; +} +html table.table.table { + background: transparent; +} +html table.table.table-noborder th, +html table.table.table-noborder td { + border: none; +} +html table.table.statistics td { + border: none !important; + padding-top: 2px; + padding-bottom: 2px; +} +html table.table td { + font-size: 13px; +} +html table.table td.th { + padding-top: 25px !important; + border-bottom: 1px solid #999 !important; +} +html table.table td.border-bottom { + border-bottom: 1px solid #999 !important; +} +html table.table tr.success td { + text-shadow: none !important; + color: white; + background: rgba(0, 255, 0, 0.1) !important; + border-bottom: none !important; + border-bottom: none !important; +} +html table.table tr.success td btn, html table.table tr.success td a { + border: 1px solid #999; +} +html table.table tr.success:hover td { + background: rgba(0, 255, 0, 0.1) !important; +} +html table.vlans tr td { + border: none !important; +} +html table.vlans tr.change td { + border-top: 1px solid #58606b !important; +} +html .bootstrap-table .table { + border-bottom: 1px solid #58606b; +} +html table.table th, html table.table tr, html table.table td { + background: transparent !important; +} +html table.table td.ip a, +html table.table td.ipaddress a { + color: white !important; +} +html table.table th { + background: rgba(0, 0, 0, 0.2) !important; + border-bottom: 1px solid #272b30 !important; + border-top: none !important; +} +html table.table th i.fa { + background: rgba(0, 0, 0, 0.2); + border: 1px solid rgba(255, 255, 255, 0.4); +} +html table.table tr:hover td { + background: rgba(0, 0, 0, 0.1) !important; +} +html table.table tr.weeknumber th { + border-top: none; +} +html table.table tr.today { + background: rgba(88, 172, 250, 0.1) !important; +} +html table.table tr.pw-status-V_teku { + background: #3c763d !important; +} +html table.table tr.pw-status-V_teku a { + color: white; +} +html table.table tr.pw-status-V_teku span.badge-warning { + border: 1px solid white; + color: white !important; +} +html table.table td { + border-top: 1px solid #58606b !important; +} +html table.table td.izpad { + color: white; +} +html table.table.table-noborder tr th, html table.table.table-noborder tr td { + background: transparent !important; + border: none !important; +} +html input, +html textarea, +html select { + background: rgba(0, 0, 0, 0.2) !important; + color: white !important; +} +html input.btn.btn-success, +html textarea.btn.btn-success, +html select.btn.btn-success { + border: 1px solid #58606b !important; +} +html select { + background: rgba(255, 255, 255, 0.2) !important; +} +html input[type=submit] { + background: rgba(0, 0, 0, 0.2) !important; +} +html select { + line-height: 24px; +} +html select optgroup { + color: #58606b; +} +html select option { + color: #999; +} +html table#subnetsMenu td#subnetsLeft { + border-right: 1px solid #58606b; +} +html table#subnetsMenu td#subnetsLeft #leftMenu { + margin-top: 0px; +} +html table#subnetsMenu td#subnetsLeft h4 { + padding: 10px; + margin: 0px; + background: rgba(0, 0, 0, 0.3); + border-bottom: 1px solid #58606b; +} +html table#subnetsMenu td#subnetsLeft hr { + display: none; +} +html table#subnetsMenu td#subnetsLeft a { + color: white; +} +html table#subnetsMenu td#subnetsLeft li.leaf i { + color: #999 !important; +} +html table#subnetsMenu td#subnetsLeft li.active { + background-color: rgba(0, 0, 0, 0.4) !important; + background-color: #4b7387 !important; + text-shadow: none; + border-top: 1px solid #58606b; + border-bottom: 1px solid #58606b; +} +html table#subnetsMenu td#subnetsLeft li.active i { + background: transparent; +} +html .adminMenu, +html .toolsMenu { + background: transparent !important; +} +html .adminMenu .panel-heading, +html .toolsMenu .panel-heading { + background: transparent !important; + border-bottom: 1px solid rgba(0, 0, 0, 0.5); +} +html .adminMenu ul.list-group, +html .toolsMenu ul.list-group { + background: transparent !important; +} +html .adminMenu ul.list-group li, +html .toolsMenu ul.list-group li { + background: rgba(0, 0, 0, 0.2) !important; + border-left-color: #58606b !important; +} +html .adminMenu ul.list-group li.list-group-item, +html .toolsMenu ul.list-group li.list-group-item { + border: none; +} +html .adminMenu ul.list-group li.active, +html .toolsMenu ul.list-group li.active { + background: rgba(0, 0, 0, 0.6) !important; + border: 1px solid #58606b; +} +html .adminMenu ul.list-group li:hover, +html .toolsMenu ul.list-group li:hover { + background: rgba(0, 0, 0, 0.3) !important; +} +html #dashboard .inner { + background: rgba(0, 0, 0, 0.2) !important; + border: 1px solid #58606b; +} +html #dashboard .inner h4 { + background: rgba(0, 0, 0, 0.35) !important; + text-shadow: none; +} +html #dashboard .inner .hContent { + border-top: 1px solid #58606b !important; +} +html #dashboard .inner .hContent .icon { + border-right: 1px solid #58606b !important; +} +html #dashboard .widget-dash .inner { + box-shadow: none !important; +} +html #dashboard #w-access_logs a, +html #dashboard #w-error_logs a { + color: white; +} +html #dashboard span.severity0 { + border: 1px solid #58606b; + background: rgba(0, 0, 0, 0.2); + padding: 2px 5px; + border-radius: 4px; +} +html #dashboard span.severity1 { + border: 1px solid #58606b; + background: rgba(0, 0, 0, 0.2); + padding: 2px 5px; + border-radius: 4px; +} +html #dashboard span.severity2 { + border: 1px solid #58606b; + background: rgba(0, 0, 0, 0.2); + padding: 2px 5px; + border-radius: 4px; +} +html .menu-tools #dashboard .inner .hContent, +html .menu-admin #dashboard .inner .hContent { + border-top: none !important; +} +html .adminMenu ul.list-group li.active { + border-left-color: #a94442 !important; +} +html .menu-tools ul.list-group li.active { + border-left-color: #58ACFA !important; +} +html .footer { + border-top: 1px solid #58606b; +} +html .pagination ul li a { + background: transparent; + border: 1px solid #999; +} +html .pagination ul li a:hover { + background: rgba(0, 0, 0, 0.2); + border: 1px solid #999; +} +html .pagination ul li.active a, +html .pagination ul li.active a:hover { + background: rgba(0, 0, 0, 0.5); +} +html .res_val { + background: rgba(0, 0, 0, 0.2) !important; +} +html .ui-slider-handle, +html .slider-handle { + background: #58606b !important; +} +html .ui-slider, +html .slider-track, +html .slider-selection { + background: #999 !important; +} +html .progress { + background: rgba(0, 0, 0, 0.1) !important; +} +html .progress .progress-limit-negative { + background: transparent !important; + border-color: rgba(0, 0, 0, 0.1) !important; +} +html .progress .progress-bar-info { + background: rgba(0, 255, 0, 0.15); + border-color: rgba(0, 0, 0, 0.1) !important; + color: white; +} +html table#switchMainTable tr.switch-title, +html table#vrf tr.vrf-title, +html table#subnets tr.subnets-title, +html table#settings tr.settings-title, +html table#settings { + background: transparent !important; +} +html table#switchMainTable tr.switch-title th, +html table#vrf tr.vrf-title th, +html table#subnets tr.subnets-title th, +html table#settings tr.settings-title th, +html table#settings th { + background: transparent !important; + border-bottom: none !important; +} +html table#switchMainTable tr.switch-title th h4, +html table#vrf tr.vrf-title th h4, +html table#subnets tr.subnets-title th h4, +html table#settings tr.settings-title th h4, +html table#settings th h4 { + background: transparent !important; +} +html table#switchMainTable tr.switch-title td, html table#switchMainTable tr.switch-title th, +html table#vrf tr.vrf-title td, +html table#vrf tr.vrf-title th, +html table#subnets tr.subnets-title td, +html table#subnets tr.subnets-title th, +html table#settings tr.settings-title td, +html table#settings tr.settings-title th, +html table#settings td, +html table#settings th { + border: none !important; +} +html table#settings tr.settings-title { + border-bottom: 1px solid #58606b; +} +html #gmap { + border-color: rgba(0, 0, 0, 0.2); +} +html ul#sortable { + max-width: 500px; +} +html ul#sortable li { + background: rgba(0, 0, 0, 0.2); + border-color: #999 !important; +} +html .instructions { + background: transparent; + border: 1px solid #999; +} +html ul.icon-ul > li { + border: 1px solid rgba(0, 0, 0, 0.4) !important; +} +html .ipreqMenu { + background: rgba(0, 0, 0, 0.2); + border: 1px solid #58606b; + right: 5px; +} +html .fixed-table-loading { + background: rgba(0, 0, 0, 0.3); +} +html div#login { + background: rgba(0, 0, 0, 0.2); + border: 1px solid #999 !important; +} +html div#login legend { + color: white; + border-bottom: 1px solid #58606b !important; +} +html div#login form { + border-bottom: none; +} +html div#login .iprequest { + background: rgba(0, 0, 0, 0.1); + border-color: #58606b; + text-shadow: none; +} +html .install h4 { + border-bottom: none !important; +} +html #searchSelect { + background: #40454a !important; +} + +.panel.panel-default { + background: transparent; + border: 1px solid rgba(255, 255, 255, 0.1) !important; +} +.panel.panel-default .panel-heading { + background: rgba(0, 0, 0, 0.3); + border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important; + color: white; +} +.panel.panel-default .list-group-item { + background: transparent; + border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; +} +.panel.panel-default .list-group-item:last-child { + border-bottom: none; +} +.panel.panel-default:last-child { + border-bottom: none !important; +} + +.octicon-passkey-fill { + fill: #ccc; +} + +.list-group-item { + border: none; +} + +.btn-default.disabled.focus, +.btn-default.disabled:focus, +.btn-default.disabled:hover, +.btn-default[disabled].focus, +.btn-default[disabled]:focus, +.btn-default[disabled]:hover { + background: rgba(0, 0, 0, 0.1) !important; +} + +.subnet_map_found { + border-color: #d6e9c6; + background: rgba(0, 255, 0, 0.15) !important; + color: white !important; +} + +.subnet_map_found:hover { + background: rgba(0, 255, 0, 0.2) !important; +} + +.subnet_map_notfound { + background-color: rgba(255, 0, 0, 0.15) !important; + color: white !important; +} + +.subnet_map_found a { + color: white !important; +} + +.ip_vis_subnet span { + box-shadow: 0px 0px 1px #777; + border: 1px solid rgba(255, 255, 255, 0.2); + padding: 3px; + padding-top: 7px; + text-align: center; + font-size: 12px; + margin-right: 0px; + margin-bottom: 0px; + width: 120px; + height: 30px; + float: left; + border-left: none; +} + +.clearfix1 { + border-left: 1px solid rgba(255, 255, 255, 0.2); +} + +.ip_vis_subnet span a { + font-size: 12px; +} \ No newline at end of file diff --git a/css/bootstrap/bootstrap-custom-dark.scss b/css/bootstrap/bootstrap-custom-dark.scss index 5f284395e114a1c91c5d7ede1b8dd8f6137a4c19..6e04a901fa6159aedc222cd1255895f50ba16e52 100644 --- a/css/bootstrap/bootstrap-custom-dark.scss +++ b/css/bootstrap/bootstrap-custom-dark.scss @@ -1237,6 +1237,8 @@ html { legend { color: white; + border-bottom: 1px solid $color_gray_5 !important; + } form { @@ -1263,6 +1265,45 @@ html { } +.panel.panel-default { + background: transparent; + + border: 1px solid rgba(255,255,255,0.1) !important; + + .panel-heading { + background: rgba(0, 0, 0, 0.3); + border-bottom: 1px solid rgba(255,255,255,0.5) !important; + color: white; + } + + .list-group-item { + background: transparent; + border-bottom: 1px solid rgba(255,255,255,0.1) !important; + } + .list-group-item:last-child { + border-bottom: none; + } + + &:last-child { + border-bottom: none !important; + } +} +.octicon-passkey-fill { + fill: #ccc; +} +.list-group-item { + border: none; +} +.btn-default.disabled.focus, +.btn-default.disabled:focus, +.btn-default.disabled:hover, +.btn-default[disabled].focus, +.btn-default[disabled]:focus, +.btn-default[disabled]:hover { + background: rgba(0,0,0,0.1) !important; +} + + .subnet_map_found { border-color: #d6e9c6; background: rgba(0,255,0,0.15) !important; diff --git a/css/bootstrap/bootstrap-custom.css b/css/bootstrap/bootstrap-custom.css index 0b7eed90574db914f3c872577af86f594527e863..a10b728f2b4df8f3d9da14537e9d1c13a613e088 100644 --- a/css/bootstrap/bootstrap-custom.css +++ b/css/bootstrap/bootstrap-custom.css @@ -2070,10 +2070,19 @@ div#login .login th { div#login .login td { text-align: right; } -div#loginCheck .alert { - margin: auto; +div#loginCheck .alert, +div#loginCheckPasskeys .alert { +/* margin: auto; */ margin-top: 10px; - width: 500px; + padding: 5px; +/* width: 500px; */ +} +div#loginCheck .alert-danger:before, +div#loginCheckPasskeys .alert-danger:before { + font-family: "FontAwesome"; + content: "\f071"; + padding-right: 8px; + color: #a94442; } .iprequest { background: #F1FAFE; diff --git a/db/SCHEMA.sql b/db/SCHEMA.sql index f4cb81c84363674d5171e992b56a95b41243e62b..5b02782e3f59b04cd01cf8882dc67249cd3ec4c6 100755 --- a/db/SCHEMA.sql +++ b/db/SCHEMA.sql @@ -224,6 +224,7 @@ CREATE TABLE `settings` ( `2fa_name` VARCHAR(32) NULL DEFAULT 'phpipam', `2fa_length` INT(2) NULL DEFAULT '16', `2fa_userchange` BOOL NOT NULL DEFAULT '1', + `passkeys` TINYINT(1) NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /* insert default values */ @@ -370,6 +371,7 @@ CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL DEFAULT '', `authMethod` INT(2) NULL DEFAULT 1, + `passkey_only` TINYINT(1) NOT NULL DEFAULT '0', `password` CHAR(128) DEFAULT NULL, `groups` varchar(1024) DEFAULT NULL, `role` text, @@ -1029,6 +1031,26 @@ CREATE TABLE `vaultItems` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +# Dump of table passkeys +# ------------------------------------------------------------ +DROP TABLE IF EXISTS `passkeys`; + +-- passkey table +CREATE TABLE `passkeys` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(11) NOT NULL, + `credentialId` text NOT NULL, + `keyId` text NOT NULL, + `credential` text NOT NULL, + `comment` text, + `created` timestamp NULL DEFAULT NULL, + `used` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + CONSTRAINT `user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + + # Dump of table nominatim # ------------------------------------------------------------ DROP TABLE IF EXISTS `nominatim`; @@ -1059,4 +1081,4 @@ CREATE TABLE `nominatim_cache` ( # ------------------------------------------------------------ UPDATE `settings` SET `version` = "1.6"; -UPDATE `settings` SET `dbversion` = 39; +UPDATE `settings` SET `dbversion` = 40; diff --git a/functions/classes/class.Common.php b/functions/classes/class.Common.php index 83684007febc524ebab6469988b7d0fed85eb171..b49cc99d39d5c89135948d535b6428b28b5f3779 100644 --- a/functions/classes/class.Common.php +++ b/functions/classes/class.Common.php @@ -1773,7 +1773,7 @@ class Common_functions { * @return string */ public function print_custom_field_name ($name) { - return strpos($name, "custom_")===0 ? substr($name, 7) : $name; + return strpos($name, "custom_")===0 ? _(substr($name, 7)) : _($name); } /** diff --git a/functions/classes/class.User.php b/functions/classes/class.User.php index 8343b94d6221f7a403f8d60a0a5ffa1f452e2a73..abc658d91c21eaabad60317b3df9bd0610b70c25 100644 --- a/functions/classes/class.User.php +++ b/functions/classes/class.User.php @@ -818,10 +818,10 @@ class User extends Common_functions { $this->Log->write ( _("User login"), _('Error: Invalid authentication method'), 2 ); $this->Result->show("danger", _("Error: Invalid authentication method"), true); } - # disabled - elseif ($this->user->disabled=="Yes") { - $this->Result->show("danger", _("Your account has been disabled").".", true); - } + # disabled - we made separate check on this, therwise we reveal info before user is authenticated + // elseif ($this->user->disabled=="Yes") { + // $this->Result->show("danger", _("Your account has been disabled").".", true); + // } else { # set method name variable $authmethodtype = $this->authmethodtype; @@ -842,12 +842,12 @@ class User extends Common_functions { /** * tries to fetch user datails from database by username if not already existing locally * - * @access private + * @access public * @param string $username * @param bool $force * @return void */ - private function fetch_user_details ($username, $force = false) { + public function fetch_user_details ($username, $force = false) { # only if not already active if(!is_object($this->user) || $force) { try { @@ -949,6 +949,9 @@ class User extends Common_functions { private function auth_local ($username, $password) { # auth ok if(hash_equals($this->user->password, crypt($password, $this->user->password))) { + # check login restrictions for authenticated user + $this->check_login_restrictions ($username); + # save to session $this->write_session_parameters (); @@ -985,6 +988,9 @@ class User extends Common_functions { * @return void */ public function auth_http ($username, $password) { + # check login restrictions for authenticated user + $this->check_login_restrictions ($username); + # save to session $this->write_session_parameters (); @@ -1079,6 +1085,9 @@ class User extends Common_functions { # authenticate try { if ($adldap->authenticate($username, $password)) { + # check login restrictions for authenticated user + $this->check_login_restrictions ($username); + # save to session $this->write_session_parameters(); @@ -1192,6 +1201,8 @@ class User extends Common_functions { # authenticate user if($auth) { + # check login restrictions for authenticated user + $this->check_login_restrictions ($username); # save to session $this->write_session_parameters (); @@ -1221,6 +1232,9 @@ class User extends Common_functions { * @return void */ private function auth_SAML2 ($username, $password = null) { + # check login restrictions for authenticated user + $this->check_login_restrictions ($username); + # save to session $this->write_session_parameters (); @@ -1233,6 +1247,246 @@ class User extends Common_functions { $this->block_remove_entry (); } + /** + * Check for any login restrictions after user has authenticated + * @method check_login_restrictions + * @param string $username + * @return void + */ + private function check_login_restrictions ($username = "") { + // is account disabled ? + if ($this->user->disabled=="Yes") { + $this->log_failed_access ($username); + $this->Log->write( _("login"), _("User account is disabled"), 2, $username ); + $this->Result->show("danger", _("User account is disabled"), true); + } + // is passkey login enforced ? + elseif ($this->settings->{'passkeys'}=="1") { + if ($this->user->passkey_only=="1") { + // check passkeys + $user_passkeys = $this->get_user_passkeys($this->user->id); + + // make sure it has passkeys configured + if (sizeof($user_passkeys)>0) { + $this->log_failed_access ($username); + $this->Log->write( _("Passkey login"), _("Passkey required for login"), 2, $username ); + $this->Result->show("danger", _("Only passkey authentication is possible for this account"), true); + } + } + } + } + + /** + * Process succesfull passkey auth + * @method auth_passkey_success + * @param string $encodedCredential + * @return bool + */ + public function auth_passkey ($credentialId = "", $encodedCredential = "", $keyId = "") { + # save passkey + $this->update_passkey ($credentialId, $encodedCredential); + + # get user details from authenticated user_id + $this->fetch_passkey_user_details (); + + # failure + if(!isset($this->user->username)) { + throw new Exception ("Cannot fetch credentials from userid"); + } + header('HTTP/1.1 500 Cannot fetch credentials from userid'); + + # set session parameters + $_SESSION['ipamusername'] = $this->user->username; + $_SESSION['ipamlanguage'] = $this->fetch_lang_details (); + $_SESSION['keyId'] = $keyId; + $_SESSION['lastactive'] = time(); + + # remove passkey temp session user id + $this->clear_passkey_user_id (); + + # save to session + $this->write_session_parameters (); + # log + $this->Log->write( _("User login"), _("User")." ".$this->user->real_name." "._("logged in"), 0, $username ); + + # write last logintime + $this->update_login_time (); + + # remove possible blocked IP + $this->block_remove_entry (); + + # ok + return true; + } + + + + + + + + + + + + + + /* @passkey -------------------- */ + + + /** + * Fetch user details based on passkey ID + * @method fetch_passkey_user_details + * @return obj + */ + private function fetch_passkey_user_details () { + try { + $user = $this->Database->getObject("users", $this->get_passkey_user_id()); + + if(!is_null($user)) { + $this->user = $user; + } + else { + header('HTTP/1.1 404 Not found'); + $this->block_ip (); + $this->Log->write ( _("User login"), _('Failed passkey login'), 2, $this->get_passkey_user_id() ); + } + } + catch (Exception $e) { + header('HTTP/1.1 500 '.$e->getMessage()); + return false; + } + } + + /** + * Get passkeys for user + * @method get_user_passkeys + * @param bool $user_id + * @return array + */ + public function get_user_passkeys ($user_id = false) { + // set userId + $user_id = $user_id===false ? $this->user->id : $user_id; + try { + return $this->Database->findObjects("passkeys", "user_id", $user_id); + } + catch (Exception $e) { + !$this->debugging ? : $this->Result->show("danger", $e->getMessage(), false); + } + } + + /** + * Get passkey for user based on key_id + * @method get_user_passkeys + * @param bool $user_id + * @return array + */ + public function get_user_passkey_by_keyId ($keyId = false) { + try { + return $this->Database->findObject("passkeys", "keyId", $keyId); + } + catch (Exception $e) { + !$this->debugging ? : $this->Result->show("danger", $e->getMessage(), false); + } + } + + /** + * Save new passkey + * @method save_passkey + * @param string $credential + * @return bool + */ + public function save_passkey ($credential = "", $credentialId = NULL, $keyId = NULL) { + try { + $this->Database->insertObject("passkeys", ["user_id"=>$this->user->id, "credentialId"=>$credentialId, "credential"=>$credential, "keyId"=>$keyId, "created"=>date("Y-m-d H:i:s§")]); + // ok + return true; + } + catch (Exception $e) { + header('HTTP/1.1 500 '.$e->getMessage()); + return false; + } + } + + /** + * Rename passkey + * @method rename_passkey + * @param int $id + * @param string $comment + * @return bool + */ + public function rename_passkey ($id = 0, $comment = "") { + try { + $this->Database->updateObject("passkeys", ["id"=>$id, "comment"=>$comment]); + return true; + } + catch (Exception $e) { + $this->debugging ? : $this->Result->show("danger", _("Database error: ").$e->getMessage(), false); + return false; + } + } + + /** + * Delete passkey + * @method delete_passkey + * @param int $id + * @return bool + */ + public function delete_passkey ($id = 0) { + try { + $this->Database->deleteObject("passkeys", $id); + return true; + } + catch (Exception $e) { + $this->debugging ? : $this->Result->show("danger", _("Database error: ").$e->getMessage(), false); + return false; + } + } + + /** + * Update passkey on succesfull login + * @method save_passkey + * @param string $credential + * @return bool + */ + public function update_passkey ($credentialId = "", $updated_credential = "") { + try { + $this->Database->updateObject("passkeys", ["credentialId"=>$credentialId, "credential"=>$updated_credential, "used"=>date("Y-m-d H:i:s")], "credentialId"); + // ok + return true; + } + catch (Exception $e) { + header('HTTP/1.1 500 '.$e->getMessage()); + return false; + } + } + + /** + * Save authneitcation user id to session + * @method set_passkey_user_id + * @param int $userid + */ + public function set_passkey_user_id ($userid = 0) { + $_SESSION['passkey_user_id'] = $userid; + } + + /** + * Return user id + * @method get_passkey_user_id + * @return int + */ + public function get_passkey_user_id () { + return $_SESSION['passkey_user_id']; + } + + /** + * Remove temporary clear_passkey_user_id + * @method clear_passkey_user_id + * @return [type] + */ + public function clear_passkey_user_id () { + unset($_SESSION['passkey_user_id']); + } @@ -1354,6 +1608,7 @@ class User extends Common_functions { "menuCompact" => $this->verify_checkbox(@$post['menuCompact']), "theme" => $post['theme'], "2fa" => $this->verify_checkbox(@$post['2fa']), + "passkey_only" => $this->verify_checkbox(@$post['passkey_only']), ); if(!is_blank($post['password1'])) { $items['password'] = $this->crypt_user_pass ($post['password1']); @@ -1430,8 +1685,6 @@ class User extends Common_functions { - - /** * @blocking IP functions * ------------------------------ @@ -1828,6 +2081,22 @@ class User extends Common_functions { // return return $level=="0" ? "<span class='badge badge1 badge5 alert-danger'>"._($this->parse_permissions ($level))."</span>" : "<span class='badge badge1 badge5 alert-success'>"._($this->parse_permissions ($level))."</span>"; } + + /** + * Stops script execution if demo flag is set. + * This is used to simplify updating of phpipam demo page + * + * Store below to config.php: + * define('IS_DEMO', true); + * + * @method is_demo + * @param bool $popup + * @return bool + */ + public function is_demo ($popup = false) { + !defined('IS_DEMO') ? : $this->Result->show("danger", "<h4>Demo website !</h4><hr>This script is disabled in demo page!", true, $popup); + } + } /** * Fake User object for install/scripts diff --git a/functions/composer.json b/functions/composer.json new file mode 100644 index 0000000000000000000000000000000000000000..98208ceb48df75f21436b26a2cac0212c566a1a5 --- /dev/null +++ b/functions/composer.json @@ -0,0 +1,6 @@ +{ + "require": { + "firehed/webauthn": "dev-main", + "firehed/cbor": "^0.1.0" + } +} diff --git a/functions/composer.lock b/functions/composer.lock new file mode 100644 index 0000000000000000000000000000000000000000..df24dd56ef7139dc6bdeb826b5911e40b4d03530 --- /dev/null +++ b/functions/composer.lock @@ -0,0 +1,122 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "b0a7a5cc1994c275013de9975a5f2675", + "packages": [ + { + "name": "firehed/cbor", + "version": "0.1.0", + "source": { + "type": "git", + "url": "https://github.com/Firehed/cbor-php.git", + "reference": "eef67b1b5fdf90a3688fc8d9d13afdaf342c4b80" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Firehed/cbor-php/zipball/eef67b1b5fdf90a3688fc8d9d13afdaf342c4b80", + "reference": "eef67b1b5fdf90a3688fc8d9d13afdaf342c4b80", + "shasum": "" + }, + "require-dev": { + "phpunit/phpunit": "^8.1" + }, + "suggest": { + "ext-bcmath": "Enables parsing of very large values" + }, + "type": "library", + "autoload": { + "psr-4": { + "Firehed\\CBOR\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eric Stern", + "email": "eric@ericstern.com" + } + ], + "description": "CBOR decoder", + "homepage": "https://github.com/Firehed/CBOR", + "keywords": [ + "cbor" + ], + "support": { + "issues": "https://github.com/Firehed/cbor-php/issues", + "source": "https://github.com/Firehed/cbor-php/tree/master" + }, + "time": "2019-05-14T06:31:13+00:00" + }, + { + "name": "firehed/webauthn", + "version": "dev-main", + "source": { + "type": "git", + "url": "https://github.com/Firehed/webauthn-php.git", + "reference": "e263a3553360d63131af707f3e563b151f4661b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Firehed/webauthn-php/zipball/e263a3553360d63131af707f3e563b151f4661b9", + "reference": "e263a3553360d63131af707f3e563b151f4661b9", + "shasum": "" + }, + "require": { + "ext-hash": "*", + "ext-openssl": "*", + "firehed/cbor": "^0.1.0", + "php": "^8.1" + }, + "require-dev": { + "maglnet/composer-require-checker": "^4.1", + "mheap/phpunit-github-actions-printer": "^1.5", + "nikic/php-parser": "^4.14", + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "phpstan/phpstan-strict-rules": "^1.0", + "phpunit/phpunit": "^9.3", + "squizlabs/php_codesniffer": "^3.5" + }, + "default-branch": true, + "type": "library", + "autoload": { + "psr-4": { + "Firehed\\WebAuthn\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eric Stern", + "email": "eric@ericstern.com" + } + ], + "description": "Web Authentication", + "support": { + "issues": "https://github.com/Firehed/webauthn-php/issues", + "source": "https://github.com/Firehed/webauthn-php/tree/main" + }, + "time": "2023-12-10T19:00:08+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": { + "firehed/webauthn": 20 + }, + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.6.0" +} diff --git a/functions/composer.phar b/functions/composer.phar new file mode 100755 index 0000000000000000000000000000000000000000..e766506542d36f55d0200e9986b5c33a6d2919a1 Binary files /dev/null and b/functions/composer.phar differ diff --git a/functions/functions.php b/functions/functions.php index 3a673f9898b27b6735b5baac62a5d3849fbfaf9e..91aa1161395237cdaba5c6e5a0138da516bea148 100755 --- a/functions/functions.php +++ b/functions/functions.php @@ -39,7 +39,7 @@ if(php_sapi_name()!="cli") if(Config::ValueOf('debugging')==true) { ini_set('display_errors', 1); ini_set('display_startup_errors', 1); - error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); + error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); } else { disable_php_errors(); diff --git a/functions/locale/changes.txt b/functions/locale/changes.txt index 5fcd1cdc91e097e3ba36927cff165e9abe31727b..34a1411aa54ff4baa74c46113fe49d6d2436a737 100644 --- a/functions/locale/changes.txt +++ b/functions/locale/changes.txt @@ -5514,3 +5514,192 @@ msgstr "" msgid "Scan agents" msgstr "" + + +### 1.6.1 + +msgid "passkey" +msgstr "" + +msgid "Passkey" +msgstr "" + +msgid "2fa account status" +msgstr "" + +msgid "2fa disabled" +msgstr "" + +msgid "2fa enabled" +msgstr "" + +msgid "2fa status" +msgstr "" + +msgid "Account" +msgstr "" + +msgid "Check passkey you want to remove" +msgstr "" + +msgid "Details for your preferred authenticator application are below. Please write down your details, otherwise you will not be able to login to phpipam" +msgstr "" + +msgid "Disable 2fa for user" +msgstr "" + +msgid "Enable Passkeys" +msgstr "" + +msgid "Enable Vaults" +msgstr "" + +msgid "Enable Vaults for storing encrypted information" +msgstr "" + +msgid "Enable passkeys for passwordless login" +msgstr "" + +msgid "failed" +msgstr "" + +msgid "Failed passkey login" +msgstr "" + +msgid "has logged out" +msgstr "" + +msgid "Here you can change settings for two-factor authentication and get your 2fa secret." +msgstr "" + +msgid "Invalid theme" +msgstr "" + +msgid "logged in" +msgstr "" + +msgid "Login with a passkey" +msgstr "" + +msgid "Only passkey authentication is possible for this account" +msgstr "" + +msgid "Passkey login only" +msgstr "" + +msgid "Passkey only" +msgstr "" + +msgid "Passkey required for login" +msgstr "" + +msgid "Passkeys" +msgstr "" + +msgid "Select to only allow account login with passkey" +msgstr "" + +msgid "successful" +msgstr "" + +msgid "There are no passkeys set for user. Resetting passkey login only to false." +msgstr "" + +msgid "Two-factor authentication" +msgstr "" + +msgid "User account is disabled" +msgstr "" + +msgid "User permissions for phpipam modules" +msgstr "" + +msgid "You can also scan following QR code with your preferred authenticator application" +msgstr "" + +msgid "You can login to your account with normal authentication method only untill you create passkeys." +msgstr "" + +msgid "You can only login to your account using passkeys" +msgstr "" + +msgid "Passwordless authentication" +msgstr "" + +msgid "Account details" +msgstr "" + +msgid "You can login to your account with with passkeys only" +msgstr "" + +msgid "This can be changed under Account details tab" +msgstr "" + +msgid "Your passkeys" +msgstr "" + +msgid "Added on" +msgstr "" + +msgid "Last used" +msgstr "" + +msgid "You authenticated with this passkey" +msgstr "" + +msgid "Add a passkey" +msgstr "" + +msgid "Rename" +msgstr "" + +msgid "Here you can manage passkey authentication for your account" +msgstr "" + +msgid "Passkeys are a password replacement that validates your identity using touch, facial recognition, a device password, or a PIN" +msgstr "" + +msgid "Name your passkey" +msgstr "" + +msgid "Duplicates" +msgstr "" + +msgid "Duplicated subnets" +msgstr "" + +msgid "Duplicated hosts" +msgstr "" + +msgid "No duplicate subnets found" +msgstr "" + +msgid "Routing" +msgstr "" + +msgid "BGP routing" +msgstr "" + +msgid "Add peer" +msgstr "" + +msgid "Peer name" +msgstr "" + +msgid "Peer AS" +msgstr "" + +msgid "Local AS" +msgstr "" + +msgid "Peer address" +msgstr "" + +msgid "Local address" +msgstr "" + +msgid "Local Address" +msgstr "" + +msgid "BGP type" +msgstr "" diff --git a/functions/locale/en_GB.UTF-8/LC_MESSAGES/phpipam.po b/functions/locale/en_GB.UTF-8/LC_MESSAGES/phpipam.po index e6dba6dc83f47cf19d571bf516263b549c9a77e0..b099a804cf515241c23db1b442bf1fd6f9187bef 100644 --- a/functions/locale/en_GB.UTF-8/LC_MESSAGES/phpipam.po +++ b/functions/locale/en_GB.UTF-8/LC_MESSAGES/phpipam.po @@ -1,4 +1,4 @@ -# PHPIPAM translations file - template +# PHPIPAM translations file - English # Copyright (C) phpipam 2013 # This file is distributed under the same license as the phpipam package. # miha petkovsek <miha.petkovsek@gmail.com>, 2013. @@ -7,72 +7,13 @@ # "Project-Id-Version: 1.40\n" # "Report-Msgid-Bugs-To: Miha Petkovsek <miha.petkovsek@gmail.com>\n" # "POT-Creation-Date: 2013-04-02 14:33+0200\n" -# "PO-Revision-Date: 2015-10-07 14:33+0200\n" -# "Last-Translator: \n" -# "Language: English\n" +# "PO-Revision-Date: 2017-02-21 14:33+0200\n" +# "Last-Translator: Miha Petkovsek <miha.petkovsek@gmail.com>\n" +# "Language: Slovenian (sl_SI)\n" # "MIME-Version: 1.0\n" # "Content-Type: text/plain; charset=UTF-8\n" # "Content-Transfer-Encoding: 8bit\n" -#: functions/functions-install.php:85 functions/functions-install.php:133 -#: functions/functions-install.php:150 functions/functions-install.php:182 -#: functions/functions-install.php:199 functions/functions-install.php:236 -#: functions/functions-install.php:272 functions/functions-install.php:379 -#: functions/functions-install.php:453 functions/functions-install.php:495 -#: functions/functions-install.php:524 functions/functions-install.php:549 -#: functions/functions-install.php:576 functions/functions-admin.php:41 -#: functions/functions-admin.php:73 functions/functions-admin.php:147 -#: functions/functions-admin.php:185 functions/functions-admin.php:217 -#: functions/functions-admin.php:241 functions/functions-admin.php:387 -#: functions/functions-admin.php:507 functions/functions-admin.php:533 -#: functions/functions-admin.php:887 functions/functions-admin.php:1124 -#: functions/functions-admin.php:1204 functions/functions-admin.php:1238 -#: functions/functions-admin.php:1283 functions/functions-admin.php:1374 -#: functions/functions-admin.php:1493 functions/functions-admin.php:1633 -#: functions/functions-admin.php:1661 functions/functions-admin.php:1717 -#: functions/functions-admin.php:1750 functions/functions-admin.php:1848 -#: functions/functions-admin.php:1881 functions/functions-admin.php:1980 -#: functions/functions-admin.php:2012 functions/functions-admin.php:2106 -#: functions/functions-admin.php:2138 functions/functions-common.php:105 -#: functions/functions-common.php:154 functions/functions-common.php:177 -#: functions/functions-common.php:200 functions/functions-common.php:223 -#: functions/functions-common.php:246 functions/functions-common.php:396 -#: functions/functions-common.php:420 functions/functions-common.php:453 -#: functions/functions-common.php:709 functions/functions-network.php:90 -#: functions/functions-network.php:116 functions/functions-network.php:142 -#: functions/functions-network.php:197 functions/functions-network.php:231 -#: functions/functions-network.php:255 functions/functions-network.php:289 -#: functions/functions-network.php:313 functions/functions-network.php:337 -#: functions/functions-network.php:361 functions/functions-network.php:396 -#: functions/functions-network.php:420 functions/functions-network.php:454 -#: functions/functions-network.php:478 functions/functions-network.php:502 -#: functions/functions-network.php:526 functions/functions-network.php:550 -#: functions/functions-network.php:586 functions/functions-network.php:610 -#: functions/functions-network.php:641 functions/functions-network.php:670 -#: functions/functions-network.php:694 functions/functions-network.php:802 -#: functions/functions-network.php:873 functions/functions-network.php:956 -#: functions/functions-network.php:1252 functions/functions-network.php:1289 -#: functions/functions-network.php:1313 functions/functions-network.php:1366 -#: functions/functions-network.php:1417 functions/functions-network.php:1460 -#: functions/functions-network.php:1487 functions/functions-network.php:1512 -#: functions/functions-network.php:1536 functions/functions-network.php:1562 -#: functions/functions-network.php:1590 functions/functions-network.php:1620 -#: functions/functions-network.php:1729 functions/functions-network.php:1754 -#: functions/functions-network.php:2072 functions/functions-network.php:2181 -#: functions/functions-network.php:2251 functions/functions-tools.php:220 -#: functions/functions-tools.php:241 functions/functions-tools.php:284 -#: functions/functions-tools.php:311 functions/functions-tools.php:333 -#: functions/functions-tools.php:355 functions/functions-tools.php:398 -#: functions/functions-tools.php:429 functions/functions-tools.php:453 -#: functions/functions-tools.php:478 functions/functions-tools.php:620 -#: functions/functions-tools.php:644 functions/functions-tools.php:666 -#: functions/functions-tools.php:688 functions/functions-tools.php:711 -#: functions/functions-tools.php:740 functions/functions-tools.php:766 -#: functions/functions-tools.php:817 functions/functions-tools.php:856 -#: functions/functions-tools.php:880 functions/functions-tools.php:905 -#: functions/functions-tools.php:941 site/ipaddr/modifyIpAddressCheck.php:102 -#: site/ipaddr/modifyIpAddressCheck.php:103 -#: site/ipaddr/modifyIpAddressCheck.php:179 msgid "Error" msgstr "" @@ -416,7 +357,7 @@ msgstr "" #: site/ipaddr/ipAddressPrintTableSlaves.php:34 site/admin/manageSubnet.php:76 #: site/admin/manageSubnetEdit.php:76 #: site/admin/manageSubnetEditResult.php:169 site/admin/manageRequests.php:24 -#: site/admin/ripeImportTelnet.php:74 site/admin/manageSubnetsplit.php:64 +#: site/admin/RIPE / ARINImportTelnet.php:74 site/admin/manageSubnetsplit.php:64 #: site/admin/manageSubnetresize.php:35 site/admin/manageSubnettruncate.php:37 msgid "Subnet" msgstr "" @@ -437,7 +378,7 @@ msgstr "" #: site/admin/manageVRFEdit.php:51 site/admin/manageVRFEdit.php:57 #: site/admin/manageVLANEdit.php:58 site/admin/manageVLANEdit.php:60 #: site/admin/manageRequests.php:26 site/admin/replaceFields.php:27 -#: site/admin/ripeImportTelnet.php:90 site/admin/manageSection.php:28 +#: site/admin/RIPE / ARINImportTelnet.php:90 site/admin/manageSection.php:28 #: site/admin/manageSectionEdit.php:51 site/admin/manageVLANs.php:36 #: site/admin/manageDevices.php:37 site/admin/groupEditPrint.php:57 #: site/login/requestIPform.php:82 @@ -597,7 +538,7 @@ msgstr "" #: site/ipaddr/mailNotifyIP.php:58 site/ipaddr/subnetDetailsSlaves.php:85 #: site/ipaddr/subnetDetails.php:96 site/admin/manageSubnet.php:78 #: site/admin/manageSubnetEdit.php:125 site/admin/manageVLANEdit.php:32 -#: site/admin/ripeImportTelnet.php:95 site/admin/manageVLANEditResult.php:47 +#: site/admin/RIPE / ARINImportTelnet.php:95 site/admin/manageVLANEditResult.php:47 #: site/admin/manageVLANEditResult.php:48 msgid "VLAN" msgstr "" @@ -695,6 +636,8 @@ msgstr "" #: site/ipaddr/subnetDetails.php:126 msgid "enabled" msgstr "" +msgid "Enabled" +msgstr "" #: site/tools/vrf.php:114 msgid "No subnets belonging to this VRF" @@ -878,9 +821,10 @@ msgid "Hostname search tips" msgstr "" #: site/tools/searchTips.php:46 -msgid "You can get all IP addresses some host uses and all ports it is connected to " +msgid "You can get all IP addresses some host uses and all ports it is connected to " "by entering hostname in search field" msgstr "" +"iščeš po DNS imenu" #: site/tools/searchTips.php:53 msgid "Device search tips" @@ -890,6 +834,7 @@ msgstr "" msgid "You can get all used / available ports and connected IP's / hostnames in " "some device by entering device name in search field" msgstr "" +"v iskalnik vpiši ime naprave" #: site/tools/searchTips.php:62 msgid "MAC search tips" @@ -899,6 +844,7 @@ msgstr "" msgid "You can search by MAC address list entering MAC in 00:1cd:d4:78:ec:46 or " "001dd478ec46 format, or search multiple with 00:1c:c4:" msgstr "" +"001dd478ec46 formatu, ali pa poišči vec mac adres z iskanjem npr. 00:1c:c4:" #: site/tools/searchTips.php:71 msgid "Custom field search tips" @@ -937,7 +883,7 @@ msgstr "" msgid "Instructions" msgstr "" -#: site/tools/toolsMenu.php:31 site/admin/ripeImport.php:19 +#: site/tools/toolsMenu.php:31 site/admin/RIPE / ARINImport.php:19 #: site/userMenu.php:22 site/sections.php:104 msgid "Search" msgstr "" @@ -1004,6 +950,7 @@ msgstr "" msgid "Search results (Subnet list)" msgstr "" + #: site/tools/searchResults.php:312 msgid "Edit subnet details" msgstr "" @@ -1138,8 +1085,9 @@ msgid "Orphaned IP addresses for subnet" msgstr "" #: site/ipaddr/ipAddressPrintTableOrphaned.php:69 -msgid "This happens if subnet had IP addresses<br>when new nested subnet was added" +msgid "This happens if subnet had IP addresses<br>when new nested subnet was added" msgstr "" +"Do tega pride, če se z izbrisom omrežja<br>niso pobrisali tudi IP naslovi" #: site/ipaddr/ipAddressPrintTableOrphaned.php:171 msgid "Move to different subnet" @@ -1285,11 +1233,11 @@ msgid "Move IP address" msgstr "" #: site/ipaddr/modifyIpAddress.php:31 -msgid "Cannot edit IP address details" +msgid "You do not have write access for this network'" msgstr "" #: site/ipaddr/modifyIpAddress.php:31 -msgid "You do not have write access for this network'" +msgid "Cannot edit IP address details" msgstr "" #: site/ipaddr/modifyIpAddress.php:79 site/ipaddr/modifyIpAddress.php:80 @@ -1308,6 +1256,7 @@ msgstr "" msgid "You can add,edit or delete multiple IP addresses<br>by specifying IP range " "(e.g. 10.10.0.0-10.10.0.25)" msgstr "" +"(npr.: 10.10.0.0-10.10.0.25)" #: site/ipaddr/modifyIpAddress.php:147 msgid "Click to check for hostname" @@ -1441,8 +1390,9 @@ msgstr "" msgid "If you like the software you can donate by clicking this button to support " "further development" msgstr "" +"tem podprete nadaljnji razvoj projekta" -#: site/dashboard/widgets/statistics.php:27 +#: site/dashboard/statistics.php:27 msgid "Number of Sections" msgstr "" @@ -1506,7 +1456,7 @@ msgstr "" msgid "No IPv4 host configured" msgstr "" -#: site/dashboard/top10_hosts.php:153 +#: site/dashboard/top10_percentage.php:189 msgid "No IPv6 host configured" msgstr "" @@ -1570,16 +1520,17 @@ msgstr "" msgid "Missing fields" msgstr "" -#: site/admin/ripeImport.php:12 -msgid "Import subnets from RIPE" +#: site/admin/RIPE / ARINImport.php:12 +msgid "Import subnets from RIPE / ARIN" msgstr "" -#: site/admin/ripeImport.php:15 -msgid "This script imports subnets from RIPE database for specific AS. Enter " +#: site/admin/RIPE / ARINImport.php:15 +msgid "This script imports subnets from RIPE / ARIN database for specific AS. Enter " "desired AS to search for subnets" msgstr "" +"Vnesite žljeni AS za iskanje pripadajočih omrežij" -#: site/admin/ripeImport.php:19 +#: site/admin/RIPE / ARINImport.php:19 msgid "AS number" msgstr "" @@ -1649,17 +1600,21 @@ msgstr "" msgid "Here you can set parameters for connecting to AD for authenticating users. " "phpIPAM uses" msgstr "" +"phpIPAM uporablja" #: site/admin/manageAD_AD.php:17 site/admin/manageAD_LDAP.php:17 msgid "to authenticate users. If you need additional settings please take a look at " "functions/adLDAP or check online documentation!" msgstr "" +"v functions/adLDAP, ali pa preverite dokumentacijo" #: site/admin/manageAD_AD.php:20 msgid "First create new user under user management with <u>same username as on AD</u>" " and set usertype to domain user. Also set proper permissions - group membership " "for new user." msgstr "" +" in za tip uporabnika izberite domenski uporabnik. Nastavite tudi pravilne pravice dostopa - " +"pripadnost skupinam" #: site/admin/manageAD_AD.php:29 site/admin/manageAD_LDAP.php:29 msgid "ldap extension not enabled in php" @@ -1673,6 +1628,7 @@ msgstr "" msgid "Enter domain controllers, separated by ; (default: dc1.domain.local;dc2." "domain.local)" msgstr "" +"domain.local)" #: site/admin/manageAD_AD.php:49 site/admin/manageAD_LDAP.php:48 msgid "Base DN" @@ -1684,6 +1640,9 @@ msgid "Enter base DN for LDAP (default: CN=Users,CN=Company,DC=domain,DC=local)" "\t\tIf this is set to null then adLDAP will attempt to obtain this " "automatically from the rootDSE" msgstr "" +"<br>\n" +"\t\tČe je to polje prazno bo adLDAP poizkušal avtomatsko pridobiti to informacijo " +"iz korenskega DSE" #: site/admin/manageAD_AD.php:61 msgid "Account suffix" @@ -1719,6 +1678,7 @@ msgstr "" msgid "If you wish to use TLS you should ensure that useSSL is set to false and " "vice-versa (default: false)" msgstr "" +"(privzeto: ne)" #: site/admin/manageAD_AD.php:102 msgid "AD port" @@ -1803,6 +1763,7 @@ msgid "You can select which fields are actually being used for IP management, so "you dont show any overhead if not used. IP, hostname and description are " "mandatory" msgstr "" +"manj pomembna ostanejo skrita. IP naslov, dns ime in opis so obvezna polja." #: site/admin/filterIPFields.php:44 msgid "Check which fields to use for IP addresses" @@ -1913,6 +1874,7 @@ msgstr "" msgid "Normal users will have permissions set based on group access to sections and " "subnets" msgstr "" +"in pravice skupin" #: site/admin/manageSubnet.php:11 site/admin/adminMenu.php:53 msgid "Subnet management" @@ -1983,7 +1945,7 @@ msgid "VRF management" msgstr "" #: site/admin/adminMenu.php:68 -msgid "RIPE import" +msgid "RIPE / ARIN import" msgstr "" #: site/admin/adminMenu.php:77 @@ -2046,6 +2008,7 @@ msgstr "" msgid "Domain authenticates on AD, but still needs to be setup here for permissions " "etc." msgstr "" +"pravic dostopa ipd." #: site/admin/usersEditPrint.php:116 msgid "User's password" @@ -2082,6 +2045,7 @@ msgstr "" #: site/admin/usersEditPrint.php:150 msgid "Users have access defined based on groups" msgstr "" +"skupin, katerim pripadajo" #: site/admin/usersEditPrint.php:177 msgid "No groups configured" @@ -2140,7 +2104,7 @@ msgid "subnet in CIDR" msgstr "" #: site/admin/manageSubnetEdit.php:86 -msgid "Get information from RIPE database" +msgid "Get information from RIPE / ARIN database" msgstr "" #: site/admin/manageSubnetEdit.php:87 @@ -2183,6 +2147,7 @@ msgstr "" msgid "Enter master subnet if you want to nest it under existing subnet, or select " "root to create root subnet" msgstr "" +"korensko omrežje za izdelavo novega" #: site/admin/manageSubnetEdit.php:188 msgid "Select VRF" @@ -2239,6 +2204,7 @@ msgstr "" msgid "Removing subnets will delete ALL underlaying subnets and belonging IP " "addresses" msgstr "" +"naslove" #: site/admin/manageSubnetEdit.php:324 msgid "Delete subnet" @@ -2264,7 +2230,7 @@ msgstr "" msgid "Status" msgstr "" -#: site/admin/CSVimportShowFile.php:100 site/admin/ripeImportTelnet.php:108 +#: site/admin/CSVimportShowFile.php:100 site/admin/RIPE / ARINImportTelnet.php:108 msgid "Import to database" msgstr "" @@ -2416,7 +2382,7 @@ msgstr "" msgid "Errors occured when importing to database!" msgstr "" -#: site/admin/CSVimportSubmit.php:95 site/admin/ripeImportResult.php:72 +#: site/admin/CSVimportSubmit.php:95 site/admin/RIPE / ARINImportResult.php:72 msgid "Import successfull" msgstr "" @@ -2631,6 +2597,7 @@ msgstr "" msgid "Set authentication type for users. Requires php LDAP support. Set connection " "settings in admin menu" msgstr "" +"za php. Nastavite nastavitve povezave v administracijskem meniju" #: site/admin/settings.php:105 msgid "Tooltips" @@ -2665,6 +2632,7 @@ msgid "Check reverse dns lookups for IP addresses that do not have hostname in " "database. (Activating this feature can significantly increase ip address " "pages loading time!)" msgstr "" +"podatkovni bazi. (Aktivacija te funkcije lahko povzroči precej daljše nalaganje strani!)" #: site/admin/settings.php:149 msgid "Duplicate VLANs" @@ -2698,6 +2666,7 @@ msgstr "" msgid "Select netmask limit for visual display of IP addresses (mask equal or " "bigger than - more then /22 not recommended)" msgstr "" +" - večja od /22 ni priporočena)" #: site/admin/settings.php:212 msgid "IP address print limit" @@ -2771,19 +2740,19 @@ msgstr "" msgid "Instructions updated successfully" msgstr "" -#: site/admin/ripeImportTelnet.php:48 +#: site/admin/RIPE / ARINImportTelnet.php:48 msgid "No subnets found" msgstr "" -#: site/admin/ripeImportTelnet.php:56 +#: site/admin/RIPE / ARINImportTelnet.php:56 msgid "I found the following routes belonging to AS" msgstr "" -#: site/admin/ripeImportTelnet.php:69 +#: site/admin/RIPE / ARINImportTelnet.php:69 msgid "Remove this subnet" msgstr "" -#: site/admin/ripeImportTelnet.php:79 +#: site/admin/RIPE / ARINImportTelnet.php:79 msgid "select section" msgstr "" @@ -2830,6 +2799,7 @@ msgstr "" #: site/admin/manageSection.php:92 msgid "If group is not set in permissions then it will not have access to subnet" msgstr "" +"dostopa do omrežja" #: site/admin/manageSection.php:93 msgid "Groups with RO permissions will not be able to create new subnets" @@ -2839,6 +2809,7 @@ msgstr "" msgid "Subnet permissions must be set separately. By default if group has access to " "section<br>it will have same permission on subnets" msgstr "" +"do razdelka<br>, potem bo imela enake pravice v pripadajočih omrežjih" #: site/admin/manageSection.php:95 msgid "You can choose to delegate section permissions to all underlying subnets" @@ -2848,6 +2819,7 @@ msgstr "" msgid "If group does not have access to section it will not be able to access " "subnet, even if<br>subnet permissions are set" msgstr "" +"tudi če so pravice za to omrežje določene" #: site/admin/customSubnetFieldsOrder.php:15 #: site/admin/customIPFieldsOrder.php:15 @@ -2939,6 +2911,7 @@ msgstr "" msgid "No disables overlapping subnet checks. Subnets can be nested/created " "randomly. Anarchy." msgstr "" +"poljubno. Anarhija." #: site/admin/manageSectionEdit.php:90 msgid "Permissions" @@ -2970,11 +2943,11 @@ msgstr "" msgid "Logs cleared successfully" msgstr "" -#: site/admin/ripeImportResult.php:66 +#: site/admin/RIPE / ARINImportResult.php:66 msgid "Failed to import subnet" msgstr "" -#: site/admin/ripeImportResult.php:76 +#: site/admin/RIPE / ARINImportResult.php:76 msgid "Please fix the following errors before inserting" msgstr "" @@ -2998,11 +2971,13 @@ msgstr "" msgid "Here you can set parameters for connecting to OpenLDAP for authenticating " "users. phpIPAM uses" msgstr "" +"uporabnikov. phpIPAM uporablja " #: site/admin/manageAD_LDAP.php:20 msgid "First create new user under user management with <u>same username as on " "LDAP</u> and set usertype to domain user. Also set proper groups (premissions) for this user." msgstr "" +"LDAPu</u> in izberite tip uporabnika domenski uporabnik. Nastavite tudi ustrezne skupine za uporabnika" #: site/admin/manageAD_LDAP.php:38 msgid "LDAP servers" @@ -3108,6 +3083,7 @@ msgstr "" msgid "To successfully import data please use the following XLS/CSV structure:<br>" "( ip | State | Description | hostname | MAC | Owner | Device | Port | Note " msgstr "" +"( ip | State | Opis | DNS ime | MAC | Lastnik | Naprava | Port | Note " #: site/admin/CSVimport.php:48 msgid "Upload file" @@ -3185,6 +3161,7 @@ msgstr "" msgid "If existing IP will fall to subnet/broadcast of new subnets split will fail, " "except if strict mode is disabled" msgstr "" +"ne bo uspela, razen če je strog način izklopljen" #: site/admin/manageSubnetresize.php:41 msgid "Current mask" @@ -3207,6 +3184,7 @@ msgstr "" msgid "If strict mode is enabled check will be made to ensure it is still inside " "master subnet" msgstr "" +"še vedno znotraj nadrejenega omrežja" #: site/admin/manageDevices.php:17 msgid "Add device" @@ -3266,6 +3244,7 @@ msgstr "" #: site/admin/usersEditEmailNotif.php:28 msgid "Sending notification mail for new account failed" msgstr "" +"računu ni uspelo" #: site/admin/usersEditEmailNotif.php:29 msgid "Notification mail for new account sent" @@ -3592,7 +3571,7 @@ msgstr "" msgid "Languages" msgstr "" -#: site/admin/languages.php +#: site/admin/languages msgid "Manage translations" msgstr "" @@ -3704,31 +3683,31 @@ msgstr "" msgid "IP delete successful" msgstr "" -#: site/admin/subnetDetailsSlaves.php +#: site/admin/subnetDetailsSlaves.php:134 msgid "You do not have permissions to truncate subnet" msgstr "" -#: site/admin/manageDevicesEditResult.php +#: site/admin/manageDevicesEditResult msgid "Failed to add device" msgstr "" -#: site/admin/manageDevicesEditResult.php +#: site/admin/manageDevicesEditResult msgid "Failed to edit device" msgstr "" -#: site/admin/manageDevicesEditResult.php +#: site/admin/manageDevicesEditResult msgid "Failed to delete device" msgstr "" -#: site/admin/manageDevicesEditResult.php +#: site/admin/manageDevicesEditResult msgid "Device add successfull" msgstr "" -#: site/admin/manageDevicesEditResult.php +#: site/admin/manageDevicesEditResult msgid "Device edit successfull" msgstr "" -#: site/admin/manageDevicesEditResult.php +#: site/admin/manageDevicesEditResult msgid "Device delete successfull" msgstr "" @@ -3858,7 +3837,7 @@ msgstr "" msgid "Ping hosts inside subnet to check availability" msgstr "" -#: site/ipaddr/subnetDetials.php +#: site/ipaddr/subnetDetails.php msgid "Hosts check" msgstr "" @@ -4010,6 +3989,11 @@ msgstr "" msgid "Invalid ping path" msgstr "" + + + + + #: site/admin/settings.php msgid "Display settings" msgstr "" @@ -4248,7 +4232,7 @@ msgstr "" msgid "Required field" msgstr "" -#: site/admin/custopmIPFields.php +#: site/admin/customIPFields.php msgid "Required" msgstr "" @@ -4341,7 +4325,10 @@ msgstr "" msgid "Delete folder" msgstr "" -#: site/admin/userADsearchForm.php +#: site/admin/CSVimportSubmit.php +msgid "Errors marked with red will be ignored from importing" +msgstr "" + msgid "Search user in AD" msgstr "" @@ -4391,6 +4378,9 @@ msgstr "" msgid "No changelog entries are available for this section" msgstr "" +msgid "No changelog entries are available" +msgstr "" + #: site/ipaddr/ipDetails.php msgid "Availability" msgstr "" @@ -4587,11 +4577,11 @@ msgstr "" msgid "Sender mail" msgstr "" -#: site/admin/settings.php +#: site/admin.settings.php msgid "Set administrator name" msgstr "" -msgid "Set administrator email" +msgid "Set administrator e-mail" msgstr "" #: site/admin/verifyDatabase.php @@ -4628,17 +4618,14 @@ msgstr "" msgid "Sort by vendor" msgstr "" -#: site/admin/userEditPrint.php -msgid "Mail State changes" -msgstr "" - -msgid "Select yes to receive notification change mail for State change" +msgid "Select yes to receive notification change mail for" msgstr "" -msgid "Mail Changelog" +msgid "IP edited, Subnet edited, State change" msgstr "" -msgid "Select yes to receive notification change mail for changelog" +#: site/admin/userEditPrint.php +msgid "Mail State changes" msgstr "" #: site/admin/usersEditPrint.php @@ -4720,17 +4707,6 @@ msgstr "" msgid "Discover new hosts in this subnet" msgstr "" - -## 1.18.00 - - - - - - -### 1.18.006 ### - - msgid "Invalid ID" msgstr "" @@ -4941,9 +4917,6 @@ msgstr "" msgid "No subnets" msgstr "" -msgid "No changelog entries are available" -msgstr "" - msgid "Device details" msgstr "" @@ -4974,9 +4947,6 @@ msgstr "" msgid "Invalid widget" msgstr "" -msgid "No $type hosts configured" -msgstr "" - msgid "Loading statistics" msgstr "" @@ -5175,9 +5145,6 @@ msgstr "" msgid "Master NS" msgstr "" -msgid "NULL" -msgstr "" - msgid "Domain type" msgstr "" @@ -5610,7 +5577,7 @@ msgstr "" msgid "For AD/LDAP connection phpipam is using adLDAP, for documentation please check " msgstr "" -msgid "First create new user under user management with <u>same username as on AD</u> and set authention type to one of available methods." +msgid "First create new user under user management with <u>same username as on AD</u> and set authention typeto one of available methods." msgstr "" msgid "Failed to edit authentication method" @@ -5910,9 +5877,6 @@ msgstr "" msgid "Invalid file type" msgstr "" -msgid "Errors marked with red will be ignored from importing" -msgstr "" - msgid "Invalid subnet ID" msgstr "" @@ -6009,9 +5973,6 @@ msgstr "" msgid "Invalid Network!" msgstr "" -msgid "Subnet $new_subnet overlaps with" -msgstr "" - msgid "Mask must be an integer" msgstr "" @@ -6057,7 +6018,8 @@ msgstr "" msgid "No subnets belong to this device" msgstr "" -# 1.19 +### 1.19.000 ### + msgid "Log files are sent to syslog" msgstr "" @@ -6115,7 +6077,7 @@ msgstr "" msgid "Enter scan agent name" msgstr "" -msgid "Agent description" +msgid "Agent description'" msgstr "" msgid "Agent type" @@ -6154,230 +6116,6 @@ msgstr "" msgid "Scan agent references removed" msgstr "" -### 1.19.002 ### - -msgid "Enable Firewall Zones" -msgstr "" - -msgid "Enable or disable firewall zone management module" -msgstr "" - -msgid "Firewall zone management" -msgstr "" - -msgid "Invalid zone alias value." -msgstr "" - -msgid "Invalid interface." -msgstr "" - -msgid "Invalid zone ID." -msgstr "" - -msgid "Invalid mapping ID." -msgstr "" - -msgid "Cannot add mapping" -msgstr "" - -msgid "Mapping modified successfully" -msgstr "" - -msgid "Invalid ID. Do not manipulate the POST values!" -msgstr "" - -msgid "Invalid action. Do not manipulate the POST values!" -msgstr "" - -msgid "Add a mapping between a firewall device and a firewall zone" -msgstr "" - -msgid "Zone to map" -msgstr "" - -msgid "Select a firewall zone" -msgstr "" - -msgid "Firewall to map" -msgstr "" - -msgid "Select firewall" -msgstr "" - -msgid "Interface" -msgstr "" - -msgid "Create Firewall zone mapping" -msgstr "" - -msgid "Firewall interface" -msgstr "" - -msgid "Zone alias" -msgstr "" - -msgid "Local zone alias" -msgstr "" - -msgid "You are about to remove the firewall to zone mapping!" -msgstr "" - -msgid "Zone" -msgstr "" - -msgid "Alias" -msgstr "" - -msgid "Devicename" -msgstr "" - -msgid "No firewall zones configured" -msgstr "" - -msgid "Invalid zone name length parameter. A valid valid value is between 3 and 31" -msgstr "" - -msgid "Invalid IPv4 address type alias. Only alphanumeric characters, "-", "_" and "." are allowed." -msgstr "" - -msgid "Invalid separator. Only "-", "_" and "." are allowed." -msgstr "" - -msgid "Invalid zone indicator. Only alphanumeric characters, "-", "_" and "." are allowed." -msgstr "" - -msgid "Invalid zone generator method. Do not manipulate the POST values!" -msgstr "" - -msgid "Invalid zone generator types [decimal]. Do not manipulate the POST values!" -msgstr "" - -msgid "Invalid zone generator types [hex]. Do not manipulate the POST values!" -msgstr "" - -msgid "Invalid zone generator types [text]. Do not manipulate the POST values!" -msgstr "" - -msgid "Invalid padding value. Use the checkbox to set the padding value to on or off." -msgstr "" - -msgid "Invalid device type." -msgstr "" - -msgid "Maximum zone name length" -msgstr "" - -msgid "Choose a maximum length of the zone name.<br>The default length is 3, the maximum is 31 characters.<br>(keep in mind that your firewall may have a limit for the length of zone names or address objects )" -msgstr "" - -msgid "IPv4 address type alias" -msgstr "" - -msgid "IPv6 address type alias" -msgstr "" - -msgid "Address type aliases are used to indicate a IPv4 or IPv6 address object." -msgstr "" - -msgid "The separator is used to keep the name of address objects tidy." -msgstr "" - -msgid "Own zone indicator" -msgstr "" - -msgid "The indicator is used to indicate a zone wether is owned by the company or by a customer.<br>It is the leading character of the zone name but will be separated from the zone name in the database." -msgstr "" - -msgid "Customer zone indicator" -msgstr "" - -msgid "Zone generator method" -msgstr "" - -msgid "Generate zone names automaticaly with the setting "decimal" or "hex".<br>To use your own unique zone names you can choose the option "text"." -msgstr "" - -msgid "Zone name padding" -msgstr "" - -msgid "Insert leading zeros into the zone name if you want to have a constant length of your zone name.<br>This setting will be ignored if you use the \"text\" zone name generator." -msgstr "" - -msgid "Zone name strict mode" -msgstr "" - -msgid "Zone name strict mode is enabled by default.<br>If you like to use your own zone names with the "text" mode you may uncheck this to have not unique zone names." -msgstr "" - -msgid "Firewall device Type" -msgstr "" - -msgid "Select the appropriate device type to match firewall devices." -msgstr "" - -msgid "Invalid zone name value." -msgstr "" - -msgid "Invalid indicator ID." -msgstr "" - -msgid "Invalid section ID." -msgstr "" - -msgid "Invalid subnet ID." -msgstr "" - -msgid "Invalid L2 domain ID." -msgstr "" - -msgid "Invalid VLAN ID." -msgstr "" - -msgid "Invalid generator ID." -msgstr "" - -msgid "Invalid padding setting." -msgstr "" - -msgid "Cannot generate zone name" -msgstr "" - -msgid "Cannot validate zone name" -msgstr "" - -msgid "Cannot add zone" -msgstr "" - -msgid "Zone modified successfully" -msgstr "" - -msgid "Add a firewall zone" -msgstr "" - -msgid "Zone name (Only alphanumeric and special characters like .-_ and space.)" -msgstr "" - -msgid "The zone name will be automatically generated" -msgstr "" - -msgid "Zone name" -msgstr "" - -msgid "Own zone" -msgstr "" - -msgid "Customer zone" -msgstr "" - -msgid "Removing this firewall zone will also remove all referenced mappings!" -msgstr "" - -msgid "Create Firewall zone" -msgstr "" - -msgid "Firewall zone and device mappings" -msgstr "" - msgid "Base DN for your directory" msgstr "" @@ -6732,6 +6470,12 @@ msgstr "" msgid "NAT settings" msgstr "" +msgid "RIPE import" +msgstr "" + +msgid "Import subnets from RIPE" +msgstr "" + msgid "Select which default address fields to display" msgstr "" @@ -7170,6 +6914,9 @@ msgstr "" msgid "Automatic" msgstr "" +msgid "This script imports subnets from RIPE database for specific AS. Enter desired AS to search for subnets" +msgstr "" + msgid "Invalid AS" msgstr "" @@ -8303,3 +8050,502 @@ msgstr "" msgid "phpIPAM settings" msgstr "" + + +### Customers module ### + +msgid "All customers" +msgstr "" + +msgid "Add customer" +msgstr "" + +msgid "Customer" +msgstr "" + +msgid "Customers" +msgstr "" + +msgid "Select customer" +msgstr "" + +msgid "Edit customer" +msgstr "" + +msgid "Delete customer" +msgstr "" + +msgid "Contact" +msgstr "" + +msgid "Customer title" +msgstr "" + +msgid "Customer address" +msgstr "" + +msgid "Contact details" +msgstr "" + +msgid "Customer contact details" +msgstr "" + +msgid "Postcode" +msgstr "" + +msgid "City" +msgstr "" + +msgid "Contact person" +msgstr "" + +msgid "Phone" +msgstr "" + +msgid "Random notes" +msgstr "" + +msgid "Customers module" +msgstr "" + +msgid "Enable or disable customers module for customer management" +msgstr "" + + + +### 2FA ### + +msgid "2FA authentication" +msgstr "" + +msgid "2FA provider" +msgstr "" + +msgid "Current 2FA provider" +msgstr "" + +msgid "2FA users" +msgstr "" + +msgid "2FA status" +msgstr "" + +msgid "2FA status legend" +msgstr "" + +msgid "2FA is enabled" +msgstr "" + +msgid "2FA disabled" +msgstr "" + +msgid "2fa is enabled, but secret is not set. User will be given new secret upon first login" +msgstr "" + +msgid "Reset secret" +msgstr "" + +msgid "2FA name" +msgstr "" + +msgid "Name for 2fa application that will be displayed" +msgstr "" + +msgid "2FA length" +msgstr "" + +msgid "Length of 2FA secret (16 to 32)" +msgstr "" + +msgid "2FA user change" +msgstr "" + +msgid "Enabled, not activated" +msgstr "" + +msgid "Can users change 2fa settings for their account" +msgstr "" + +msgid "Apply to all users" +msgstr "" + +msgid "Force all users to use 2fa on next login or disable 2fa for all users" +msgstr "" + + + + +### Password policy ### + +msgid "phpIPAM password policy settings" +msgstr "" + +msgid "Here you can set password policy for user authentication" +msgstr "" + +msgid "Minimum length" +msgstr "" + +msgid "Minimum password length" +msgstr "" + +msgid "Maximum length" +msgstr "" + +msgid "Maximum password length" +msgstr "" + +msgid "Minimum numbers" +msgstr "" + +msgid "Minumum number of numbers" +msgstr "" + +msgid "Minimum letters" +msgstr "" + +msgid "Minumum number of letters" +msgstr "" + +msgid "Minimum lowercase letter" +msgstr "" + +msgid "Minumum number of lowercase letters" +msgstr "" + +msgid "Minimum uppercase letter" +msgstr "" + +msgid "Minumum number of uppercase letters" +msgstr "" + +msgid "Minimum symbols" +msgstr "" + +msgid "Minumum number of symbols" +msgstr "" + +msgid "Maximum symbols" +msgstr "" + +msgid "Maximum number of symbols" +msgstr "" + +msgid "Symbols" +msgstr "" + +msgid "List of allowed symbols. csv separated." +msgstr "" + +msgid "Enforce" +msgstr "" + +msgid "Require all users to change password upon next login." +msgstr "" + + + + + +### Circuits #### + +msgid "Circuit options" +msgstr "" + +msgid "Physical Circuits" +msgstr "" + +msgid "Logical Circuits" +msgstr "" + +msgid "Circuit providers" +msgstr "" + +msgid "Circuit map" +msgstr "" + +msgid "Options" +msgstr "" + +msgid "Point A" +msgstr "" + +msgid "Point B" +msgstr "" + +msgid "Provider" +msgstr "" + +msgid "Circuit type" +msgstr "" + +msgid "Capacity" +msgstr "" + +msgid "Purpose" +msgstr "" + +msgid "Circuit count" +msgstr "" + +msgid "Members" +msgstr "" + +msgid "Logical circuit physical members" +msgstr "" + +msgid "Available physical circuits" +msgstr "" + + + +### Misc 1.4 ### + +msgid "Theme" +msgstr "" + +msgid "Select UI theme" +msgstr "" + +msgid "dark" +msgstr "" + +msgid "white" +msgstr "" + +msgid "Compress text in top menu" +msgstr "" + +msgid "Bandwidth calculator" +msgstr "" + +msgid "TCP Window size" +msgstr "" + +msgid "Delay" +msgstr "" + +msgid "Filesize" +msgstr "" + +msgid "Transfer time" +msgstr "" + +msgid "IP Request" +msgstr "" + +msgid "Active IP address requests." +msgstr "" + +msgid "Enable Firewall Zones" +msgstr "" + +msgid "Enable or disable firewall zone management module" +msgstr "" + +msgid "Allow duplicate vlans" +msgstr "" + +msgid "Allow duplicated vlans inside L2 domain" +msgstr "" + +msgid "Decode MAC vendor" +msgstr "" + +msgid "Decode MAC address vendor for addresses" +msgstr "" + +msgid "Module permissions" +msgstr "" + +msgid "Scan agents" +msgstr "" + + +### 1.6.1 + +msgid "passkey" +msgstr "" + +msgid "Passkey" +msgstr "" + +msgid "2fa account status" +msgstr "" + +msgid "2fa disabled" +msgstr "" + +msgid "2fa enabled" +msgstr "" + +msgid "2fa status" +msgstr "" + +msgid "Account" +msgstr "" + +msgid "Check passkey you want to remove" +msgstr "" + +msgid "Details for your preferred authenticator application are below. Please write down your details, otherwise you will not be able to login to phpipam" +msgstr "" + +msgid "Disable 2fa for user" +msgstr "" + +msgid "Enable Passkeys" +msgstr "" + +msgid "Enable Vaults" +msgstr "" + +msgid "Enable Vaults for storing encrypted information" +msgstr "" + +msgid "Enable passkeys for passwordless login" +msgstr "" + +msgid "failed" +msgstr "" + +msgid "Failed passkey login" +msgstr "" + +msgid "has logged out" +msgstr "" + +msgid "Here you can change settings for two-factor authentication and get your 2fa secret." +msgstr "" + +msgid "Invalid theme" +msgstr "" + +msgid "logged in" +msgstr "" + +msgid "Login with a passkey" +msgstr "" + +msgid "Only passkey authentication is possible for this account" +msgstr "" + +msgid "Passkey login only" +msgstr "" + +msgid "Passkey only" +msgstr "" + +msgid "Passkey required for login" +msgstr "" + +msgid "Passkeys" +msgstr "" + +msgid "Select to only allow account login with passkey" +msgstr "" + +msgid "successful" +msgstr "" + +msgid "There are no passkeys set for user. Resetting passkey login only to false." +msgstr "" + +msgid "Two-factor authentication" +msgstr "" + +msgid "User account is disabled" +msgstr "" + +msgid "User permissions for phpipam modules" +msgstr "" + +msgid "You can also scan following QR code with your preferred authenticator application" +msgstr "" + +msgid "You can login to your account with normal authentication method only untill you create passkeys." +msgstr "" + +msgid "You can only login to your account using passkeys" +msgstr "" + +msgid "Passwordless authentication" +msgstr "" + +msgid "Account details" +msgstr "" + +msgid "You can login to your account with with passkeys only" +msgstr "" + +msgid "This can be changed under Account details tab" +msgstr "" + +msgid "Your passkeys" +msgstr "" + +msgid "Added on" +msgstr "" + +msgid "Last used" +msgstr "" + +msgid "You authenticated with this passkey" +msgstr "" + +msgid "Add a passkey" +msgstr "" + +msgid "Rename" +msgstr "" + +msgid "Here you can manage passkey authentication for your account" +msgstr "" + +msgid "Passkeys are a password replacement that validates your identity using touch, facial recognition, a device password, or a PIN" +msgstr "" + +msgid "Name your passkey" +msgstr "" + +msgid "Duplicates" +msgstr "" + +msgid "Duplicated subnets" +msgstr "" + +msgid "Duplicated hosts" +msgstr "" + +msgid "No duplicate subnets found" +msgstr "" + +msgid "Routing" +msgstr "" + +msgid "BGP routing" +msgstr "" + +msgid "Add peer" +msgstr "" + +msgid "Peer name" +msgstr "" + +msgid "Peer AS" +msgstr "" + +msgid "Local AS" +msgstr "" + +msgid "Peer address" +msgstr "" + +msgid "Local address" +msgstr "" + +msgid "Local Address" +msgstr "" + +msgid "BGP type" +msgstr "" diff --git a/functions/locale/sl_SI.UTF-8/LC_MESSAGES/phpipam.mo b/functions/locale/sl_SI.UTF-8/LC_MESSAGES/phpipam.mo index ab67e6fac36132a88d8058024c98bdc57a93d8d8..7a1ea3e3886eafcb9dd04de8999d13cc4cd4bbdd 100644 Binary files a/functions/locale/sl_SI.UTF-8/LC_MESSAGES/phpipam.mo and b/functions/locale/sl_SI.UTF-8/LC_MESSAGES/phpipam.mo differ diff --git a/functions/locale/sl_SI.UTF-8/LC_MESSAGES/phpipam.po b/functions/locale/sl_SI.UTF-8/LC_MESSAGES/phpipam.po index 9e4b1e59dfe12462e6317cafb1de14e022dc23b1..c008308107f89868c4e901634569059c95141ab8 100644 --- a/functions/locale/sl_SI.UTF-8/LC_MESSAGES/phpipam.po +++ b/functions/locale/sl_SI.UTF-8/LC_MESSAGES/phpipam.po @@ -6492,7 +6492,7 @@ msgid "Search and replace content in database" msgstr "Iskanje in zamenjava vsebine v bazi" msgid "Dashboard" -msgstr "Domov" +msgstr "Nadzorna plošča" msgid "Invalid CSRF cookie" msgstr "Neveljaven CSRF piškotek" @@ -8361,3 +8361,233 @@ msgstr "Pravice modulov" msgid "Scan agents" msgstr "Agenti skeniranja" + +### 1.6.1 + +msgid "passkey" +msgstr "prijavni ključ" + +msgid "Passkey" +msgstr "prijavni ključ" + +msgid "2fa account status" +msgstr "Status 2fa" + +msgid "2fa disabled" +msgstr "2fa izklopljena" + +msgid "2fa enabled" +msgstr "2fa vklopljena" + +msgid "2fa status" +msgstr "Status 2fa" + +msgid "Account" +msgstr "Račun" + +msgid "Check passkey you want to remove" +msgstr "Izperite prijavni ključ ki ga želite odstraniti" + +msgid "Details for your preferred authenticator application are below. Please write down your details, otherwise you will not be able to login to phpipam" +msgstr "" + +msgid "Disable 2fa for user" +msgstr "Onemogoči 2fa za uporabnika" + +msgid "Enable Passkeys" +msgstr "Omogočite prijavne ključe" + +msgid "Enable Vaults" +msgstr "Omogoċite trezorje" + +msgid "Enable Vaults for storing encrypted information" +msgstr "Omogočite trezorje za varno hrambo informacij" + +msgid "Enable passkeys for passwordless login" +msgstr "Omogočite prijavo brez gesel z uporabo passkey prijavnimi ključi" + +msgid "failed" +msgstr "nauspešna" + +msgid "Failed passkey login" +msgstr "Napaka pri prijavi s prijavnim ključem" + +msgid "has logged out" +msgstr "se je odjavil" + +msgid "Here you can change settings for two-factor authentication and get your 2fa secret." +msgstr "Tukaj lahko spremenite nastavitve za dvofaktorsko avtentikacijo in pridobite vaš 2fa skrivni ključ." + +msgid "Invalid theme" +msgstr "Neveljavna tema" + +msgid "logged in" +msgstr "prijavljen" + +msgid "Login with a passkey" +msgstr "Prijava s prijavnim ključem" + +msgid "Only passkey authentication is possible for this account" +msgstr "Prijava v ta račun je mogoča samo s prijavnimi ključi passkey" + +msgid "Passkey login only" +msgstr "Prijava samo s prijavnimi ključi" + +msgid "Passkey only" +msgstr "Samo prijavni ključi" + +msgid "Passkey required for login" +msgstr "Prijavni ključ je za zahtevan za prijavo" + +msgid "Passkeys" +msgstr "Prijavni ključi" + +msgid "Select to only allow account login with passkey" +msgstr "Izberite to opcijo, da dovolite prijavo v račun samo s prijavnimi ključi" + +msgid "successful" +msgstr "uspešna" + +msgid "There are no passkeys set for user. Resetting passkey login only to false." +msgstr "Uporabnik nima nastavljenih prijavnih ključev." + +msgid "Two-factor authentication" +msgstr "Dvofaktorska avtentikacija" + +msgid "User account is disabled" +msgstr "Uporabniški račun je onemogočen" + +msgid "User permissions for phpipam modules" +msgstr "Uporabniške pravice za phpipam module" + +msgid "You can also scan following QR code with your preferred authenticator application" +msgstr "Spodnjo QR kodo lahko skenirate s svojo applikacijo za upravljanje avtentikacij" + +msgid "You can login to your account with normal authentication method only untill you create passkeys." +msgstr "V svoj račun se lahko prijavite z običajno metodo, dokler ne ustvarite prijavnih ključev." + +msgid "You can only login to your account using passkeys" +msgstr "V račun se lahko prijavite samo s prijavnimi ključi" + +msgid "Passwordless authentication" +msgstr "Prijava brez gesel" + +msgid "Account details" +msgstr "Podatki o računu" + +msgid "You can login to your account with with passkeys only" +msgstr "V račun se lahko prijavite samo s prijavnimi ključi" + +msgid "This can be changed under Account details tab" +msgstr "To lahko spremenite v zavihku Podatki o računu" + +msgid "Your passkeys" +msgstr "Vaši prijavni ključi" + +msgid "Added on" +msgstr "Dodan" + +msgid "Last used" +msgstr "Zadnjič uporabljen" + +msgid "You authenticated with this passkey" +msgstr "Prijavili ste se s tem ključem" + +msgid "Add a passkey" +msgstr "Dodaj prijavni ključ" + +msgid "Rename" +msgstr "Preimenuj" + +msgid "Here you can manage passkey authentication for your account" +msgstr "Tukaj lahko urejate avtentikacijo s prijavnimi ključi za vaš račun" + +msgid "Passkeys are a password replacement that validates your identity using touch, facial recognition, a device password, or a PIN" +msgstr "Prijavni ključi so zamenjava za gesla, ki preverijo vašo identiteto s pomočjo dotika, prepoznave obraza, PIN naprave ali z geslom naprave" + +msgid "Name your passkey" +msgstr "Poimenujte prijavni ključ" + +msgid "Duplicates" +msgstr "Duplikati" + +msgid "Duplicated subnets" +msgstr "Podvojena omreżja" + +msgid "Duplicated hosts" +msgstr "Podvojeni IP naslovi" + +msgid "No duplicate subnets found" +msgstr "Ni podvojenih omrežij" + +msgid "Routing" +msgstr "Usmerjevalni protokoli" + +msgid "BGP routing" +msgstr "BGP usmerjanje" + +msgid "Add peer" +msgstr "Dodaj povezavo" + +msgid "Peer name" +msgstr "Ime partnerja" + +msgid "Peer AS" +msgstr "AS partnerja" + +msgid "Local AS" +msgstr "Lokalni AS" + +msgid "Peer address" +msgstr "Naslov partnerja" + +msgid "Local address" +msgstr "Lokalni naslov" + +msgid "Local Address" +msgstr "Lokalni naslov" + +msgid "BGP type" +msgstr "tip BGP povezave" + +msgid "Vaults" +msgstr "Trezorji" + +msgid "Create Vault" +msgstr "Ustvari trezor" + +msgid "Certificates" +msgstr "Certifikati" + +msgid "Passwords" +msgstr "Gesla" + +msgid "Edit Vault Details" +msgstr "Uredi podatke trezorja" + +msgid "Edit Vault" +msgstr "Uredi podatke trezorja" + +msgid "Delete vault" +msgstr "Izbriši trezor" + +msgid "Lock Vault" +msgstr "Zaklep trezorja" + +msgid "Unlock Vault" +msgstr "Odklep trezorja" + +msgid "Remove Vault" +msgstr "Izbris trezorja" + +msgid "Vault name" +msgstr "Ime trezorja" + +msgid "Enter vault name" +msgstr "Vpišite ime trezorja" + +msgid "Certificates vault" +msgstr "Trezor za certifikate" + +msgid "Password vault" +msgstr "Trezor za gesla" diff --git a/functions/scripts/reset-admin-password.php b/functions/scripts/reset-admin-password.php index 28e136bda5c284e12035a748eec31fab754c1e43..841c007b5adf3ffebef2fe9b850cc62dd42d6028 100755 --- a/functions/scripts/reset-admin-password.php +++ b/functions/scripts/reset-admin-password.php @@ -50,7 +50,8 @@ $crypt_type = $User->return_crypt_type (); // set update array $values = array("id"=>1, - "password"=>$password_crypted + "password" =>$password_crypted, + "passkey_only" =>0 ); // update password diff --git a/functions/scripts/sync_ad_groups.php b/functions/scripts/sync_ad_groups.php new file mode 100755 index 0000000000000000000000000000000000000000..8e04bcaf8591ea5e1b0171e88f8ca2287bf62423 --- /dev/null +++ b/functions/scripts/sync_ad_groups.php @@ -0,0 +1,21 @@ +<?php + + +/** + * + * This script will sync phpipam groups with AD groups + * + * + * + * + */ + +// functions +require_once( dirname(__FILE__) . '/../functions.php' ); + +// AD sync +$Database = new Database_PDO; + +$AD_sync = new AD_user_sync ($Database); +$AD_sync->set_debug (true); + diff --git a/functions/upgrade_queries/upgrade_queries_1.6.php b/functions/upgrade_queries/upgrade_queries_1.6.php index 84cd23587429b99b8263b362b6f02c60cdc27c01..289feed5a8687a0508b6d2fc4b4189975531d87a 100644 --- a/functions/upgrade_queries/upgrade_queries_1.6.php +++ b/functions/upgrade_queries/upgrade_queries_1.6.php @@ -5,4 +5,27 @@ # $upgrade_queries["1.6.39"] = []; $upgrade_queries["1.6.39"][] = "-- Version update"; -$upgrade_queries["1.6.39"][] = "UPDATE `settings` set `version` = '1.6';"; \ No newline at end of file +$upgrade_queries["1.6.39"][] = "UPDATE `settings` set `version` = '1.6';"; + +// passkeys +$upgrade_queries["1.6.40"] = []; +$upgrade_queries["1.6.40"][] = "-- Database version bump"; +$upgrade_queries["1.6.40"][] = "UPDATE `settings` set `dbversion` = '40';"; +// add passkey support to settings +$upgrade_queries["1.6.40"][] = "ALTER TABLE `settings` ADD `passkeys` TINYINT(1) NULL DEFAULT '0' AFTER `2fa_userchange`;"; +// allow passkey login only +$upgrade_queries["1.6.40"][] = "ALTER TABLE `users` ADD `passkey_only` TINYINT(1) NOT NULL DEFAULT '0' AFTER `authMethod`;"; +// passkey table +$upgrade_queries["1.6.40"][] = "CREATE TABLE `passkeys` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(11) NOT NULL, + `credentialId` text NOT NULL, + `keyId` text NOT NULL, + `credential` text NOT NULL, + `comment` text, + `created` timestamp NULL DEFAULT NULL, + `used` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + CONSTRAINT `user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8;"; \ No newline at end of file diff --git a/functions/version.php b/functions/version.php index 30123c07f46ceb73b51ed14632f632a08e132e42..8a8489b18650c53f7eb7eaab540cbeb53efc104f 100644 --- a/functions/version.php +++ b/functions/version.php @@ -2,11 +2,11 @@ /* set latest version */ define("VERSION", "1.6"); //decimal release version e.g 1.32 /* set latest version */ -define("VERSION_VISIBLE", "1.6.0"); //visible version in footer e.g 1.3.2 +define("VERSION_VISIBLE", "1.6.1"); //visible version in footer e.g 1.3.2 /* set latest revision */ -define("REVISION", "001"); //increment on static content changes (js/css) or point releases to avoid caching issues +define("REVISION", "003"); //increment on static content changes (js/css) or point releases to avoid caching issues /* set last possible upgrade */ -define("LAST_POSSIBLE", "1.19"); //minimum required version to be able to upgrade +define("LAST_POSSIBLE", "1.4"); //minimum required version to be able to upgrade /* set published - hide dbversion in footer */ define("PUBLISHED", true); //hide dbversion in footer diff --git a/index.php b/index.php index a272f19bd22434879fc3c66fafd5f355bedbc9fd..87b94b4cffe6ba16c5e34f85326fcbf8c4c5a533 100755 --- a/index.php +++ b/index.php @@ -72,9 +72,14 @@ else { <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> - <meta name="Description" content=""> <meta name="title" content="<?php print $title = $User->get_site_title ($_GET); ?>"> + <?php if(defined('IS_DEMO')) { ?> + <meta name="Description" content="phpIPAM demo page. phpIPAM is an open-source web IP address management application. Its goal is to provide light and simple IP address management application. It is ajax-based using jQuery libraries, it uses php scripts and javascript and some HTML5/CSS3 features. More info on phpipam website."> + <meta name="robots" content="index, follow"> + <?php } else { ?> <meta name="robots" content="noindex, nofollow"> + <meta name="Description" content=""> + <?php } ?> <meta http-equiv="X-UA-Compatible" content="IE=9" > <meta name="viewport" content="width=device-width, initial-scale=0.7, maximum-scale=1, user-scalable=yes"> @@ -104,7 +109,7 @@ else { <?php } ?> <!-- js --> - <script src="js/jquery-3.5.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> + <script src="js/jquery-3.7.1.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <script src="js/jclock.jquery.js?v=<?php print SCRIPT_PREFIX; ?>"></script> <?php if($_GET['page']=="login" || $_GET['page']=="request_ip") { ?> <script src="js/login.js?v=<?php print SCRIPT_PREFIX; ?>"></script> @@ -129,6 +134,21 @@ else { <!-- jQuery UI --> <script src="js/jquery-ui-1.12.1.custom.min.js?v=<?php print SCRIPT_PREFIX; ?>"></script> + <?php if(defined('IS_DEMO')) { ?> + <!-- GA --> + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-11778671-10']); + _gaq.push(['_trackPageview']); + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> + <?php } ?> + </head> <!-- body --> diff --git a/js/jquery-3.5.1.min.js b/js/jquery-3.5.1.min.js deleted file mode 100644 index b0614034ad3a95e4ae9f53c2b015eeb3e8d68bde..0000000000000000000000000000000000000000 --- a/js/jquery-3.5.1.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&j.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(D),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(D).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ee(){return!1}function Se(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function ke(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)ke(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Ae(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,Ce)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=Te.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click",Ce),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Ae(this,e,Se),!1},trigger:function(){return Ae(this,e),!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return ke(this,e,t,n,r)},one:function(e,t,n,r){return ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){S.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function Pe(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&De.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),Pe(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),Le)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,He),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(je,""),u,l))}return n}function Re(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Oe(o[r],a[r]);else Oe(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Pe(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Me=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ie=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},We=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Fe=new RegExp(ne.join("|"),"i");function Be(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ie(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Me.test(a)&&Fe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=3<parseInt(r.height),re.removeChild(e)),a}}))}();var _e=["Webkit","Moz","ms"],ze=E.createElement("div").style,Ue={};function Xe(e){var t=S.cssProps[e]||Ue[e];return t||(e in ze?e:Ue[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=_e.length;while(n--)if((e=_e[n]+t)in ze)return e}(e)||e)}var Ve=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Ze(e,t,n){var r=Ie(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Me.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(i?"border":"content"),o,r,a)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Ge.test(t),l=e.style;if(u||(t=Xe(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Ge.test(t)||(t=Xe(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ve.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,u,n):We(e,Ye,function(){return Ze(e,u,n)})},set:function(e,t,n){var r,i=Ie(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Ke(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Ke(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Je(0,t,s)}}}),S.cssHooks.marginLeft=$e(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Je)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ie(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=et).prototype={constructor:et,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=et.prototype.init,S.fx.step={};var tt,nt,rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(st):C.setTimeout(st,S.fx.interval),S.fx.tick())}function ut(){return C.setTimeout(function(){tt=void 0}),tt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(o,e,t){var n,a,r=0,i=ft.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=tt||ut(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:tt||ut(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=ft.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ct,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ct(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=ft(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&at.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(lt(r,!0),e,t,n)}}),S.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),tt=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){nt||(nt=!0,st())},S.fx.stop=function(){nt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},rt=E.createElement("input"),it=E.createElement("select").appendChild(E.createElement("option")),rt.type="checkbox",y.checkOn=""!==rt.value,y.optSelected=it.selected,(rt=E.createElement("input")).value="t",rt.type="radio",y.radioValue="t"===rt.value;var pt,dt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=dt[t]||S.find.attr;dt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=dt[o],dt[o]=r,r=null!=a(e,t,n)?o:null,dt[o]=i),r}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(P)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,yt(this)))});if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,yt(this)))});if(!arguments.length)return this.attr("class","");if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,yt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=mt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=yt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+vt(yt(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(xt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:vt(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!bt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,bt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,wt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,wt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var Tt=C.location,Ct={guid:Date.now()},Et=/\?/;S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t};var St=/\[\]$/,kt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Dt(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||St.test(n)?i(n,t):Dt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)Dt(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Dt(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var jt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Mt={},It="*/".concat("*"),Wt=E.createElement("a");function Ft(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Bt(t,i,o,a){var s={},u=t===Mt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function $t(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Wt.href=Tt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,S.ajaxSettings),t):$t(S.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Ht.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Tt.href)+"").replace(Pt,Tt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Wt.protocol+"//"+Wt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Bt(Rt,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ot.test(v.type),f=v.url.replace(qt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(jt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Et.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Lt,"$1"),o=(Et.test(f)?"&":"?")+"_="+Ct.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+It+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Bt(Mt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=S.ajaxSettings.xhr();y.cors=!!zt&&"withCredentials"in zt,y.ajax=zt=!!zt,S.ajaxTransport(function(i){var o,a;if(y.cors||zt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(_t[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=vt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Yt=C.jQuery,Qt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Qt),e&&C.jQuery===S&&(C.jQuery=Yt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S}); diff --git a/js/jquery-3.7.1.min.js b/js/jquery-3.7.1.min.js new file mode 100644 index 0000000000000000000000000000000000000000..798cc8bf740f0986ec5c642ba0d9a249be08a23f --- /dev/null +++ b/js/jquery-3.7.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce}); \ No newline at end of file diff --git a/js/leaflet.js b/js/leaflet.js index 21f499c3e94160aafe5f6dfcae19b8e5b495cdff..38b7a776e8a46a7cecc17ba2f48244941e410787 100644 --- a/js/leaflet.js +++ b/js/leaflet.js @@ -3,4 +3,3 @@ * (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade */ !function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i(t.L={})}(this,function(t){"use strict";function h(t){for(var i,e,n=1,o=arguments.length;n<o;n++)for(i in e=arguments[n])t[i]=e[i];return t}var s=Object.create||function(t){return i.prototype=t,new i};function i(){}function p(t,i){var e=Array.prototype.slice;if(t.bind)return t.bind.apply(t,e.call(arguments,1));var n=e.call(arguments,2);return function(){return t.apply(i,n.length?n.concat(e.call(arguments)):arguments)}}var e=0;function m(t){return t._leaflet_id=t._leaflet_id||++e,t._leaflet_id}function n(t,i,e){var n,o,s=function(){n=!1,o&&(r.apply(e,o),o=!1)},r=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(s,i),n=!0)};return r}function o(t,i,e){var n=i[1],o=i[0],s=n-o;return t===n&&e?t:((t-o)%s+s)%s+o}function a(){return!1}function r(t,i){var e=Math.pow(10,void 0===i?6:i);return Math.round(t*e)/e}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function l(t){return u(t).split(/\s+/)}function c(t,i){for(var e in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?s(t.options):{}),i)t.options[e]=i[e];return t.options}function _(t,i,e){var n=[];for(var o in t)n.push(encodeURIComponent(e?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(i&&-1!==i.indexOf("?")?"&":"?")+n.join("&")}var d=/\{ *([\w_-]+) *\}/g;function f(t,n){return t.replace(d,function(t,i){var e=n[i];if(void 0===e)throw new Error("No value provided for variable "+t);return"function"==typeof e&&(e=e(n)),e})}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,i){for(var e=0;e<t.length;e++)if(t[e]===i)return e;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function P(t){var i=+new Date,e=Math.max(0,16-(i-w));return w=i+e,window.setTimeout(t,e)}var b=window.requestAnimationFrame||x("RequestAnimationFrame")||P,T=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function M(t,i,e){if(!e||b!==P)return b.call(window,p(t,i));t.call(i)}function z(t){t&&T.call(window,t)}var C={extend:h,create:s,bind:p,lastId:e,stamp:m,throttle:n,wrapNum:o,falseFn:a,formatNum:r,trim:u,splitWords:l,setOptions:c,getParamString:_,template:f,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:b,cancelFn:T,requestAnimFrame:M,cancelAnimFrame:z};function S(){}S.extend=function(t){function i(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var e=i.__super__=this.prototype,n=s(e);for(var o in(n.constructor=i).prototype=n,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(i[o]=this[o]);return t.statics&&(h(i,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"==typeof L||!L||!L.Mixin)return;t=g(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}(t.includes),h.apply(null,[n].concat(t.includes)),delete t.includes),n.options&&(t.options=h(s(n.options),t.options)),h(n,t),n._initHooks=[],n.callInitHooks=function(){if(!this._initHooksCalled){e.callInitHooks&&e.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=n._initHooks.length;t<i;t++)n._initHooks[t].call(this)}},i},S.include=function(t){return h(this.prototype,t),this},S.mergeOptions=function(t){return h(this.prototype.options,t),this},S.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),e="function"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(e),this};var Z={on:function(t,i,e){if("object"==typeof t)for(var n in t)this._on(n,t[n],i);else for(var o=0,s=(t=l(t)).length;o<s;o++)this._on(t[o],i,e);return this},off:function(t,i,e){if(t)if("object"==typeof t)for(var n in t)this._off(n,t[n],i);else for(var o=0,s=(t=l(t)).length;o<s;o++)this._off(t[o],i,e);else delete this._events;return this},_on:function(t,i,e){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),e===this&&(e=void 0);for(var o={fn:i,ctx:e},s=n,r=0,a=s.length;r<a;r++)if(s[r].fn===i&&s[r].ctx===e)return;s.push(o)},_off:function(t,i,e){var n,o,s;if(this._events&&(n=this._events[t]))if(i){if(e===this&&(e=void 0),n)for(o=0,s=n.length;o<s;o++){var r=n[o];if(r.ctx===e&&r.fn===i)return r.fn=a,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(o,1)}}else{for(o=0,s=n.length;o<s;o++)n[o].fn=a;delete this._events[t]}},fire:function(t,i,e){if(!this.listens(t,e))return this;var n=h({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,r=o.length;s<r;s++){var a=o[s];a.fn.call(a.ctx||this,n)}this._firingCount--}}return e&&this._propagateEvent(n),this},listens:function(t,i){var e=this._events&&this._events[t];if(e&&e.length)return!0;if(i)for(var n in this._eventParents)if(this._eventParents[n].listens(t,i))return!0;return!1},once:function(t,i,e){if("object"==typeof t){for(var n in t)this.once(n,t[n],i);return this}var o=p(function(){this.off(t,i,e).off(t,o,e)},this);return this.on(t,i,e).on(t,o,e)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[m(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[m(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,h({layer:t.target,propagatedFrom:t.target},t),!0)}};Z.addEventListener=Z.on,Z.removeEventListener=Z.clearAllEventListeners=Z.off,Z.addOneTimeEventListener=Z.once,Z.fireEvent=Z.fire,Z.hasEventListeners=Z.listens;var E=S.extend(Z);function k(t,i,e){this.x=e?Math.round(t):t,this.y=e?Math.round(i):i}var B=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function A(t,i,e){return t instanceof k?t:g(t)?new k(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new k(t.x,t.y):new k(t,i,e)}function I(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function O(t,i){return!t||t instanceof I?t:new I(t,i)}function R(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function N(t,i){return t instanceof R?t:new R(t,i)}function D(t,i,e){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,void 0!==e&&(this.alt=+e)}function j(t,i,e){return t instanceof D?t:g(t)&&"object"!=typeof t[0]?3===t.length?new D(t[0],t[1],t[2]):2===t.length?new D(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new D(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===i?null:new D(t,i,e)}k.prototype={clone:function(){return new k(this.x,this.y)},add:function(t){return this.clone()._add(A(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(A(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new k(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new k(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=B(this.x),this.y=B(this.y),this},distanceTo:function(t){var i=(t=A(t)).x-this.x,e=t.y-this.y;return Math.sqrt(i*i+e*e)},equals:function(t){return(t=A(t)).x===this.x&&t.y===this.y},contains:function(t){return t=A(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+r(this.x)+", "+r(this.y)+")"}},I.prototype={extend:function(t){return t=A(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new k((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new k(this.min.x,this.max.y)},getTopRight:function(){return new k(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,e;return(t=("number"==typeof t[0]||t instanceof k?A:O)(t))instanceof I?(i=t.min,e=t.max):i=e=t,i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=O(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>=i.x&&n.x<=e.x,r=o.y>=i.y&&n.y<=e.y;return s&&r},overlaps:function(t){t=O(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>i.x&&n.x<e.x,r=o.y>i.y&&n.y<e.y;return s&&r},isValid:function(){return!(!this.min||!this.max)}},R.prototype={extend:function(t){var i,e,n=this._southWest,o=this._northEast;if(t instanceof D)e=i=t;else{if(!(t instanceof R))return t?this.extend(j(t)||N(t)):this;if(i=t._southWest,e=t._northEast,!i||!e)return this}return n||o?(n.lat=Math.min(i.lat,n.lat),n.lng=Math.min(i.lng,n.lng),o.lat=Math.max(e.lat,o.lat),o.lng=Math.max(e.lng,o.lng)):(this._southWest=new D(i.lat,i.lng),this._northEast=new D(e.lat,e.lng)),this},pad:function(t){var i=this._southWest,e=this._northEast,n=Math.abs(i.lat-e.lat)*t,o=Math.abs(i.lng-e.lng)*t;return new R(new D(i.lat-n,i.lng-o),new D(e.lat+n,e.lng+o))},getCenter:function(){return new D((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new D(this.getNorth(),this.getWest())},getSouthEast:function(){return new D(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=("number"==typeof t[0]||t instanceof D||"lat"in t?j:N)(t);var i,e,n=this._southWest,o=this._northEast;return t instanceof R?(i=t.getSouthWest(),e=t.getNorthEast()):i=e=t,i.lat>=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=N(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=i.lat&&n.lat<=e.lat,r=o.lng>=i.lng&&n.lng<=e.lng;return s&&r},overlaps:function(t){t=N(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>i.lat&&n.lat<e.lat,r=o.lng>i.lng&&n.lng<e.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return!!t&&(t=N(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i))},isValid:function(){return!(!this._southWest||!this._northEast)}};var W,H={latLngToPoint:function(t,i){var e=this.projection.project(t),n=this.scale(i);return this.transformation._transform(e,n)},pointToLatLng:function(t,i){var e=this.scale(i),n=this.transformation.untransform(t,e);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,e=this.scale(t);return new I(this.transformation.transform(i.min,e),this.transformation.transform(i.max,e))},infinite:!(D.prototype={equals:function(t,i){return!!t&&(t=j(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===i?1e-9:i))},toString:function(t){return"LatLng("+r(this.lat,t)+", "+r(this.lng,t)+")"},distanceTo:function(t){return F.distance(this,j(t))},wrap:function(){return F.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,e=i/Math.cos(Math.PI/180*this.lat);return N([this.lat-i,this.lng-e],[this.lat+i,this.lng+e])},clone:function(){return new D(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var i=this.wrapLng?o(t.lng,this.wrapLng,!0):t.lng;return new D(this.wrapLat?o(t.lat,this.wrapLat,!0):t.lat,i,t.alt)},wrapLatLngBounds:function(t){var i=t.getCenter(),e=this.wrapLatLng(i),n=i.lat-e.lat,o=i.lng-e.lng;if(0==n&&0==o)return t;var s=t.getSouthWest(),r=t.getNorthEast();return new R(new D(s.lat-n,s.lng-o),new D(r.lat-n,r.lng-o))}},F=h({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var e=Math.PI/180,n=t.lat*e,o=i.lat*e,s=Math.sin((i.lat-t.lat)*e/2),r=Math.sin((i.lng-t.lng)*e/2),a=s*s+Math.cos(n)*Math.cos(o)*r*r,h=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*h}}),U=6378137,V={R:U,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,e=this.MAX_LATITUDE,n=Math.max(Math.min(e,t.lat),-e),o=Math.sin(n*i);return new k(this.R*t.lng*i,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var i=180/Math.PI;return new D((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:new I([-(W=U*Math.PI),-W],[W,W])};function q(t,i,e,n){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=i,this._c=e,this._d=n}function G(t,i,e,n){return new q(t,i,e,n)}q.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new k((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};var K,Y=h({},F,{code:"EPSG:3857",projection:V,transformation:G(K=.5/(Math.PI*V.R),.5,-K,.5)}),X=h({},Y,{code:"EPSG:900913"});function J(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(t,i){for(var e,n,o,s,r="",a=0,h=t.length;a<h;a++){for(e=0,n=(o=t[a]).length;e<n;e++)r+=(e?"L":"M")+(s=o[e]).x+" "+s.y;r+=i?Zt?"z":"x":""}return r||"M0 0"}var Q=document.documentElement.style,tt="ActiveXObject"in window,it=tt&&!document.addEventListener,et="msLaunchUri"in navigator&&!("documentMode"in document),nt=kt("webkit"),ot=kt("android"),st=kt("android 2")||kt("android 3"),rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),at=ot&&kt("Google")&&rt<537&&!("AudioNode"in window),ht=!!window.opera,ut=!et&&kt("chrome"),lt=kt("gecko")&&!nt&&!ht&&!tt,ct=!ut&&kt("safari"),_t=kt("phantom"),dt="OTransition"in Q,pt=0===navigator.platform.indexOf("Win"),mt=tt&&"transition"in Q,ft="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!st,gt="MozPerspective"in Q,vt=!window.L_DISABLE_3D&&(mt||ft||gt)&&!dt&&!_t,yt="undefined"!=typeof orientation||kt("mobile"),xt=yt&&nt,wt=yt&&ft,Pt=!window.PointerEvent&&window.MSPointerEvent,Lt=!(!window.PointerEvent&&!Pt),bt=!window.L_NO_TOUCH&&(Lt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Tt=yt&&ht,Mt=yt&<,zt=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Ct=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",a,i),window.removeEventListener("testPassiveEventSupport",a,i)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Zt=!(!document.createElementNS||!J("svg").createSVGRect),Et=!Zt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}();function kt(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var Bt={ie:tt,ielt9:it,edge:et,webkit:nt,android:ot,android23:st,androidStock:at,opera:ht,chrome:ut,gecko:lt,safari:ct,phantom:_t,opera12:dt,win:pt,ie3d:mt,webkit3d:ft,gecko3d:gt,any3d:vt,mobile:yt,mobileWebkit:xt,mobileWebkit3d:wt,msPointer:Pt,pointer:Lt,touch:bt,mobileOpera:Tt,mobileGecko:Mt,retina:zt,passiveEvents:Ct,canvas:St,svg:Zt,vml:Et},At=Pt?"MSPointerDown":"pointerdown",It=Pt?"MSPointerMove":"pointermove",Ot=Pt?"MSPointerUp":"pointerup",Rt=Pt?"MSPointerCancel":"pointercancel",Nt={},Dt=!1;function jt(t,i,e,n){function o(t){Ut(t,r)}var s,r,a,h,u,l,c,_;function d(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Ut(t,h)}return"touchstart"===i?(u=t,l=e,c=n,_=p(function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ri(t),Ut(t,l)}),u["_leaflet_touchstart"+c]=_,u.addEventListener(At,_,!1),Dt||(document.addEventListener(At,Wt,!0),document.addEventListener(It,Ht,!0),document.addEventListener(Ot,Ft,!0),document.addEventListener(Rt,Ft,!0),Dt=!0)):"touchmove"===i?(h=e,(a=t)["_leaflet_touchmove"+n]=d,a.addEventListener(It,d,!1)):"touchend"===i&&(r=e,(s=t)["_leaflet_touchend"+n]=o,s.addEventListener(Ot,o,!1),s.addEventListener(Rt,o,!1)),this}function Wt(t){Nt[t.pointerId]=t}function Ht(t){Nt[t.pointerId]&&(Nt[t.pointerId]=t)}function Ft(t){delete Nt[t.pointerId]}function Ut(t,i){for(var e in t.touches=[],Nt)t.touches.push(Nt[e]);t.changedTouches=[t],i(t)}var Vt=Pt?"MSPointerDown":Lt?"pointerdown":"touchstart",qt=Pt?"MSPointerUp":Lt?"pointerup":"touchend",Gt="_leaflet_";var Kt,Yt,Xt,Jt,$t,Qt,ti=fi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ii=fi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ei="webkitTransition"===ii||"OTransition"===ii?ii+"End":"transitionend";function ni(t){return"string"==typeof t?document.getElementById(t):t}function oi(t,i){var e,n=t.style[i]||t.currentStyle&&t.currentStyle[i];return n&&"auto"!==n||!document.defaultView||(n=(e=document.defaultView.getComputedStyle(t,null))?e[i]:null),"auto"===n?null:n}function si(t,i,e){var n=document.createElement(t);return n.className=i||"",e&&e.appendChild(n),n}function ri(t){var i=t.parentNode;i&&i.removeChild(t)}function ai(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function hi(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function ui(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function li(t,i){if(void 0!==t.classList)return t.classList.contains(i);var e=pi(t);return 0<e.length&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e)}function ci(t,i){var e;if(void 0!==t.classList)for(var n=l(i),o=0,s=n.length;o<s;o++)t.classList.add(n[o]);else li(t,i)||di(t,((e=pi(t))?e+" ":"")+i)}function _i(t,i){void 0!==t.classList?t.classList.remove(i):di(t,u((" "+pi(t)+" ").replace(" "+i+" "," ")))}function di(t,i){void 0===t.className.baseVal?t.className=i:t.className.baseVal=i}function pi(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function mi(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&function(t,i){var e=!1,n="DXImageTransform.Microsoft.Alpha";try{e=t.filters.item(n)}catch(t){if(1===i)return}i=Math.round(100*i),e?(e.Enabled=100!==i,e.Opacity=i):t.style.filter+=" progid:"+n+"(opacity="+i+")"}(t,i)}function fi(t){for(var i=document.documentElement.style,e=0;e<t.length;e++)if(t[e]in i)return t[e];return!1}function gi(t,i,e){var n=i||new k(0,0);t.style[ti]=(mt?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(e?" scale("+e+")":"")}function vi(t,i){t._leaflet_pos=i,vt?gi(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function yi(t){return t._leaflet_pos||new k(0,0)}function xi(){zi(window,"dragstart",Ri)}function wi(){Si(window,"dragstart",Ri)}function Pi(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Li(),Qt=($t=t).style.outline,t.style.outline="none",zi(window,"keydown",Li))}function Li(){$t&&($t.style.outline=Qt,Qt=$t=void 0,Si(window,"keydown",Li))}function bi(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function Ti(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}Jt="onselectstart"in document?(Xt=function(){zi(window,"selectstart",Ri)},function(){Si(window,"selectstart",Ri)}):(Yt=fi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Xt=function(){var t;Yt&&(t=document.documentElement.style,Kt=t[Yt],t[Yt]="none")},function(){Yt&&(document.documentElement.style[Yt]=Kt,Kt=void 0)});var Mi={TRANSFORM:ti,TRANSITION:ii,TRANSITION_END:ei,get:ni,getStyle:oi,create:si,remove:ri,empty:ai,toFront:hi,toBack:ui,hasClass:li,addClass:ci,removeClass:_i,setClass:di,getClass:pi,setOpacity:mi,testProp:fi,setTransform:gi,setPosition:vi,getPosition:yi,disableTextSelection:Xt,enableTextSelection:Jt,disableImageDrag:xi,enableImageDrag:wi,preventOutline:Pi,restoreOutline:Li,getSizedParentNode:bi,getScale:Ti};function zi(t,i,e,n){if("object"==typeof i)for(var o in i)ki(t,o,i[o],e);else for(var s=0,r=(i=l(i)).length;s<r;s++)ki(t,i[s],e,n);return this}var Ci="_leaflet_events";function Si(t,i,e,n){if("object"==typeof i)for(var o in i)Bi(t,o,i[o],e);else if(i)for(var s=0,r=(i=l(i)).length;s<r;s++)Bi(t,i[s],e,n);else{for(var a in t[Ci])Bi(t,a,t[Ci][a]);delete t[Ci]}return this}function Zi(){return Lt&&(!et&&!ct)}var Ei={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ki(i,t,e,n){var o=t+m(e)+(n?"_"+m(n):"");if(i[Ci]&&i[Ci][o])return this;var s,r,a,h,u,l,c=function(t){return e.call(n||i,t||window.event)},_=c;function d(t){if(Lt){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(1<t.touches.length)return;var i=Date.now(),e=i-(h||i);u=t.touches?t.touches[0]:t,l=0<e&&e<=250,h=i}function p(t){if(l&&!u.cancelBubble){if(Lt){if("mouse"===t.pointerType)return;var i,e,n={};for(e in u)i=u[e],n[e]=i&&i.bind?i.bind(u):i;u=n}u.type="dblclick",u.button=0,r(u),h=null}}Lt&&0===t.indexOf("touch")?jt(i,t,c,o):bt&&"dblclick"===t&&!Zi()?(r=c,l=!1,(s=i)[Gt+Vt+(a=o)]=d,s[Gt+qt+a]=p,s[Gt+"dblclick"+a]=r,s.addEventListener(Vt,d,!!Ct&&{passive:!1}),s.addEventListener(qt,p,!!Ct&&{passive:!1}),s.addEventListener("dblclick",r,!1)):"addEventListener"in i?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?i.addEventListener(Ei[t]||t,c,!!Ct&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(c=function(t){t=t||window.event,Vi(i,t)&&_(t)},i.addEventListener(Ei[t],c,!1)):i.addEventListener(t,_,!1):"attachEvent"in i&&i.attachEvent("on"+t,c),i[Ci]=i[Ci]||{},i[Ci][o]=c}function Bi(t,i,e,n){var o,s,r,a,h,u,l,c,_=i+m(e)+(n?"_"+m(n):""),d=t[Ci]&&t[Ci][_];if(!d)return this;Lt&&0===i.indexOf("touch")?(c=(u=t)["_leaflet_"+(l=i)+_],"touchstart"===l?u.removeEventListener(At,c,!1):"touchmove"===l?u.removeEventListener(It,c,!1):"touchend"===l&&(u.removeEventListener(Ot,c,!1),u.removeEventListener(Rt,c,!1))):bt&&"dblclick"===i&&!Zi()?(r=(o=t)[Gt+Vt+(s=_)],a=o[Gt+qt+s],h=o[Gt+"dblclick"+s],o.removeEventListener(Vt,r,!!Ct&&{passive:!1}),o.removeEventListener(qt,a,!!Ct&&{passive:!1}),o.removeEventListener("dblclick",h,!1)):"removeEventListener"in t?t.removeEventListener(Ei[i]||i,d,!1):"detachEvent"in t&&t.detachEvent("on"+i,d),t[Ci][_]=null}function Ai(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Ui(t),this}function Ii(t){return ki(t,"wheel",Ai),this}function Oi(t){return zi(t,"mousedown touchstart dblclick",Ai),ki(t,"click",Fi),this}function Ri(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ni(t){return Ri(t),Ai(t),this}function Di(t,i){if(!i)return new k(t.clientX,t.clientY);var e=Ti(i),n=e.boundingClientRect;return new k((t.clientX-n.left)/e.x-i.clientLeft,(t.clientY-n.top)/e.y-i.clientTop)}var ji=pt&&ut?2*window.devicePixelRatio:lt?window.devicePixelRatio:1;function Wi(t){return et?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/ji:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var Hi={};function Fi(t){Hi[t.type]=!0}function Ui(t){var i=Hi[t.type];return Hi[t.type]=!1,i}function Vi(t,i){var e=i.relatedTarget;if(!e)return!0;try{for(;e&&e!==t;)e=e.parentNode}catch(t){return!1}return e!==t}var qi={on:zi,off:Si,stopPropagation:Ai,disableScrollPropagation:Ii,disableClickPropagation:Oi,preventDefault:Ri,stop:Ni,getMousePosition:Di,getWheelDelta:Wi,fakeStop:Fi,skipped:Ui,isExternalTarget:Vi,addListener:zi,removeListener:Si},Gi=E.extend({run:function(t,i,e,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=e||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=yi(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=M(this._animate,this),this._step()},_step:function(t){var i=new Date-this._startTime,e=1e3*this._duration;i<e?this._runFrame(this._easeOut(i/e),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var e=this._startPos.add(this._offset.multiplyBy(t));i&&e._round(),vi(this._el,e),this.fire("step")},_complete:function(){z(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ki=E.extend({options:{crs:Y,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=c(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=p(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),void 0!==i.zoom&&(this._zoom=this._limitZoom(i.zoom)),i.center&&void 0!==i.zoom&&this.setView(j(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ii&&vt&&!Tt&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),zi(this._proxy,ei,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,e){if((i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(j(t),i,this.options.maxBounds),e=e||{},this._stop(),this._loaded&&!e.reset&&!0!==e)&&(void 0!==e.animate&&(e.zoom=h({animate:e.animate},e.zoom),e.pan=h({animate:e.animate,duration:e.duration},e.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,e.zoom):this._tryAnimatedPan(t,e.pan)))return clearTimeout(this._sizeTimer),this;return this._resetView(t,i),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(vt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(vt?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,e){var n=this.getZoomScale(i),o=this.getSize().divideBy(2),s=(t instanceof k?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),r=this.containerPointToLatLng(o.add(s));return this.setView(r,i,{zoom:e})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():N(t);var e=A(i.paddingTopLeft||i.padding||[0,0]),n=A(i.paddingBottomRight||i.padding||[0,0]),o=this.getBoundsZoom(t,!1,e.add(n));if((o="number"==typeof i.maxZoom?Math.min(i.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var s=n.subtract(e).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(r.add(a).divideBy(2).add(s),o),zoom:o}},fitBounds:function(t,i){if(!(t=N(t)).isValid())throw new Error("Bounds are not valid.");var e=this._getBoundsCenterZoom(t,i);return this.setView(e.center,e.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){return i=i||{},(t=A(t).round()).x||t.y?(!0===i.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new Gi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),!1!==i.animate?(ci(this._mapPane,"leaflet-pan-anim"),e=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend");var e},flyTo:function(s,r,t){if(!1===(t=t||{}).animate||!vt)return this.setView(s,r,t);this._stop();var a=this.project(this.getCenter()),h=this.project(s),i=this.getSize(),u=this._zoom;s=j(s),r=void 0===r?u:r;var l=Math.max(i.x,i.y),n=l*this.getZoomScale(u,r),c=h.distanceTo(a)||1,_=1.42,o=_*_;function e(t){var i=(n*n-l*l+(t?-1:1)*o*o*c*c)/(2*(t?n:l)*o*c),e=Math.sqrt(i*i+1)-i;return e<1e-9?-18:Math.log(e)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}var m=e(0);function f(t){return l*(p(m)*(d(i=m+_*t)/p(i))-d(m))/o;var i}var g=Date.now(),v=(e(1)-m)/_,y=t.duration?1e3*t.duration:1e3*v*.8;return this._moveStart(!0,t.noMoveStart),function t(){var i,e,n=(Date.now()-g)/y,o=(i=n,(1-Math.pow(1-i,1.5))*v);n<=1?(this._flyToFrame=M(t,this),this._move(this.unproject(a.add(h.subtract(a).multiplyBy(f(o)/c)),u),this.getScaleZoom(l/(e=o,l*(p(m)/p(m+_*e))),u),{flyTo:!0})):this._move(s,r)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,i){var e=this._getBoundsCenterZoom(t,i);return this.flyTo(e.center,e.zoom,i)},setMaxBounds:function(t){return(t=N(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter(),n=this._limitCenter(e,this._zoom,N(t));return e.equals(n)||this.panTo(n,i),this._enforcingBounds=!1,this},panInside:function(t,i){var e,n,o=A((i=i||{}).paddingTopLeft||i.padding||[0,0]),s=A(i.paddingBottomRight||i.padding||[0,0]),r=this.getCenter(),a=this.project(r),h=this.project(t),u=this.getPixelBounds(),l=u.getSize().divideBy(2),c=O([u.min.add(o),u.max.subtract(s)]);return c.contains(h)||(this._enforcingBounds=!0,e=a.subtract(h),n=A(h.x+e.x,h.y+e.y),(h.x<c.min.x||h.x>c.max.x)&&(n.x=a.x-e.x,0<e.x?n.x+=l.x-o.x:n.x-=l.x-s.x),(h.y<c.min.y||h.y>c.max.y)&&(n.y=a.y-e.y,0<e.y?n.y+=l.y-o.y:n.y-=l.y-s.y),this.panTo(this.unproject(n),i),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=h({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var e=this.getSize(),n=i.divideBy(2).round(),o=e.divideBy(2).round(),s=n.subtract(o);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(p(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:e})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=h({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=p(this._handleGeolocationResponse,this),e=p(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,e,t):navigator.geolocation.getCurrentPosition(i,e,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var i=t.code,e=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){var i,e=new D(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),o=this._locateOptions;o.setView&&(i=this.getBoundsZoom(n),this.setView(e,o.maxZoom?Math.min(i,o.maxZoom):i));var s={latlng:e,bounds:n,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)},addHandler:function(t,i){if(!i)return this;var e=this[t]=new i(this);return this._handlers.push(e),this.options[t]&&e.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ri(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ri(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var e=si("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane);return t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new R(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=N(t),e=A(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(e),u=O(this.project(a,n),this.project(r,n)).getSize(),l=vt?this.options.zoomSnap:1,c=h.x/u.x,_=h.y/u.y,d=i?Math.max(c,_):Math.min(c,_),n=this.getScaleZoom(d,n);return l&&(n=Math.round(n/(l/100))*(l/100),n=i?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new k(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new I(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=void 0===i?this._zoom:i;var n=e.zoom(t*e.scale(i));return isNaN(n)?1/0:n},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(j(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(A(t),i)},layerPointToLatLng:function(t){var i=A(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){return this.project(j(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(j(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(N(t))},distance:function(t,i){return this.options.crs.distance(j(t),j(i))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(A(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(j(t)))},mouseEventToContainerPoint:function(t){return Di(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=ni(t);if(!i)throw new Error("Map container not found.");if(i._leaflet_id)throw new Error("Map container is already initialized.");zi(i,"scroll",this._onScroll,this),this._containerId=m(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&vt,ci(t,"leaflet-container"+(bt?" leaflet-touch":"")+(zt?" leaflet-retina":"")+(it?" leaflet-oldie":"")+(ct?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=oi(t,"position");"absolute"!==i&&"relative"!==i&&"fixed"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),vi(this._mapPane,new k(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ci(t.markerPane,"leaflet-zoom-hide"),ci(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i){vi(this._mapPane,new k(0,0));var e=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var n=this._zoom!==i;this._moveStart(n,!1)._move(t,i)._moveEnd(n),this.fire("viewreset"),e&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,e){void 0===i&&(i=this._zoom);var n=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){vi(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var i=t?Si:zi;i((this._targets[m(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),vt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){z(this._resizeRequest),this._resizeRequest=M(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var e,n=[],o="mouseout"===i||"mouseover"===i,s=t.target||t.srcElement,r=!1;s;){if((e=this._targets[m(s)])&&("click"===i||"preclick"===i)&&!t._simulated&&this._draggableMoved(e)){r=!0;break}if(e&&e.listens(i,!0)){if(o&&!Vi(s,t))break;if(n.push(e),o)break}if(s===this._container)break;s=s.parentNode}return n.length||r||o||!Vi(s,t)||(n=[this]),n},_handleDOMEvent:function(t){var i;this._loaded&&!Ui(t)&&("mousedown"!==(i=t.type)&&"keypress"!==i&&"keyup"!==i&&"keydown"!==i||Pi(t.target||t.srcElement),this._fireDOMEvent(t,i))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,e){var n;if("click"===t.type&&((n=h({},t)).type="preclick",this._fireDOMEvent(n,n.type,e)),!t._stopped&&(e=(e||[]).concat(this._findEventTargets(t,i))).length){var o=e[0];"contextmenu"===i&&o.listens(i,!0)&&Ri(t);var s,r={originalEvent:t};"keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(s=o.getLatLng&&(!o._radius||o._radius<=10),r.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=s?o.getLatLng():this.layerPointToLatLng(r.layerPoint));for(var a=0;a<e.length;a++)if(e[a].fire(i,r,!0),r.originalEvent._stopped||!1===e[a].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return yi(this._mapPane)||new k(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){return(t&&void 0!==i?this._getNewPixelOrigin(t,i):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var e=this.getSize()._divideBy(2);return this.project(t,i)._subtract(e)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return this.project(t,i)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return O([this.project(t.getSouthWest(),i)._subtract(n),this.project(t.getNorthWest(),i)._subtract(n),this.project(t.getSouthEast(),i)._subtract(n),this.project(t.getNorthEast(),i)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,e){if(!e)return t;var n=this.project(t,i),o=this.getSize().divideBy(2),s=new I(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,e,i);return r.round().equals([0,0])?t:this.unproject(n.add(r),i)},_limitOffset:function(t,i){if(!i)return t;var e=this.getPixelBounds(),n=new I(e.min.add(t),e.max.add(t));return t.add(this._getBoundsOffset(n,i))},_getBoundsOffset:function(t,i,e){var n=O(this.project(i.getNorthEast(),e),this.project(i.getSouthWest(),e)),o=n.min.subtract(t.min),s=n.max.subtract(t.max);return new k(this._rebound(o.x,-s.x),this._rebound(o.y,-s.y))},_rebound:function(t,i){return 0<t+i?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),n=vt?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){_i(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._trunc();return!(!0!==(i&&i.animate)&&!this.getSize().contains(e))&&(this.panBy(e,i),!0)},_createAnimProxy:function(){var t=this._proxy=si("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var i=ti,e=this._proxy.style[i];gi(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ri(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();gi(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom)return!0;if(e=e||{},!this._zoomAnimated||!1===e.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==e.animate&&!this.getSize().contains(o))&&(M(function(){this._moveStart(!0,!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,e,n){this._mapPane&&(e&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,ci(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:n}),setTimeout(p(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&_i(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),M(function(){this._moveEnd(!0)},this))}});function Yi(t){return new Xi(t)}var Xi=S.extend({options:{position:"topright"},initialize:function(t){c(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),n=t._controlCorners[e];return ci(i,"leaflet-control"),-1!==e.indexOf("bottom")?n.insertBefore(i,n.firstChild):n.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(ri(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}});Ki.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var n=this._controlCorners={},o="leaflet-",s=this._controlContainer=si("div",o+"control-container",this._container);function t(t,i){var e=o+t+" "+o+i;n[t+i]=si("div",e,s)}t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ri(this._controlCorners[t]);ri(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ji=Xi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,e,n){return e<n?-1:n<e?1:0}},initialize:function(t,i,e){for(var n in c(this,e),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in i)this._addLayer(i[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Xi.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(m(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){ci(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ci(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):_i(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return _i(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=si("div",t),e=this.options.collapsed;i.setAttribute("aria-haspopup",!0),Oi(i),Ii(i);var n=this._section=si("section",t+"-list");e&&(this._map.on("click",this.collapse,this),ot||zi(i,{mouseenter:this.expand,mouseleave:this.collapse},this));var o=this._layersLink=si("a",t+"-toggle",i);o.href="#",o.title="Layers",bt?(zi(o,"click",Ni),zi(o,"click",this.expand,this)):zi(o,"focus",this.expand,this),e||this.expand(),this._baseLayersList=si("div",t+"-base",n),this._separator=si("div",t+"-separator",n),this._overlaysList=si("div",t+"-overlays",n),i.appendChild(n)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&m(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,e){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:e}),this.options.sortLayers&&this._layers.sort(p(function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ai(this._baseLayersList),ai(this._overlaysList),this._layerControlInputs=[];for(var t,i,e,n=0,o=0;o<this._layers.length;o++)e=this._layers[o],this._addItem(e),i=i||e.overlay,t=t||!e.overlay,n+=e.overlay?0:1;return this.options.hideSingleBase&&(t=t&&1<n,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(m(t.target)),e=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;e&&this._map.fire(e,i)},_createRadioElement:function(t,i){var e='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=e,n.firstChild},_addItem:function(t){var i,e=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=n):i=this._createRadioElement("leaflet-base-layers_"+m(this),n),this._layerControlInputs.push(i),i.layerId=m(t.layer),zi(i,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("div");return e.appendChild(s),s.appendChild(i),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=e.length-1;0<=s;s--)t=e[s],i=this._getLayer(t.layerId).layer,t.checked?n.push(i):t.checked||o.push(i);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,i,e=this._layerControlInputs,n=this._map.getZoom(),o=e.length-1;0<=o;o--)t=e[o],i=this._getLayer(t.layerId).layer,t.disabled=void 0!==i.options.minZoom&&n<i.options.minZoom||void 0!==i.options.maxZoom&&n>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),$i=Xi.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=si("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){var s=si("a",e,n);return s.innerHTML=t,s.href="#",s.title=i,s.setAttribute("role","button"),s.setAttribute("aria-label",i),Oi(s),zi(s,"click",Ni),zi(s,"click",o,this),zi(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";_i(this._zoomInButton,i),_i(this._zoomOutButton,i),!this._disabled&&t._zoom!==t.getMinZoom()||ci(this._zoomOutButton,i),!this._disabled&&t._zoom!==t.getMaxZoom()||ci(this._zoomInButton,i)}});Ki.mergeOptions({zoomControl:!0}),Ki.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new $i,this.addControl(this.zoomControl))});var Qi=Xi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",e=si("div",i),n=this.options;return this._addScales(n,i+"-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=si("div",i,e)),t.imperial&&(this._iScale=si("div",i,e))},_update:function(){var t=this._map,i=t.getSize().y/2,e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i,e,n,o=3.2808399*t;5280<o?(i=o/5280,e=this._getRoundNum(i),this._updateScale(this._iScale,e+" mi",e/i)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),e=t/i;return i*(e=10<=e?10:5<=e?5:3<=e?3:2<=e?2:1)}}),te=Xi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){c(this,t),this._attributions={}},onAdd:function(t){for(var i in(t.attributionControl=this)._container=si("div","leaflet-control-attribution"),Oi(this._container),t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(" | ")}}});Ki.mergeOptions({attributionControl:!0}),Ki.addInitHook(function(){this.options.attributionControl&&(new te).addTo(this)});Xi.Layers=Ji,Xi.Zoom=$i,Xi.Scale=Qi,Xi.Attribution=te,Yi.layers=function(t,i,e){return new Ji(t,i,e)},Yi.zoom=function(t){return new $i(t)},Yi.scale=function(t){return new Qi(t)},Yi.attribution=function(t){return new te(t)};var ie=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});ie.addTo=function(t,i){return t.addHandler(i,this),this};var ee,ne={Events:Z},oe=bt?"touchstart mousedown":"mousedown",se={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},re={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},ae=E.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){c(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(zi(this._dragStartTarget,oe,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ae._dragging===this&&this.finishDrag(),Si(this._dragStartTarget,oe,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var i,e;!t._simulated&&this._enabled&&(this._moved=!1,li(this._element,"leaflet-zoom-anim")||ae._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((ae._dragging=this)._preventOutline&&Pi(this._element),xi(),Xt(),this._moving||(this.fire("down"),i=t.touches?t.touches[0]:t,e=bi(this._element),this._startPoint=new k(i.clientX,i.clientY),this._parentScale=Ti(e),zi(document,re[t.type],this._onMove,this),zi(document,se[t.type],this._onUp,this))))},_onMove:function(t){var i,e;!t._simulated&&this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:((e=new k((i=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,i.clientY)._subtract(this._startPoint)).x||e.y)&&(Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,Ri(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=yi(this._element).subtract(e),ci(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ci(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,z(this._animRequest),this._lastEvent=t,this._animRequest=M(this._updatePosition,this,!0))))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),vi(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in _i(document.body,"leaflet-dragging"),this._lastTarget&&(_i(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),re)Si(document,re[t],this._onMove,this),Si(document,se[t],this._onUp,this);wi(),Jt(),this._moved&&this._moving&&(z(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,ae._dragging=!1}});function he(t,i){if(!i||!t.length)return t.slice();var e=i*i;return t=function(t,i){var e=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(e);n[0]=n[e-1]=1,function t(i,e,n,o,s){var r,a,h,u=0;for(a=o+1;a<=s-1;a++)h=de(i[a],i[o],i[s],!0),u<h&&(r=a,u=h);n<u&&(e[r]=1,t(i,e,n,o,r),t(i,e,n,r,s))}(t,n,i,0,e-1);var o,s=[];for(o=0;o<e;o++)n[o]&&s.push(t[o]);return s}(t=function(t,i){for(var e=[t[0]],n=1,o=0,s=t.length;n<s;n++)(function(t,i){var e=i.x-t.x,n=i.y-t.y;return e*e+n*n})(t[n],t[o])>i&&(e.push(t[n]),o=n);o<s-1&&e.push(t[s-1]);return e}(t,e),e)}function ue(t,i,e){return Math.sqrt(de(t,i,e,!0))}function le(t,i,e,n,o){var s,r,a,h=n?ee:_e(t,e),u=_e(i,e);for(ee=u;;){if(!(h|u))return[t,i];if(h&u)return!1;a=_e(r=ce(t,i,s=h||u,e,o),e),s===h?(t=r,h=a):(i=r,u=a)}}function ce(t,i,e,n,o){var s,r,a=i.x-t.x,h=i.y-t.y,u=n.min,l=n.max;return 8&e?(s=t.x+a*(l.y-t.y)/h,r=l.y):4&e?(s=t.x+a*(u.y-t.y)/h,r=u.y):2&e?(s=l.x,r=t.y+h*(l.x-t.x)/a):1&e&&(s=u.x,r=t.y+h*(u.x-t.x)/a),new k(s,r,o)}function _e(t,i){var e=0;return t.x<i.min.x?e|=1:t.x>i.max.x&&(e|=2),t.y<i.min.y?e|=4:t.y>i.max.y&&(e|=8),e}function de(t,i,e,n){var o,s=i.x,r=i.y,a=e.x-s,h=e.y-r,u=a*a+h*h;return 0<u&&(1<(o=((t.x-s)*a+(t.y-r)*h)/u)?(s=e.x,r=e.y):0<o&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new k(s,r)}function pe(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function me(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),pe(t)}var fe={simplify:he,pointToSegmentDistance:ue,closestPointOnSegment:function(t,i,e){return de(t,i,e)},clipSegment:le,_getEdgeIntersection:ce,_getBitCode:_e,_sqClosestPointOnSegment:de,isFlat:pe,_flat:me};function ge(t,i,e){for(var n,o,s,r,a,h,u,l=[1,4,2,8],c=0,_=t.length;c<_;c++)t[c]._code=_e(t[c],i);for(s=0;s<4;s++){for(h=l[s],n=[],c=0,o=(_=t.length)-1;c<_;o=c++)r=t[c],a=t[o],r._code&h?a._code&h||((u=ce(a,r,h,i,e))._code=_e(u,i),n.push(u)):(a._code&h&&((u=ce(a,r,h,i,e))._code=_e(u,i),n.push(u)),n.push(r));t=n}return t}var ve,ye={clipPolygon:ge},xe={project:function(t){return new k(t.lng,t.lat)},unproject:function(t){return new D(t.y,t.x)},bounds:new I([-180,-90],[180,90])},we={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,e=this.R,n=t.lat*i,o=this.R_MINOR/e,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2),n=-e*Math.log(Math.max(a,1e-10));return new k(t.lng*i*e,n)},unproject:function(t){for(var i,e=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,u=.1;h<15&&1e-7<Math.abs(u);h++)i=s*Math.sin(a),i=Math.pow((1-i)/(1+i),s/2),a+=u=Math.PI/2-2*Math.atan(r*i)-a;return new D(a*e,t.x*e/n)}},Pe={LonLat:xe,Mercator:we,SphericalMercator:V},Le=h({},F,{code:"EPSG:3395",projection:we,transformation:G(ve=.5/(Math.PI*we.R),.5,-ve,.5)}),be=h({},F,{code:"EPSG:4326",projection:xe,transformation:G(1/180,1,-1/180,.5)}),Te=h({},H,{projection:xe,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,n=i.lat-t.lat;return Math.sqrt(e*e+n*n)},infinite:!0});H.Earth=F,H.EPSG3395=Le,H.EPSG3857=Y,H.EPSG900913=X,H.EPSG4326=be,H.Simple=Te;var Me=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[m(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[m(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i,e=t.target;e.hasLayer(this)&&(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents&&(i=this.getEvents(),e.on(i,this),this.once("remove",function(){e.off(i,this)},this)),this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this}))}});Ki.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=m(t);return this._layers[i]||((this._layers[i]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var i=m(t);return this._layers[i]&&(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return!!t&&m(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},_addLayers:function(t){for(var i=0,e=(t=t?g(t)?t:[t]:[]).length;i<e;i++)this.addLayer(t[i])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[m(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=m(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,e=this._getZoomSpan();for(var n in this._zoomBoundLayers)var o=this._zoomBoundLayers[n].options,t=void 0===o.minZoom?t:Math.min(t,o.minZoom),i=void 0===o.maxZoom?i:Math.max(i,o.maxZoom);this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,e!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ze=Me.extend({initialize:function(t,i){var e,n;if(c(this,i),this._layers={},t)for(e=0,n=t.length;e<n;e++)this.addLayer(t[e])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){return!!t&&("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i,e,n=Array.prototype.slice.call(arguments,1);for(i in this._layers)(e=this._layers[i])[t]&&e[t].apply(e,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:m}),Ce=ze.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),ze.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),ze.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new R;for(var i in this._layers){var e=this._layers[i];t.extend(e.getBounds?e.getBounds():e.getLatLng())}return t}}),Se=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){c(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var e=this._getIconUrl(t);if(!e){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(e,i&&"IMG"===i.tagName?i:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,i){var e=this.options,n=e[i+"Size"];"number"==typeof n&&(n=[n,n]);var o=A(n),s=A("shadow"===i&&e.shadowAnchor||e.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(e.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,i){return(i=i||document.createElement("img")).src=t,i},_getIconUrl:function(t){return zt&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var Ze=Se.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return Ze.imagePath||(Ze.imagePath=this._detectIconPath()),(this.options.imagePath||Ze.imagePath)+Se.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=si("div","leaflet-default-icon-path",document.body),i=oi(t,"background-image")||oi(t,"backgroundImage");return document.body.removeChild(t),i=null===i||0!==i.indexOf("url")?"":i.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Ee=ie.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ae(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ci(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&_i(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i,e=this._marker,n=e._map,o=this._marker.options.autoPanSpeed,s=this._marker.options.autoPanPadding,r=yi(e._icon),a=n.getPixelBounds(),h=n.getPixelOrigin(),u=O(a.min._subtract(h).add(s),a.max._subtract(h).subtract(s));u.contains(r)||(i=A((Math.max(u.max.x,r.x)-u.max.x)/(a.max.x-u.max.x)-(Math.min(u.min.x,r.x)-u.min.x)/(a.min.x-u.min.x),(Math.max(u.max.y,r.y)-u.max.y)/(a.max.y-u.max.y)-(Math.min(u.min.y,r.y)-u.min.y)/(a.min.y-u.min.y)).multiplyBy(o),n.panBy(i,{animate:!1}),this._draggable._newPos._add(i),this._draggable._startPos._add(i),vi(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=M(this._adjustPan.bind(this,t)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(z(this._panRequest),this._panRequest=M(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,e=i._shadow,n=yi(i._icon),o=i._map.layerPointToLatLng(n);e&&vi(e,n),i._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){z(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),ke=Me.extend({options:{icon:new Ze,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){c(this,i),this._latlng=j(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=j(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),e=t.icon.createIcon(this._icon),n=!1;e!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(e.title=t.title),"IMG"===e.tagName&&(e.alt=t.alt||"")),ci(e,i),t.keyboard&&(e.tabIndex="0"),this._icon=e,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),s=!1;o!==this._shadow&&(this._removeShadow(),s=!0),o&&(ci(o,i),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&s&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ri(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ri(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&vi(this._icon,t),this._shadow&&vi(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){var t;this.options.interactive&&(ci(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ee&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ee(this),t&&this.dragging.enable()))},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&mi(this._icon,t),this._shadow&&mi(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var Be=Me.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return c(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),Ae=Be.extend({options:{fill:!0,radius:10},initialize:function(t,i){c(this,i),this._latlng=j(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=j(t),this.redraw(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return Be.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,e=this._clickTolerance(),n=[t+e,i+e];this._pxBounds=new I(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var Ie=Ae.extend({initialize:function(t,i,e){if("number"==typeof i&&(i=h({},e,{radius:i})),c(this,i),this._latlng=j(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Be.prototype.setStyle,_project:function(){var t,i,e,n,o,s,r,a,h=this._latlng.lng,u=this._latlng.lat,l=this._map,c=l.options.crs;c.distance===F.distance?(t=Math.PI/180,i=this._mRadius/F.R/t,e=l.project([u+i,h]),n=l.project([u-i,h]),o=e.add(n).divideBy(2),s=l.unproject(o).lat,r=Math.acos((Math.cos(i*t)-Math.sin(u*t)*Math.sin(s*t))/(Math.cos(u*t)*Math.cos(s*t)))/t,!isNaN(r)&&0!==r||(r=i/Math.cos(Math.PI/180*u)),this._point=o.subtract(l.getPixelOrigin()),this._radius=isNaN(r)?0:o.x-l.project([s,h-r]).x,this._radiusY=o.y-e.y):(a=c.unproject(c.project(this._latlng).subtract([this._mRadius,0])),this._point=l.latLngToLayerPoint(this._latlng),this._radius=this._point.x-l.latLngToLayerPoint(a).x),this._updateBounds()}});var Oe=Be.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){c(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i,e,n=1/0,o=null,s=de,r=0,a=this._parts.length;r<a;r++)for(var h=this._parts[r],u=1,l=h.length;u<l;u++){var c=s(t,i=h[u-1],e=h[u],!0);c<n&&(n=c,o=s(t,i,e))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r,a=this._rings[0],h=a.length;if(!h)return null;for(i=t=0;t<h-1;t++)i+=a[t].distanceTo(a[t+1])/2;if(0===i)return this._map.layerPointToLatLng(a[0]);for(n=t=0;t<h-1;t++)if(o=a[t],s=a[t+1],i<(n+=e=o.distanceTo(s)))return r=(n-i)/e,this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=j(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new R,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return pe(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],e=pe(t),n=0,o=t.length;n<o;n++)e?(i[n]=j(t[n]),this._bounds.extend(i[n])):i[n]=this._convertLatLngs(t[n]);return i},_project:function(){var t=new I;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),i=new k(t,t);this._pxBounds=new I([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)])},_projectLatlngs:function(t,i,e){var n,o,s=t[0]instanceof D,r=t.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),e.extend(o[n]);i.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],i,e)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,e,n,o,s=this._parts,r=0,a=0,h=this._rings.length;r<h;r++)for(i=0,e=(o=this._rings[r]).length;i<e-1;i++)(n=le(o[i],o[i+1],t,i,!0))&&(s[a]=s[a]||[],s[a].push(n[0]),n[1]===o[i+1]&&i!==e-2||(s[a].push(n[1]),a++))},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,e=0,n=t.length;e<n;e++)t[e]=he(t[e],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var e,n,o,s,r,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(e=0,s=this._parts.length;e<s;e++)for(n=0,o=(r=(a=this._parts[e]).length)-1;n<r;o=n++)if((i||0!==n)&&ue(t,a[o],a[n])<=h)return!0;return!1}});Oe._flat=me;var Re=Oe.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r,a,h,u=this._rings[0],l=u.length;if(!l)return null;for(t=s=r=a=0,i=l-1;t<l;i=t++)e=u[t],n=u[i],o=e.y*n.x-n.y*e.x,r+=(e.x+n.x)*o,a+=(e.y+n.y)*o,s+=3*o;return h=0===s?u[0]:[r/s,a/s],this._map.layerPointToLatLng(h)},_convertLatLngs:function(t){var i=Oe.prototype._convertLatLngs.call(this,t),e=i.length;return 2<=e&&i[0]instanceof D&&i[0].equals(i[e-1])&&i.pop(),i},_setLatLngs:function(t){Oe.prototype._setLatLngs.call(this,t),pe(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return pe(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new k(i,i),t=new I(t.min.subtract(e),t.max.add(e));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;o<s;o++)(n=ge(this._rings[o],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,e,n,o,s,r,a,h,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(h=(i=this._parts[o]).length)-1;s<h;r=s++)e=i[s],n=i[r],e.y>t.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(u=!u);return u||Oe.prototype._containsPoint.call(this,t,!0)}});var Ne=Ce.extend({initialize:function(t,i){c(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=g(t)?t:t.features;if(o){for(i=0,e=o.length;i<e;i++)((n=o[i]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var r=De(t,s);return r?(r.feature=qe(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=h({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(t){this._setLayerStyle(t,i)},this)},_setLayerStyle:function(t,i){t.setStyle&&("function"==typeof i&&(i=i(t.feature)),t.setStyle(i))}});function De(t,i){var e,n,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,h=[],u=i&&i.pointToLayer,l=i&&i.coordsToLatLng||We;if(!a&&!r)return null;switch(r.type){case"Point":return je(u,t,e=l(a),i);case"MultiPoint":for(o=0,s=a.length;o<s;o++)e=l(a[o]),h.push(je(u,t,e,i));return new Ce(h);case"LineString":case"MultiLineString":return n=He(a,"LineString"===r.type?0:1,l),new Oe(n,i);case"Polygon":case"MultiPolygon":return n=He(a,"Polygon"===r.type?1:2,l),new Re(n,i);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var c=De({geometry:r.geometries[o],type:"Feature",properties:t.properties},i);c&&h.push(c)}return new Ce(h);default:throw new Error("Invalid GeoJSON object.")}}function je(t,i,e,n){return t?t(i,e):new ke(e,n&&n.markersInheritOptions&&n)}function We(t){return new D(t[1],t[0],t[2])}function He(t,i,e){for(var n,o=[],s=0,r=t.length;s<r;s++)n=i?He(t[s],i-1,e):(e||We)(t[s]),o.push(n);return o}function Fe(t,i){return i="number"==typeof i?i:6,void 0!==t.alt?[r(t.lng,i),r(t.lat,i),r(t.alt,i)]:[r(t.lng,i),r(t.lat,i)]}function Ue(t,i,e,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(i?Ue(t[s],i-1,e,n):Fe(t[s],n));return!i&&e&&o.push(o[0]),o}function Ve(t,i){return t.feature?h({},t.feature,{geometry:i}):qe(i)}function qe(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Ge={toGeoJSON:function(t){return Ve(this,{type:"Point",coordinates:Fe(this.getLatLng(),t)})}};function Ke(t,i){return new Ne(t,i)}ke.include(Ge),Ie.include(Ge),Ae.include(Ge),Oe.include({toGeoJSON:function(t){var i=!pe(this._latlngs);return Ve(this,{type:(i?"Multi":"")+"LineString",coordinates:Ue(this._latlngs,i?1:0,!1,t)})}}),Re.include({toGeoJSON:function(t){var i=!pe(this._latlngs),e=i&&!pe(this._latlngs[0]),n=Ue(this._latlngs,e?2:i?1:0,!0,t);return i||(n=[n]),Ve(this,{type:(e?"Multi":"")+"Polygon",coordinates:n})}}),ze.include({toMultiPoint:function(i){var e=[];return this.eachLayer(function(t){e.push(t.toGeoJSON(i).geometry.coordinates)}),Ve(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(n){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(n);var o="GeometryCollection"===t,s=[];return this.eachLayer(function(t){var i,e;t.toGeoJSON&&(i=t.toGeoJSON(n),o?s.push(i.geometry):"FeatureCollection"===(e=qe(i)).type?s.push.apply(s,e.features):s.push(e))}),o?Ve(this,{geometries:s,type:"GeometryCollection"}):{type:"FeatureCollection",features:s}}});var Ye=Ke,Xe=Me.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,e){this._url=t,this._bounds=N(i),c(this,e)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ci(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ri(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&hi(this._image),this},bringToBack:function(){return this._map&&ui(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=N(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,i=this._image=t?this._url:si("img");ci(i,"leaflet-image-layer"),this._zoomAnimated&&ci(i,"leaflet-zoom-animated"),this.options.className&&ci(i,this.options.className),i.onselectstart=a,i.onmousemove=a,i.onload=p(this.fire,this,"load"),i.onerror=p(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=i.src:(i.src=this._url,i.alt=this.options.alt)},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),e=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;gi(this._image,e,i)},_reset:function(){var t=this._image,i=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=i.getSize();vi(t,i.min),t.style.width=e.x+"px",t.style.height=e.y+"px"},_updateOpacity:function(){mi(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),Je=Xe.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1},_initImage:function(){var t="VIDEO"===this._url.tagName,i=this._image=t?this._url:si("video");if(ci(i,"leaflet-image-layer"),this._zoomAnimated&&ci(i,"leaflet-zoom-animated"),this.options.className&&ci(i,this.options.className),i.onselectstart=a,i.onmousemove=a,i.onloadeddata=p(this.fire,this,"load"),t){for(var e=i.getElementsByTagName("source"),n=[],o=0;o<e.length;o++)n.push(e[o].src);this._url=0<e.length?n:[i.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted;for(var s=0;s<this._url.length;s++){var r=si("source");r.src=this._url[s],i.appendChild(r)}}}});var $e=Xe.extend({_initImage:function(){var t=this._image=this._url;ci(t,"leaflet-image-layer"),this._zoomAnimated&&ci(t,"leaflet-zoom-animated"),this.options.className&&ci(t,this.options.className),t.onselectstart=a,t.onmousemove=a}});var Qe=Me.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,i){c(this,t),this._source=i},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&mi(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&mi(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(mi(this._container,0),this._removeTimeout=setTimeout(p(ri,void 0,this._container),200)):ri(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=j(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&hi(this._container),this},bringToBack:function(){return this._map&&ui(this._container),this},_prepareOpen:function(t,i,e){if(i instanceof Me||(e=i,i=t),i instanceof Ce)for(var n in t._layers){i=t._layers[n];break}if(!e)if(i.getCenter)e=i.getCenter();else{if(!i.getLatLng)throw new Error("Unable to get source layer LatLng.");e=i.getLatLng()}return this._source=i,this.update(),e},_updateContent:function(){if(this._content){var t=this._contentNode,i="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof i)t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){var t,i,e,n,o;this._map&&(t=this._map.latLngToLayerPoint(this._latlng),i=A(this.options.offset),e=this._getAnchor(),this._zoomAnimated?vi(this._container,t.add(e)):i=i.add(t).add(e),n=this._containerBottom=-i.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+i.x,this._container.style.bottom=n+"px",this._container.style.left=o+"px")},_getAnchor:function(){return[0,0]}}),tn=Qe.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){Qe.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Be||this._source.on("preclick",Ai))},onRemove:function(t){Qe.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Be||this._source.off("preclick",Ai))},getEvents:function(){var t=Qe.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t,i="leaflet-popup",e=this._container=si("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=si("div",i+"-content-wrapper",e);this._contentNode=si("div",i+"-content",n),Oi(e),Ii(this._contentNode),zi(e,"contextmenu",Ai),this._tipContainer=si("div",i+"-tip-container",e),this._tip=si("div",i+"-tip",this._tipContainer),this.options.closeButton&&((t=this._closeButton=si("a",i+"-close-button",e)).href="#close",t.innerHTML="×",zi(t,"click",this._onCloseButtonClick,this))},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var e=t.offsetWidth,e=Math.min(e,this.options.maxWidth);e=Math.max(e,this.options.minWidth),i.width=e+1+"px",i.whiteSpace="",i.height="";var n=t.offsetHeight,o=this.options.maxHeight,s="leaflet-popup-scrolled";o&&o<n?(i.height=o+"px",ci(t,s)):_i(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();vi(this._container,i.add(e))},_adjustPan:function(){var t,i,e,n,o,s,r,a,h,u,l,c;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),t=this._map,i=parseInt(oi(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,n=this._containerWidth,(o=new k(this._containerLeft,-e-this._containerBottom))._add(yi(this._container)),s=t.layerPointToContainerPoint(o),r=A(this.options.autoPanPadding),a=A(this.options.autoPanPaddingTopLeft||r),h=A(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),c=l=0,s.x+n+h.x>u.x&&(l=s.x+n-u.x+h.x),s.x-l-a.x<0&&(l=s.x-a.x),s.y+e+h.y>u.y&&(c=s.y+e-u.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(l||c)&&t.fire("autopanstart").panBy([l,c]))},_onCloseButtonClick:function(t){this._close(),Ni(t)},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ki.mergeOptions({closePopupOnClick:!0}),Ki.include({openPopup:function(t,i,e){return t instanceof tn||(t=new tn(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Me.include({bindPopup:function(t,i){return t instanceof tn?(c(t,i),(this._popup=t)._source=this):(this._popup&&!i||(this._popup=new tn(i,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,i){return this._popup&&this._map&&(i=this._popup._prepareOpen(this,t,i),this._map.openPopup(this._popup,i)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i=t.layer||t.target;this._popup&&this._map&&(Ni(t),i instanceof Be?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===i?this.closePopup():this.openPopup(i,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var en=Qe.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Qe.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Qe.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Qe.prototype.getEvents.call(this);return bt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=si("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,e=this._map,n=this._container,o=e.latLngToContainerPoint(e.getCenter()),s=e.layerPointToContainerPoint(t),r=this.options.direction,a=n.offsetWidth,h=n.offsetHeight,u=A(this.options.offset),l=this._getAnchor(),c="top"===r?(i=a/2,h):"bottom"===r?(i=a/2,0):(i="center"===r?a/2:"right"===r?0:"left"===r?a:s.x<o.x?(r="right",0):(r="left",a+2*(u.x+l.x)),h/2);t=t.subtract(A(i,c,!0)).add(u).add(l),_i(n,"leaflet-tooltip-right"),_i(n,"leaflet-tooltip-left"),_i(n,"leaflet-tooltip-top"),_i(n,"leaflet-tooltip-bottom"),ci(n,"leaflet-tooltip-"+r),vi(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&mi(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return A(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ki.include({openTooltip:function(t,i,e){return t instanceof en||(t=new en(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Me.include({bindTooltip:function(t,i){return t instanceof en?(c(t,i),(this._tooltip=t)._source=this):(this._tooltip&&!i||(this._tooltip=new en(i,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){var i,e;!t&&this._tooltipHandlersAdded||(i=t?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?e.add=this._openTooltip:(e.mouseover=this._openTooltip,e.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(e.mousemove=this._moveTooltip),bt&&(e.click=this._openTooltip)),this[i](e),this._tooltipHandlersAdded=!t)},openTooltip:function(t,i){return this._tooltip&&this._map&&(i=this._tooltip._prepareOpen(this,t,i),this._map.openTooltip(this._tooltip,i),this._tooltip.options.interactive&&this._tooltip._container&&(ci(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(_i(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var i=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(i,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var i,e,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),e=this._map.containerPointToLayerPoint(i),n=this._map.layerPointToLatLng(e)),this._tooltip.setLatLng(n)}});var nn=Se.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i,e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;return n.html instanceof Element?(ai(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos&&(i=A(n.bgPos),e.style.backgroundPosition=-i.x+"px "+-i.y+"px"),this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Se.Default=Ze;var on=Me.extend({options:{tileSize:256,opacity:1,updateWhenIdle:yt,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){c(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ri(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(hi(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ui(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=n(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof k?t:new k(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i,e=this.getPane().children,n=-t(-1/0,1/0),o=0,s=e.length;o<s;o++)i=e[o].style.zIndex,e[o]!==this._container&&i&&(n=t(n,+i));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!it){mi(this._container,this.options.opacity);var t=+new Date,i=!1,e=!1;for(var n in this._tiles){var o,s=this._tiles[n];s.current&&s.loaded&&(o=Math.min(1,(t-s.loaded)/200),mi(s.el,o),o<1?i=!0:(s.active?e=!0:this._onOpaqueTile(s),s.active=!0))}e&&!this._noPrune&&this._pruneTiles(),i&&(z(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this))}},_onOpaqueTile:a,_initContainer:function(){this._container||(this._container=si("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(void 0!==t){for(var e in this._levels)e=Number(e),this._levels[e].el.children.length||e===t?(this._levels[e].el.style.zIndex=i-Math.abs(t-e),this._onUpdateLevel(e)):(ri(this._levels[e].el),this._removeTilesAtZoom(e),this._onRemoveLevel(e),delete this._levels[e]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=si("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=i,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),a(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:a,_onRemoveLevel:a,_onCreateLevel:a,_pruneTiles:function(){if(this._map){var t,i,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles){(e=this._tiles[t]).current&&!e.active&&(i=e.coords,this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2))}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ri(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,e,n){var o=Math.floor(t/2),s=Math.floor(i/2),r=e-1,a=new k(+o,+s);a.z=+r;var h=this._tileCoordsToKey(a),u=this._tiles[h];return u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),n<r&&this._retainParent(o,s,r,n))},_retainChildren:function(t,i,e,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*i;s<2*i+2;s++){var r=new k(o,s);r.z=e+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),e+1<n&&this._retainChildren(o,s,e+1,n))}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return void 0!==i.minNativeZoom&&t<i.minNativeZoom?i.minNativeZoom:void 0!==i.maxNativeZoom&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,e,n){var o=Math.round(i),o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o),s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),e||this._pruneTiles(),this._noPrune=!!e),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var e in this._levels)this._setZoomTransform(this._levels[e],t,i)},_setZoomTransform:function(t,i,e){var n=this._map.getZoomScale(e,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(i,e)).round();vt?gi(t.el,o,n):vi(t.el,o)},_resetGrid:function(){var t=this._map,i=t.options.crs,e=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],n).x/e.x),Math.ceil(t.project([0,i.wrapLng[1]],n).x/e.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],n).y/e.x),Math.ceil(t.project([i.wrapLat[1],0],n).y/e.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var i=this._map,e=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),n=i.getZoomScale(e,this._tileZoom),o=i.project(t,this._tileZoom).floor(),s=i.getSize().divideBy(2*n);return new I(o.subtract(s),o.add(s))},_update:function(t){var i=this._map;if(i){var e=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),r=[],a=this.options.keepBuffer,h=new I(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var l=this._tiles[u].coords;l.z===this._tileZoom&&h.contains(new k(l.x,l.y))||(this._tiles[u].current=!1)}if(1<Math.abs(e-this._tileZoom))this._setView(t,e);else{for(var c=o.min.y;c<=o.max.y;c++)for(var _=o.min.x;_<=o.max.x;_++){var d,p=new k(_,c);p.z=this._tileZoom,this._isValidTile(p)&&((d=this._tiles[this._tileCoordsToKey(p)])?d.current=!0:r.push(p))}if(r.sort(function(t,i){return t.distanceTo(s)-i.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));for(var m=document.createDocumentFragment(),_=0;_<r.length;_++)this._addTile(r[_],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var e=this._globalTileRange;if(!i.wrapLng&&(t.x<e.min.x||t.x>e.max.x)||!i.wrapLat&&(t.y<e.min.y||t.y>e.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return N(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e),o=n.add(e);return[i.unproject(n,t.z),i.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),e=new R(i[0],i[1]);return this.options.noWrap||(e=this._map.wrapLatLngBounds(e)),e},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),e=new k(+i[0],+i[1]);return e.z=+i[2],e},_removeTile:function(t){var i=this._tiles[t];i&&(ri(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ci(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=a,t.onmousemove=a,it&&this.options.opacity<1&&mi(t,this.options.opacity),ot&&!st&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,i){var e=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),p(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&M(p(this._tileReady,this,t,null,o)),vi(o,e),this._tiles[n]={el:o,coords:t,current:!0},i.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,i,e){i&&this.fire("tileerror",{error:i,tile:e,coords:t});var n=this._tileCoordsToKey(t);(e=this._tiles[n])&&(e.loaded=+new Date,this._map._fadeAnimated?(mi(e.el,0),z(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this)):(e.active=!0,this._pruneTiles()),i||(ci(e.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:e.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),it||!this._map._fadeAnimated?M(this._pruneTiles,this):setTimeout(p(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new k(this._wrapX?o(t.x,this._wrapX):t.x,this._wrapY?o(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new I(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var sn=on.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,i){this._url=t,(i=c(this,i)).detectRetina&&zt&&0<i.maxZoom&&(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom++):(i.zoomOffset++,i.maxZoom--),i.minZoom=Math.max(0,i.minZoom)),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),ot||this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&void 0===i&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var e=document.createElement("img");return zi(e,"load",p(this._tileOnLoad,this,i,e)),zi(e,"error",p(this._tileOnError,this,i,e)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),e.alt="",e.setAttribute("role","presentation"),e.src=this.getTileUrl(t),e},getTileUrl:function(t){var i,e={r:zt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(i=this._globalTileRange.max.y-t.y,this.options.tms&&(e.y=i),e["-y"]=i),f(this._url,h(e,this.options))},_tileOnLoad:function(t,i){it?setTimeout(p(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,e){var n=this.options.errorTileUrl;n&&i.getAttribute("src")!==n&&(i.src=n),t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom;return this.options.zoomReverse&&(t=i-t),t+this.options.zoomOffset},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=a,i.onerror=a,i.complete||(i.src=y,ri(i),delete this._tiles[t]))},_removeTile:function(t){var i=this._tiles[t];if(i)return at||i.el.setAttribute("src",y),on.prototype._removeTile.call(this,t)},_tileReady:function(t,i,e){if(this._map&&(!e||e.getAttribute("src")!==y))return on.prototype._tileReady.call(this,t,i,e)}});function rn(t,i){return new sn(t,i)}var an=sn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var e=h({},this.defaultWmsParams);for(var n in i)n in this.options||(e[n]=i[n]);var o=(i=c(this,i)).detectRetina&&zt?2:1,s=this.getTileSize();e.width=s.x*o,e.height=s.y*o,this.wmsParams=e},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[i]=this._crs.code,sn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=this._crs,n=O(e.project(i[0]),e.project(i[1])),o=n.min,s=n.max,r=(1.3<=this._wmsVersion&&this._crs===be?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=sn.prototype.getTileUrl.call(this,t);return a+_(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,i){return h(this.wmsParams,t),i||this.redraw(),this}});sn.WMS=an,rn.wms=function(t,i){return new an(t,i)};var hn=Me.extend({options:{padding:.1,tolerance:0},initialize:function(t){c(this,t),m(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ci(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),n=yi(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,i),r=this._map.project(t,i).subtract(s),a=o.multiplyBy(-e).add(n).add(o).subtract(r);vt?gi(this._container,a,e):vi(this._container,a)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new I(e,e.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),un=hn.extend({getEvents:function(){var t=hn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){hn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");zi(t,"mousemove",this._onMouseMove,this),zi(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),zi(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest),delete this._ctx,ri(this._container),Si(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){var t,i,e,n;this._map._animatingZoom&&this._bounds||(hn.prototype._update.call(this),t=this._bounds,i=this._container,e=t.getSize(),n=zt?2:1,vi(i,t.min),i.width=n*e.x,i.height=n*e.y,i.style.width=e.x+"px",i.style.height=e.y+"px",zt&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){hn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t);var i=(this._layers[m(t)]=t)._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,e=i.next,n=i.prev;e?e.prev=n:this._drawLast=n,n?n.next=e:this._drawFirst=e,delete t._order,delete this._layers[m(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){for(var i,e=t.options.dashArray.split(/[, ]+/),n=[],o=0;o<e.length;o++){if(i=Number(e[o]),isNaN(i))return;n.push(i)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||M(this._redraw,this))},_extendRedrawBounds:function(t){var i;t._pxBounds&&(i=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new I,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i])))},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t,i=this._redrawBounds;i?(t=i.getSize(),this._ctx.clearRect(i.min.x,i.min.y,t.x,t.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw:function(){var t,i,e=this._redrawBounds;this._ctx.save(),e&&(i=e.getSize(),this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()),this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var e,n,o,s,r=t._parts,a=r.length,h=this._ctx;if(a){for(h.beginPath(),e=0;e<a;e++){for(n=0,o=r[e].length;n<o;n++)s=r[e][n],h[n?"lineTo":"moveTo"](s.x,s.y);i&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){var i,e,n,o;this._drawing&&!t._empty()&&(i=t._point,e=this._ctx,n=Math.max(Math.round(t._radius),1),1!=(o=(Math.max(Math.round(t._radiusY),1)||n)/n)&&(e.save(),e.scale(1,o)),e.beginPath(),e.arc(i.x,i.y/o,n,0,2*Math.PI,!1),1!=o&&e.restore(),this._fillStroke(e,t))},_fillStroke:function(t,i){var e=i.options;e.fill&&(t.globalAlpha=e.fillOpacity,t.fillStyle=e.fillColor||e.color,t.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=e.opacity,t.lineWidth=e.weight,t.strokeStyle=e.color,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.stroke())},_onClick:function(t){for(var i,e,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(n)&&(("click"===t.type||"preclick"!==t.type)&&this._map._draggableMoved(i)||(e=i));e&&(Fi(t),this._fireEvent([e],t))},_onMouseMove:function(t){var i;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(i=this._map.mouseEventToLayerPoint(t),this._handleMouseHover(t,i))},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(_i(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var e,n,o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&(n=e);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(ci(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(p(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,i,e){this._map._fireDOMEvent(i,e||i.type,t)},_bringToFront:function(t){var i,e,n=t._order;n&&(i=n.next,e=n.prev,i&&((i.prev=e)?e.next=i:i&&(this._drawFirst=i),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(t)))},_bringToBack:function(t){var i,e,n=t._order;n&&(i=n.next,(e=n.prev)&&((e.next=i)?i.prev=e:e&&(this._drawLast=e),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(t)))}});function ln(t){return St?new un(t):null}var cn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_n={_initContainer:function(){this._container=si("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(hn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=cn("shape");ci(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=cn("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;ri(i),t.removeInteractiveTarget(i),delete this._layers[m(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i=i||(t._stroke=cn("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e=e||(t._fill=cn("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){hi(t._container)},_bringToBack:function(t){ui(t._container)}},dn=Et?cn:J,pn=hn.extend({getEvents:function(){var t=hn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=dn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=dn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ri(this._container),Si(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){var t,i,e;this._map._animatingZoom&&this._bounds||(hn.prototype._update.call(this),i=(t=this._bounds).getSize(),e=this._container,this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),vi(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update"))},_initPath:function(t){var i=t._path=dn("path");t.options.className&&ci(i,t.options.className),t.options.interactive&&ci(i,"leaflet-interactive"),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ri(t._path),t.removeInteractiveTarget(t._path),delete this._layers[m(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,e=t.options;i&&(e.stroke?(i.setAttribute("stroke",e.color),i.setAttribute("stroke-opacity",e.opacity),i.setAttribute("stroke-width",e.weight),i.setAttribute("stroke-linecap",e.lineCap),i.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?i.setAttribute("stroke-dasharray",e.dashArray):i.removeAttribute("stroke-dasharray"),e.dashOffset?i.setAttribute("stroke-dashoffset",e.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),e.fill?(i.setAttribute("fill",e.fillColor||e.color),i.setAttribute("fill-opacity",e.fillOpacity),i.setAttribute("fill-rule",e.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,$(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),n="a"+e+","+(Math.max(Math.round(t._radiusY),1)||e)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+2*e+",0 "+n+2*-e+",0 ";this._setPath(t,o)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){hi(t._path)},_bringToBack:function(t){ui(t._path)}});function mn(t){return Zt||Et?new pn(t):null}Et&&pn.include(_n),Ki.include({getRenderer:function(t){var i=(i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer());return this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&ln(t)||mn(t)}});var fn=Re.extend({initialize:function(t,i){Re.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=N(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});pn.create=dn,pn.pointsToPath=$,Ne.geometryToLayer=De,Ne.coordsToLatLng=We,Ne.coordsToLatLngs=He,Ne.latLngToCoords=Fe,Ne.latLngsToCoords=Ue,Ne.getFeature=Ve,Ne.asFeature=qe,Ki.mergeOptions({boxZoom:!0});var gn=ie.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){zi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Si(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ri(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Xt(),xi(),this._startPoint=this._map.mouseEventToContainerPoint(t),zi(document,{contextmenu:Ni,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=si("div","leaflet-zoom-box",this._container),ci(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new I(this._point,this._startPoint),e=i.getSize();vi(this._box,i.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(ri(this._box),_i(this._container,"leaflet-crosshair")),Jt(),wi(),Si(document,{contextmenu:Ni,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){var i;1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(p(this._resetState,this),0),i=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})))},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Ki.addInitHook("addHandler","boxZoom",gn),Ki.mergeOptions({doubleClickZoom:!0});var vn=ie.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta,o=t.originalEvent.shiftKey?e-n:e+n;"center"===i.options.doubleClickZoom?i.setZoom(o):i.setZoomAround(t.containerPoint,o)}});Ki.addInitHook("addHandler","doubleClickZoom",vn),Ki.mergeOptions({dragging:!0,inertia:!st,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var yn=ie.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new ae(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),ci(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){_i(this._map._container,"leaflet-grab"),_i(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t,i=this._map;i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=N(this._map.options.maxBounds),this._offsetLimit=O(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var i,e;this._map.options.inertia&&(i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(e),this._times.push(i),this._prunePositions(i)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){var t,i;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit,t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-i+e)%t+i-e,s=(n+i+e)%t-i-e,r=Math.abs(o+e)<Math.abs(s+e)?o:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var i,e,n,o,s,r,a,h,u,l=this._map,c=l.options,_=!c.inertia||this._times.length<2;l.fire("dragend",t),_?l.fire("moveend"):(this._prunePositions(+new Date),i=this._lastPos.subtract(this._positions[0]),e=(this._lastTime-this._times[0])/1e3,n=c.easeLinearity,s=(o=i.multiplyBy(n/e)).distanceTo([0,0]),r=Math.min(c.inertiaMaxSpeed,s),a=o.multiplyBy(r/s),h=r/(c.inertiaDeceleration*n),(u=a.multiplyBy(-h/2).round()).x||u.y?(u=l._limitOffset(u,l.options.maxBounds),M(function(){l.panBy(u,{duration:h,easeLinearity:n,noMoveStart:!0,animate:!0})})):l.fire("moveend"))}});Ki.addInitHook("addHandler","dragging",yn),Ki.mergeOptions({keyboard:!0,keyboardPanDelta:80});var xn=ie.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),zi(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Si(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){var t,i,e,n;this._focused||(t=document.body,i=document.documentElement,e=t.scrollTop||i.scrollTop,n=t.scrollLeft||i.scrollLeft,this._map._container.focus(),window.scrollTo(n,e))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){for(var i=this._panKeys={},e=this.keyCodes,n=0,o=e.left.length;n<o;n++)i[e.left[n]]=[-1*t,0];for(n=0,o=e.right.length;n<o;n++)i[e.right[n]]=[t,0];for(n=0,o=e.down.length;n<o;n++)i[e.down[n]]=[0,t];for(n=0,o=e.up.length;n<o;n++)i[e.up[n]]=[0,-1*t]},_setZoomDelta:function(t){for(var i=this._zoomKeys={},e=this.keyCodes,n=0,o=e.zoomIn.length;n<o;n++)i[e.zoomIn[n]]=t;for(n=0,o=e.zoomOut.length;n<o;n++)i[e.zoomOut[n]]=-t},_addHooks:function(){zi(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Si(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i,e=t.keyCode,n=this._map;if(e in this._panKeys)n._panAnim&&n._panAnim._inProgress||(i=this._panKeys[e],t.shiftKey&&(i=A(i).multiplyBy(3)),n.panBy(i),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds));else if(e in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else{if(27!==e||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Ni(t)}}});Ki.addInitHook("addHandler","keyboard",xn),Ki.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var wn=ie.extend({addHooks:function(){zi(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Si(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=Wi(t),e=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(e-(new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(p(this._performZoom,this),n),Ni(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),e=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,s=e?Math.ceil(o/e)*e:o,r=t._limitZoom(i+(0<this._delta?s:-s))-i;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(i+r):t.setZoomAround(this._lastMousePos,i+r))}});Ki.addInitHook("addHandler","scrollWheelZoom",wn),Ki.mergeOptions({tap:!0,tapTolerance:15});var Pn=ie.extend({addHooks:function(){zi(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Si(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ri(t),this._fireClick=!0,1<t.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=t.touches[0],e=i.target;this._startPos=this._newPos=new k(i.clientX,i.clientY),e.tagName&&"a"===e.tagName.toLowerCase()&&ci(e,"leaflet-active"),this._holdTimeout=setTimeout(p(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3),this._simulateEvent("mousedown",i),zi(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){var i,e;clearTimeout(this._holdTimeout),Si(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches&&((e=(i=t.changedTouches[0]).target)&&e.tagName&&"a"===e.tagName.toLowerCase()&&_i(e,"leaflet-active"),this._simulateEvent("mouseup",i),this._isTapValid()&&this._simulateEvent("click",i))},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var i=t.touches[0];this._newPos=new k(i.clientX,i.clientY),this._simulateEvent("mousemove",i)},_simulateEvent:function(t,i){var e=document.createEvent("MouseEvents");e._simulated=!0,i.target._simulatedClick=!0,e.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),i.target.dispatchEvent(e)}});!bt||Lt&&!ct||Ki.addInitHook("addHandler","tap",Pn),Ki.mergeOptions({touchZoom:bt&&!st,bounceAtZoomLimits:!0});var Ln=ie.extend({addHooks:function(){ci(this._map._container,"leaflet-touch-zoom"),zi(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){_i(this._map._container,"leaflet-touch-zoom"),Si(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i,e,n=this._map;!t.touches||2!==t.touches.length||n._animatingZoom||this._zooming||(i=n.mouseEventToContainerPoint(t.touches[0]),e=n.mouseEventToContainerPoint(t.touches[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.touchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(i.add(e)._divideBy(2))),this._startDist=i.distanceTo(e),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),zi(document,"touchmove",this._onTouchMove,this),zi(document,"touchend",this._onTouchEnd,this),Ri(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]),o=e.distanceTo(n)/this._startDist;if(this._zoom=i.getScaleZoom(o,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&o<1||this._zoom>i.getMaxZoom()&&1<o)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1==o)return}else{var s=e._add(n)._divideBy(2)._subtract(this._centerPoint);if(1==o&&0===s.x&&0===s.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),z(this._animRequest);var r=p(i._move,i,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=M(r,this,!0),Ri(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,z(this._animRequest),Si(document,"touchmove",this._onTouchMove,this),Si(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ki.addInitHook("addHandler","touchZoom",Ln),Ki.BoxZoom=gn,Ki.DoubleClickZoom=vn,Ki.Drag=yn,Ki.Keyboard=xn,Ki.ScrollWheelZoom=wn,Ki.Tap=Pn,Ki.TouchZoom=Ln,t.version="1.7.1",t.Control=Xi,t.control=Yi,t.Browser=Bt,t.Evented=E,t.Mixin=ne,t.Util=C,t.Class=S,t.Handler=ie,t.extend=h,t.bind=p,t.stamp=m,t.setOptions=c,t.DomEvent=qi,t.DomUtil=Mi,t.PosAnimation=Gi,t.Draggable=ae,t.LineUtil=fe,t.PolyUtil=ye,t.Point=k,t.point=A,t.Bounds=I,t.bounds=O,t.Transformation=q,t.transformation=G,t.Projection=Pe,t.LatLng=D,t.latLng=j,t.LatLngBounds=R,t.latLngBounds=N,t.CRS=H,t.GeoJSON=Ne,t.geoJSON=Ke,t.geoJson=Ye,t.Layer=Me,t.LayerGroup=ze,t.layerGroup=function(t,i){return new ze(t,i)},t.FeatureGroup=Ce,t.featureGroup=function(t,i){return new Ce(t,i)},t.ImageOverlay=Xe,t.imageOverlay=function(t,i,e){return new Xe(t,i,e)},t.VideoOverlay=Je,t.videoOverlay=function(t,i,e){return new Je(t,i,e)},t.SVGOverlay=$e,t.svgOverlay=function(t,i,e){return new $e(t,i,e)},t.DivOverlay=Qe,t.Popup=tn,t.popup=function(t,i){return new tn(t,i)},t.Tooltip=en,t.tooltip=function(t,i){return new en(t,i)},t.Icon=Se,t.icon=function(t){return new Se(t)},t.DivIcon=nn,t.divIcon=function(t){return new nn(t)},t.Marker=ke,t.marker=function(t,i){return new ke(t,i)},t.TileLayer=sn,t.tileLayer=rn,t.GridLayer=on,t.gridLayer=function(t){return new on(t)},t.SVG=pn,t.svg=mn,t.Renderer=hn,t.Canvas=un,t.canvas=ln,t.Path=Be,t.CircleMarker=Ae,t.circleMarker=function(t,i){return new Ae(t,i)},t.Circle=Ie,t.circle=function(t,i,e){return new Ie(t,i,e)},t.Polyline=Oe,t.polyline=function(t,i){return new Oe(t,i)},t.Polygon=Re,t.polygon=function(t,i){return new Re(t,i)},t.Rectangle=fn,t.rectangle=function(t,i){return new fn(t,i)},t.Map=Ki,t.map=function(t,i){return new Ki(t,i)};var bn=window.L;t.noConflict=function(){return window.L=bn,this},window.L=t}); -//# sourceMappingURL=leaflet.js.map \ No newline at end of file diff --git a/js/login.js b/js/login.js index ba26cebe8139d9142b51c4e2b0a6ebddaa6a499e..2b18c75fc2a9a663a9b8aa7c7cda5a1d179c6dce 100755 --- a/js/login.js +++ b/js/login.js @@ -5,6 +5,24 @@ * */ +/* loading spinner functions +*******************************/ +function showSpinner(hide_res = true) { + $('div.loading').show(); + $('input[type=submit]').addClass("disabled"); + $('button.passkey_login').addClass("disabled"); + if (hide_res) { + $('#loginCheckPasskeys').fadeOut('fast'); + $('#loginCheck').fadeOut('fast'); + } +} +function hideSpinner() { + $('div.loading').fadeOut('fast'); + $('input[type=submit]').removeClass("disabled"); + $('button.passkey_login').removeClass("disabled"); +} + + $(document).ready(function() { @@ -14,14 +32,7 @@ $('div.jqueryError').hide(); $('div.loading').hide(); -/* loading spinner functions -*******************************/ -function showSpinner() { - $('div.loading').show(); -} -function hideSpinner() { - $('div.loading').fadeOut('fast'); -} + /* Login redirect function if success ****************************************/ @@ -40,13 +51,12 @@ $('form#login').submit(function() { var logindata = $(this).serialize(); - $('div#loginCheck').hide(); - //post to check form + // post to check form $.post('app/login/login_check.php', logindata, function(data) { $('div#loginCheck').html(data).fadeIn('fast'); //reload after 2 seconds if succeeded! if(data.search("alert alert-success") != -1) { - showSpinner(); + showSpinner(false); //search for redirect if($('form#login input#phpipamredirect').length > 0) { setTimeout(function (){window.location=$('form#login input#phpipamredirect').val();}, 1000); } else { setTimeout(loginRedirect, 1000); } @@ -134,6 +144,93 @@ $(".clearIPrequest").click(function() { }); + +// passkey login +$('.passkey_login').click(function() { + // execute passkey login + startLogin(); + // prevent submit + return false; +}) + }); + +function loginRedirect2() { + var base = $('.iebase').html(); + window.location=base; +} + + +const startLogin = async (e) => { + + // check if browser supports webauthn + if (!window.PublicKeyCredential) { + return + } + + // show login window + showSpinner(); + + try { + // get and parse challenge + const challengeReq = await fetch('app/tools/user-menu/passkey_challenge.php') + const challengeB64 = await challengeReq.json() + const challenge = atob(challengeB64) // base64-decode + + // Format for WebAuthn API + const getOptions = { + publicKey: { + challenge: Uint8Array.from(challenge, c => c.charCodeAt(0)), + allowCredentials: [], + mediation: 'conditional', + }, + } + + // Call the WebAuthn browser API and get the response. This may throw, which you + // should handle. Example: user cancels or never interacts with the device. + const credential = await navigator.credentials.get(getOptions) + // console.log(credential) + + // Format the credential to send to the server. This must match the format + // handed by the ResponseParser class. The formatting code below can be used + // without modification. + const dataForResponseParser = { + rawId: Array.from(new Uint8Array(credential.rawId)), + keyId: credential.id, + type: credential.type, + authenticatorData: Array.from(new Uint8Array(credential.response.authenticatorData)), + clientDataJSON: Array.from(new Uint8Array(credential.response.clientDataJSON)), + signature: Array.from(new Uint8Array(credential.response.signature)), + userHandle: Array.from(new Uint8Array(credential.response.userHandle)), + } + + // Send this to your endpoint - adjust to your needs. + const request = new Request('app/login/passkey_login_check.php', { + body: JSON.stringify(dataForResponseParser), + headers: { + 'Content-type': 'application/json', + }, + method: 'POST', + }) + const result = await fetch(request) + + // process result by http status returned from passkey_login_check + if(result.status==200) { + $('#loginCheckPasskeys').html("<div class='alert alert-success'>Passkey authentication successfull</div>").show(); + setTimeout(loginRedirect2, 1000) + } + else { + $('#loginCheckPasskeys').html("<div class='alert alert-danger'>Passkey authentication failed!</div>").show(); + console.log(result) + hideSpinner() + } + } + // handle throwable error + catch(err) { + $('#loginCheckPasskeys').html("<div class='alert alert-danger'>Passkey authentication failed!</div>").show(); + console.log(err) + hideSpinner(); + } +} \ No newline at end of file diff --git a/js/magic.js b/js/magic.js index 8d6def598158534a497d86a17f7bb433caf93cf2..2e9e70552a00e8157ce2b86c9bddb51c14613967 100755 --- a/js/magic.js +++ b/js/magic.js @@ -2418,6 +2418,10 @@ $(document).on("click", "#editVLANdomainsubmit", function() { submit_popup_data (".domainEditResult", "app/admin/vlans/edit-domain-result.php", $('form#editVLANdomain').serialize()); }); +/* ---- Show permissions ----- */ +$(document).on("click", ".toggle-module-permissions", function () { + $(this).next('div').toggleClass('hidden'); +}) /* ---- VRF ----- */ //submit form diff --git a/misc/CHANGELOG b/misc/CHANGELOG index 27b575cfe3ee400601bbba372891598fb02cc0cf..48936dbc36370b960731a049aa0fb90bd19391b8 100755 --- a/misc/CHANGELOG +++ b/misc/CHANGELOG @@ -1,3 +1,16 @@ +== 1.7.0 + + New features: + ------------ + + support for passkeys / passwordless logins; + + Bugfixes: + ---------------------------- + + Security Fixes: + ---------------------------- + + Upgraded jQuery to 3.7.1; + == 1.6.0 Enhancements, changes: