diff --git a/.env.example b/.env.example index aa4bd857a..66d51d9b1 100644 --- a/.env.example +++ b/.env.example @@ -56,6 +56,7 @@ MIX_API_SEARCH="${API_SEARCH}" ACTIVITYPUB_INBOX=false ACTIVITYPUB_SHAREDINBOX=false +HORIZON_DARKMODE=true # Set these both "true" to enable federation. # You might need to also run: diff --git a/app/Avatar.php b/app/Avatar.php index 76ca442b9..1033935bb 100644 --- a/app/Avatar.php +++ b/app/Avatar.php @@ -15,6 +15,7 @@ class Avatar extends Model * @var array */ protected $dates = ['deleted_at']; + protected $fillable = ['profile_id']; public function profile() { diff --git a/app/Console/Commands/UserCreate.php b/app/Console/Commands/UserCreate.php new file mode 100644 index 000000000..0945aff1d --- /dev/null +++ b/app/Console/Commands/UserCreate.php @@ -0,0 +1,88 @@ +info('Creating a new user...'); + + $name = $this->ask('Name'); + + $username = $this->ask('Username'); + + if(User::whereUsername($username)->exists()) { + $this->error('Username already in use, please try again...'); + exit; + } + + $email = $this->ask('Email'); + + if(User::whereEmail($email)->exists()) { + $this->error('Email already in use, please try again...'); + exit; + } + + $password = $this->secret('Password'); + $confirm = $this->secret('Confirm Password'); + + if($password !== $confirm) { + $this->error('Password mismatch, please try again...'); + exit; + } + + $is_admin = $this->confirm('Make this user an admin?'); + $confirm_email = $this->confirm('Manually verify email address?'); + + if($this->confirm('Are you sure you want to create this user?') && + $username && + $name && + $email && + $password + ) { + $user = new User; + $user->username = $username; + $user->name = $name; + $user->email = $email; + $user->password = bcrypt($password); + $user->is_admin = $is_admin; + $user->email_verified_at = $confirm_email ? now() : null; + $user->save(); + + $this->info('Created new user!'); + } + } +} diff --git a/app/Console/Commands/UserDelete.php b/app/Console/Commands/UserDelete.php new file mode 100644 index 000000000..a11c7d750 --- /dev/null +++ b/app/Console/Commands/UserDelete.php @@ -0,0 +1,72 @@ +argument('id'); + $user = User::whereUsername($id)->orWhere('id', $id)->first(); + if(!$user) { + $this->error('Could not find any user with that username or id.'); + exit; + } + + if($user->is_admin == true) { + $this->error('Cannot delete an admin account from CLI.'); + exit; + } + + if(!$this->confirm('Are you sure you want to delete this account?')) { + exit; + } + + $confirmation = $this->ask('Enter the username to confirm deletion'); + + if($confirmation !== $user->username) { + $this->error('Username does not match, exiting...'); + exit; + } + + $profile = $user->profile; + $profile->status = $user->status = 'deleted'; + $profile->save(); + $user->save(); + + DeleteAccountPipeline::dispatchNow($user); + } +} diff --git a/app/Console/Commands/UserShow.php b/app/Console/Commands/UserShow.php new file mode 100644 index 000000000..d72bf8236 --- /dev/null +++ b/app/Console/Commands/UserShow.php @@ -0,0 +1,54 @@ +argument('id'); + $user = User::whereUsername($id)->orWhere('id', $id)->first(); + if(!$user) { + $this->error('Could not find any user with that username or id.'); + exit; + } + + $this->info('User ID: ' . $user->id); + $this->info('Username: ' . $user->username); + $this->info('Email: ' . $user->email); + $this->info('Joined: ' . $user->created_at->diffForHumans()); + $this->info('Status Count: ' . $user->statuses()->count()); + } +} diff --git a/app/Console/Commands/UserSuspend.php b/app/Console/Commands/UserSuspend.php new file mode 100644 index 000000000..17d44d2d5 --- /dev/null +++ b/app/Console/Commands/UserSuspend.php @@ -0,0 +1,56 @@ +argument('id'); + $user = User::whereUsername($id)->orWhere('id', $id)->first(); + if(!$user) { + $this->error('Could not find any user with that username or id.'); + exit; + } + $this->info('Found user, username: ' . $user->username); + if($this->confirm('Are you sure you want to suspend this user?')) { + $profile = $user->profile; + $user->status = $profile->status = 'suspended'; + $user->save(); + $profile->save(); + $this->info('User account has been suspended.'); + } + } +} diff --git a/app/Console/Commands/UserTable.php b/app/Console/Commands/UserTable.php new file mode 100644 index 000000000..fff4c86ec --- /dev/null +++ b/app/Console/Commands/UserTable.php @@ -0,0 +1,49 @@ +argument('limit'); + + $headers = ['ID', 'Username', 'Name', 'Registered']; + + $users = User::orderByDesc('id')->take($limit)->get(['id', 'username', 'name', 'created_at'])->toArray(); + + $this->table($headers, $users); + } +} diff --git a/app/Console/Commands/UserUnsuspend.php b/app/Console/Commands/UserUnsuspend.php new file mode 100644 index 000000000..afb6dee6a --- /dev/null +++ b/app/Console/Commands/UserUnsuspend.php @@ -0,0 +1,56 @@ +argument('id'); + $user = User::whereUsername($id)->orWhere('id', $id)->first(); + if(!$user) { + $this->error('Could not find any user with that username or id.'); + exit; + } + $this->info('Found user, username: ' . $user->username); + if($this->confirm('Are you sure you want to unsuspend this user?')) { + $profile = $user->profile; + $user->status = $profile->status = null; + $user->save(); + $profile->save(); + $this->info('User account has been unsuspended.'); + } + } +} diff --git a/app/Http/Controllers/Admin/AdminSettingsController.php b/app/Http/Controllers/Admin/AdminSettingsController.php index 97304f9fa..65d981627 100644 --- a/app/Http/Controllers/Admin/AdminSettingsController.php +++ b/app/Http/Controllers/Admin/AdminSettingsController.php @@ -19,8 +19,8 @@ trait AdminSettingsController public function settingsBackups(Request $request) { - $path = storage_path('app/PixelFed'); - $files = new \DirectoryIterator($path); + $path = storage_path('app/'.config('app.name')); + $files = is_dir($path) ? new \DirectoryIterator($path) : []; return view('admin.settings.backups', compact('files')); } @@ -106,7 +106,7 @@ trait AdminSettingsController $sys = [ 'pixelfed' => config('pixelfed.version'), 'php' => phpversion(), - 'redis' => explode(' ',exec('redis-cli -v'))[1], + 'laravel' => app()->version(), ]; switch (config('database.default')) { case 'pgsql': diff --git a/app/Http/Controllers/AvatarController.php b/app/Http/Controllers/AvatarController.php index f8a201b87..65b9a9731 100644 --- a/app/Http/Controllers/AvatarController.php +++ b/app/Http/Controllers/AvatarController.php @@ -30,11 +30,10 @@ class AvatarController extends Controller $dir = $path['root']; $name = $path['name']; $public = $path['storage']; - $currentAvatar = storage_path('app/'.$profile->avatar->media_path); $loc = $request->file('avatar')->storeAs($public, $name); - $avatar = Avatar::whereProfileId($profile->id)->firstOrFail(); - $opath = $avatar->media_path; + $avatar = Avatar::firstOrNew(['profile_id' => $profile->id]); + $currentAvatar = $avatar->recentlyCreated ? null : storage_path('app/'.$profile->avatar->media_path); $avatar->media_path = "$public/$name"; $avatar->thumb_path = null; $avatar->change_count = ++$avatar->change_count; diff --git a/app/Mail/EmailChange.php b/app/Mail/EmailChange.php new file mode 100644 index 000000000..0a3934fd8 --- /dev/null +++ b/app/Mail/EmailChange.php @@ -0,0 +1,33 @@ +markdown('emails.notification.email_change'); + } +} diff --git a/app/Mail/PasswordChange.php b/app/Mail/PasswordChange.php new file mode 100644 index 000000000..f90c10b51 --- /dev/null +++ b/app/Mail/PasswordChange.php @@ -0,0 +1,33 @@ +markdown('emails.notification.password_change'); + } +} diff --git a/app/Providers/HorizonServiceProvider.php b/app/Providers/HorizonServiceProvider.php new file mode 100644 index 000000000..3383835ee --- /dev/null +++ b/app/Providers/HorizonServiceProvider.php @@ -0,0 +1,50 @@ +is_admin == true; + }); + } + + /** + * Register any application services. + * + * @return void + */ + public function register() + { + if(config('horizon.darkmode') == true) { + Horizon::night(); + } + } +} diff --git a/composer.json b/composer.json index defbeac70..f7a171666 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "greggilbert/recaptcha": "dev-master", "intervention/image": "^2.4", "laravel/framework": "5.8.*", - "laravel/horizon": "^1.2", + "laravel/horizon": "^3.0", "laravel/passport": "^7.0", "laravel/tinker": "^1.0", "league/flysystem-aws-s3-v3": "~1.0", @@ -42,7 +42,7 @@ "fzaninotto/faker": "^1.4", "mockery/mockery": "^1.0", "nunomaduro/collision": "^2.0", - "phpunit/phpunit": "^7.0" + "phpunit/phpunit": "^7.5" }, "autoload": { "classmap": [ @@ -69,11 +69,11 @@ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ - "@php artisan key:generate" + "@php artisan key:generate --ansi" ], "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", - "@php artisan package:discover" + "@php artisan package:discover --ansi" ] }, "config": { diff --git a/composer.lock b/composer.lock index ed7de6af7..6bddf7633 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8f9feb6f0dd669b7a0974809de05d8bd", + "content-hash": "d7c9f518e63d20424dd17883057f5cb8", "packages": [ { "name": "alchemy/binary-driver", @@ -71,16 +71,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.87.19", + "version": "3.87.21", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "79366d3335649960f49694eb052cbdac6616f843" + "reference": "266641679eea15075ea13c088f9737460351f7ab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/79366d3335649960f49694eb052cbdac6616f843", - "reference": "79366d3335649960f49694eb052cbdac6616f843", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/266641679eea15075ea13c088f9737460351f7ab", + "reference": "266641679eea15075ea13c088f9737460351f7ab", "shasum": "" }, "require": { @@ -149,7 +149,7 @@ "s3", "sdk" ], - "time": "2019-02-26T19:08:43+00:00" + "time": "2019-02-28T20:02:04+00:00" }, { "name": "beyondcode/laravel-self-diagnosis", @@ -1741,40 +1741,42 @@ }, { "name": "laravel/horizon", - "version": "v1.4.3", + "version": "v3.0.0", "source": { "type": "git", "url": "https://github.com/laravel/horizon.git", - "reference": "b00da78d10158036cab2f45115ecc360f2014ed4" + "reference": "11acb6eafee4a0ea3bea87c6277f4342ebd2e1e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/horizon/zipball/b00da78d10158036cab2f45115ecc360f2014ed4", - "reference": "b00da78d10158036cab2f45115ecc360f2014ed4", + "url": "https://api.github.com/repos/laravel/horizon/zipball/11acb6eafee4a0ea3bea87c6277f4342ebd2e1e3", + "reference": "11acb6eafee4a0ea3bea87c6277f4342ebd2e1e3", "shasum": "" }, "require": { "cakephp/chronos": "^1.0", + "ext-json": "*", "ext-pcntl": "*", "ext-posix": "*", - "illuminate/contracts": "~5.5", - "illuminate/queue": "~5.5", - "illuminate/support": "~5.5", + "illuminate/contracts": "~5.7.0|~5.8.0", + "illuminate/queue": "~5.7.0|~5.8.0", + "illuminate/support": "~5.7.0|~5.8.0", "php": ">=7.1.0", "predis/predis": "^1.1", "ramsey/uuid": "^3.5", - "symfony/debug": "~3.3|~4.0" + "symfony/debug": "^4.2", + "symfony/process": "^4.2" }, "require-dev": { - "mockery/mockery": "~1.0", - "orchestra/database": "~3.5", - "orchestra/testbench": "~3.5", - "phpunit/phpunit": "~6.0" + "mockery/mockery": "^1.0", + "orchestra/database": "^3.7", + "orchestra/testbench": "^3.7", + "phpunit/phpunit": "^7.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "3.0-dev" }, "laravel": { "providers": [ @@ -1805,7 +1807,7 @@ "laravel", "queue" ], - "time": "2018-11-01T14:03:51+00:00" + "time": "2019-02-27T15:44:24+00:00" }, { "name": "laravel/passport", diff --git a/config/horizon.php b/config/horizon.php index 1b150d9f4..585495bcd 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -91,4 +91,6 @@ return [ ], ], ], + + 'darkmode' => env('HORIZON_DARKMODE', false), ]; diff --git a/public/vendor/horizon/.gitignore b/public/vendor/horizon/.gitignore new file mode 100644 index 000000000..c96a04f00 --- /dev/null +++ b/public/vendor/horizon/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/public/vendor/horizon/css/app.css b/public/vendor/horizon/css/app.css deleted file mode 100644 index bc6de602e..000000000 Binary files a/public/vendor/horizon/css/app.css and /dev/null differ diff --git a/public/vendor/horizon/css/app.css.map b/public/vendor/horizon/css/app.css.map deleted file mode 100644 index 06d1a8850..000000000 --- a/public/vendor/horizon/css/app.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"/css/app.css","sources":[],"mappings":";;;;;A","sourceRoot":""} \ No newline at end of file diff --git a/public/vendor/horizon/img/favicon.png b/public/vendor/horizon/img/favicon.png deleted file mode 100644 index b5a88f414..000000000 Binary files a/public/vendor/horizon/img/favicon.png and /dev/null differ diff --git a/public/vendor/horizon/img/horizon.svg b/public/vendor/horizon/img/horizon.svg deleted file mode 100644 index 8cce28509..000000000 --- a/public/vendor/horizon/img/horizon.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - horizon - Created with Sketch. - - - - - - - - \ No newline at end of file diff --git a/public/vendor/horizon/img/sprite.svg b/public/vendor/horizon/img/sprite.svg deleted file mode 100644 index b90154aa4..000000000 --- a/public/vendor/horizon/img/sprite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/vendor/horizon/js/app.js b/public/vendor/horizon/js/app.js deleted file mode 100644 index 4badead60..000000000 Binary files a/public/vendor/horizon/js/app.js and /dev/null differ diff --git a/public/vendor/horizon/js/app.js.map b/public/vendor/horizon/js/app.js.map deleted file mode 100644 index 51243e48b..000000000 --- a/public/vendor/horizon/js/app.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"/js/app.js","sources":["webpack:////js/app.js"],"sourcesContent":["!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"\",e(e.s=0)}({\"+ItH\":function(t,e,n){\"use strict\";t.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:[\"mousemove\",\"mouseout\",\"click\",\"touchstart\",\"touchmove\"],hover:{onHover:null,mode:\"nearest\",intersect:!0,animationDuration:400},onClick:null,defaultColor:\"rgba(0,0,0,0.1)\",defaultFontColor:\"#666\",defaultFontFamily:\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",defaultFontSize:12,defaultFontStyle:\"normal\",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('\"),e.join(\"\")}}},t.Chart=t,t}},\"/5sW\":function(t,e,n){\"use strict\";(function(t){function n(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function i(t){return!0===t}function o(t){return!1===t}function a(t){return\"string\"==typeof t||\"number\"==typeof t||\"boolean\"==typeof t}function s(t){return null!==t&&\"object\"==typeof t}function u(t){return\"[object Object]\"===er.call(t)}function l(t){return\"[object RegExp]\"===er.call(t)}function c(t){var e=parseFloat(t);return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return null==t?\"\":\"object\"==typeof t?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var n=Object.create(null),r=t.split(\",\"),i=0;i-1)return t.splice(n,1)}}function g(t,e){return rr.call(t,e)}function v(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function m(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function y(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function _(t,e){for(var n in e)t[n]=e[n];return t}function b(t){for(var e={},n=0;nri&&Xr[n].id>t.id;)n--;Xr.splice(n+1,0,t)}else Xr.push(t);ei||(ei=!0,Nr(Et))}}function Lt(t){ai.clear(),Nt(t,ai)}function Nt(t,e){var n,r,i=Array.isArray(t);if((i||s(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)Nt(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)Nt(t[r[n]],e)}}function Rt(t,e,n){si.get=function(){return this[e][n]},si.set=function(t){this[e][n]=t},Object.defineProperty(t,n,si)}function jt(t){t._watchers=[];var e=t.$options;e.props&&Ft(t,e.props),e.methods&&Ut(t,e.methods),e.data?Wt(t):L(t._data={},!0),e.computed&&Vt(t,e.computed),e.watch&&e.watch!==Ar&&$t(t,e.watch)}function Ft(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;Br.shouldConvert=o;for(var a in e)!function(o){i.push(o);var a=G(o,e,n,t);N(r,o,a),o in t||Rt(t,\"_props\",o)}(a);Br.shouldConvert=!0}function Wt(t){var e=t.$options.data;e=t._data=\"function\"==typeof e?Ht(e,t):e||{},u(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);i--;){var o=n[i];r&&g(r,o)||S(o)||Rt(t,\"_data\",o)}L(e,!0)}function Ht(t,e){try{return t.call(e)}catch(t){return D(t,e,\"data()\"),{}}}function Vt(t,e){var n=t._computedWatchers=Object.create(null);for(var r in e){var i=e[r],o=\"function\"==typeof i?i:i.get;n[r]=new oi(t,o||x,x,ui),r in t||Bt(t,r,i)}}function Bt(t,e,n){\"function\"==typeof n?(si.get=zt(e),si.set=x):(si.get=n.get?!1!==n.cache?zt(e):n.get:x,si.set=n.set?n.set:x),Object.defineProperty(t,e,si)}function zt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),jr.target&&e.depend(),e.value}}function Ut(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?x:m(e[n],t)}function $t(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(t[i])<0)&&r.push(t[i]);return r}return t}function xe(t){this._init(t)}function we(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=y(arguments,1);return n.unshift(this),\"function\"==typeof t.install?t.install.apply(t,n):\"function\"==typeof t&&t.apply(null,n),e.push(t),this}}function Ce(t){t.mixin=function(t){return this.options=Y(this.options,t),this}}function ke(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Y(n.options,t),a.super=n,a.options.props&&Se(a),a.options.computed&&Te(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,dr.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=_({},a.options),i[r]=a,a}}function Se(t){var e=t.options.props;for(var n in e)Rt(t.prototype,\"_props\",n)}function Te(t){var e=t.options.computed;for(var n in e)Bt(t.prototype,n,e[n])}function Ae(t){dr.forEach(function(e){t[e]=function(t,n){return n?(\"component\"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),\"directive\"===e&&\"function\"==typeof n&&(n={bind:n,update:n}),this.options[e+\"s\"][t]=n,n):this.options[e+\"s\"][t]}})}function De(t){return t&&(t.Ctor.options.name||t.tag)}function Ee(t,e){return Array.isArray(t)?t.indexOf(e)>-1:\"string\"==typeof t?t.split(\",\").indexOf(e)>-1:!!l(t)&&t.test(e)}function Oe(t,e,n){for(var r in t){var i=t[r];if(i){var o=De(i.componentOptions);o&&!n(o)&&(i!==e&&Me(i),t[r]=null)}}}function Me(t){t&&t.componentInstance.$destroy()}function Ie(t){for(var e=t.data,n=t,i=t;r(i.componentInstance);)i=i.componentInstance._vnode,i.data&&(e=Pe(i.data,e));for(;r(n=n.parent);)n.data&&(e=Pe(e,n.data));return Le(e.staticClass,e.class)}function Pe(t,e){return{staticClass:Ne(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Le(t,e){return r(t)||r(e)?Ne(t,Re(e)):\"\"}function Ne(t,e){return t?e?t+\" \"+e:t:e||\"\"}function Re(t){return Array.isArray(t)?je(t):s(t)?Fe(t):\"string\"==typeof t?t:\"\"}function je(t){for(var e,n=\"\",i=0,o=t.length;i-1?Ii[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ii[t]=/HTMLUnknownElement/.test(e.toString())}function Ve(t){if(\"string\"==typeof t){var e=document.querySelector(t);return e||document.createElement(\"div\")}return t}function Be(t,e){var n=document.createElement(t);return\"select\"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute(\"multiple\",\"multiple\"),n)}function ze(t,e){return document.createElementNS(Di[t],e)}function Ue(t){return document.createTextNode(t)}function $e(t){return document.createComment(t)}function Ye(t,e,n){t.insertBefore(e,n)}function qe(t,e){t.removeChild(e)}function Ge(t,e){t.appendChild(e)}function Je(t){return t.parentNode}function Ke(t){return t.nextSibling}function Qe(t){return t.tagName}function Xe(t,e){t.textContent=e}function Ze(t,e,n){t.setAttribute(e,n)}function tn(t,e){var n=t.data.ref;if(n){var r=t.context,i=t.componentInstance||t.elm,o=r.$refs;e?Array.isArray(o[n])?p(o[n],i):o[n]===i&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}function en(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&nn(t,e)||i(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&n(e.asyncFactory.error))}function nn(t,e){if(\"input\"!==t.tag)return!0;var n;return(r(n=t.data)&&r(n=n.attrs)&&n.type)===(r(n=e.data)&&r(n=n.attrs)&&n.type)}function rn(t,e,n){var i,o,a={};for(i=e;i<=n;++i)o=t[i].key,r(o)&&(a[o]=i);return a}function on(t,e){(t.data.directives||e.data.directives)&&an(t,e)}function an(t,e){var n,r,i,o=t===Ni,a=e===Ni,s=sn(t.data.directives,t.context),u=sn(e.data.directives,e.context),l=[],c=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,ln(i,\"update\",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(ln(i,\"bind\",e,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var f=function(){for(var n=0;n-1?e.split(/\\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=\" \"+(t.getAttribute(\"class\")||\"\")+\" \";n.indexOf(\" \"+e+\" \")<0&&t.setAttribute(\"class\",(n+e).trim())}}function Tn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(\" \")>-1?e.split(/\\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute(\"class\");else{for(var n=\" \"+(t.getAttribute(\"class\")||\"\")+\" \",r=\" \"+e+\" \";n.indexOf(r)>=0;)n=n.replace(r,\" \");n=n.trim(),n?t.setAttribute(\"class\",n):t.removeAttribute(\"class\")}}function An(t){if(t){if(\"object\"==typeof t){var e={};return!1!==t.css&&_(e,Zi(t.name||\"v\")),_(e,t),e}return\"string\"==typeof t?Zi(t):void 0}}function Dn(t){so(function(){so(t)})}function En(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Sn(t,e))}function On(t,e){t._transitionClasses&&p(t._transitionClasses,e),Tn(t,e)}function Mn(t,e,n){var r=In(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===eo?io:ao,u=0,l=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++u>=a&&l()};setTimeout(function(){u0&&(n=eo,c=a,f=o.length):e===no?l>0&&(n=no,c=l,f=u.length):(c=Math.max(a,l),n=c>0?a>l?eo:no:null,f=n?n===eo?o.length:u.length:0),{type:n,timeout:c,propCount:f,hasTransform:n===eo&&uo.test(r[ro+\"Property\"])}}function Pn(t,e){for(;t.length1}function Wn(t,e){!0!==e.data.show&&Nn(e)}function Hn(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(w(Vn(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Vn(t){return\"_value\"in t?t._value:t.value}function Bn(t){t.target.composing=!0}function zn(t){t.target.composing&&(t.target.composing=!1,Un(t.target,\"input\"))}function Un(t,e){var n=document.createEvent(\"HTMLEvents\");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function $n(t){return!t.componentInstance||t.data&&t.data.transition?t:$n(t.componentInstance._vnode)}function Yn(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Yn(ht(e.children)):t}function qn(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[or(o)]=i[o];return e}function Gn(t,e){if(/\\d-keep-alive$/.test(e.tag))return t(\"keep-alive\",{props:e.componentOptions.propsData})}function Jn(t){for(;t=t.parent;)if(t.data.transition)return!0}function Kn(t,e){return e.key===t.key&&e.tag===t.tag}function Qn(t){return t.isComment&&t.asyncFactory}function Xn(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Zn(t){t.data.newPos=t.elm.getBoundingClientRect()}function tr(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform=\"translate(\"+r+\"px,\"+i+\"px)\",o.transitionDuration=\"0s\"}}var er=Object.prototype.toString,nr=(h(\"slot,component\",!0),h(\"key,ref,slot,is\")),rr=Object.prototype.hasOwnProperty,ir=/-(\\w)/g,or=v(function(t){return t.replace(ir,function(t,e){return e?e.toUpperCase():\"\"})}),ar=v(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),sr=/([^-])([A-Z])/g,ur=v(function(t){return t.replace(sr,\"$1-$2\").replace(sr,\"$1-$2\").toLowerCase()}),lr=function(t,e,n){return!1},cr=function(t){return t},fr=\"data-server-rendered\",dr=[\"component\",\"directive\",\"filter\"],hr=[\"beforeCreate\",\"created\",\"beforeMount\",\"mounted\",\"beforeUpdate\",\"updated\",\"beforeDestroy\",\"destroyed\",\"activated\",\"deactivated\"],pr={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:lr,isReservedAttr:lr,isUnknownElement:lr,getTagNamespace:x,parsePlatformTagName:cr,mustUseProp:lr,_lifecycleHooks:hr},gr=Object.freeze({}),vr=/[^\\w.$]/,mr=x,yr=\"__proto__\"in{},_r=\"undefined\"!=typeof window,br=_r&&window.navigator.userAgent.toLowerCase(),xr=br&&/msie|trident/.test(br),wr=br&&br.indexOf(\"msie 9.0\")>0,Cr=br&&br.indexOf(\"edge/\")>0,kr=br&&br.indexOf(\"android\")>0,Sr=br&&/iphone|ipad|ipod|ios/.test(br),Tr=br&&/chrome\\/\\d+/.test(br)&&!Cr,Ar={}.watch,Dr=!1;if(_r)try{var Er={};Object.defineProperty(Er,\"passive\",{get:function(){Dr=!0}}),window.addEventListener(\"test-passive\",null,Er)}catch(t){}var Or,Mr,Ir=function(){return void 0===Or&&(Or=!_r&&void 0!==t&&\"server\"===t.process.env.VUE_ENV),Or},Pr=_r&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Lr=\"undefined\"!=typeof Symbol&&E(Symbol)&&\"undefined\"!=typeof Reflect&&E(Reflect.ownKeys),Nr=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1?y(n):n;for(var r=y(arguments,1),i=0,o=n.length;i1&&(e[n[0].trim()]=n[1].trim())}}),e}),qi=/^--/,Gi=/\\s*!important$/,Ji=function(t,e,n){if(qi.test(e))t.style.setProperty(e,n);else if(Gi.test(n))t.style.setProperty(e,n.replace(Gi,\"\"),\"important\");else{var r=Qi(e);if(Array.isArray(n))for(var i=0,o=n.length;ip?(f=n(i[m+1])?null:i[m+1].elm,y(t,f,i,h,m,o)):h>m&&b(t,e,d,p)}function C(t,e,o,a){if(t!==e){var s=e.elm=t.elm;if(i(t.isAsyncPlaceholder))return void(r(e.asyncFactory.resolved)?S(t.elm,e,o):e.isAsyncPlaceholder=!0);if(i(e.isStatic)&&i(t.isStatic)&&e.key===t.key&&(i(e.isCloned)||i(e.isOnce)))return void(e.componentInstance=t.componentInstance);var u,l=e.data;r(l)&&r(u=l.hook)&&r(u=u.prepatch)&&u(t,e);var c=t.children,f=e.children;if(r(l)&&g(e)){for(u=0;ur.height-e.height&&(a=\"bottom\");var s,u,l,c,f,d=(i.left+i.right)/2,h=(i.top+i.bottom)/2;\"center\"===a?(s=function(t){return t<=d},u=function(t){return t>d}):(s=function(t){return t<=e.width/2},u=function(t){return t>=r.width-e.width/2}),l=function(t){return t+e.width>r.width},c=function(t){return t-e.width<0},f=function(t){return t<=h?\"top\":\"bottom\"},s(n.x)?(o=\"left\",l(n.x)&&(o=\"center\",a=f(n.y))):u(n.x)&&(o=\"right\",c(n.x)&&(o=\"center\",a=f(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:o,yAlign:p.yAlign?p.yAlign:a}}function s(t,e,n){var r=t.x,i=t.y,o=t.caretSize,a=t.caretPadding,s=t.cornerRadius,u=n.xAlign,l=n.yAlign,c=o+a,f=s+a;return\"right\"===u?r-=e.width:\"center\"===u&&(r-=e.width/2),\"top\"===l?i+=c:i-=\"bottom\"===l?e.height+c:e.height/2,\"center\"===l?\"left\"===u?r+=c:\"right\"===u&&(r-=c):\"left\"===u?r-=f:\"right\"===u&&(r+=f),{x:r,y:i}}var u=t.helpers;t.defaults.global.tooltips={enabled:!0,custom:null,mode:\"nearest\",position:\"average\",intersect:!0,backgroundColor:\"rgba(0,0,0,0.8)\",titleFontStyle:\"bold\",titleSpacing:2,titleMarginBottom:6,titleFontColor:\"#fff\",titleAlign:\"left\",bodySpacing:2,bodyFontColor:\"#fff\",bodyAlign:\"left\",footerFontStyle:\"bold\",footerSpacing:2,footerMarginTop:6,footerFontColor:\"#fff\",footerAlign:\"left\",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:\"#fff\",displayColors:!0,borderColor:\"rgba(0,0,0,0)\",borderWidth:0,callbacks:{beforeTitle:u.noop,title:function(t,e){var n=\"\",r=e.labels,i=r?r.length:0;if(t.length>0){var o=t[0];o.xLabel?n=o.xLabel:i>0&&o.index0&&r.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},r={x:e.x,y:e.y},i=Math.abs(e.opacity<.001)?0:e.opacity,o=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&o&&(this.drawBackground(r,e,t,n,i),r.x+=e.xPadding,r.y+=e.yPadding,this.drawTitle(r,e,t,i),this.drawBody(r,e,t,i),this.drawFooter(r,e,t,i))}},handleEvent:function(t){var e=this,n=e._options,r=!1;if(e._lastActive=e._lastActive||[],\"mouseout\"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(r=!u.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var i=e._model;e.update(!0),e.pivot(),r|=i.x!==e._model.x||i.y!==e._model.y}return r}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,r=0,i=0,o=0;for(e=0,n=t.length;en.max&&(n.max=r),0!==r&&(null===n.minNotZero||ru;)o-=2*Math.PI;for(;o=s&&o<=u,c=a>=r.innerRadius&&a<=r.outerRadius;return l&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,r=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,r),t.arc(e.x,e.y,e.innerRadius,r,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin=\"bevel\",e.borderWidth&&t.stroke()}})}},\"5VQ+\":function(t,e,n){\"use strict\";var r=n(\"cGG2\");t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},\"5VY+\":function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"layout\",[n(\"section\",{staticClass:\"main-content\"},[n(\"div\",{staticClass:\"card mb-4\"},[n(\"div\",{staticClass:\"card-header\"},[t._v(\"Throughput - \"+t._s(t.slug))]),t._v(\" \"),n(\"div\",{staticClass:\"card-body\"},[n(\"loader\",{attrs:{yes:t.loading}}),t._v(\" \"),t.loading||t.rawData.length?t._e():n(\"p\",{staticClass:\"text-center m-0 p-5\"},[t._v(\"\\n Not Enough Data\\n \")]),t._v(\" \"),!t.loading&&t.rawData.length?n(\"line-chart\",{attrs:{data:t.metric.throughPutChart}}):t._e()],1)]),t._v(\" \"),n(\"div\",{staticClass:\"card\"},[n(\"div\",{staticClass:\"card-header\"},[t._v(\"Runtime - \"+t._s(t.slug))]),t._v(\" \"),n(\"div\",{staticClass:\"card-body\"},[n(\"loader\",{attrs:{yes:t.loading}}),t._v(\" \"),t.loading||t.rawData.length?t._e():n(\"p\",{staticClass:\"text-center m-0 p-5\"},[t._v(\"\\n Not Enough Data\\n \")]),t._v(\" \"),!t.loading&&t.rawData.length?n(\"line-chart\",{attrs:{data:t.metric.runTimeChart}}):t._e()],1)])])])},staticRenderFns:[]}},\"6hBi\":function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"layout\",[n(\"section\",{staticClass:\"mainContent\"},[n(\"div\",{staticClass:\"card\"},[n(\"div\",{staticClass:\"card-header\"},[t._v(\"Overview\")]),t._v(\" \"),n(\"div\",{staticClass:\"card-body p-0\"},[n(\"div\",{staticClass:\"container-fluid\"},[n(\"div\",{staticClass:\"stats row\"},[n(\"div\",{staticClass:\"stat col-3 p-4\"},[n(\"h2\",{staticClass:\"stat-title\"},[t._v(\"Jobs Per Minute\")]),t._v(\" \"),n(\"h3\",{staticClass:\"stat-meta\"},[t._v(\" \")]),t._v(\" \"),n(\"span\",{staticClass:\"stat-value\"},[t._v(\"\\n \"+t._s(t.stats.jobsPerMinute)+\"\\n \")])]),t._v(\" \"),n(\"div\",{staticClass:\"stat col-3 p-4\"},[n(\"h2\",{staticClass:\"stat-title\"},[t._v(\"Jobs past hour\")]),t._v(\" \"),n(\"h3\",{staticClass:\"stat-meta\"},[t._v(\" \")]),t._v(\" \"),n(\"span\",{staticClass:\"stat-value\"},[t._v(\"\\n \"+t._s(t.stats.recentJobs)+\"\\n \")])]),t._v(\" \"),n(\"div\",{staticClass:\"stat col-3 p-4\"},[n(\"h2\",{staticClass:\"stat-title\"},[t._v(\"Failed Jobs past hour\")]),t._v(\" \"),n(\"h3\",{staticClass:\"stat-meta\"},[t._v(\" \")]),t._v(\" \"),n(\"span\",{staticClass:\"stat-value\"},[t._v(\"\\n \"+t._s(t.stats.recentlyFailed)+\"\\n \")])]),t._v(\" \"),n(\"div\",{staticClass:\"stat col-3 p-4 border-right-0\"},[n(\"h2\",{staticClass:\"stat-title\"},[t._v(\"Status\")]),t._v(\" \"),n(\"h3\",{staticClass:\"stat-meta\"},[t._v(\" \")]),t._v(\" \"),n(\"div\",{staticClass:\"d-flex align-items-center\"},[n(\"status\",{staticClass:\"mr-2\",attrs:{active:\"running\"==t.stats.status,pending:\"paused\"==t.stats.status}}),t._v(\" \"),n(\"span\",{staticClass:\"stat-value\"},[t._v(\"\\n \"+t._s({running:\"Active\",paused:\"Paused\",inactive:\"Inactive\"}[t.stats.status])+\"\\n \")])],1)]),t._v(\" \"),n(\"div\",{staticClass:\"stat col-3 p-4 border-bottom-0\"},[n(\"h2\",{staticClass:\"stat-title\"},[t._v(\"Total Processes\")]),t._v(\" \"),n(\"h3\",{staticClass:\"state-meta\"},[t._v(\" \")]),t._v(\" \"),n(\"span\",{staticClass:\"stat-value\"},[t._v(\"\\n \"+t._s(t.stats.processes)+\"\\n \")])]),t._v(\" \"),n(\"div\",{staticClass:\"stat col-3 p-4 border-bottom-0\"},[n(\"h2\",{staticClass:\"stat-title\"},[t._v(\"Max Wait Time\")]),t._v(\" \"),n(\"h3\",{staticClass:\"stat-meta\"},[t._v(\"\\n \"+t._s(t.stats.max_wait_queue||\" \")+\"\\n \")]),t._v(\" \"),n(\"span\",{staticClass:\"stat-value\"},[t._v(\"\\n \"+t._s(t.stats.max_wait_time?t.humanTime(t.stats.max_wait_time):\"-\")+\"\\n \")])]),t._v(\" \"),n(\"div\",{staticClass:\"stat col-3 p-4 border-bottom-0\"},[n(\"h2\",{staticClass:\"stat-title\"},[t._v(\"Max Runtime\")]),t._v(\" \"),n(\"h3\",{staticClass:\"state-meta\"},[t._v(\" \")]),t._v(\" \"),n(\"span\",{staticClass:\"stat-value\"},[t._v(\"\\n \"+t._s(t.stats.queueWithMaxRuntime?t.stats.queueWithMaxRuntime:\"-\")+\"\\n \")])]),t._v(\" \"),n(\"div\",{staticClass:\"stat col-3 p-4 border-0\"},[n(\"h2\",{staticClass:\"stat-title\"},[t._v(\"Max Throughput\")]),t._v(\" \"),n(\"h3\",{staticClass:\"state-meta\"},[t._v(\" \")]),t._v(\" \"),n(\"span\",{staticClass:\"stat-value\"},[t._v(\"\\n \"+t._s(t.stats.queueWithMaxThroughput?t.stats.queueWithMaxThroughput:\"-\")+\"\\n \")])])])])])]),t._v(\" \"),t.workload.length?n(\"div\",{staticClass:\"card mt-4\"},[n(\"div\",{staticClass:\"card-header\"},[t._v(\"Current Workload\")]),t._v(\" \"),n(\"div\",{staticClass:\"table-responsive\"},[n(\"table\",{staticClass:\"table card-table table-hover\"},[n(\"thead\",[n(\"tr\",[n(\"th\",[t._v(\"Queue\")]),t._v(\" \"),n(\"th\",[t._v(\"Processes\")]),t._v(\" \"),n(\"th\",[t._v(\"Jobs\")]),t._v(\" \"),n(\"th\",[t._v(\"Wait\")])])]),t._v(\" \"),n(\"tbody\",t._l(t.workload,function(e){return n(\"tr\",[n(\"td\",[n(\"span\",[t._v(t._s(e.name))])]),t._v(\" \"),n(\"td\",[t._v(t._s(e.processes))]),t._v(\" \"),n(\"td\",[t._v(t._s(e.length))]),t._v(\" \"),n(\"td\",[t._v(t._s(t.humanTime(e.wait)))])])}))])])]):t._e(),t._v(\" \"),t._l(t.workers,function(e){return n(\"div\",{key:e.name,staticClass:\"card mt-4\"},[n(\"div\",{staticClass:\"card-header\"},[t._v(t._s(e.name))]),t._v(\" \"),n(\"div\",{staticClass:\"table-responsive\"},[n(\"table\",{staticClass:\"table card-table table-hover\"},[n(\"thead\",[n(\"tr\",[n(\"th\",[t._v(\"Supervisor\")]),t._v(\" \"),n(\"th\",[t._v(\"Processes\")]),t._v(\" \"),n(\"th\",[t._v(\"Queues\")]),t._v(\" \"),n(\"th\",[t._v(\"Balancing\")])])]),t._v(\" \"),n(\"tbody\",t._l(e.supervisors,function(r){return n(\"tr\",[n(\"td\",{staticClass:\"ph2\"},[n(\"span\",{staticClass:\"fw7\"},[t._v(t._s(t.superVisorDisplayName(r.name,e.name)))])]),t._v(\" \"),n(\"td\",[t._v(t._s(t.countProcesses(r.processes)))]),t._v(\" \"),n(\"td\",[t._v(t._s(r.options.queue))]),t._v(\" \"),n(\"td\",{staticClass:\"d-flex align-items-center\"},[n(\"status\",{staticClass:\"mr-2\",attrs:{active:r.options.balance}}),t._v(\" \"),r.options.balance?n(\"span\",[t._v(\"\\n (\"+t._s(r.options.balance.charAt(0).toUpperCase()+r.options.balance.slice(1))+\")\\n \")]):t._e()],1)])}))])])])})],2)])},staticRenderFns:[]}},\"6rMk\":function(t,e,n){\"use strict\";t.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:\"easeOutQuart\",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({chart:null,currentStep:0,numSteps:60,easing:\"\",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,r){var i,o,a=this.animations;for(e.chart=t,r||(t.animating=!0),i=0,o=a.length;i1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var r=Date.now();t.dropFrames+=(r-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var n,r,i=this.animations,o=0;o=n.numSteps?(e.callback(n.onAnimationComplete,[n],r),r.animating=!1,i.splice(o,1)):++o}},Object.defineProperty(t.Animation.prototype,\"animationObject\",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,\"chartInstance\",{get:function(){return this.chart},set:function(t){this.chart=t}})}},\"72Lu\":function(t,e,n){\"use strict\";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},\"7GwW\":function(t,e,n){\"use strict\";var r=n(\"cGG2\"),i=n(\"21It\"),o=n(\"DQCr\"),a=n(\"oJlt\"),s=n(\"GHBc\"),u=n(\"FtD3\"),l=\"undefined\"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(\"thJu\");t.exports=function(t){return new Promise(function(e,c){var f=t.data,d=t.headers;r.isFormData(f)&&delete d[\"Content-Type\"];var h=new XMLHttpRequest,p=\"onreadystatechange\",g=!1;if(\"undefined\"==typeof window||!window.XDomainRequest||\"withCredentials\"in h||s(t.url)||(h=new window.XDomainRequest,p=\"onload\",g=!0,h.onprogress=function(){},h.ontimeout=function(){}),t.auth){var v=t.auth.username||\"\",m=t.auth.password||\"\";d.Authorization=\"Basic \"+l(v+\":\"+m)}if(h.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h[p]=function(){if(h&&(4===h.readyState||g)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf(\"file:\"))){var n=\"getAllResponseHeaders\"in h?a(h.getAllResponseHeaders()):null,r=t.responseType&&\"text\"!==t.responseType?h.response:h.responseText,o={data:r,status:1223===h.status?204:h.status,statusText:1223===h.status?\"No Content\":h.statusText,headers:n,config:t,request:h};i(e,c,o),h=null}},h.onerror=function(){c(u(\"Network Error\",t)),h=null},h.ontimeout=function(){c(u(\"timeout of \"+t.timeout+\"ms exceeded\",t,\"ECONNABORTED\")),h=null},r.isStandardBrowserEnv()){var y=n(\"p1b6\"),_=(t.withCredentials||s(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;_&&(d[t.xsrfHeaderName]=_)}if(\"setRequestHeader\"in h&&r.forEach(d,function(t,e){void 0===f&&\"content-type\"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)}),t.withCredentials&&(h.withCredentials=!0),t.responseType)try{h.responseType=t.responseType}catch(t){if(\"json\"!==h.responseType)throw t}\"function\"==typeof t.onDownloadProgress&&h.addEventListener(\"progress\",t.onDownloadProgress),\"function\"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener(\"progress\",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){h&&(h.abort(),c(t),h=null)}),void 0===f&&(f=null),h.send(f)})}},\"7t+N\":function(t,e,n){var r,i;!function(e,n){\"use strict\";\"object\"==typeof t&&\"object\"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error(\"jQuery requires a window with a document\");return n(t)}:n(e)}(\"undefined\"!=typeof window?window:this,function(n,o){\"use strict\";function a(t,e){e=e||at;var n=e.createElement(\"script\");n.text=t,e.head.appendChild(n).parentNode.removeChild(n)}function s(t){var e=!!t&&\"length\"in t&&t.length,n=yt.type(t);return\"function\"!==n&&!yt.isWindow(t)&&(\"array\"===n||0===e||\"number\"==typeof e&&e>0&&e-1 in t)}function u(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function l(t,e,n){return yt.isFunction(e)?yt.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?yt.grep(t,function(t){return t===e!==n}):\"string\"!=typeof e?yt.grep(t,function(t){return ft.call(e,t)>-1!==n}):Dt.test(e)?yt.filter(e,t,n):(e=yt.filter(e,t),yt.grep(t,function(t){return ft.call(e,t)>-1!==n&&1===t.nodeType}))}function c(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function f(t){var e={};return yt.each(t.match(Pt)||[],function(t,n){e[n]=!0}),e}function d(t){return t}function h(t){throw t}function p(t,e,n,r){var i;try{t&&yt.isFunction(i=t.promise)?i.call(t).done(e).fail(n):t&&yt.isFunction(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}function g(){at.removeEventListener(\"DOMContentLoaded\",g),n.removeEventListener(\"load\",g),yt.ready()}function v(){this.expando=yt.expando+v.uid++}function m(t){return\"true\"===t||\"false\"!==t&&(\"null\"===t?null:t===+t+\"\"?+t:Ht.test(t)?JSON.parse(t):t)}function y(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r=\"data-\"+e.replace(Vt,\"-$&\").toLowerCase(),\"string\"==typeof(n=t.getAttribute(r))){try{n=m(n)}catch(t){}Wt.set(t,e,n)}else n=void 0;return n}function _(t,e,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return yt.css(t,e,\"\")},u=s(),l=n&&n[3]||(yt.cssNumber[e]?\"\":\"px\"),c=(yt.cssNumber[e]||\"px\"!==l&&+u)&&zt.exec(yt.css(t,e));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do{o=o||\".5\",c/=o,yt.style(t,e,c+l)}while(o!==(o=s()/u)&&1!==o&&--a)}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}function b(t){var e,n=t.ownerDocument,r=t.nodeName,i=qt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=yt.css(e,\"display\"),e.parentNode.removeChild(e),\"none\"===i&&(i=\"block\"),qt[r]=i,i)}function x(t,e){for(var n,r,i=[],o=0,a=t.length;o-1)i&&i.push(o);else if(l=yt.contains(o.ownerDocument,o),a=w(f.appendChild(o),\"script\"),l&&C(a),n)for(c=0;o=a[c++];)Kt.test(o.type||\"\")&&n.push(o);return f}function S(){return!0}function T(){return!1}function A(){try{return at.activeElement}catch(t){}}function D(t,e,n,r,i,o){var a,s;if(\"object\"==typeof e){\"string\"!=typeof n&&(r=r||n,n=void 0);for(s in e)D(t,s,n,r,e[s],o);return t}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=T;else if(!i)return t;return 1===o&&(a=i,i=function(t){return yt().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=yt.guid++)),t.each(function(){yt.event.add(this,e,i,r,n)})}function E(t,e){return u(t,\"table\")&&u(11!==e.nodeType?e:e.firstChild,\"tr\")?yt(\">tbody\",t)[0]||t:t}function O(t){return t.type=(null!==t.getAttribute(\"type\"))+\"/\"+t.type,t}function M(t){var e=ae.exec(t.type);return e?t.type=e[1]:t.removeAttribute(\"type\"),t}function I(t,e){var n,r,i,o,a,s,u,l;if(1===e.nodeType){if(Ft.hasData(t)&&(o=Ft.access(t),a=Ft.set(e,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;n1&&\"string\"==typeof p&&!mt.checkClone&&oe.test(p))return t.each(function(i){var o=t.eq(i);g&&(e[0]=p.call(this,i,o.html())),L(o,e,n,r)});if(d&&(i=k(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=yt.map(w(i,\"script\"),O),u=s.length;f=0&&nx.cacheLength&&delete t[e.shift()],t[n+\" \"]=r}var e=[];return t}function r(t){return t[F]=!0,t}function i(t){var e=M.createElement(\"fieldset\");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split(\"|\"),r=n.length;r--;)x.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(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&&wt(e)===t:e.disabled===t:\"label\"in e&&e.disabled===t}}function u(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function l(t){return t&&void 0!==t.getElementsByTagName&&t}function c(){}function f(t){for(var e=0,n=t.length,r=\"\";e1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function p(t,n,r){for(var i=0,o=n.length;i-1&&(r[l]=!(a[l]=f))}}else _=g(_===a?_.splice(v,_.length):_),o?o(null,a,_,u):K.apply(a,_)})}function m(t){for(var e,n,r,i=t.length,o=x.relative[t[0].type],a=o||x.relative[\" \"],s=o?1:0,u=d(function(t){return t===e},a,!0),l=d(function(t){return X(e,t)>-1},a,!0),c=[function(t,n,r){var i=!o&&(r||n!==A)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];s1&&h(c),s>1&&f(t.slice(0,s-1).concat({value:\" \"===t[s-2].type?\"*\":\"\"})).replace(ot,\"$1\"),n,s0,o=t.length>0,a=function(r,a,s,u,l){var c,f,d,h=0,p=\"0\",v=r&&[],m=[],y=A,_=r||o&&x.find.TAG(\"*\",l),b=H+=null==y?1:Math.random()||.1,w=_.length;for(l&&(A=a===M||a||l);p!==w&&null!=(c=_[p]);p++){if(o&&c){for(f=0,a||c.ownerDocument===M||(O(c),s=!P);d=t[f++];)if(d(c,a||M,s)){u.push(c);break}l&&(H=b)}i&&((c=!d&&c)&&h--,r&&v.push(c))}if(h+=p,i&&p!==h){for(f=0;d=n[f++];)d(v,m,a,s);if(r){if(h>0)for(;p--;)v[p]||m[p]||(m[p]=G.call(u));m=g(m)}K.apply(u,m),l&&!r&&m.length>0&&h+n.length>1&&e.uniqueSort(u)}return l&&(H=b,A=y),v};return i?r(a):a}var _,b,x,w,C,k,S,T,A,D,E,O,M,I,P,L,N,R,j,F=\"sizzle\"+1*new Date,W=t.document,H=0,V=0,B=n(),z=n(),U=n(),$=function(t,e){return t===e&&(E=!0),0},Y={}.hasOwnProperty,q=[],G=q.pop,J=q.push,K=q.push,Q=q.slice,X=function(t,e){for(var n=0,r=t.length;n+~]|\"+tt+\")\"+tt+\"*\"),ut=new RegExp(\"=\"+tt+\"*([^\\\\]'\\\"]*?)\"+tt+\"*\\\\]\",\"g\"),lt=new RegExp(rt),ct=new RegExp(\"^\"+et+\"$\"),ft={ID:new RegExp(\"^#(\"+et+\")\"),CLASS:new RegExp(\"^\\\\.(\"+et+\")\"),TAG:new RegExp(\"^(\"+et+\"|[*])\"),ATTR:new RegExp(\"^\"+nt),PSEUDO:new RegExp(\"^\"+rt),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+tt+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+tt+\"*(?:([+-]|)\"+tt+\"*(\\\\d+)|))\"+tt+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+Z+\")$\",\"i\"),needsContext:new RegExp(\"^\"+tt+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+tt+\"*((?:-\\\\d)?\\\\d*)\"+tt+\"*\\\\)|)(?=[^-]|$)\",\"i\")},dt=/^(?:input|select|textarea|button)$/i,ht=/^h\\d$/i,pt=/^[^{]+\\{\\s*\\[native \\w/,gt=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,vt=/[+~]/,mt=new RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+tt+\"?|(\"+tt+\")|.)\",\"ig\"),yt=function(t,e,n){var r=\"0x\"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},_t=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,bt=function(t,e){return e?\"\\0\"===t?\"�\":t.slice(0,-1)+\"\\\\\"+t.charCodeAt(t.length-1).toString(16)+\" \":\"\\\\\"+t},xt=function(){O()},wt=d(function(t){return!0===t.disabled&&(\"form\"in t||\"label\"in t)},{dir:\"parentNode\",next:\"legend\"});try{K.apply(q=Q.call(W.childNodes),W.childNodes),q[W.childNodes.length].nodeType}catch(t){K={apply:q.length?function(t,e){J.apply(t,Q.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}b=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&\"HTML\"!==e.nodeName},O=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:W;return r!==M&&9===r.nodeType&&r.documentElement?(M=r,I=M.documentElement,P=!C(M),W!==M&&(n=M.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener(\"unload\",xt,!1):n.attachEvent&&n.attachEvent(\"onunload\",xt)),b.attributes=i(function(t){return t.className=\"i\",!t.getAttribute(\"className\")}),b.getElementsByTagName=i(function(t){return t.appendChild(M.createComment(\"\")),!t.getElementsByTagName(\"*\").length}),b.getElementsByClassName=pt.test(M.getElementsByClassName),b.getById=i(function(t){return I.appendChild(t).id=F,!M.getElementsByName||!M.getElementsByName(F).length}),b.getById?(x.filter.ID=function(t){var e=t.replace(mt,yt);return function(t){return t.getAttribute(\"id\")===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&P){var n=e.getElementById(t);return n?[n]:[]}}):(x.filter.ID=function(t){var e=t.replace(mt,yt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode(\"id\");return n&&n.value===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&P){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode(\"id\"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode(\"id\"))&&n.value===t)return[o]}return[]}}),x.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if(\"*\"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&P)return e.getElementsByClassName(t)},N=[],L=[],(b.qsa=pt.test(M.querySelectorAll))&&(i(function(t){I.appendChild(t).innerHTML=\"\",t.querySelectorAll(\"[msallowcapture^='']\").length&&L.push(\"[*^$]=\"+tt+\"*(?:''|\\\"\\\")\"),t.querySelectorAll(\"[selected]\").length||L.push(\"\\\\[\"+tt+\"*(?:value|\"+Z+\")\"),t.querySelectorAll(\"[id~=\"+F+\"-]\").length||L.push(\"~=\"),t.querySelectorAll(\":checked\").length||L.push(\":checked\"),t.querySelectorAll(\"a#\"+F+\"+*\").length||L.push(\".#.+[+~]\")}),i(function(t){t.innerHTML=\"\";var e=M.createElement(\"input\");e.setAttribute(\"type\",\"hidden\"),t.appendChild(e).setAttribute(\"name\",\"D\"),t.querySelectorAll(\"[name=d]\").length&&L.push(\"name\"+tt+\"*[*^$|!~]?=\"),2!==t.querySelectorAll(\":enabled\").length&&L.push(\":enabled\",\":disabled\"),I.appendChild(t).disabled=!0,2!==t.querySelectorAll(\":disabled\").length&&L.push(\":enabled\",\":disabled\"),t.querySelectorAll(\"*,:x\"),L.push(\",.*:\")})),(b.matchesSelector=pt.test(R=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&i(function(t){b.disconnectedMatch=R.call(t,\"*\"),R.call(t,\"[s!='']:x\"),N.push(\"!=\",rt)}),L=L.length&&new RegExp(L.join(\"|\")),N=N.length&&new RegExp(N.join(\"|\")),e=pt.test(I.compareDocumentPosition),j=e||pt.test(I.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return E=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!b.sortDetached&&e.compareDocumentPosition(t)===n?t===M||t.ownerDocument===W&&j(W,t)?-1:e===M||e.ownerDocument===W&&j(W,e)?1:D?X(D,t)-X(D,e):0:4&n?-1:1)}:function(t,e){if(t===e)return E=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,s=[t],u=[e];if(!i||!o)return t===M?-1:e===M?1:i?-1:o?1:D?X(D,t)-X(D,e):0;if(i===o)return a(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===W?-1:u[r]===W?1:0},M):M},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==M&&O(t),n=n.replace(ut,\"='$1']\"),b.matchesSelector&&P&&!U[n+\" \"]&&(!N||!N.test(n))&&(!L||!L.test(n)))try{var r=R.call(t,n);if(r||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return e(n,M,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==M&&O(t),j(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==M&&O(t);var n=x.attrHandle[e.toLowerCase()],r=n&&Y.call(x.attrHandle,e.toLowerCase())?n(t,e,!P):void 0;return void 0!==r?r:b.attributes||!P?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.escape=function(t){return(t+\"\").replace(_t,bt)},e.error=function(t){throw new Error(\"Syntax error, unrecognized expression: \"+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(E=!b.detectDuplicates,D=!b.sortStable&&t.slice(0),t.sort($),E){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return D=null,t},w=e.getText=function(t){var e,n=\"\",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if(\"string\"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=w(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=w(e);return n},x=e.selectors={cacheLength:50,createPseudo:r,match:ft,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(mt,yt),t[3]=(t[3]||t[4]||t[5]||\"\").replace(mt,yt),\"~=\"===t[2]&&(t[3]=\" \"+t[3]+\" \"),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),\"nth\"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*(\"even\"===t[3]||\"odd\"===t[3])),t[5]=+(t[7]+t[8]||\"odd\"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||\"\":n&<.test(n)&&(e=k(n,!0))&&(e=n.indexOf(\")\",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(mt,yt).toLowerCase();return\"*\"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+\" \"];return e||(e=new RegExp(\"(^|\"+tt+\")\"+t+\"(\"+tt+\"|$)\"))&&B(t,function(t){return e.test(\"string\"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute(\"class\")||\"\")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?\"!=\"===n:!n||(o+=\"\",\"=\"===n?o===r:\"!=\"===n?o!==r:\"^=\"===n?r&&0===o.indexOf(r):\"*=\"===n?r&&o.indexOf(r)>-1:\"$=\"===n?r&&o.slice(-r.length)===r:\"~=\"===n?(\" \"+o.replace(it,\" \")+\" \").indexOf(r)>-1:\"|=\"===n&&(o===r||o.slice(0,r.length+1)===r+\"-\"))}},CHILD:function(t,e,n,r,i){var o=\"nth\"!==t.slice(0,3),a=\"last\"!==t.slice(-4),s=\"of-type\"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,d,h,p,g=o!==a?\"nextSibling\":\"previousSibling\",v=e.parentNode,m=s&&e.nodeName.toLowerCase(),y=!u&&!s,_=!1;if(v){if(o){for(;g;){for(d=e;d=d[g];)if(s?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;p=g=\"only\"===t&&!p&&\"nextSibling\"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&y){for(d=v,f=d[F]||(d[F]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[t]||[],h=l[0]===H&&l[1],_=h&&l[2],d=h&&v.childNodes[h];d=++h&&d&&d[g]||(_=h=0)||p.pop();)if(1===d.nodeType&&++_&&d===e){c[t]=[H,h,_];break}}else if(y&&(d=e,f=d[F]||(d[F]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[t]||[],h=l[0]===H&&l[1],_=h),!1===_)for(;(d=++h&&d&&d[g]||(_=h=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++_||(y&&(f=d[F]||(d[F]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[t]=[H,_]),d!==e)););return(_-=i)===r||_%r==0&&_/r>=0}}},PSEUDO:function(t,n){var i,o=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error(\"unsupported pseudo: \"+t);return o[F]?o(n):o.length>1?(i=[t,t,\"\",n],x.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=X(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=S(t.replace(ot,\"$1\"));return i[F]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(mt,yt),function(e){return(e.textContent||e.innerText||w(e)).indexOf(t)>-1}}),lang:r(function(t){return ct.test(t||\"\")||e.error(\"unsupported lang: \"+t),t=t.replace(mt,yt).toLowerCase(),function(e){var n;do{if(n=P?e.lang:e.getAttribute(\"xml:lang\")||e.getAttribute(\"lang\"))return(n=n.toLowerCase())===t||0===n.indexOf(t+\"-\")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===I},focus:function(t){return t===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(t){var e=t.nodeName.toLowerCase();return\"input\"===e&&!!t.checked||\"option\"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return ht.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return\"input\"===e&&\"button\"===t.type||\"button\"===e},text:function(t){var e;return\"input\"===t.nodeName.toLowerCase()&&\"text\"===t.type&&(null==(e=t.getAttribute(\"type\"))||\"text\"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[n<0?n+e:n]}),even:u(function(t,e){for(var n=0;n=0;)t.push(r);return t}),gt:u(function(t,e,n){for(var r=n<0?n+e:n;++r2&&\"ID\"===(a=o[0]).type&&9===e.nodeType&&P&&x.relative[o[1].type]){if(!(e=(x.find.ID(a.matches[0].replace(mt,yt),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=ft.needsContext.test(t)?0:o.length;i--&&(a=o[i],!x.relative[s=a.type]);)if((u=x.find[s])&&(r=u(a.matches[0].replace(mt,yt),vt.test(o[0].type)&&l(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&f(o)))return K.apply(n,r),n;break}}return(c||S(t,d))(r,e,!P,n,!e||vt.test(t)&&l(e.parentNode)||e),n},b.sortStable=F.split(\"\").sort($).join(\"\")===F,b.detectDuplicates=!!E,O(),b.sortDetached=i(function(t){return 1&t.compareDocumentPosition(M.createElement(\"fieldset\"))}),i(function(t){return t.innerHTML=\"\",\"#\"===t.firstChild.getAttribute(\"href\")})||o(\"type|href|height|width\",function(t,e,n){if(!n)return t.getAttribute(e,\"type\"===e.toLowerCase()?1:2)}),b.attributes&&i(function(t){return t.innerHTML=\"\",t.firstChild.setAttribute(\"value\",\"\"),\"\"===t.firstChild.getAttribute(\"value\")})||o(\"value\",function(t,e,n){if(!n&&\"input\"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute(\"disabled\")})||o(Z,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(n);yt.find=Ct,yt.expr=Ct.selectors,yt.expr[\":\"]=yt.expr.pseudos,yt.uniqueSort=yt.unique=Ct.uniqueSort,yt.text=Ct.getText,yt.isXMLDoc=Ct.isXML,yt.contains=Ct.contains,yt.escapeSelector=Ct.escape;var kt=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&yt(t).is(n))break;r.push(t)}return r},St=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},Tt=yt.expr.match.needsContext,At=/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i,Dt=/^.[^:#\\[\\.,]*$/;yt.filter=function(t,e,n){var r=e[0];return n&&(t=\":not(\"+t+\")\"),1===e.length&&1===r.nodeType?yt.find.matchesSelector(r,t)?[r]:[]:yt.find.matches(t,yt.grep(e,function(t){return 1===t.nodeType}))},yt.fn.extend({find:function(t){var e,n,r=this.length,i=this;if(\"string\"!=typeof t)return this.pushStack(yt(t).filter(function(){for(e=0;e1?yt.uniqueSort(n):n},filter:function(t){return this.pushStack(l(this,t||[],!1))},not:function(t){return this.pushStack(l(this,t||[],!0))},is:function(t){return!!l(this,\"string\"==typeof t&&Tt.test(t)?yt(t):t||[],!1).length}});var Et,Ot=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/;(yt.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||Et,\"string\"==typeof t){if(!(r=\"<\"===t[0]&&\">\"===t[t.length-1]&&t.length>=3?[null,t,null]:Ot.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof yt?e[0]:e,yt.merge(this,yt.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:at,!0)),At.test(r[1])&&yt.isPlainObject(e))for(r in e)yt.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=at.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):yt.isFunction(t)?void 0!==n.ready?n.ready(t):t(yt):yt.makeArray(t,this)}).prototype=yt.fn,Et=yt(at);var Mt=/^(?:parents|prev(?:Until|All))/,It={children:!0,contents:!0,next:!0,prev:!0};yt.fn.extend({has:function(t){var e=yt(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&yt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?yt.uniqueSort(o):o)},index:function(t){return t?\"string\"==typeof t?ft.call(yt(t),this[0]):ft.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(yt.uniqueSort(yt.merge(this.get(),yt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),yt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return kt(t,\"parentNode\")},parentsUntil:function(t,e,n){return kt(t,\"parentNode\",n)},next:function(t){return c(t,\"nextSibling\")},prev:function(t){return c(t,\"previousSibling\")},nextAll:function(t){return kt(t,\"nextSibling\")},prevAll:function(t){return kt(t,\"previousSibling\")},nextUntil:function(t,e,n){return kt(t,\"nextSibling\",n)},prevUntil:function(t,e,n){return kt(t,\"previousSibling\",n)},siblings:function(t){return St((t.parentNode||{}).firstChild,t)},children:function(t){return St(t.firstChild)},contents:function(t){return u(t,\"iframe\")?t.contentDocument:(u(t,\"template\")&&(t=t.content||t),yt.merge([],t.childNodes))}},function(t,e){yt.fn[t]=function(n,r){var i=yt.map(this,e,n);return\"Until\"!==t.slice(-5)&&(r=n),r&&\"string\"==typeof r&&(i=yt.filter(r,i)),this.length>1&&(It[t]||yt.uniqueSort(i),Mt.test(t)&&i.reverse()),this.pushStack(i)}});var Pt=/[^\\x20\\t\\r\\n\\f]+/g;yt.Callbacks=function(t){t=\"string\"==typeof t?f(t):yt.extend({},t);var e,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?yt.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n=\"\",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=\"\"),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},yt.extend({Deferred:function(t){var e=[[\"notify\",\"progress\",yt.Callbacks(\"memory\"),yt.Callbacks(\"memory\"),2],[\"resolve\",\"done\",yt.Callbacks(\"once memory\"),yt.Callbacks(\"once memory\"),0,\"resolved\"],[\"reject\",\"fail\",yt.Callbacks(\"once memory\"),yt.Callbacks(\"once memory\"),1,\"rejected\"]],r=\"pending\",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return yt.Deferred(function(n){yt.each(e,function(e,r){var i=yt.isFunction(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&yt.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+\"With\"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){function o(t,e,r,i){return function(){var s=this,u=arguments,l=function(){var n,l;if(!(t=a&&(r!==h&&(s=void 0,u=[n]),e.rejectWith(s,u))}};t?c():(yt.Deferred.getStackHook&&(c.stackTrace=yt.Deferred.getStackHook()),n.setTimeout(c))}}var a=0;return yt.Deferred(function(n){e[0][3].add(o(0,n,yt.isFunction(i)?i:d,n.notifyWith)),e[1][3].add(o(0,n,yt.isFunction(t)?t:d)),e[2][3].add(o(0,n,yt.isFunction(r)?r:h))}).promise()},promise:function(t){return null!=t?yt.extend(t,i):i}},o={};return yt.each(e,function(t,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add(function(){r=s},e[3-t][2].disable,e[0][2].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+\"With\"](this===o?void 0:this,arguments),this},o[n[0]+\"With\"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=ut.call(arguments),o=yt.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?ut.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(p(t,o.done(a(n)).resolve,o.reject,!e),\"pending\"===o.state()||yt.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)p(i[n],a(n),o.reject);return o.promise()}});var Lt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;yt.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&Lt.test(t.name)&&n.console.warn(\"jQuery.Deferred exception: \"+t.message,t.stack,e)},yt.readyException=function(t){n.setTimeout(function(){throw t})};var Nt=yt.Deferred();yt.fn.ready=function(t){return Nt.then(t).catch(function(t){yt.readyException(t)}),this},yt.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--yt.readyWait:yt.isReady)||(yt.isReady=!0,!0!==t&&--yt.readyWait>0||Nt.resolveWith(at,[yt]))}}),yt.ready.then=Nt.then,\"complete\"===at.readyState||\"loading\"!==at.readyState&&!at.documentElement.doScroll?n.setTimeout(yt.ready):(at.addEventListener(\"DOMContentLoaded\",g),n.addEventListener(\"load\",g));var Rt=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if(\"object\"===yt.type(n)){i=!0;for(s in n)Rt(t,e,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,yt.isFunction(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(yt(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each(function(){Wt.remove(this,t)})}}),yt.extend({queue:function(t,e,n){var r;if(t)return e=(e||\"fx\")+\"queue\",r=Ft.get(t,e),n&&(!r||Array.isArray(n)?r=Ft.access(t,e,yt.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||\"fx\";var n=yt.queue(t,e),r=n.length,i=n.shift(),o=yt._queueHooks(t,e),a=function(){yt.dequeue(t,e)};\"inprogress\"===i&&(i=n.shift(),r--),i&&(\"fx\"===e&&n.unshift(\"inprogress\"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+\"queueHooks\";return Ft.get(t,n)||Ft.access(t,n,{empty:yt.Callbacks(\"once memory\").add(function(){Ft.remove(t,[e+\"queue\",n])})})}}),yt.fn.extend({queue:function(t,e){var n=2;return\"string\"!=typeof t&&(e=t,t=\"fx\",n--),arguments.length\\x20\\t\\r\\n\\f]+)/i,Kt=/^$|\\/(?:java|ecma)script/i,Qt={option:[1,\"\"],thead:[1,\"\",\"
\"],col:[2,\"\",\"
\"],tr:[2,\"\",\"
\"],td:[3,\"\",\"
\"],_default:[0,\"\",\"\"]};Qt.optgroup=Qt.option,Qt.tbody=Qt.tfoot=Qt.colgroup=Qt.caption=Qt.thead,Qt.th=Qt.td;var Xt=/<|&#?\\w+;/;!function(){var t=at.createDocumentFragment(),e=t.appendChild(at.createElement(\"div\")),n=at.createElement(\"input\");n.setAttribute(\"type\",\"radio\"),n.setAttribute(\"checked\",\"checked\"),n.setAttribute(\"name\",\"t\"),e.appendChild(n),mt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML=\"\",mt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Zt=at.documentElement,te=/^key/,ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ne=/^([^.]*)(?:\\.(.+)|)/;yt.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,h,p,g,v=Ft.get(t);if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&yt.find.matchesSelector(Zt,i),n.guid||(n.guid=yt.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return void 0!==yt&&yt.event.triggered!==e.type?yt.event.dispatch.apply(t,arguments):void 0}),e=(e||\"\").match(Pt)||[\"\"],l=e.length;l--;)s=ne.exec(e[l])||[],h=g=s[1],p=(s[2]||\"\").split(\".\").sort(),h&&(f=yt.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=yt.event.special[h]||{},c=yt.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&yt.expr.match.needsContext.test(i),namespace:p.join(\".\")},o),(d=u[h])||(d=u[h]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(h,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),yt.event.global[h]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,h,p,g,v=Ft.hasData(t)&&Ft.get(t);if(v&&(u=v.events)){for(e=(e||\"\").match(Pt)||[\"\"],l=e.length;l--;)if(s=ne.exec(e[l])||[],h=g=s[1],p=(s[2]||\"\").split(\".\").sort(),h){for(f=yt.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,d=u[h]||[],s=s[2]&&new RegExp(\"(^|\\\\.)\"+p.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),a=o=d.length;o--;)c=d[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&(\"**\"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(t,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,p,v.handle)||yt.removeEvent(t,h,v.handle),delete u[h])}else for(h in u)yt.event.remove(t,h+e[l],n,r,!0);yt.isEmptyObject(u)&&Ft.remove(t,\"handle events\")}},dispatch:function(t){var e,n,r,i,o,a,s=yt.event.fix(t),u=new Array(arguments.length),l=(Ft.get(this,\"events\")||{})[s.type]||[],c=yt.event.special[s.type]||{};for(u[0]=s,e=1;e=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(\"click\"!==t.type||!0!==l.disabled)){for(o=[],a={},n=0;n-1:yt.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u\\x20\\t\\r\\n\\f]*)[^>]*)\\/>/gi,ie=/\\s*$/g;yt.extend({htmlPrefilter:function(t){return t.replace(re,\"<$1>\")},clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=yt.contains(t.ownerDocument,t);if(!(mt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||yt.isXMLDoc(t)))for(a=w(s),o=w(t),r=0,i=o.length;r0&&C(a,!u&&w(t,\"script\")),s},cleanData:function(t){for(var e,n,r,i=yt.event.special,o=0;void 0!==(n=t[o]);o++)if(jt(n)){if(e=n[Ft.expando]){if(e.events)for(r in e.events)i[r]?yt.event.remove(n,r):yt.removeEvent(n,r,e.handle);n[Ft.expando]=void 0}n[Wt.expando]&&(n[Wt.expando]=void 0)}}}),yt.fn.extend({detach:function(t){return N(this,t,!0)},remove:function(t){return N(this,t)},text:function(t){return Rt(this,function(t){return void 0===t?yt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return L(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){E(this,t).appendChild(t)}})},prepend:function(){return L(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=E(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return L(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return L(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(yt.cleanData(w(t,!1)),t.textContent=\"\");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return yt.clone(this,t,e)})},html:function(t){return Rt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if(\"string\"==typeof t&&!ie.test(t)&&!Qt[(Jt.exec(t)||[\"\",\"\"])[1].toLowerCase()]){t=yt.htmlPrefilter(t);try{for(;n1)}}),yt.Tween=z,z.prototype={constructor:z,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||yt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(yt.cssNumber[n]?\"\":\"px\")},cur:function(){var t=z.propHooks[this.prop];return t&&t.get?t.get(this):z.propHooks._default.get(this)},run:function(t){var e,n=z.propHooks[this.prop];return this.options.duration?this.pos=e=yt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):z.propHooks._default.set(this),this}},z.prototype.init.prototype=z.prototype,z.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=yt.css(t.elem,t.prop,\"\"),e&&\"auto\"!==e?e:0)},set:function(t){yt.fx.step[t.prop]?yt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[yt.cssProps[t.prop]]&&!yt.cssHooks[t.prop]?t.elem[t.prop]=t.now:yt.style(t.elem,t.prop,t.now+t.unit)}}},z.propHooks.scrollTop=z.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},yt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:\"swing\"},yt.fx=z.prototype.init,yt.fx.step={};var me,ye,_e=/^(?:toggle|show|hide)$/,be=/queueHooks$/;yt.Animation=yt.extend(K,{tweeners:{\"*\":[function(t,e){var n=this.createTween(t,e);return _(n.elem,t,zt.exec(e),n),n}]},tweener:function(t,e){yt.isFunction(t)?(e=t,t=[\"*\"]):t=t.match(Pt);for(var n,r=0,i=t.length;r1)},removeAttr:function(t){return this.each(function(){yt.removeAttr(this,t)})}}),yt.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?yt.prop(t,e,n):(1===o&&yt.isXMLDoc(t)||(i=yt.attrHooks[e.toLowerCase()]||(yt.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void yt.removeAttr(t,e):i&&\"set\"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+\"\"),n):i&&\"get\"in i&&null!==(r=i.get(t,e))?r:(r=yt.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!mt.radioValue&&\"radio\"===e&&u(t,\"input\")){var n=t.value;return t.setAttribute(\"type\",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(Pt);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?yt.removeAttr(t,n):t.setAttribute(n,n),n}},yt.each(yt.expr.match.bool.source.match(/\\w+/g),function(t,e){var n=we[e]||yt.find.attr;we[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=we[a],we[a]=i,i=null!=n(t,e,r)?a:null,we[a]=o),i}});var Ce=/^(?:input|select|textarea|button)$/i,ke=/^(?:a|area)$/i;yt.fn.extend({prop:function(t,e){return Rt(this,yt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[yt.propFix[t]||t]})}}),yt.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&yt.isXMLDoc(t)||(e=yt.propFix[e]||e,i=yt.propHooks[e]),void 0!==n?i&&\"set\"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&\"get\"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=yt.find.attr(t,\"tabindex\");return e?parseInt(e,10):Ce.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:\"htmlFor\",class:\"className\"}}),mt.optSelected||(yt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),yt.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){yt.propFix[this.toLowerCase()]=this}),yt.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(yt.isFunction(t))return this.each(function(e){yt(this).addClass(t.call(this,e,X(this)))});if(\"string\"==typeof t&&t)for(e=t.match(Pt)||[];n=this[u++];)if(i=X(n),r=1===n.nodeType&&\" \"+Q(i)+\" \"){for(a=0;o=e[a++];)r.indexOf(\" \"+o+\" \")<0&&(r+=o+\" \");s=Q(r),i!==s&&n.setAttribute(\"class\",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(yt.isFunction(t))return this.each(function(e){yt(this).removeClass(t.call(this,e,X(this)))});if(!arguments.length)return this.attr(\"class\",\"\");if(\"string\"==typeof t&&t)for(e=t.match(Pt)||[];n=this[u++];)if(i=X(n),r=1===n.nodeType&&\" \"+Q(i)+\" \"){for(a=0;o=e[a++];)for(;r.indexOf(\" \"+o+\" \")>-1;)r=r.replace(\" \"+o+\" \",\" \");s=Q(r),i!==s&&n.setAttribute(\"class\",s)}return this},toggleClass:function(t,e){var n=typeof t;return\"boolean\"==typeof e&&\"string\"===n?e?this.addClass(t):this.removeClass(t):yt.isFunction(t)?this.each(function(n){yt(this).toggleClass(t.call(this,n,X(this),e),e)}):this.each(function(){var e,r,i,o;if(\"string\"===n)for(r=0,i=yt(this),o=t.match(Pt)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==t&&\"boolean\"!==n||(e=X(this),e&&Ft.set(this,\"__className__\",e),this.setAttribute&&this.setAttribute(\"class\",e||!1===t?\"\":Ft.get(this,\"__className__\")||\"\"))})},hasClass:function(t){var e,n,r=0;for(e=\" \"+t+\" \";n=this[r++];)if(1===n.nodeType&&(\" \"+Q(X(n))+\" \").indexOf(e)>-1)return!0;return!1}});var Se=/\\r/g;yt.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=yt.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,yt(this).val()):t,null==i?i=\"\":\"number\"==typeof i?i+=\"\":Array.isArray(i)&&(i=yt.map(i,function(t){return null==t?\"\":t+\"\"})),(e=yt.valHooks[this.type]||yt.valHooks[this.nodeName.toLowerCase()])&&\"set\"in e&&void 0!==e.set(this,i,\"value\")||(this.value=i))});if(i)return(e=yt.valHooks[i.type]||yt.valHooks[i.nodeName.toLowerCase()])&&\"get\"in e&&void 0!==(n=e.get(i,\"value\"))?n:(n=i.value,\"string\"==typeof n?n.replace(Se,\"\"):null==n?\"\":n)}}}),yt.extend({valHooks:{option:{get:function(t){var e=yt.find.attr(t,\"value\");return null!=e?e:Q(yt.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a=\"select-one\"===t.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),yt.each([\"radio\",\"checkbox\"],function(){yt.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=yt.inArray(yt(t).val(),e)>-1}},mt.checkOn||(yt.valHooks[this].get=function(t){return null===t.getAttribute(\"value\")?\"on\":t.value})});var Te=/^(?:focusinfocus|focusoutblur)$/;yt.extend(yt.event,{trigger:function(t,e,r,i){var o,a,s,u,l,c,f,d=[r||at],h=pt.call(t,\"type\")?t.type:t,p=pt.call(t,\"namespace\")?t.namespace.split(\".\"):[];if(a=s=r=r||at,3!==r.nodeType&&8!==r.nodeType&&!Te.test(h+yt.event.triggered)&&(h.indexOf(\".\")>-1&&(p=h.split(\".\"),h=p.shift(),p.sort()),l=h.indexOf(\":\")<0&&\"on\"+h,t=t[yt.expando]?t:new yt.Event(h,\"object\"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=p.join(\".\"),t.rnamespace=t.namespace?new RegExp(\"(^|\\\\.)\"+p.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:yt.makeArray(e,[t]),f=yt.event.special[h]||{},i||!f.trigger||!1!==f.trigger.apply(r,e))){if(!i&&!f.noBubble&&!yt.isWindow(r)){for(u=f.delegateType||h,Te.test(u+h)||(a=a.parentNode);a;a=a.parentNode)d.push(a),s=a;s===(r.ownerDocument||at)&&d.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=d[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||h,c=(Ft.get(a,\"events\")||{})[t.type]&&Ft.get(a,\"handle\"),c&&c.apply(a,e),(c=l&&a[l])&&c.apply&&jt(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),e)||!jt(r)||l&&yt.isFunction(r[h])&&!yt.isWindow(r)&&(s=r[l],s&&(r[l]=null),yt.event.triggered=h,r[h](),yt.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(t,e,n){var r=yt.extend(new yt.Event,n,{type:t,isSimulated:!0});yt.event.trigger(r,null,e)}}),yt.fn.extend({trigger:function(t,e){return this.each(function(){yt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return yt.event.trigger(t,e,n,!0)}}),yt.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(t,e){yt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),yt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),mt.focusin=\"onfocusin\"in n,mt.focusin||yt.each({focus:\"focusin\",blur:\"focusout\"},function(t,e){var n=function(t){yt.event.simulate(e,t.target,yt.event.fix(t))};yt.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=Ft.access(r,e);i||r.addEventListener(t,n,!0),Ft.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Ft.access(r,e)-1;i?Ft.access(r,e,i):(r.removeEventListener(t,n,!0),Ft.remove(r,e))}}});var Ae=n.location,De=yt.now(),Ee=/\\?/;yt.parseXML=function(t){var e;if(!t||\"string\"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,\"text/xml\")}catch(t){e=void 0}return e&&!e.getElementsByTagName(\"parsererror\").length||yt.error(\"Invalid XML: \"+t),e};var Oe=/\\[\\]$/,Me=/\\r?\\n/g,Ie=/^(?:submit|button|image|reset|file)$/i,Pe=/^(?:input|select|textarea|keygen)/i;yt.param=function(t,e){var n,r=[],i=function(t,e){var n=yt.isFunction(e)?e():e;r[r.length]=encodeURIComponent(t)+\"=\"+encodeURIComponent(null==n?\"\":n)};if(Array.isArray(t)||t.jquery&&!yt.isPlainObject(t))yt.each(t,function(){i(this.name,this.value)});else for(n in t)Z(n,t[n],e,i);return r.join(\"&\")},yt.fn.extend({serialize:function(){return yt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=yt.prop(this,\"elements\");return t?yt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!yt(this).is(\":disabled\")&&Pe.test(this.nodeName)&&!Ie.test(t)&&(this.checked||!Gt.test(t))}).map(function(t,e){var n=yt(this).val();return null==n?null:Array.isArray(n)?yt.map(n,function(t){return{name:e.name,value:t.replace(Me,\"\\r\\n\")}}):{name:e.name,value:n.replace(Me,\"\\r\\n\")}}).get()}});var Le=/%20/g,Ne=/#.*$/,Re=/([?&])_=[^&]*/,je=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,Fe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,We=/^(?:GET|HEAD)$/,He=/^\\/\\//,Ve={},Be={},ze=\"*/\".concat(\"*\"),Ue=at.createElement(\"a\");Ue.href=Ae.href,yt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ae.href,type:\"GET\",isLocal:Fe.test(Ae.protocol),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":ze,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\":yt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?nt(nt(t,yt.ajaxSettings),e):nt(yt.ajaxSettings,t)},ajaxPrefilter:tt(Ve),ajaxTransport:tt(Be),ajax:function(t,e){function r(t,e,r,s){var l,d,h,b,x,w=e;c||(c=!0,u&&n.clearTimeout(u),i=void 0,a=s||\"\",C.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(b=rt(p,C,r)),b=it(p,b,C,l),l?(p.ifModified&&(x=C.getResponseHeader(\"Last-Modified\"),x&&(yt.lastModified[o]=x),(x=C.getResponseHeader(\"etag\"))&&(yt.etag[o]=x)),204===t||\"HEAD\"===p.type?w=\"nocontent\":304===t?w=\"notmodified\":(w=b.state,d=b.data,h=b.error,l=!h)):(h=w,!t&&w||(w=\"error\",t<0&&(t=0))),C.status=t,C.statusText=(e||w)+\"\",l?m.resolveWith(g,[d,w,C]):m.rejectWith(g,[C,w,h]),C.statusCode(_),_=void 0,f&&v.trigger(l?\"ajaxSuccess\":\"ajaxError\",[C,p,l?d:h]),y.fireWith(g,[C,w]),f&&(v.trigger(\"ajaxComplete\",[C,p]),--yt.active||yt.event.trigger(\"ajaxStop\")))}\"object\"==typeof t&&(e=t,t=void 0),e=e||{};var i,o,a,s,u,l,c,f,d,h,p=yt.ajaxSetup({},e),g=p.context||p,v=p.context&&(g.nodeType||g.jquery)?yt(g):yt.event,m=yt.Deferred(),y=yt.Callbacks(\"once memory\"),_=p.statusCode||{},b={},x={},w=\"canceled\",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=je.exec(a);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(t,e){return null==c&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)C.always(t[C.status]);else for(e in t)_[e]=[_[e],t[e]];return this},abort:function(t){var e=t||w;return i&&i.abort(e),r(0,e),this}};if(m.promise(C),p.url=((t||p.url||Ae.href)+\"\").replace(He,Ae.protocol+\"//\"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||\"*\").toLowerCase().match(Pt)||[\"\"],null==p.crossDomain){l=at.createElement(\"a\");try{l.href=p.url,l.href=l.href,p.crossDomain=Ue.protocol+\"//\"+Ue.host!=l.protocol+\"//\"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&\"string\"!=typeof p.data&&(p.data=yt.param(p.data,p.traditional)),et(Ve,p,e,C),c)return C;f=yt.event&&p.global,f&&0==yt.active++&&yt.event.trigger(\"ajaxStart\"),p.type=p.type.toUpperCase(),p.hasContent=!We.test(p.type),o=p.url.replace(Ne,\"\"),p.hasContent?p.data&&p.processData&&0===(p.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&(p.data=p.data.replace(Le,\"+\")):(h=p.url.slice(o.length),p.data&&(o+=(Ee.test(o)?\"&\":\"?\")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Re,\"$1\"),h=(Ee.test(o)?\"&\":\"?\")+\"_=\"+De+++h),p.url=o+h),p.ifModified&&(yt.lastModified[o]&&C.setRequestHeader(\"If-Modified-Since\",yt.lastModified[o]),yt.etag[o]&&C.setRequestHeader(\"If-None-Match\",yt.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&C.setRequestHeader(\"Content-Type\",p.contentType),C.setRequestHeader(\"Accept\",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+(\"*\"!==p.dataTypes[0]?\", \"+ze+\"; q=0.01\":\"\"):p.accepts[\"*\"]);for(d in p.headers)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(g,C,p)||c))return C.abort();if(w=\"abort\",y.add(p.complete),C.done(p.success),C.fail(p.error),i=et(Be,p,e,C)){if(C.readyState=1,f&&v.trigger(\"ajaxSend\",[C,p]),c)return C;p.async&&p.timeout>0&&(u=n.setTimeout(function(){C.abort(\"timeout\")},p.timeout));try{c=!1,i.send(b,r)}catch(t){if(c)throw t;r(-1,t)}}else r(-1,\"No Transport\");return C},getJSON:function(t,e,n){return yt.get(t,e,n,\"json\")},getScript:function(t,e){return yt.get(t,void 0,e,\"script\")}}),yt.each([\"get\",\"post\"],function(t,e){yt[e]=function(t,n,r,i){return yt.isFunction(n)&&(i=i||r,r=n,n=void 0),yt.ajax(yt.extend({url:t,type:e,dataType:i,data:n,success:r},yt.isPlainObject(t)&&t))}}),yt._evalUrl=function(t){return yt.ajax({url:t,type:\"GET\",dataType:\"script\",cache:!0,async:!1,global:!1,throws:!0})},yt.fn.extend({wrapAll:function(t){var e;return this[0]&&(yt.isFunction(t)&&(t=t.call(this[0])),e=yt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return yt.isFunction(t)?this.each(function(e){yt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=yt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=yt.isFunction(t);return this.each(function(n){yt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not(\"body\").each(function(){yt(this).replaceWith(this.childNodes)}),this}}),yt.expr.pseudos.hidden=function(t){return!yt.expr.pseudos.visible(t)},yt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},yt.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var $e={0:200,1223:204},Ye=yt.ajaxSettings.xhr();mt.cors=!!Ye&&\"withCredentials\"in Ye,mt.ajax=Ye=!!Ye,yt.ajaxTransport(function(t){var e,r;if(mt.cors||Ye&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i[\"X-Requested-With\"]||(i[\"X-Requested-With\"]=\"XMLHttpRequest\");for(a in i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,\"abort\"===t?s.abort():\"error\"===t?\"number\"!=typeof s.status?o(0,\"error\"):o(s.status,s.statusText):o($e[s.status]||s.status,s.statusText,\"text\"!==(s.responseType||\"text\")||\"string\"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=e(\"error\"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){e&&r()})},e=e(\"abort\");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),yt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),yt.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/\\b(?:java|ecma)script\\b/},converters:{\"text script\":function(t){return yt.globalEval(t),t}}}),yt.ajaxPrefilter(\"script\",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type=\"GET\")}),yt.ajaxTransport(\"script\",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=yt(\"