diff --git a/app/Filament/Resources/EventResource.php b/app/Filament/Resources/EventResource.php index 49d0f56d..dc74154e 100644 --- a/app/Filament/Resources/EventResource.php +++ b/app/Filament/Resources/EventResource.php @@ -3,15 +3,12 @@ namespace App\Filament\Resources; use App\Filament\Resources\EventResource\Pages; -use App\Filament\Resources\EventResource\RelationManagers; use App\Models\Event; -use Filament\Forms; use Filament\Forms\Form; use Filament\Resources\Resource; use Filament\Tables; use Filament\Tables\Table; -use Illuminate\Database\Eloquent\Builder; -use Illuminate\Database\Eloquent\SoftDeletingScope; +use Malzariey\FilamentDaterangepickerFilter\Filters\DateRangeFilter; class EventResource extends Resource { @@ -29,15 +26,21 @@ public static function table(Table $table): Table { return $table ->columns([ - Tables\Columns\TextColumn::make('title'), + Tables\Columns\TextColumn::make('title')->searchable(), Tables\Columns\TextColumn::make('start') - ->dateTime("Y-m-d"), - Tables\Columns\TextColumn::make('end') - ->dateTime("Y-m-d"), - Tables\Columns\TextColumn::make('location'), + ->sortable() + ->dateTime('Y-m-d'), + Tables\Columns\TextColumn::make('start_time') + ->sortable() + ->dateTime('h:i'), + Tables\Columns\TextColumn::make('location')->searchable(), ]) ->filters([ - // + Tables\Filters\SelectFilter::make('location') + ->options(Event::distinct('location')->orderBy('location')->pluck('location', 'location')), + Tables\Filters\SelectFilter::make('title') + ->options(Event::distinct('title')->orderBy('title')->pluck('title', 'title')), + DateRangeFilter::make('start_date'), ]) ->actions([ Tables\Actions\EditAction::make(), @@ -47,7 +50,7 @@ public static function table(Table $table): Table Tables\Actions\DeleteBulkAction::make(), ]), ]) - ->defaultSort('start_date', "desc"); + ->defaultSort('start_date', 'desc'); } public static function getRelations(): array @@ -63,6 +66,8 @@ public static function getPages(): array 'index' => Pages\ListEvents::route('/'), 'create' => Pages\CreateEvent::route('/create'), 'edit' => Pages\EditEvent::route('/{record}/edit'), + 'view' => Pages\ViewEvent::route('/{record}'), + 'calendar' => Pages\CalendarPage::route('/calendar'), ]; } } diff --git a/app/Filament/Resources/EventResource/Pages/CalendarPage.php b/app/Filament/Resources/EventResource/Pages/CalendarPage.php new file mode 100644 index 00000000..ecfd4c08 --- /dev/null +++ b/app/Filament/Resources/EventResource/Pages/CalendarPage.php @@ -0,0 +1,21 @@ +where('start_date', '>=', $info['start']) + ->where('end_date', '<=', $info['end']) + ->get() + ->map( + fn (Event $event) => [ + 'title' => $event->title, + 'start' => $event->start, + 'end' => $event->end, + 'url' => EventResource::getUrl(name: 'view', parameters: ['record' => $event]), + 'shouldOpenUrlInNewTab' => true, + ] + ) + ->all(); + + } +} diff --git a/app/Filament/Widgets/StatsOverview.php b/app/Filament/Widgets/StatsOverview.php index ec8d7182..df7587c0 100644 --- a/app/Filament/Widgets/StatsOverview.php +++ b/app/Filament/Widgets/StatsOverview.php @@ -13,6 +13,8 @@ class StatsOverview extends BaseWidget { + protected static ?int $sort = 1; + protected function getStats(): array { @@ -23,32 +25,32 @@ protected function getStats(): array protected function getChatMessages() { - $title = "Chats"; - $description = "Chats in the past 7 days"; + $title = 'Chats'; + $description = 'Chats in the past 7 days'; return $this->getTrend($title, $description, Chat::class); } protected function getDocuments() { - $title = "Documents"; - $description = "Documents in the past 7 days"; + $title = 'Documents'; + $description = 'Documents in the past 7 days'; return $this->getTrend($title, $description, Document::class); } protected function getEvents() { - $title = "Events"; - $description = "Events in the past 7 days"; + $title = 'Events'; + $description = 'Events in the past 7 days'; return $this->getTrend($title, $description, Event::class); } protected function getMessages() { - $title = "Messages"; - $description = "Messages in the past 7 days"; + $title = 'Messages'; + $description = 'Messages in the past 7 days'; return $this->getTrend($title, $description, Message::class); } diff --git a/app/Models/Event.php b/app/Models/Event.php index f9e36797..44b46436 100644 --- a/app/Models/Event.php +++ b/app/Models/Event.php @@ -5,6 +5,7 @@ use App\Domains\Events\EventTypes; use Carbon\Carbon; use Filament\Forms\Components\DatePicker; +use Filament\Forms\Components\Section; use Filament\Forms\Components\TextInput; use Filament\Forms\Components\TimePicker; use Illuminate\Database\Eloquent\Factories\HasFactory; @@ -30,16 +31,28 @@ class Event extends Model public static function getForm(): array { return [ - TextInput::make('title')->required(), - TextInput::make('description')->required(), - DatePicker::make('start_date')->required(), - TimePicker::make('start_time')->required(), - DatePicker::make('end_date')->required(), - TimePicker::make('end_time')->required(), - TextInput::make('location')->required(), - TextInput::make('summary'), + Section::make('Event') + ->description('Manage an Event') + + ->columns(1) + ->schema([ + TextInput::make('title')->required(), + TextInput::make('description')->required(), + TextInput::make('location'), + ]), + Section::make('Dates') + ->description('Manage an Event') + + ->columns(2) + ->schema([ + DatePicker::make('start_date')->required(), + TimePicker::make('start_time')->required(), + DatePicker::make('end_date')->required(), + TimePicker::make('end_time')->required(), + ]), ]; } + public function collection(): BelongsTo { return $this->belongsTo(Collection::class); diff --git a/app/Models/User.php b/app/Models/User.php index 80686a71..34c29e62 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -16,7 +16,7 @@ /** * @property bool $is_admin */ -class User extends Authenticatable implements FilamentUser +class User extends Authenticatable implements FilamentUser { use HasApiTokens; use HasFactory; diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index 95abfc56..e138aeb3 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -10,7 +10,6 @@ use Filament\Panel; use Filament\PanelProvider; use Filament\Support\Colors\Color; -use Filament\Widgets; use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse; use Illuminate\Cookie\Middleware\EncryptCookies; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken; @@ -18,6 +17,7 @@ use Illuminate\Session\Middleware\AuthenticateSession; use Illuminate\Session\Middleware\StartSession; use Illuminate\View\Middleware\ShareErrorsFromSession; +use Saade\FilamentFullCalendar\FilamentFullCalendarPlugin; class AdminPanelProvider extends PanelProvider { @@ -39,10 +39,18 @@ public function panel(Panel $panel): Panel ->navigationItems([ NavigationItem::make('Collections') ->icon('heroicon-o-code-bracket') - ->url("/collections"), + ->url('/collections'), ]) ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets') ->widgets([]) + ->plugin( + FilamentFullCalendarPlugin::make() + ->selectable() + ->plugins([ + 'dayGrid', 'timeGrid', + ]) + ->editable() + ) ->middleware([ EncryptCookies::class, AddQueuedCookiesToResponse::class, diff --git a/composer.json b/composer.json index 542edb1f..38cad5c2 100644 --- a/composer.json +++ b/composer.json @@ -22,6 +22,7 @@ "laravel/tinker": "^2.9", "league/html-to-markdown": "^5.1", "maatwebsite/excel": "^3.1", + "malzariey/filament-daterangepicker-filter": "^3.0", "nwidart/laravel-modules": "^11.0", "opcodesio/log-viewer": "^3.10", "openai-php/laravel": "^0.8.1", @@ -32,6 +33,7 @@ "pusher/pusher-php-server": "^7.2", "roach-php/core": "^3.2", "roach-php/laravel": "^3.1", + "saade/filament-fullcalendar": "^3.0", "smalot/pdfparser": "^2.9", "soundasleep/html2text": "^2.1", "spatie/browsershot": "^4.0", diff --git a/composer.lock b/composer.lock index 7391b613..65dfd68e 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": "b9677fb8c6da076e9e3e8f3f808bd1c7", + "content-hash": "a37cda08e5a07f499ab8da90a3f4f19d", "packages": [ { "name": "amphp/amp", @@ -5906,6 +5906,73 @@ ], "time": "2023-06-21T14:59:35+00:00" }, + { + "name": "malzariey/filament-daterangepicker-filter", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/malzariey/filament-daterangepicker-filter.git", + "reference": "a491133abdca0942bc60a70412457a93fbd979b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/malzariey/filament-daterangepicker-filter/zipball/a491133abdca0942bc60a70412457a93fbd979b5", + "reference": "a491133abdca0942bc60a70412457a93fbd979b5", + "shasum": "" + }, + "require": { + "filament/filament": "^2.0|^3.0", + "illuminate/contracts": "^8.0|^9.0|^10.0|^11.0", + "php": "^8.0", + "spatie/laravel-package-tools": "^1.16.4" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Malzariey\\FilamentDaterangepickerFilter\\FilamentDaterangepickerFilterServiceProvider" + ], + "aliases": { + "FilamentDaterangepickerFilter": "Malzariey\\FilamentDaterangepickerFilter\\Facades\\FilamentDaterangepickerFilter" + } + } + }, + "autoload": { + "psr-4": { + "Malzariey\\FilamentDaterangepickerFilter\\": "src", + "Malzariey\\FilamentDaterangepickerFilter\\Database\\Factories\\": "database/factories" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Majid Al-Zariey", + "email": "malzariey@gmail.com", + "role": "Developer" + } + ], + "description": "This package uses daterangepciker library to filter date by a range or predefined date ranges (Today , Yesterday ...etc)", + "homepage": "https://github.com/malzariey/filament-daterangepicker-filter", + "keywords": [ + "Malzariey", + "filament-daterangepicker-filter", + "laravel" + ], + "support": { + "issues": "https://github.com/malzariey/filament-daterangepicker-filter/issues", + "source": "https://github.com/malzariey/filament-daterangepicker-filter/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/Malzariey", + "type": "github" + } + ], + "time": "2024-08-14T08:06:03+00:00" + }, { "name": "markbaker/complex", "version": "3.0.2", @@ -10299,6 +10366,80 @@ ], "time": "2024-02-26T18:08:49+00:00" }, + { + "name": "saade/filament-fullcalendar", + "version": "v3.2.2", + "source": { + "type": "git", + "url": "https://github.com/saade/filament-fullcalendar.git", + "reference": "d40410e6bc46057628fb9fa8f62b6090452914d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/saade/filament-fullcalendar/zipball/d40410e6bc46057628fb9fa8f62b6090452914d3", + "reference": "d40410e6bc46057628fb9fa8f62b6090452914d3", + "shasum": "" + }, + "require": { + "filament/filament": "^3.0", + "illuminate/contracts": "^10.0|^11.0", + "php": "^8.1", + "spatie/laravel-package-tools": "^1.13.5" + }, + "require-dev": { + "nunomaduro/collision": "^7.0|^8.0", + "nunomaduro/larastan": "^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/laravel-ray": "^1.26" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Saade\\FilamentFullCalendar\\FilamentFullCalendarServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Saade\\FilamentFullCalendar\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Saade", + "email": "saade@outlook.com.br", + "role": "Developer" + } + ], + "description": "The Most Popular JavaScript Calendar integrated with Filament 💛", + "homepage": "https://github.com/saade/filament-fullcalendar", + "keywords": [ + "filament-fullcalendar", + "laravel", + "saade" + ], + "support": { + "issues": "https://github.com/saade/filament-fullcalendar/issues", + "source": "https://github.com/saade/filament-fullcalendar/tree/v3.2.2" + }, + "funding": [ + { + "url": "https://github.com/saade", + "type": "github" + } + ], + "time": "2024-05-02T13:04:39+00:00" + }, { "name": "simplepie/simplepie", "version": "1.8.0", diff --git a/database/factories/EventFactory.php b/database/factories/EventFactory.php index b0210537..d402492f 100644 --- a/database/factories/EventFactory.php +++ b/database/factories/EventFactory.php @@ -18,12 +18,14 @@ class EventFactory extends Factory */ public function definition(): array { + $start = now()->subDays(rand(1, 10)); + return [ 'title' => $this->faker->sentence, 'description' => $this->faker->paragraph, - 'start_date' => $this->faker->date, + 'start_date' => $start->format('Y-m-d'), 'start_time' => now()->format('H:i:s'), - 'end_date' => $this->faker->date, + 'end_date' => $start->addDays(rand(1, 10))->format('Y-m-d'), 'end_time' => now()->format('H:i:s'), 'location' => $this->faker->sentence, 'type' => \App\Domains\Events\EventTypes::Event, diff --git a/public/css/malzariey/filament-daterangepicker-filter/date-range-picker.css b/public/css/malzariey/filament-daterangepicker-filter/date-range-picker.css new file mode 100644 index 00000000..582a3ce0 --- /dev/null +++ b/public/css/malzariey/filament-daterangepicker-filter/date-range-picker.css @@ -0,0 +1 @@ +.visible{visibility:visible}.relative{position:relative}.inline-block{display:inline-block}.w-full{width:100%}.overflow-hidden{overflow:hidden}.bg-\[\#ebf4f8\]{--tw-bg-opacity:1;background-color:rgb(235 244 248/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.daterangepicker{color:inherit;position:absolute}.daterangepicker:is(.dark *){--tw-bg-opacity:1;--tw-border-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity))}.daterangepicker{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border:1px solid #ddd;border-radius:4px;display:none;font-family:inherit;font-size:15px;left:20px;line-height:1em;margin-top:7px;max-width:none;padding:0;top:100px;width:278px;z-index:3001}.ltr{direction:ltr}.daterangepicker .applyBtn{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.daterangepicker .applyBtn:hover{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}.daterangepicker:after,.daterangepicker:before{border-bottom-color:rgba(0,0,0,.2);content:"";display:inline-block;position:absolute}.daterangepicker li:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.daterangepicker .ampmselect:is(.dark *),.daterangepicker .hourselect:is(.dark *),.daterangepicker .minuteselect:is(.dark *),.daterangepicker .secondselect:is(.dark *){--tw-border-opacity:1;background-color:transparent;border-color:rgb(55 65 81/var(--tw-border-opacity))}.daterangepicker .ampmselect,.daterangepicker .hourselect,.daterangepicker .minuteselect,.daterangepicker .secondselect{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.daterangepicker .ampmselect>option:is(.dark *),.daterangepicker .hourselect>option:is(.dark *),.daterangepicker .minuteselect>option:is(.dark *),.daterangepicker .secondselect>option:is(.dark *){--tw-bg-opacity:1;--tw-border-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity))}.daterangepicker .ampmselect>option,.daterangepicker .hourselect>option,.daterangepicker .minuteselect>option,.daterangepicker .secondselect>option{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.daterangepicker:before{border-bottom:7px solid #ccc;border-left:7px solid transparent;border-right:7px solid transparent;top:-7px}.daterangepicker:after{border-bottom:6px solid #fff;border-left:6px solid transparent;border-right:6px solid transparent;top:-6px}.daterangepicker.opensleft:before{right:9px}.daterangepicker.opensleft:after{right:10px}.daterangepicker.openscenter:after,.daterangepicker.openscenter:before{left:0;margin-left:auto;margin-right:auto;right:0;width:0}.daterangepicker.opensright:before{left:9px}.daterangepicker.opensright:after{left:10px}.daterangepicker.drop-up{margin-top:-7px}.daterangepicker.drop-up:before{border-bottom:initial;border-top:7px solid #ccc;bottom:-7px;top:auto}.daterangepicker.drop-up:after{border-bottom:initial;border-top:6px solid #fff;bottom:-6px;top:auto}.daterangepicker.single .daterangepicker .ranges,.daterangepicker.single .drp-calendar{float:none}.daterangepicker.single .drp-selected{display:none}.daterangepicker.show-calendar .drp-buttons,.daterangepicker.show-calendar .drp-calendar{display:block}.daterangepicker.auto-apply .drp-buttons{display:none}.daterangepicker .drp-calendar{display:none;max-width:270px}.daterangepicker .drp-calendar.left{padding:8px 0 8px 8px}.daterangepicker .drp-calendar.right{padding:8px}.daterangepicker .drp-calendar.single .calendar-table{border:none}.daterangepicker .calendar-table .next span,.daterangepicker .calendar-table .prev span{border:solid #000;border-radius:0;border-width:0 2px 2px 0;color:#fff;display:inline-block;padding:3px}.daterangepicker .calendar-table .next span{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.daterangepicker .calendar-table .prev span{transform:rotate(135deg);-webkit-transform:rotate(135deg)}.daterangepicker .calendar-table td,.daterangepicker .calendar-table th{border:1px solid transparent;border-radius:4px;cursor:pointer;font-size:12px;height:24px;line-height:24px;min-width:32px;text-align:center;vertical-align:middle;white-space:nowrap;width:32px}.daterangepicker .calendar-table{background-color:#fff;border:1px solid #fff;border-radius:4px}.daterangepicker .calendar-table:is(.dark *){--tw-bg-opacity:1;--tw-border-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity))}.daterangepicker .calendar-table table{border-collapse:collapse;border-spacing:0;margin:0;width:100%}.daterangepicker td.available:hover,.daterangepicker th.available:hover{background-color:#eee}.daterangepicker td.available:hover:is(.dark *),.daterangepicker th.available:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.daterangepicker td.available:hover,.daterangepicker th.available:hover{border-color:transparent;color:inherit}.next.available span:is(.dark *),.prev.available span:is(.dark *){--tw-border-opacity:1!important;border-color:rgb(255 255 255/var(--tw-border-opacity))!important}.daterangepicker td.week,.daterangepicker th.week{color:#ccc;font-size:80%}.daterangepicker td.off.end-date:is(.dark *),.daterangepicker td.off.start-date:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.daterangepicker td.off.end-date,.daterangepicker td.off.start-date{border-color:transparent;color:#fff}.daterangepicker td.in-range{border-color:transparent;border-radius:0;color:#000}.daterangepicker td.in-range:hover{color:#fff}.daterangepicker td.start-date{border-radius:4px 0 0 4px}.daterangepicker td.start-date.active{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.daterangepicker td.start-date.active:is(.dark *){--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.daterangepicker td.in-range{--tw-bg-opacity:1;background-color:rgb(235 244 248/var(--tw-bg-opacity))}.daterangepicker td.in-range:is(.dark *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.daterangepicker td.end-date.active{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.daterangepicker td.end-date.active.off,.daterangepicker td.off,.daterangepicker td.off.in-range,.daterangepicker td.start-date.active.off{--tw-text-opacity:1;background-color:transparent;color:rgb(153 153 153/var(--tw-text-opacity))}.daterangepicker td.end-date.active.off:is(.dark *),.daterangepicker td.off.in-range:is(.dark *),.daterangepicker td.off:is(.dark *),.daterangepicker td.start-date.active.off:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.daterangepicker td.end-date{border-radius:0 4px 4px 0;color:#fff}.daterangepicker td.start-date.end-date{border-radius:4px}.daterangepicker td.active,.daterangepicker td.active:hover{border-color:transparent}.daterangepicker th.month{width:auto}.daterangepicker option.disabled,.daterangepicker td.disabled{color:#999;cursor:not-allowed;text-decoration:line-through}.daterangepicker select.monthselect,.daterangepicker select.yearselect{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-color:rgba(3,7,18,.1);background-color:transparent;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.5rem;border-style:none;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);color:rgb(3 7 18/var(--tw-text-opacity));cursor:default;font-size:12px;height:auto;margin:0;padding:1px 6px}.daterangepicker select.monthselect:is(.dark *),.daterangepicker select.yearselect:is(.dark *){--tw-text-opacity:1;--tw-ring-color:hsla(0,0%,100%,.2);background-color:hsla(0,0%,100%,.05);color:rgb(255 255 255/var(--tw-text-opacity))}.daterangepicker select.monthselect{margin-right:2%;width:56%}html[dir=rtl] .daterangepicker select.monthselect,html[dir=rtl] .daterangepicker select.yearselect{direction:rtl;padding-right:5%}.daterangepicker select.yearselect{width:40%}.daterangepicker select.ampmselect,.daterangepicker select.hourselect,.daterangepicker select.minuteselect,.daterangepicker select.secondselect{background:#eee;border:1px solid #eee;font-size:12px;margin:0 auto;outline:0;padding:2px;width:50px}.daterangepicker .calendar-time{line-height:30px;margin:4px auto 0;position:relative;text-align:center}.daterangepicker .calendar-time select.disabled{color:#ccc;cursor:not-allowed}.daterangepicker .drp-buttons{border-top:1px solid #ddd;clear:both;padding:8px;text-align:right}.daterangepicker .drp-buttons:is(.dark *){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.daterangepicker .drp-buttons{display:none;line-height:12px;vertical-align:middle}.daterangepicker .drp-selected{display:inline-block;font-size:12px;padding-right:8px}.daterangepicker .drp-buttons .btn{font-size:12px;font-weight:700;margin-left:8px;padding:4px 8px}.daterangepicker.show-ranges.single.rtl .drp-calendar.left{border-right:1px solid #ddd}.daterangepicker.show-ranges.single.rtl .drp-calendar.left:is(.dark *){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.daterangepicker.show-ranges.single.ltr .drp-calendar.left{border-left:1px solid #ddd}.daterangepicker.show-ranges.single.ltr .drp-calendar.left:is(.dark *){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.daterangepicker.show-ranges.rtl .drp-calendar.right{border-right:1px solid #ddd}.daterangepicker.show-ranges.rtl .drp-calendar.right:is(.dark *){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.daterangepicker.show-ranges.ltr .drp-calendar.left{border-left:1px solid #ddd}.daterangepicker.show-ranges.ltr .drp-calendar.left:is(.dark *){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.daterangepicker .ranges{float:none;margin:0;text-align:left}.daterangepicker.show-calendar .ranges{margin-top:8px}.daterangepicker .ranges ul{list-style:none;margin:0 auto;padding:0;width:100%}.daterangepicker .ranges li{cursor:pointer;font-size:12px;padding:8px 12px}.daterangepicker .ranges li.active{color:#fff}@media (min-width:564px){.daterangepicker{width:auto}.daterangepicker .ranges ul{width:140px}.daterangepicker.single .ranges ul{width:100%}.daterangepicker.single .drp-calendar.left{clear:none}.daterangepicker.single .drp-calendar,.daterangepicker.single .ranges{float:left}.daterangepicker{direction:ltr;text-align:left}.daterangepicker .drp-calendar.left{clear:left;margin-right:0}.daterangepicker .drp-calendar.left .calendar-table{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}.daterangepicker .drp-calendar.right{margin-left:0}.daterangepicker .drp-calendar.right .calendar-table{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.daterangepicker .drp-calendar.left .calendar-table{padding-right:8px}.daterangepicker .drp-calendar,.daterangepicker .ranges{float:left}}@media (min-width:730px){.daterangepicker .ranges{float:left;width:auto}.daterangepicker.rtl .ranges{float:right}.daterangepicker .drp-calendar.left{clear:none!important}}.hover\:text-gray-400:hover{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:bg-white:is(.dark *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark\:bg-white\/5:is(.dark *){background-color:hsla(0,0%,100%,.05)}.dark\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))} \ No newline at end of file diff --git a/public/css/saade/filament-fullcalendar/filament-fullcalendar-styles.css b/public/css/saade/filament-fullcalendar/filament-fullcalendar-styles.css new file mode 100644 index 00000000..fb850984 --- /dev/null +++ b/public/css/saade/filament-fullcalendar/filament-fullcalendar-styles.css @@ -0,0 +1 @@ +.resize{resize:both}.filament-fullcalendar{--fc-small-font-size:0.85em;--fc-page-bg-color:#d0d0d04d;--fc-neutral-bg-color:rgba(var(--gray-50),var(--tw-bg-opacity));--fc-neutral-text-color:grey;--fc-border-color:rgba(var(--gray-200));--fc-button-text-color:#fff;--fc-button-bg-color:rgba(var(--primary-600));--fc-button-border-color:rgba(var(--primary-600));--fc-button-hover-bg-color:rgba(var(--primary-500));--fc-button-hover-border-color:rgba(var(--primary-500));--fc-button-active-bg-color:rgba(var(--primary-500));--fc-button-active-border-color:rgba(var(--primary-500));--fc-event-bg-color:rgba(var(--primary-600));--fc-event-border-color:rgba(var(--primary-600));--fc-event-text-color:#fff;--fc-event-selected-overlay-color:#00000040;--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:#d7d7d74d;--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(var(--primary-500),0.1);--fc-today-bg-color:rgba(var(--primary-500),0.2);--fc-now-indicator-color:red;--fc-list-event-hover-bg-color:rgba(var(--gray-50),var(--tw-bg-opacity))}html.dark .filament-fullcalendar{--fc-neutral-bg-color:rgba(var(--gray-800),.8);--fc-border-color:rgba(var(--gray-700),.5);--fc-button-bg-color:rgba(var(--primary-500));--fc-button-border-color:rgba(var(--primary-600));--fc-button-hover-bg-color:rgba(var(--primary-400));--fc-button-hover-border-color:rgba(var(--primary-500));--fc-button-active-bg-color:rgba(var(--primary-400));--fc-button-active-border-color:rgba(var(--primary-500));--fc-event-bg-color:rgba(var(--primary-500));--fc-event-border-color:rgba(var(--primary-600));--fc-list-event-hover-bg-color:rgba(var(--gray-800),.8)}.filament-fullcalendar .fc-toolbar-chunk>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.filament-fullcalendar .fc-toolbar-title{font-size:1.125rem!important;line-height:1.25rem}@media (min-width:768px){.filament-fullcalendar .fc-toolbar-title{font-size:1.875rem!important;line-height:2.25rem!important}}.filament-fullcalendar.fc .fc-button{min-height:2.25rem;border-radius:.5rem;padding:.25rem 6px;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);outline:2px solid #0000;outline-offset:2px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@media (min-width:768px){.filament-fullcalendar.fc .fc-button{padding-left:1rem;padding-right:1rem}}.filament-fullcalendar.fc .fc-button-primary:disabled{opacity:.7}.filament-fullcalendar.fc .fc-button-primary:not(:disabled).fc-button-active,.filament-fullcalendar.fc .fc-button-primary:not(:disabled):active{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filament-fullcalendar .fc-list,.filament-fullcalendar .fc-view table,.filament-fullcalendar .fc-view:not(.fc-list) table th{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.filament-fullcalendar .fc-list{overflow:hidden}.filament-fullcalendar .fc-list .fc-list-event-title a{cursor:pointer}.filament-fullcalendar .fc-list-sticky .fc-list-day th{background-color:inherit} \ No newline at end of file diff --git a/public/js/malzariey/filament-daterangepicker-filter/components/dateRangeComponent.js b/public/js/malzariey/filament-daterangepicker-filter/components/dateRangeComponent.js new file mode 100644 index 00000000..64118ec0 --- /dev/null +++ b/public/js/malzariey/filament-daterangepicker-filter/components/dateRangeComponent.js @@ -0,0 +1,35 @@ +var Ws=Object.create;var Br=Object.defineProperty;var Is=Object.getOwnPropertyDescriptor;var Hs=Object.getOwnPropertyNames;var js=Object.getPrototypeOf,Fs=Object.prototype.hasOwnProperty;var Gr=(P=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(P,{get:(b,re)=>(typeof require<"u"?require:b)[re]}):P)(function(P){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+P+'" is not supported')});var Sr=(P,b)=>()=>(b||P((b={exports:{}}).exports,b),b.exports);var Us=(P,b,re,T)=>{if(b&&typeof b=="object"||typeof b=="function")for(let g of Hs(b))!Fs.call(P,g)&&g!==re&&Br(P,g,{get:()=>b[g],enumerable:!(T=Is(b,g))||T.enumerable});return P};var Cr=(P,b,re)=>(re=P!=null?Ws(js(P)):{},Us(b||!P||!P.__esModule?Br(re,"default",{value:P,enumerable:!0}):re,P));var Mr=Sr((zr,Bn)=>{(function(P,b){"use strict";typeof Bn=="object"&&typeof Bn.exports=="object"?Bn.exports=P.document?b(P,!0):function(re){if(!re.document)throw new Error("jQuery requires a window with a document");return b(re)}:b(P)})(typeof window<"u"?window:zr,function(P,b){"use strict";var re=[],T=Object.getPrototypeOf,g=re.slice,Y=re.flat?function(e){return re.flat.call(e)}:function(e){return re.concat.apply([],e)},q=re.push,j=re.indexOf,Z={},$=Z.toString,ee=Z.hasOwnProperty,te=ee.toString,V=te.call(Object),G={},O=function(i){return typeof i=="function"&&typeof i.nodeType!="number"&&typeof i.item!="function"},ue=function(i){return i!=null&&i===i.window},N=P.document,Se={type:!0,src:!0,nonce:!0,noModule:!0};function Ae(e,i,r){r=r||N;var a,u,f=r.createElement("script");if(f.text=e,i)for(a in Se)u=i[a]||i.getAttribute&&i.getAttribute(a),u&&f.setAttribute(a,u);r.head.appendChild(f).parentNode.removeChild(f)}function Oe(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?Z[$.call(e)]||"object":typeof e}var ce="3.7.1",se=/HTML$/i,o=function(e,i){return new o.fn.init(e,i)};o.fn=o.prototype={jquery:ce,constructor:o,length:0,toArray:function(){return g.call(this)},get:function(e){return e==null?g.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var i=o.merge(this.constructor(),e);return i.prevObject=this,i},each:function(e){return o.each(this,e)},map:function(e){return this.pushStack(o.map(this,function(i,r){return e.call(i,r,i)}))},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(o.grep(this,function(e,i){return(i+1)%2}))},odd:function(){return this.pushStack(o.grep(this,function(e,i){return i%2}))},eq:function(e){var i=this.length,r=+e+(e<0?i:0);return this.pushStack(r>=0&&r0&&i-1 in e}function ne(e,i){return e.nodeName&&e.nodeName.toLowerCase()===i.toLowerCase()}var yi=re.pop,ke=re.sort,je=re.splice,de="[\\x20\\t\\r\\n\\f]",ze=new RegExp("^"+de+"+|((?:^|[^\\\\])(?:\\\\.)*)"+de+"+$","g");o.contains=function(e,i){var r=i&&i.parentNode;return e===r||!!(r&&r.nodeType===1&&(e.contains?e.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16))};var Pt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Nt(e,i){return i?e==="\0"?"\uFFFD":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}o.escapeSelector=function(e){return(e+"").replace(Pt,Nt)};var Ze=N,jt=q;(function(){var e,i,r,a,u,f=jt,c,m,p,D,x,M=o.expando,w=0,E=0,J=Qi(),he=Qi(),ie=Qi(),We=Qi(),Ne=function(d,v){return d===v&&(u=!0),0},Dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",bt="(?:\\\\[\\da-fA-F]{1,6}"+de+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",fe="\\["+de+"*("+bt+")(?:"+de+"*([*^$|!~]?=)"+de+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+bt+"))|)"+de+"*\\]",Xt=":("+bt+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+fe+")*)|.*)\\)|)",ge=new RegExp(de+"+","g"),Me=new RegExp("^"+de+"*,"+de+"*"),Ai=new RegExp("^"+de+"*([>+~]|"+de+")"+de+"*"),Rt=new RegExp(de+"|>"),kt=new RegExp(Xt),Qt=new RegExp("^"+bt+"$"),wt={ID:new RegExp("^#("+bt+")"),CLASS:new RegExp("^\\.("+bt+")"),TAG:new RegExp("^("+bt+"|[*])"),ATTR:new RegExp("^"+fe),PSEUDO:new RegExp("^"+Xt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+de+"*(even|odd|(([+-]|)(\\d*)n|)"+de+"*(?:([+-]|)"+de+"*(\\d+)|))"+de+"*\\)|)","i"),bool:new RegExp("^(?:"+Dt+")$","i"),needsContext:new RegExp("^"+de+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+de+"*((?:-\\d)?\\d*)"+de+"*\\)|)(?=[^-]|$)","i")},_t=/^(?:input|select|textarea|button)$/i,Wt=/^h\d$/i,it=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bn=/[+~]/,Ot=new RegExp("\\\\[\\da-fA-F]{1,6}"+de+"?|\\\\([^\\r\\n\\f])","g"),xt=function(d,v){var k="0x"+d.slice(1)-65536;return v||(k<0?String.fromCharCode(k+65536):String.fromCharCode(k>>10|55296,k&1023|56320))},gr=function(){It()},Wn=Ji(function(d){return d.disabled===!0&&ne(d,"fieldset")},{dir:"parentNode",next:"legend"});function Ce(){try{return c.activeElement}catch{}}try{f.apply(re=g.call(Ze.childNodes),Ze.childNodes),re[Ze.childNodes.length].nodeType}catch{f={apply:function(v,k){jt.apply(v,g.call(k))},call:function(v){jt.apply(v,g.call(arguments,1))}}}function be(d,v,k,_){var C,L,I,B,H,le,z,Q=v&&v.ownerDocument,ae=v?v.nodeType:9;if(k=k||[],typeof d!="string"||!d||ae!==1&&ae!==9&&ae!==11)return k;if(!_&&(It(v),v=v||c,p)){if(ae!==11&&(H=it.exec(d)))if(C=H[1]){if(ae===9)if(I=v.getElementById(C)){if(I.id===C)return f.call(k,I),k}else return k;else if(Q&&(I=Q.getElementById(C))&&be.contains(v,I)&&I.id===C)return f.call(k,I),k}else{if(H[2])return f.apply(k,v.getElementsByTagName(d)),k;if((C=H[3])&&v.getElementsByClassName)return f.apply(k,v.getElementsByClassName(C)),k}if(!We[d+" "]&&(!D||!D.test(d))){if(z=d,Q=v,ae===1&&(Rt.test(d)||Ai.test(d))){for(Q=bn.test(d)&&kn(v.parentNode)||v,(Q!=v||!G.scope)&&((B=v.getAttribute("id"))?B=o.escapeSelector(B):v.setAttribute("id",B=M)),le=Ht(d),L=le.length;L--;)le[L]=(B?"#"+B:":scope")+" "+hi(le[L]);z=le.join(",")}try{return f.apply(k,Q.querySelectorAll(z)),k}catch{We(d,!0)}finally{B===M&&v.removeAttribute("id")}}}return In(d.replace(ze,"$1"),v,k,_)}function Qi(){var d=[];function v(k,_){return d.push(k+" ")>i.cacheLength&&delete v[d.shift()],v[k+" "]=_}return v}function nt(d){return d[M]=!0,d}function fi(d){var v=c.createElement("fieldset");try{return!!d(v)}catch{return!1}finally{v.parentNode&&v.parentNode.removeChild(v),v=null}}function mr(d){return function(v){return ne(v,"input")&&v.type===d}}function yr(d){return function(v){return(ne(v,"input")||ne(v,"button"))&&v.type===d}}function ci(d){return function(v){return"form"in v?v.parentNode&&v.disabled===!1?"label"in v?"label"in v.parentNode?v.parentNode.disabled===d:v.disabled===d:v.isDisabled===d||v.isDisabled!==!d&&Wn(v)===d:v.disabled===d:"label"in v?v.disabled===d:!1}}function Jt(d){return nt(function(v){return v=+v,nt(function(k,_){for(var C,L=d([],k.length,v),I=L.length;I--;)k[C=L[I]]&&(k[C]=!(_[C]=k[C]))})})}function kn(d){return d&&typeof d.getElementsByTagName<"u"&&d}function It(d){var v,k=d?d.ownerDocument||d:Ze;return k==c||k.nodeType!==9||!k.documentElement||(c=k,m=c.documentElement,p=!o.isXMLDoc(c),x=m.matches||m.webkitMatchesSelector||m.msMatchesSelector,m.msMatchesSelector&&Ze!=c&&(v=c.defaultView)&&v.top!==v&&v.addEventListener("unload",gr),G.getById=fi(function(_){return m.appendChild(_).id=o.expando,!c.getElementsByName||!c.getElementsByName(o.expando).length}),G.disconnectedMatch=fi(function(_){return x.call(_,"*")}),G.scope=fi(function(){return c.querySelectorAll(":scope")}),G.cssHas=fi(function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),G.getById?(i.filter.ID=function(_){var C=_.replace(Ot,xt);return function(L){return L.getAttribute("id")===C}},i.find.ID=function(_,C){if(typeof C.getElementById<"u"&&p){var L=C.getElementById(_);return L?[L]:[]}}):(i.filter.ID=function(_){var C=_.replace(Ot,xt);return function(L){var I=typeof L.getAttributeNode<"u"&&L.getAttributeNode("id");return I&&I.value===C}},i.find.ID=function(_,C){if(typeof C.getElementById<"u"&&p){var L,I,B,H=C.getElementById(_);if(H){if(L=H.getAttributeNode("id"),L&&L.value===_)return[H];for(B=C.getElementsByName(_),I=0;H=B[I++];)if(L=H.getAttributeNode("id"),L&&L.value===_)return[H]}return[]}}),i.find.TAG=function(_,C){return typeof C.getElementsByTagName<"u"?C.getElementsByTagName(_):C.querySelectorAll(_)},i.find.CLASS=function(_,C){if(typeof C.getElementsByClassName<"u"&&p)return C.getElementsByClassName(_)},D=[],fi(function(_){var C;m.appendChild(_).innerHTML="",_.querySelectorAll("[selected]").length||D.push("\\["+de+"*(?:value|"+Dt+")"),_.querySelectorAll("[id~="+M+"-]").length||D.push("~="),_.querySelectorAll("a#"+M+"+*").length||D.push(".#.+[+~]"),_.querySelectorAll(":checked").length||D.push(":checked"),C=c.createElement("input"),C.setAttribute("type","hidden"),_.appendChild(C).setAttribute("name","D"),m.appendChild(_).disabled=!0,_.querySelectorAll(":disabled").length!==2&&D.push(":enabled",":disabled"),C=c.createElement("input"),C.setAttribute("name",""),_.appendChild(C),_.querySelectorAll("[name='']").length||D.push("\\["+de+"*name"+de+"*="+de+`*(?:''|"")`)}),G.cssHas||D.push(":has"),D=D.length&&new RegExp(D.join("|")),Ne=function(_,C){if(_===C)return u=!0,0;var L=!_.compareDocumentPosition-!C.compareDocumentPosition;return L||(L=(_.ownerDocument||_)==(C.ownerDocument||C)?_.compareDocumentPosition(C):1,L&1||!G.sortDetached&&C.compareDocumentPosition(_)===L?_===c||_.ownerDocument==Ze&&be.contains(Ze,_)?-1:C===c||C.ownerDocument==Ze&&be.contains(Ze,C)?1:a?j.call(a,_)-j.call(a,C):0:L&4?-1:1)}),c}be.matches=function(d,v){return be(d,null,null,v)},be.matchesSelector=function(d,v){if(It(d),p&&!We[v+" "]&&(!D||!D.test(v)))try{var k=x.call(d,v);if(k||G.disconnectedMatch||d.document&&d.document.nodeType!==11)return k}catch{We(v,!0)}return be(v,c,null,[d]).length>0},be.contains=function(d,v){return(d.ownerDocument||d)!=c&&It(d),o.contains(d,v)},be.attr=function(d,v){(d.ownerDocument||d)!=c&&It(d);var k=i.attrHandle[v.toLowerCase()],_=k&&ee.call(i.attrHandle,v.toLowerCase())?k(d,v,!p):void 0;return _!==void 0?_:d.getAttribute(v)},be.error=function(d){throw new Error("Syntax error, unrecognized expression: "+d)},o.uniqueSort=function(d){var v,k=[],_=0,C=0;if(u=!G.sortStable,a=!G.sortStable&&g.call(d,0),ke.call(d,Ne),u){for(;v=d[C++];)v===d[C]&&(_=k.push(C));for(;_--;)je.call(d,k[_],1)}return a=null,d},o.fn.uniqueSort=function(){return this.pushStack(o.uniqueSort(g.apply(this)))},i=o.expr={cacheLength:50,createPseudo:nt,match:wt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(d){return d[1]=d[1].replace(Ot,xt),d[3]=(d[3]||d[4]||d[5]||"").replace(Ot,xt),d[2]==="~="&&(d[3]=" "+d[3]+" "),d.slice(0,4)},CHILD:function(d){return d[1]=d[1].toLowerCase(),d[1].slice(0,3)==="nth"?(d[3]||be.error(d[0]),d[4]=+(d[4]?d[5]+(d[6]||1):2*(d[3]==="even"||d[3]==="odd")),d[5]=+(d[7]+d[8]||d[3]==="odd")):d[3]&&be.error(d[0]),d},PSEUDO:function(d){var v,k=!d[6]&&d[2];return wt.CHILD.test(d[0])?null:(d[3]?d[2]=d[4]||d[5]||"":k&&kt.test(k)&&(v=Ht(k,!0))&&(v=k.indexOf(")",k.length-v)-k.length)&&(d[0]=d[0].slice(0,v),d[2]=k.slice(0,v)),d.slice(0,3))}},filter:{TAG:function(d){var v=d.replace(Ot,xt).toLowerCase();return d==="*"?function(){return!0}:function(k){return ne(k,v)}},CLASS:function(d){var v=J[d+" "];return v||(v=new RegExp("(^|"+de+")"+d+"("+de+"|$)"))&&J(d,function(k){return v.test(typeof k.className=="string"&&k.className||typeof k.getAttribute<"u"&&k.getAttribute("class")||"")})},ATTR:function(d,v,k){return function(_){var C=be.attr(_,d);return C==null?v==="!=":v?(C+="",v==="="?C===k:v==="!="?C!==k:v==="^="?k&&C.indexOf(k)===0:v==="*="?k&&C.indexOf(k)>-1:v==="$="?k&&C.slice(-k.length)===k:v==="~="?(" "+C.replace(ge," ")+" ").indexOf(k)>-1:v==="|="?C===k||C.slice(0,k.length+1)===k+"-":!1):!0}},CHILD:function(d,v,k,_,C){var L=d.slice(0,3)!=="nth",I=d.slice(-4)!=="last",B=v==="of-type";return _===1&&C===0?function(H){return!!H.parentNode}:function(H,le,z){var Q,ae,X,_e,Ue,He=L!==I?"nextSibling":"previousSibling",rt=H.parentNode,dt=B&&H.nodeName.toLowerCase(),pi=!z&&!B,qe=!1;if(rt){if(L){for(;He;){for(X=H;X=X[He];)if(B?ne(X,dt):X.nodeType===1)return!1;Ue=He=d==="only"&&!Ue&&"nextSibling"}return!0}if(Ue=[I?rt.firstChild:rt.lastChild],I&&pi){for(ae=rt[M]||(rt[M]={}),Q=ae[d]||[],_e=Q[0]===w&&Q[1],qe=_e&&Q[2],X=_e&&rt.childNodes[_e];X=++_e&&X&&X[He]||(qe=_e=0)||Ue.pop();)if(X.nodeType===1&&++qe&&X===H){ae[d]=[w,_e,qe];break}}else if(pi&&(ae=H[M]||(H[M]={}),Q=ae[d]||[],_e=Q[0]===w&&Q[1],qe=_e),qe===!1)for(;(X=++_e&&X&&X[He]||(qe=_e=0)||Ue.pop())&&!((B?ne(X,dt):X.nodeType===1)&&++qe&&(pi&&(ae=X[M]||(X[M]={}),ae[d]=[w,qe]),X===H)););return qe-=C,qe===_||qe%_===0&&qe/_>=0}}},PSEUDO:function(d,v){var k,_=i.pseudos[d]||i.setFilters[d.toLowerCase()]||be.error("unsupported pseudo: "+d);return _[M]?_(v):_.length>1?(k=[d,d,"",v],i.setFilters.hasOwnProperty(d.toLowerCase())?nt(function(C,L){for(var I,B=_(C,v),H=B.length;H--;)I=j.call(C,B[H]),C[I]=!(L[I]=B[H])}):function(C){return _(C,0,k)}):_}},pseudos:{not:nt(function(d){var v=[],k=[],_=wn(d.replace(ze,"$1"));return _[M]?nt(function(C,L,I,B){for(var H,le=_(C,null,B,[]),z=C.length;z--;)(H=le[z])&&(C[z]=!(L[z]=H))}):function(C,L,I){return v[0]=C,_(v,null,I,k),v[0]=null,!k.pop()}}),has:nt(function(d){return function(v){return be(d,v).length>0}}),contains:nt(function(d){return d=d.replace(Ot,xt),function(v){return(v.textContent||o.text(v)).indexOf(d)>-1}}),lang:nt(function(d){return Qt.test(d||"")||be.error("unsupported lang: "+d),d=d.replace(Ot,xt).toLowerCase(),function(v){var k;do if(k=p?v.lang:v.getAttribute("xml:lang")||v.getAttribute("lang"))return k=k.toLowerCase(),k===d||k.indexOf(d+"-")===0;while((v=v.parentNode)&&v.nodeType===1);return!1}}),target:function(d){var v=P.location&&P.location.hash;return v&&v.slice(1)===d.id},root:function(d){return d===m},focus:function(d){return d===Ce()&&c.hasFocus()&&!!(d.type||d.href||~d.tabIndex)},enabled:ci(!1),disabled:ci(!0),checked:function(d){return ne(d,"input")&&!!d.checked||ne(d,"option")&&!!d.selected},selected:function(d){return d.parentNode&&d.parentNode.selectedIndex,d.selected===!0},empty:function(d){for(d=d.firstChild;d;d=d.nextSibling)if(d.nodeType<6)return!1;return!0},parent:function(d){return!i.pseudos.empty(d)},header:function(d){return Wt.test(d.nodeName)},input:function(d){return _t.test(d.nodeName)},button:function(d){return ne(d,"input")&&d.type==="button"||ne(d,"button")},text:function(d){var v;return ne(d,"input")&&d.type==="text"&&((v=d.getAttribute("type"))==null||v.toLowerCase()==="text")},first:Jt(function(){return[0]}),last:Jt(function(d,v){return[v-1]}),eq:Jt(function(d,v,k){return[k<0?k+v:k]}),even:Jt(function(d,v){for(var k=0;kv?_=v:_=k;--_>=0;)d.push(_);return d}),gt:Jt(function(d,v,k){for(var _=k<0?k+v:k;++_1?function(v,k,_){for(var C=d.length;C--;)if(!d[C](v,k,_))return!1;return!0}:d[0]}function vr(d,v,k){for(var _=0,C=v.length;_-1&&(I[z]=!(B[z]=ae))}}else X=di(X===B?X.splice(He,X.length):X),C?C(null,B,X,le):f.apply(B,X)})}function Wi(d){for(var v,k,_,C=d.length,L=i.relative[d[0].type],I=L||i.relative[" "],B=L?1:0,H=Ji(function(Q){return Q===v},I,!0),le=Ji(function(Q){return j.call(v,Q)>-1},I,!0),z=[function(Q,ae,X){var _e=!L&&(X||ae!=r)||((v=ae).nodeType?H(Q,ae,X):le(Q,ae,X));return v=null,_e}];B1&&Ki(z),B>1&&hi(d.slice(0,B-1).concat({value:d[B-2].type===" "?"*":""})).replace(ze,"$1"),k,B<_&&Wi(d.slice(B,_)),_0,_=d.length>0,C=function(L,I,B,H,le){var z,Q,ae,X=0,_e="0",Ue=L&&[],He=[],rt=r,dt=L||_&&i.find.TAG("*",le),pi=w+=rt==null?1:Math.random()||.1,qe=dt.length;for(le&&(r=I==c||I||le);_e!==qe&&(z=dt[_e])!=null;_e++){if(_&&z){for(Q=0,!I&&z.ownerDocument!=c&&(It(z),B=!p);ae=d[Q++];)if(ae(z,I||c,B)){f.call(H,z);break}le&&(w=pi)}k&&((z=!ae&&z)&&X--,L&&Ue.push(z))}if(X+=_e,k&&_e!==X){for(Q=0;ae=v[Q++];)ae(Ue,He,I,B);if(L){if(X>0)for(;_e--;)Ue[_e]||He[_e]||(He[_e]=yi.call(H));He=di(He)}f.apply(H,He),le&&!L&&He.length>0&&X+v.length>1&&o.uniqueSort(H)}return le&&(w=pi,r=rt),Ue};return k?nt(C):C}function wn(d,v){var k,_=[],C=[],L=ie[d+" "];if(!L){for(v||(v=Ht(d)),k=v.length;k--;)L=Wi(v[k]),L[M]?_.push(L):C.push(L);L=ie(d,Dr(C,_)),L.selector=d}return L}function In(d,v,k,_){var C,L,I,B,H,le=typeof d=="function"&&d,z=!_&&Ht(d=le.selector||d);if(k=k||[],z.length===1){if(L=z[0]=z[0].slice(0),L.length>2&&(I=L[0]).type==="ID"&&v.nodeType===9&&p&&i.relative[L[1].type]){if(v=(i.find.ID(I.matches[0].replace(Ot,xt),v)||[])[0],v)le&&(v=v.parentNode);else return k;d=d.slice(L.shift().value.length)}for(C=wt.needsContext.test(d)?0:L.length;C--&&(I=L[C],!i.relative[B=I.type]);)if((H=i.find[B])&&(_=H(I.matches[0].replace(Ot,xt),bn.test(L[0].type)&&kn(v.parentNode)||v))){if(L.splice(C,1),d=_.length&&hi(L),!d)return f.apply(k,_),k;break}}return(le||wn(d,z))(_,v,!p,k,!v||bn.test(d)&&kn(v.parentNode)||v),k}G.sortStable=M.split("").sort(Ne).join("")===M,It(),G.sortDetached=fi(function(d){return d.compareDocumentPosition(c.createElement("fieldset"))&1}),o.find=be,o.expr[":"]=o.expr.pseudos,o.unique=o.uniqueSort,be.compile=wn,be.select=In,be.setDocument=It,be.tokenize=Ht,be.escape=o.escapeSelector,be.getText=o.text,be.isXML=o.isXMLDoc,be.selectors=o.expr,be.support=o.support,be.uniqueSort=o.uniqueSort})();var Te=function(e,i,r){for(var a=[],u=r!==void 0;(e=e[i])&&e.nodeType!==9;)if(e.nodeType===1){if(u&&o(e).is(r))break;a.push(e)}return a},Le=function(e,i){for(var r=[];e;e=e.nextSibling)e.nodeType===1&&e!==i&&r.push(e);return r},at=o.expr.match.needsContext,Je=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $e(e,i,r){return O(i)?o.grep(e,function(a,u){return!!i.call(a,u,a)!==r}):i.nodeType?o.grep(e,function(a){return a===i!==r}):typeof i!="string"?o.grep(e,function(a){return j.call(i,a)>-1!==r}):o.filter(i,e,r)}o.filter=function(e,i,r){var a=i[0];return r&&(e=":not("+e+")"),i.length===1&&a.nodeType===1?o.find.matchesSelector(a,e)?[a]:[]:o.find.matches(e,o.grep(i,function(u){return u.nodeType===1}))},o.fn.extend({find:function(e){var i,r,a=this.length,u=this;if(typeof e!="string")return this.pushStack(o(e).filter(function(){for(i=0;i1?o.uniqueSort(r):r},filter:function(e){return this.pushStack($e(this,e||[],!1))},not:function(e){return this.pushStack($e(this,e||[],!0))},is:function(e){return!!$e(this,typeof e=="string"&&at.test(e)?o(e):e||[],!1).length}});var W,Et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ft=o.fn.init=function(e,i,r){var a,u;if(!e)return this;if(r=r||W,typeof e=="string")if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?a=[null,e,null]:a=Et.exec(e),a&&(a[1]||!i))if(a[1]){if(i=i instanceof o?i[0]:i,o.merge(this,o.parseHTML(a[1],i&&i.nodeType?i.ownerDocument||i:N,!0)),Je.test(a[1])&&o.isPlainObject(i))for(a in i)O(this[a])?this[a](i[a]):this.attr(a,i[a]);return this}else return u=N.getElementById(a[2]),u&&(this[0]=u,this.length=1),this;else return!i||i.jquery?(i||r).find(e):this.constructor(i).find(e);else{if(e.nodeType)return this[0]=e,this.length=1,this;if(O(e))return r.ready!==void 0?r.ready(e):e(o)}return o.makeArray(e,this)};Ft.prototype=o.fn,W=o(N);var St=/^(?:parents|prev(?:Until|All))/,vi={children:!0,contents:!0,next:!0,prev:!0};o.fn.extend({has:function(e){var i=o(e,this),r=i.length;return this.filter(function(){for(var a=0;a-1:r.nodeType===1&&o.find.matchesSelector(r,e))){f.push(r);break}}return this.pushStack(f.length>1?o.uniqueSort(f):f)},index:function(e){return e?typeof e=="string"?j.call(o(e),this[0]):j.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,i){return this.pushStack(o.uniqueSort(o.merge(this.get(),o(e,i))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function Ut(e,i){for(;(e=e[i])&&e.nodeType!==1;);return e}o.each({parent:function(e){var i=e.parentNode;return i&&i.nodeType!==11?i:null},parents:function(e){return Te(e,"parentNode")},parentsUntil:function(e,i,r){return Te(e,"parentNode",r)},next:function(e){return Ut(e,"nextSibling")},prev:function(e){return Ut(e,"previousSibling")},nextAll:function(e){return Te(e,"nextSibling")},prevAll:function(e){return Te(e,"previousSibling")},nextUntil:function(e,i,r){return Te(e,"nextSibling",r)},prevUntil:function(e,i,r){return Te(e,"previousSibling",r)},siblings:function(e){return Le((e.parentNode||{}).firstChild,e)},children:function(e){return Le(e.firstChild)},contents:function(e){return e.contentDocument!=null&&T(e.contentDocument)?e.contentDocument:(ne(e,"template")&&(e=e.content||e),o.merge([],e.childNodes))}},function(e,i){o.fn[e]=function(r,a){var u=o.map(this,i,r);return e.slice(-5)!=="Until"&&(a=r),a&&typeof a=="string"&&(u=o.filter(a,u)),this.length>1&&(vi[e]||o.uniqueSort(u),St.test(e)&&u.reverse()),this.pushStack(u)}});var Ke=/[^\x20\t\r\n\f]+/g;function sn(e){var i={};return o.each(e.match(Ke)||[],function(r,a){i[a]=!0}),i}o.Callbacks=function(e){e=typeof e=="string"?sn(e):o.extend({},e);var i,r,a,u,f=[],c=[],m=-1,p=function(){for(u=u||e.once,a=i=!0;c.length;m=-1)for(r=c.shift();++m-1;)f.splice(w,1),w<=m&&m--}),this},has:function(x){return x?o.inArray(x,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return u=c=[],f=r="",this},disabled:function(){return!f},lock:function(){return u=c=[],!r&&!i&&(f=r=""),this},locked:function(){return!!u},fireWith:function(x,M){return u||(M=M||[],M=[x,M.slice?M.slice():M],c.push(M),i||p()),this},fire:function(){return D.fireWith(this,arguments),this},fired:function(){return!!a}};return D};function st(e){return e}function ni(e){throw e}function Di(e,i,r,a){var u;try{e&&O(u=e.promise)?u.call(e).done(i).fail(r):e&&O(u=e.then)?u.call(e,i,r):i.apply(void 0,[e].slice(a))}catch(f){r.apply(void 0,[f])}}o.extend({Deferred:function(e){var i=[["notify","progress",o.Callbacks("memory"),o.Callbacks("memory"),2],["resolve","done",o.Callbacks("once memory"),o.Callbacks("once memory"),0,"resolved"],["reject","fail",o.Callbacks("once memory"),o.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return u.done(arguments).fail(arguments),this},catch:function(f){return a.then(null,f)},pipe:function(){var f=arguments;return o.Deferred(function(c){o.each(i,function(m,p){var D=O(f[p[4]])&&f[p[4]];u[p[1]](function(){var x=D&&D.apply(this,arguments);x&&O(x.promise)?x.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[p[0]+"With"](this,D?[x]:arguments)})}),f=null}).promise()},then:function(f,c,m){var p=0;function D(x,M,w,E){return function(){var J=this,he=arguments,ie=function(){var Ne,Dt;if(!(x=p&&(w!==ni&&(J=void 0,he=[Ne]),M.rejectWith(J,he))}};x?We():(o.Deferred.getErrorHook?We.error=o.Deferred.getErrorHook():o.Deferred.getStackHook&&(We.error=o.Deferred.getStackHook()),P.setTimeout(We))}}return o.Deferred(function(x){i[0][3].add(D(0,x,O(m)?m:st,x.notifyWith)),i[1][3].add(D(0,x,O(f)?f:st)),i[2][3].add(D(0,x,O(c)?c:ni))}).promise()},promise:function(f){return f!=null?o.extend(f,a):a}},u={};return o.each(i,function(f,c){var m=c[2],p=c[5];a[c[1]]=m.add,p&&m.add(function(){r=p},i[3-f][2].disable,i[3-f][3].disable,i[0][2].lock,i[0][3].lock),m.add(c[3].fire),u[c[0]]=function(){return u[c[0]+"With"](this===u?void 0:this,arguments),this},u[c[0]+"With"]=m.fireWith}),a.promise(u),e&&e.call(u,u),u},when:function(e){var i=arguments.length,r=i,a=Array(r),u=g.call(arguments),f=o.Deferred(),c=function(m){return function(p){a[m]=this,u[m]=arguments.length>1?g.call(arguments):p,--i||f.resolveWith(a,u)}};if(i<=1&&(Di(e,f.done(c(r)).resolve,f.reject,!i),f.state()==="pending"||O(u[r]&&u[r].then)))return f.then();for(;r--;)Di(u[r],c(r),f.reject);return f.promise()}});var on=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;o.Deferred.exceptionHook=function(e,i){P.console&&P.console.warn&&e&&on.test(e.name)&&P.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},o.readyException=function(e){P.setTimeout(function(){throw e})};var bi=o.Deferred();o.fn.ready=function(e){return bi.then(e).catch(function(i){o.readyException(i)}),this},o.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--o.readyWait:o.isReady)||(o.isReady=!0,!(e!==!0&&--o.readyWait>0)&&bi.resolveWith(N,[o]))}}),o.ready.then=bi.then;function ri(){N.removeEventListener("DOMContentLoaded",ri),P.removeEventListener("load",ri),o.ready()}N.readyState==="complete"||N.readyState!=="loading"&&!N.documentElement.doScroll?P.setTimeout(o.ready):(N.addEventListener("DOMContentLoaded",ri),P.addEventListener("load",ri));var ot=function(e,i,r,a,u,f,c){var m=0,p=e.length,D=r==null;if(Oe(r)==="object"){u=!0;for(m in r)ot(e,i,m,r[m],!0,f,c)}else if(a!==void 0&&(u=!0,O(a)||(c=!0),D&&(c?(i.call(e,a),i=null):(D=i,i=function(x,M,w){return D.call(o(x),w)})),i))for(;m1,null,!0)},removeData:function(e){return this.each(function(){ye.remove(this,e)})}}),o.extend({queue:function(e,i,r){var a;if(e)return i=(i||"fx")+"queue",a=R.get(e,i),r&&(!a||Array.isArray(r)?a=R.access(e,i,o.makeArray(r)):a.push(r)),a||[]},dequeue:function(e,i){i=i||"fx";var r=o.queue(e,i),a=r.length,u=r.shift(),f=o._queueHooks(e,i),c=function(){o.dequeue(e,i)};u==="inprogress"&&(u=r.shift(),a--),u&&(i==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(e,c,f)),!a&&f&&f.empty.fire()},_queueHooks:function(e,i){var r=i+"queueHooks";return R.get(e,r)||R.access(e,r,{empty:o.Callbacks("once memory").add(function(){R.remove(e,[i+"queue",r])})})}}),o.fn.extend({queue:function(e,i){var r=2;return typeof e!="string"&&(i=e,e="fx",r--),arguments.length\x20\t\r\n\f]*)/i,F=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=N.createDocumentFragment(),i=e.appendChild(N.createElement("div")),r=N.createElement("input");r.setAttribute("type","radio"),r.setAttribute("checked","checked"),r.setAttribute("name","t"),i.appendChild(r),G.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,i.innerHTML="",G.noCloneChecked=!!i.cloneNode(!0).lastChild.defaultValue,i.innerHTML="",G.option=!!i.lastChild})();var et={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};et.tbody=et.tfoot=et.colgroup=et.caption=et.thead,et.th=et.td,G.option||(et.optgroup=et.option=[1,""]);function Be(e,i){var r;return typeof e.getElementsByTagName<"u"?r=e.getElementsByTagName(i||"*"):typeof e.querySelectorAll<"u"?r=e.querySelectorAll(i||"*"):r=[],i===void 0||i&&ne(e,i)?o.merge([e],r):r}function ct(e,i){for(var r=0,a=e.length;r-1){u&&u.push(f);continue}if(D=ut(f),c=Be(M.appendChild(f),"script"),D&&ct(c),r)for(x=0;f=c[x++];)F.test(f.type||"")&&r.push(f)}return M}var Ui=/^([^.]*)(?:\.(.+)|)/;function pe(){return!0}function mt(){return!1}function ln(e,i,r,a,u,f){var c,m;if(typeof i=="object"){typeof r!="string"&&(a=a||r,r=void 0);for(m in i)ln(e,m,r,a,i[m],f);return e}if(a==null&&u==null?(u=r,a=r=void 0):u==null&&(typeof r=="string"?(u=a,a=void 0):(u=a,a=r,r=void 0)),u===!1)u=mt;else if(!u)return e;return f===1&&(c=u,u=function(p){return o().off(p),c.apply(this,arguments)},u.guid=c.guid||(c.guid=o.guid++)),e.each(function(){o.event.add(this,i,u,a,r)})}o.event={global:{},add:function(e,i,r,a,u){var f,c,m,p,D,x,M,w,E,J,he,ie=R.get(e);if(Vt(e))for(r.handler&&(f=r,r=f.handler,u=f.selector),u&&o.find.matchesSelector(gt,u),r.guid||(r.guid=o.guid++),(p=ie.events)||(p=ie.events=Object.create(null)),(c=ie.handle)||(c=ie.handle=function(We){return typeof o<"u"&&o.event.triggered!==We.type?o.event.dispatch.apply(e,arguments):void 0}),i=(i||"").match(Ke)||[""],D=i.length;D--;)m=Ui.exec(i[D])||[],E=he=m[1],J=(m[2]||"").split(".").sort(),E&&(M=o.event.special[E]||{},E=(u?M.delegateType:M.bindType)||E,M=o.event.special[E]||{},x=o.extend({type:E,origType:he,data:a,handler:r,guid:r.guid,selector:u,needsContext:u&&o.expr.match.needsContext.test(u),namespace:J.join(".")},f),(w=p[E])||(w=p[E]=[],w.delegateCount=0,(!M.setup||M.setup.call(e,a,J,c)===!1)&&e.addEventListener&&e.addEventListener(E,c)),M.add&&(M.add.call(e,x),x.handler.guid||(x.handler.guid=r.guid)),u?w.splice(w.delegateCount++,0,x):w.push(x),o.event.global[E]=!0)},remove:function(e,i,r,a,u){var f,c,m,p,D,x,M,w,E,J,he,ie=R.hasData(e)&&R.get(e);if(!(!ie||!(p=ie.events))){for(i=(i||"").match(Ke)||[""],D=i.length;D--;){if(m=Ui.exec(i[D])||[],E=he=m[1],J=(m[2]||"").split(".").sort(),!E){for(E in p)o.event.remove(e,E+i[D],r,a,!0);continue}for(M=o.event.special[E]||{},E=(a?M.delegateType:M.bindType)||E,w=p[E]||[],m=m[2]&&new RegExp("(^|\\.)"+J.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=f=w.length;f--;)x=w[f],(u||he===x.origType)&&(!r||r.guid===x.guid)&&(!m||m.test(x.namespace))&&(!a||a===x.selector||a==="**"&&x.selector)&&(w.splice(f,1),x.selector&&w.delegateCount--,M.remove&&M.remove.call(e,x));c&&!w.length&&((!M.teardown||M.teardown.call(e,J,ie.handle)===!1)&&o.removeEvent(e,E,ie.handle),delete p[E])}o.isEmptyObject(p)&&R.remove(e,"handle events")}},dispatch:function(e){var i,r,a,u,f,c,m=new Array(arguments.length),p=o.event.fix(e),D=(R.get(this,"events")||Object.create(null))[p.type]||[],x=o.event.special[p.type]||{};for(m[0]=p,i=1;i=1)){for(;D!==this;D=D.parentNode||this)if(D.nodeType===1&&!(e.type==="click"&&D.disabled===!0)){for(f=[],c={},r=0;r-1:o.find(u,this,null,[D]).length),c[u]&&f.push(a);f.length&&m.push({elem:D,handlers:f})}}return D=this,p\s*$/g;function Pe(e,i){return ne(e,"table")&&ne(i.nodeType!==11?i:i.firstChild,"tr")&&o(e).children("tbody")[0]||e}function ht(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function Tt(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Lt(e,i){var r,a,u,f,c,m,p;if(i.nodeType===1){if(R.hasData(e)&&(f=R.get(e),p=f.events,p)){R.remove(i,"handle events");for(u in p)for(r=0,a=p[u].length;r1&&typeof E=="string"&&!G.checkClone&&Mt.test(E))return e.each(function(he){var ie=e.eq(he);J&&(i[0]=E.call(this,he,ie.html())),si(ie,i,r,a)});if(M&&(u=oe(i,e[0].ownerDocument,!1,e,a),f=u.firstChild,u.childNodes.length===1&&(u=f),f||a)){for(c=o.map(Be(u,"script"),ht),m=c.length;x0&&ct(c,!p&&Be(e,"script")),m},cleanData:function(e){for(var i,r,a,u=o.event.special,f=0;(r=e[f])!==void 0;f++)if(Vt(r)){if(i=r[R.expando]){if(i.events)for(a in i.events)u[a]?o.event.remove(r,a):o.removeEvent(r,a,i.handle);r[R.expando]=void 0}r[ye.expando]&&(r[ye.expando]=void 0)}}}),o.fn.extend({detach:function(e){return oi(this,e,!0)},remove:function(e){return oi(this,e)},text:function(e){return ot(this,function(i){return i===void 0?o.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=i)})},null,e,arguments.length)},append:function(){return si(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var i=Pe(this,e);i.appendChild(e)}})},prepend:function(){return si(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var i=Pe(this,e);i.insertBefore(e,i.firstChild)}})},before:function(){return si(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return si(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,i=0;(e=this[i])!=null;i++)e.nodeType===1&&(o.cleanData(Be(e,!1)),e.textContent="");return this},clone:function(e,i){return e=e??!1,i=i??e,this.map(function(){return o.clone(this,e,i)})},html:function(e){return ot(this,function(i){var r=this[0]||{},a=0,u=this.length;if(i===void 0&&r.nodeType===1)return r.innerHTML;if(typeof i=="string"&&!Ie.test(i)&&!et[(Si.exec(i)||["",""])[1].toLowerCase()]){i=o.htmlPrefilter(i);try{for(;a=0&&(p+=Math.max(0,Math.ceil(e["offset"+i[0].toUpperCase()+i.slice(1)]-f-p-m-.5))||0),p+D}function Pn(e,i,r){var a=Yt(e),u=!G.boxSizingReliable()||r,f=u&&o.css(e,"boxSizing",!1,a)==="border-box",c=f,m=Ci(e,i,a),p="offset"+i[0].toUpperCase()+i.slice(1);if(qi.test(m)){if(!r)return m;m="auto"}return(!G.boxSizingReliable()&&f||!G.reliableTrDimensions()&&ne(e,"tr")||m==="auto"||!parseFloat(m)&&o.css(e,"display",!1,a)==="inline")&&e.getClientRects().length&&(f=o.css(e,"boxSizing",!1,a)==="border-box",c=p in e,c&&(m=e[p])),m=parseFloat(m)||0,m+fn(e,i,r||(f?"border":"content"),c,a,m)+"px"}o.extend({cssHooks:{opacity:{get:function(e,i){if(i){var r=Ci(e,"opacity");return r===""?"1":r}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,i,r,a){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var u,f,c,m=Xe(i),p=un.test(i),D=e.style;if(p||(i=Bi(m)),c=o.cssHooks[i]||o.cssHooks[m],r!==void 0){if(f=typeof r,f==="string"&&(u=At.exec(r))&&u[1]&&(r=_i(e,i,u),f="number"),r==null||r!==r)return;f==="number"&&!p&&(r+=u&&u[3]||(o.cssNumber[m]?"":"px")),!G.clearCloneStyle&&r===""&&i.indexOf("background")===0&&(D[i]="inherit"),(!c||!("set"in c)||(r=c.set(e,r,a))!==void 0)&&(p?D.setProperty(i,r):D[i]=r)}else return c&&"get"in c&&(u=c.get(e,!1,a))!==void 0?u:D[i]}},css:function(e,i,r,a){var u,f,c,m=Xe(i),p=un.test(i);return p||(i=Bi(m)),c=o.cssHooks[i]||o.cssHooks[m],c&&"get"in c&&(u=c.get(e,!0,r)),u===void 0&&(u=Ci(e,i,a)),u==="normal"&&i in Yn&&(u=Yn[i]),r===""||r?(f=parseFloat(u),r===!0||isFinite(f)?f||0:u):u}}),o.each(["height","width"],function(e,i){o.cssHooks[i]={get:function(r,a,u){if(a)return Tn.test(o.css(r,"display"))&&(!r.getClientRects().length||!r.getBoundingClientRect().width)?li(r,$n,function(){return Pn(r,i,u)}):Pn(r,i,u)},set:function(r,a,u){var f,c=Yt(r),m=!G.scrollboxSize()&&c.position==="absolute",p=m||u,D=p&&o.css(r,"boxSizing",!1,c)==="border-box",x=u?fn(r,i,u,D,c):0;return D&&m&&(x-=Math.ceil(r["offset"+i[0].toUpperCase()+i.slice(1)]-parseFloat(c[i])-fn(r,i,"border",!1,c)-.5)),x&&(f=At.exec(a))&&(f[3]||"px")!=="px"&&(r.style[i]=a,a=o.css(r,i)),On(r,a,x)}}}),o.cssHooks.marginLeft=Cn(G.reliableMarginLeft,function(e,i){if(i)return(parseFloat(Ci(e,"marginLeft"))||e.getBoundingClientRect().left-li(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),o.each({margin:"",padding:"",border:"Width"},function(e,i){o.cssHooks[e+i]={expand:function(r){for(var a=0,u={},f=typeof r=="string"?r.split(" "):[r];a<4;a++)u[e+lt[a]+i]=f[a]||f[a-2]||f[0];return u}},e!=="margin"&&(o.cssHooks[e+i].set=On)}),o.fn.extend({css:function(e,i){return ot(this,function(r,a,u){var f,c,m={},p=0;if(Array.isArray(a)){for(f=Yt(r),c=a.length;p1)}});function Ge(e,i,r,a,u){return new Ge.prototype.init(e,i,r,a,u)}o.Tween=Ge,Ge.prototype={constructor:Ge,init:function(e,i,r,a,u,f){this.elem=e,this.prop=r,this.easing=u||o.easing._default,this.options=i,this.start=this.now=this.cur(),this.end=a,this.unit=f||(o.cssNumber[r]?"":"px")},cur:function(){var e=Ge.propHooks[this.prop];return e&&e.get?e.get(this):Ge.propHooks._default.get(this)},run:function(e){var i,r=Ge.propHooks[this.prop];return this.options.duration?this.pos=i=o.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=i=e,this.now=(this.end-this.start)*i+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):Ge.propHooks._default.set(this),this}},Ge.prototype.init.prototype=Ge.prototype,Ge.propHooks={_default:{get:function(e){var i;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(i=o.css(e.elem,e.prop,""),!i||i==="auto"?0:i)},set:function(e){o.fx.step[e.prop]?o.fx.step[e.prop](e):e.elem.nodeType===1&&(o.cssHooks[e.prop]||e.elem.style[Bi(e.prop)]!=null)?o.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ge.propHooks.scrollTop=Ge.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},o.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},o.fx=Ge.prototype.init,o.fx.step={};var zt,Mi,Xn=/^(?:toggle|show|hide)$/,Qn=/queueHooks$/;function cn(){Mi&&(N.hidden===!1&&P.requestAnimationFrame?P.requestAnimationFrame(cn):P.setTimeout(cn,o.fx.interval),o.fx.tick())}function hn(){return P.setTimeout(function(){zt=void 0}),zt=Date.now()}function Gi(e,i){var r,a=0,u={height:e};for(i=i?1:0;a<4;a+=2-i)r=lt[a],u["margin"+r]=u["padding"+r]=e;return i&&(u.opacity=u.width=e),u}function ui(e,i,r){for(var a,u=(Fe.tweeners[i]||[]).concat(Fe.tweeners["*"]),f=0,c=u.length;f1)},removeAttr:function(e){return this.each(function(){o.removeAttr(this,e)})}}),o.extend({attr:function(e,i,r){var a,u,f=e.nodeType;if(!(f===3||f===8||f===2)){if(typeof e.getAttribute>"u")return o.prop(e,i,r);if((f!==1||!o.isXMLDoc(e))&&(u=o.attrHooks[i.toLowerCase()]||(o.expr.match.bool.test(i)?vt:void 0)),r!==void 0){if(r===null){o.removeAttr(e,i);return}return u&&"set"in u&&(a=u.set(e,r,i))!==void 0?a:(e.setAttribute(i,r+""),r)}return u&&"get"in u&&(a=u.get(e,i))!==null?a:(a=o.find.attr(e,i),a??void 0)}},attrHooks:{type:{set:function(e,i){if(!G.radioValue&&i==="radio"&&ne(e,"input")){var r=e.value;return e.setAttribute("type",i),r&&(e.value=r),i}}}},removeAttr:function(e,i){var r,a=0,u=i&&i.match(Ke);if(u&&e.nodeType===1)for(;r=u[a++];)e.removeAttribute(r)}}),vt={set:function(e,i,r){return i===!1?o.removeAttr(e,r):e.setAttribute(r,r),r}},o.each(o.expr.match.bool.source.match(/\w+/g),function(e,i){var r=Ti[i]||o.find.attr;Ti[i]=function(a,u,f){var c,m,p=u.toLowerCase();return f||(m=Ti[p],Ti[p]=c,c=r(a,u,f)!=null?p:null,Ti[p]=m),c}});var Jn=/^(?:input|select|textarea|button)$/i,Kn=/^(?:a|area)$/i;o.fn.extend({prop:function(e,i){return ot(this,o.prop,e,i,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[o.propFix[e]||e]})}}),o.extend({prop:function(e,i,r){var a,u,f=e.nodeType;if(!(f===3||f===8||f===2))return(f!==1||!o.isXMLDoc(e))&&(i=o.propFix[i]||i,u=o.propHooks[i]),r!==void 0?u&&"set"in u&&(a=u.set(e,r,i))!==void 0?a:e[i]=r:u&&"get"in u&&(a=u.get(e,i))!==null?a:e[i]},propHooks:{tabIndex:{get:function(e){var i=o.find.attr(e,"tabindex");return i?parseInt(i,10):Jn.test(e.nodeName)||Kn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),G.optSelected||(o.propHooks.selected={get:function(e){var i=e.parentNode;return i&&i.parentNode&&i.parentNode.selectedIndex,null},set:function(e){var i=e.parentNode;i&&(i.selectedIndex,i.parentNode&&i.parentNode.selectedIndex)}}),o.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){o.propFix[this.toLowerCase()]=this});function Zt(e){var i=e.match(Ke)||[];return i.join(" ")}function $t(e){return e.getAttribute&&e.getAttribute("class")||""}function dn(e){return Array.isArray(e)?e:typeof e=="string"?e.match(Ke)||[]:[]}o.fn.extend({addClass:function(e){var i,r,a,u,f,c;return O(e)?this.each(function(m){o(this).addClass(e.call(this,m,$t(this)))}):(i=dn(e),i.length?this.each(function(){if(a=$t(this),r=this.nodeType===1&&" "+Zt(a)+" ",r){for(f=0;f-1;)r=r.replace(" "+u+" "," ");c=Zt(r),a!==c&&this.setAttribute("class",c)}}):this):this.attr("class","")},toggleClass:function(e,i){var r,a,u,f,c=typeof e,m=c==="string"||Array.isArray(e);return O(e)?this.each(function(p){o(this).toggleClass(e.call(this,p,$t(this),i),i)}):typeof i=="boolean"&&m?i?this.addClass(e):this.removeClass(e):(r=dn(e),this.each(function(){if(m)for(f=o(this),u=0;u-1)return!0;return!1}});var er=/\r/g;o.fn.extend({val:function(e){var i,r,a,u=this[0];return arguments.length?(a=O(e),this.each(function(f){var c;this.nodeType===1&&(a?c=e.call(this,f,o(this).val()):c=e,c==null?c="":typeof c=="number"?c+="":Array.isArray(c)&&(c=o.map(c,function(m){return m==null?"":m+""})),i=o.valHooks[this.type]||o.valHooks[this.nodeName.toLowerCase()],(!i||!("set"in i)||i.set(this,c,"value")===void 0)&&(this.value=c))})):u?(i=o.valHooks[u.type]||o.valHooks[u.nodeName.toLowerCase()],i&&"get"in i&&(r=i.get(u,"value"))!==void 0?r:(r=u.value,typeof r=="string"?r.replace(er,""):r??"")):void 0}}),o.extend({valHooks:{option:{get:function(e){var i=o.find.attr(e,"value");return i??Zt(o.text(e))}},select:{get:function(e){var i,r,a,u=e.options,f=e.selectedIndex,c=e.type==="select-one",m=c?null:[],p=c?f+1:u.length;for(f<0?a=p:a=c?f:0;a-1)&&(r=!0);return r||(e.selectedIndex=-1),f}}}}),o.each(["radio","checkbox"],function(){o.valHooks[this]={set:function(e,i){if(Array.isArray(i))return e.checked=o.inArray(o(e).val(),i)>-1}},G.checkOn||(o.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var Yi=P.location,Zi={guid:Date.now()},pn=/\?/;o.parseXML=function(e){var i,r;if(!e||typeof e!="string")return null;try{i=new P.DOMParser().parseFromString(e,"text/xml")}catch{}return r=i&&i.getElementsByTagName("parsererror")[0],(!i||r)&&o.error("Invalid XML: "+(r?o.map(r.childNodes,function(a){return a.textContent}).join(` +`):e)),i};var gn=/^(?:focusinfocus|focusoutblur)$/,En=function(e){e.stopPropagation()};o.extend(o.event,{trigger:function(e,i,r,a){var u,f,c,m,p,D,x,M,w=[r||N],E=ee.call(e,"type")?e.type:e,J=ee.call(e,"namespace")?e.namespace.split("."):[];if(f=M=c=r=r||N,!(r.nodeType===3||r.nodeType===8)&&!gn.test(E+o.event.triggered)&&(E.indexOf(".")>-1&&(J=E.split("."),E=J.shift(),J.sort()),p=E.indexOf(":")<0&&"on"+E,e=e[o.expando]?e:new o.Event(E,typeof e=="object"&&e),e.isTrigger=a?2:3,e.namespace=J.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+J.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),i=i==null?[e]:o.makeArray(i,[e]),x=o.event.special[E]||{},!(!a&&x.trigger&&x.trigger.apply(r,i)===!1))){if(!a&&!x.noBubble&&!ue(r)){for(m=x.delegateType||E,gn.test(m+E)||(f=f.parentNode);f;f=f.parentNode)w.push(f),c=f;c===(r.ownerDocument||N)&&w.push(c.defaultView||c.parentWindow||P)}for(u=0;(f=w[u++])&&!e.isPropagationStopped();)M=f,e.type=u>1?m:x.bindType||E,D=(R.get(f,"events")||Object.create(null))[e.type]&&R.get(f,"handle"),D&&D.apply(f,i),D=p&&f[p],D&&D.apply&&Vt(f)&&(e.result=D.apply(f,i),e.result===!1&&e.preventDefault());return e.type=E,!a&&!e.isDefaultPrevented()&&(!x._default||x._default.apply(w.pop(),i)===!1)&&Vt(r)&&p&&O(r[E])&&!ue(r)&&(c=r[p],c&&(r[p]=null),o.event.triggered=E,e.isPropagationStopped()&&M.addEventListener(E,En),r[E](),e.isPropagationStopped()&&M.removeEventListener(E,En),o.event.triggered=void 0,c&&(r[p]=c)),e.result}},simulate:function(e,i,r){var a=o.extend(new o.Event,r,{type:e,isSimulated:!0});o.event.trigger(a,null,i)}}),o.fn.extend({trigger:function(e,i){return this.each(function(){o.event.trigger(e,i,this)})},triggerHandler:function(e,i){var r=this[0];if(r)return o.event.trigger(e,i,r,!0)}});var tr=/\[\]$/,An=/\r?\n/g,ir=/^(?:submit|button|image|reset|file)$/i,nr=/^(?:input|select|textarea|keygen)/i;function mn(e,i,r,a){var u;if(Array.isArray(i))o.each(i,function(f,c){r||tr.test(e)?a(e,c):mn(e+"["+(typeof c=="object"&&c!=null?f:"")+"]",c,r,a)});else if(!r&&Oe(i)==="object")for(u in i)mn(e+"["+u+"]",i[u],r,a);else a(e,i)}o.param=function(e,i){var r,a=[],u=function(f,c){var m=O(c)?c():c;a[a.length]=encodeURIComponent(f)+"="+encodeURIComponent(m??"")};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!o.isPlainObject(e))o.each(e,function(){u(this.name,this.value)});else for(r in e)mn(r,e[r],i,u);return a.join("&")},o.fn.extend({serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=o.prop(this,"elements");return e?o.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!o(this).is(":disabled")&&nr.test(this.nodeName)&&!ir.test(e)&&(this.checked||!Bt.test(e))}).map(function(e,i){var r=o(this).val();return r==null?null:Array.isArray(r)?o.map(r,function(a){return{name:i.name,value:a.replace(An,`\r +`)}}):{name:i.name,value:r.replace(An,`\r +`)}}).get()}});var rr=/%20/g,ar=/#.*$/,sr=/([?&])_=[^&]*/,or=/^(.*?):[ \t]*([^\r\n]*)$/mg,lr=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ur=/^(?:GET|HEAD)$/,fr=/^\/\//,Ln={},yn={},$i="*/".concat("*"),Oi=N.createElement("a");Oi.href=Yi.href;function Rn(e){return function(i,r){typeof i!="string"&&(r=i,i="*");var a,u=0,f=i.toLowerCase().match(Ke)||[];if(O(r))for(;a=f[u++];)a[0]==="+"?(a=a.slice(1)||"*",(e[a]=e[a]||[]).unshift(r)):(e[a]=e[a]||[]).push(r)}}function vn(e,i,r,a){var u={},f=e===yn;function c(m){var p;return u[m]=!0,o.each(e[m]||[],function(D,x){var M=x(i,r,a);if(typeof M=="string"&&!f&&!u[M])return i.dataTypes.unshift(M),c(M),!1;if(f)return!(p=M)}),p}return c(i.dataTypes[0])||!u["*"]&&c("*")}function Xi(e,i){var r,a,u=o.ajaxSettings.flatOptions||{};for(r in i)i[r]!==void 0&&((u[r]?e:a||(a={}))[r]=i[r]);return a&&o.extend(!0,e,a),e}function cr(e,i,r){for(var a,u,f,c,m=e.contents,p=e.dataTypes;p[0]==="*";)p.shift(),a===void 0&&(a=e.mimeType||i.getResponseHeader("Content-Type"));if(a){for(u in m)if(m[u]&&m[u].test(a)){p.unshift(u);break}}if(p[0]in r)f=p[0];else{for(u in r){if(!p[0]||e.converters[u+" "+p[0]]){f=u;break}c||(c=u)}f=f||c}if(f)return f!==p[0]&&p.unshift(f),r[f]}function hr(e,i,r,a){var u,f,c,m,p,D={},x=e.dataTypes.slice();if(x[1])for(c in e.converters)D[c.toLowerCase()]=e.converters[c];for(f=x.shift();f;)if(e.responseFields[f]&&(r[e.responseFields[f]]=i),!p&&a&&e.dataFilter&&(i=e.dataFilter(i,e.dataType)),p=f,f=x.shift(),f){if(f==="*")f=p;else if(p!=="*"&&p!==f){if(c=D[p+" "+f]||D["* "+f],!c){for(u in D)if(m=u.split(" "),m[1]===f&&(c=D[p+" "+m[0]]||D["* "+m[0]],c)){c===!0?c=D[u]:D[u]!==!0&&(f=m[0],x.unshift(m[1]));break}}if(c!==!0)if(c&&e.throws)i=c(i);else try{i=c(i)}catch(M){return{state:"parsererror",error:c?M:"No conversion from "+p+" to "+f}}}}return{state:"success",data:i}}o.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Yi.href,type:"GET",isLocal:lr.test(Yi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$i,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":o.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,i){return i?Xi(Xi(e,o.ajaxSettings),i):Xi(o.ajaxSettings,e)},ajaxPrefilter:Rn(Ln),ajaxTransport:Rn(yn),ajax:function(e,i){typeof e=="object"&&(i=e,e=void 0),i=i||{};var r,a,u,f,c,m,p,D,x,M,w=o.ajaxSetup({},i),E=w.context||w,J=w.context&&(E.nodeType||E.jquery)?o(E):o.event,he=o.Deferred(),ie=o.Callbacks("once memory"),We=w.statusCode||{},Ne={},Dt={},bt="canceled",fe={readyState:0,getResponseHeader:function(ge){var Me;if(p){if(!f)for(f={};Me=or.exec(u);)f[Me[1].toLowerCase()+" "]=(f[Me[1].toLowerCase()+" "]||[]).concat(Me[2]);Me=f[ge.toLowerCase()+" "]}return Me==null?null:Me.join(", ")},getAllResponseHeaders:function(){return p?u:null},setRequestHeader:function(ge,Me){return p==null&&(ge=Dt[ge.toLowerCase()]=Dt[ge.toLowerCase()]||ge,Ne[ge]=Me),this},overrideMimeType:function(ge){return p==null&&(w.mimeType=ge),this},statusCode:function(ge){var Me;if(ge)if(p)fe.always(ge[fe.status]);else for(Me in ge)We[Me]=[We[Me],ge[Me]];return this},abort:function(ge){var Me=ge||bt;return r&&r.abort(Me),Xt(0,Me),this}};if(he.promise(fe),w.url=((e||w.url||Yi.href)+"").replace(fr,Yi.protocol+"//"),w.type=i.method||i.type||w.method||w.type,w.dataTypes=(w.dataType||"*").toLowerCase().match(Ke)||[""],w.crossDomain==null){m=N.createElement("a");try{m.href=w.url,m.href=m.href,w.crossDomain=Oi.protocol+"//"+Oi.host!=m.protocol+"//"+m.host}catch{w.crossDomain=!0}}if(w.data&&w.processData&&typeof w.data!="string"&&(w.data=o.param(w.data,w.traditional)),vn(Ln,w,i,fe),p)return fe;D=o.event&&w.global,D&&o.active++===0&&o.event.trigger("ajaxStart"),w.type=w.type.toUpperCase(),w.hasContent=!ur.test(w.type),a=w.url.replace(ar,""),w.hasContent?w.data&&w.processData&&(w.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(w.data=w.data.replace(rr,"+")):(M=w.url.slice(a.length),w.data&&(w.processData||typeof w.data=="string")&&(a+=(pn.test(a)?"&":"?")+w.data,delete w.data),w.cache===!1&&(a=a.replace(sr,"$1"),M=(pn.test(a)?"&":"?")+"_="+Zi.guid+++M),w.url=a+M),w.ifModified&&(o.lastModified[a]&&fe.setRequestHeader("If-Modified-Since",o.lastModified[a]),o.etag[a]&&fe.setRequestHeader("If-None-Match",o.etag[a])),(w.data&&w.hasContent&&w.contentType!==!1||i.contentType)&&fe.setRequestHeader("Content-Type",w.contentType),fe.setRequestHeader("Accept",w.dataTypes[0]&&w.accepts[w.dataTypes[0]]?w.accepts[w.dataTypes[0]]+(w.dataTypes[0]!=="*"?", "+$i+"; q=0.01":""):w.accepts["*"]);for(x in w.headers)fe.setRequestHeader(x,w.headers[x]);if(w.beforeSend&&(w.beforeSend.call(E,fe,w)===!1||p))return fe.abort();if(bt="abort",ie.add(w.complete),fe.done(w.success),fe.fail(w.error),r=vn(yn,w,i,fe),!r)Xt(-1,"No Transport");else{if(fe.readyState=1,D&&J.trigger("ajaxSend",[fe,w]),p)return fe;w.async&&w.timeout>0&&(c=P.setTimeout(function(){fe.abort("timeout")},w.timeout));try{p=!1,r.send(Ne,Xt)}catch(ge){if(p)throw ge;Xt(-1,ge)}}function Xt(ge,Me,Ai,Rt){var kt,Qt,wt,_t,Wt,it=Me;p||(p=!0,c&&P.clearTimeout(c),r=void 0,u=Rt||"",fe.readyState=ge>0?4:0,kt=ge>=200&&ge<300||ge===304,Ai&&(_t=cr(w,fe,Ai)),!kt&&o.inArray("script",w.dataTypes)>-1&&o.inArray("json",w.dataTypes)<0&&(w.converters["text script"]=function(){}),_t=hr(w,_t,fe,kt),kt?(w.ifModified&&(Wt=fe.getResponseHeader("Last-Modified"),Wt&&(o.lastModified[a]=Wt),Wt=fe.getResponseHeader("etag"),Wt&&(o.etag[a]=Wt)),ge===204||w.type==="HEAD"?it="nocontent":ge===304?it="notmodified":(it=_t.state,Qt=_t.data,wt=_t.error,kt=!wt)):(wt=it,(ge||!it)&&(it="error",ge<0&&(ge=0))),fe.status=ge,fe.statusText=(Me||it)+"",kt?he.resolveWith(E,[Qt,it,fe]):he.rejectWith(E,[fe,it,wt]),fe.statusCode(We),We=void 0,D&&J.trigger(kt?"ajaxSuccess":"ajaxError",[fe,w,kt?Qt:wt]),ie.fireWith(E,[fe,it]),D&&(J.trigger("ajaxComplete",[fe,w]),--o.active||o.event.trigger("ajaxStop")))}return fe},getJSON:function(e,i,r){return o.get(e,i,r,"json")},getScript:function(e,i){return o.get(e,void 0,i,"script")}}),o.each(["get","post"],function(e,i){o[i]=function(r,a,u,f){return O(a)&&(f=f||u,u=a,a=void 0),o.ajax(o.extend({url:r,type:i,dataType:f,data:a,success:u},o.isPlainObject(r)&&r))}}),o.ajaxPrefilter(function(e){var i;for(i in e.headers)i.toLowerCase()==="content-type"&&(e.contentType=e.headers[i]||"")}),o._evalUrl=function(e,i,r){return o.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(a){o.globalEval(a,i,r)}})},o.fn.extend({wrapAll:function(e){var i;return this[0]&&(O(e)&&(e=e.call(this[0])),i=o(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&i.insertBefore(this[0]),i.map(function(){for(var r=this;r.firstElementChild;)r=r.firstElementChild;return r}).append(this)),this},wrapInner:function(e){return O(e)?this.each(function(i){o(this).wrapInner(e.call(this,i))}):this.each(function(){var i=o(this),r=i.contents();r.length?r.wrapAll(e):i.append(e)})},wrap:function(e){var i=O(e);return this.each(function(r){o(this).wrapAll(i?e.call(this,r):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){o(this).replaceWith(this.childNodes)}),this}}),o.expr.pseudos.hidden=function(e){return!o.expr.pseudos.visible(e)},o.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},o.ajaxSettings.xhr=function(){try{return new P.XMLHttpRequest}catch{}};var dr={0:200,1223:204},Pi=o.ajaxSettings.xhr();G.cors=!!Pi&&"withCredentials"in Pi,G.ajax=Pi=!!Pi,o.ajaxTransport(function(e){var i,r;if(G.cors||Pi&&!e.crossDomain)return{send:function(a,u){var f,c=e.xhr();if(c.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(f in e.xhrFields)c[f]=e.xhrFields[f];e.mimeType&&c.overrideMimeType&&c.overrideMimeType(e.mimeType),!e.crossDomain&&!a["X-Requested-With"]&&(a["X-Requested-With"]="XMLHttpRequest");for(f in a)c.setRequestHeader(f,a[f]);i=function(m){return function(){i&&(i=r=c.onload=c.onerror=c.onabort=c.ontimeout=c.onreadystatechange=null,m==="abort"?c.abort():m==="error"?typeof c.status!="number"?u(0,"error"):u(c.status,c.statusText):u(dr[c.status]||c.status,c.statusText,(c.responseType||"text")!=="text"||typeof c.responseText!="string"?{binary:c.response}:{text:c.responseText},c.getAllResponseHeaders()))}},c.onload=i(),r=c.onerror=c.ontimeout=i("error"),c.onabort!==void 0?c.onabort=r:c.onreadystatechange=function(){c.readyState===4&&P.setTimeout(function(){i&&r()})},i=i("abort");try{c.send(e.hasContent&&e.data||null)}catch(m){if(i)throw m}},abort:function(){i&&i()}}}),o.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),o.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return o.globalEval(e),e}}}),o.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),o.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var i,r;return{send:function(a,u){i=o("