From e6f907dfe6201d6952b83ff376c81aadbef2e89d Mon Sep 17 00:00:00 2001 From: Fahim Date: Fri, 13 Aug 2021 01:04:25 +0600 Subject: [PATCH] Added: POS System --- .../Sale/Http/Controllers/PosController.php | 98 +++++++++ .../Http/Requests/StorePosSaleRequest.php | 37 ++++ .../Sale/Resources/views/pos/index.blade.php | 67 ++++++ Modules/Sale/Routes/web.php | 4 + app/Http/Livewire/Pos/Checkout.php | 208 ++++++++++++++++++ app/Http/Livewire/Pos/Filter.php | 28 +++ app/Http/Livewire/Pos/ProductList.php | 45 ++++ public/css/select2-coreui.min.css | 1 + public/css/select2.min.css | 1 + public/js/app.js | 2 +- public/js/select2.min.js | 2 + resources/js/app.js | 4 + resources/views/auth/login.blade.php | 11 +- .../views/auth/passwords/email.blade.php | 8 +- resources/views/includes/main-css.blade.php | 19 ++ resources/views/includes/main-js.blade.php | 11 + resources/views/layouts/app.blade.php | 39 +--- resources/views/layouts/header.blade.php | 2 +- resources/views/layouts/sidebar.blade.php | 5 +- .../includes/product-cart-quantity.blade.php | 14 +- .../views/livewire/pos/checkout.blade.php | 147 +++++++++++++ resources/views/livewire/pos/filter.blade.php | 27 +++ .../pos/includes/checkout-modal.blade.php | 106 +++++++++ .../views/livewire/pos/product-list.blade.php | 39 ++++ .../views/livewire/product-cart.blade.php | 13 +- .../views/livewire/search-product.blade.php | 2 +- routes/web.php | 2 +- 27 files changed, 882 insertions(+), 60 deletions(-) create mode 100644 Modules/Sale/Http/Controllers/PosController.php create mode 100644 Modules/Sale/Http/Requests/StorePosSaleRequest.php create mode 100644 Modules/Sale/Resources/views/pos/index.blade.php create mode 100644 app/Http/Livewire/Pos/Checkout.php create mode 100644 app/Http/Livewire/Pos/Filter.php create mode 100644 app/Http/Livewire/Pos/ProductList.php create mode 100644 public/css/select2-coreui.min.css create mode 100644 public/css/select2.min.css create mode 100644 public/js/select2.min.js create mode 100644 resources/views/includes/main-css.blade.php create mode 100644 resources/views/includes/main-js.blade.php create mode 100644 resources/views/livewire/pos/checkout.blade.php create mode 100644 resources/views/livewire/pos/filter.blade.php create mode 100644 resources/views/livewire/pos/includes/checkout-modal.blade.php create mode 100644 resources/views/livewire/pos/product-list.blade.php diff --git a/Modules/Sale/Http/Controllers/PosController.php b/Modules/Sale/Http/Controllers/PosController.php new file mode 100644 index 00000000..d5191fba --- /dev/null +++ b/Modules/Sale/Http/Controllers/PosController.php @@ -0,0 +1,98 @@ +destroy(); + + $customers = Customer::all(); + $product_categories = Category::all(); + + return view('sale::pos.index', compact('product_categories', 'customers')); + } + + + public function store(StorePosSaleRequest $request) { + DB::transaction(function () use ($request) { + $due_amount = $request->total_amount - $request->paid_amount; + + if ($due_amount == $request->total_amount) { + $payment_status = 'Unpaid'; + } elseif ($due_amount > 0) { + $payment_status = 'Partial'; + } else { + $payment_status = 'Paid'; + } + + $sale = Sale::create([ + 'date' => now()->format('Y-m-d'), + 'reference' => 'PSL', + 'customer_id' => $request->customer_id, + 'customer_name' => Customer::findOrFail($request->customer_id)->customer_name, + 'tax_percentage' => $request->tax_percentage, + 'discount_percentage' => $request->discount_percentage, + 'shipping_amount' => $request->shipping_amount * 100, + 'paid_amount' => $request->paid_amount * 100, + 'total_amount' => $request->total_amount * 100, + 'due_amount' => $due_amount * 100, + 'status' => 'Completed', + 'payment_status' => $payment_status, + 'payment_method' => $request->payment_method, + 'note' => $request->note, + 'tax_amount' => Cart::instance('sale')->tax() * 100, + 'discount_amount' => Cart::instance('sale')->discount() * 100, + ]); + + foreach (Cart::instance('sale')->content() as $cart_item) { + SaleDetails::create([ + 'sale_id' => $sale->id, + 'product_id' => $cart_item->id, + 'product_name' => $cart_item->name, + 'product_code' => $cart_item->options->code, + 'quantity' => $cart_item->qty, + 'price' => $cart_item->price * 100, + 'unit_price' => $cart_item->options->unit_price * 100, + 'sub_total' => $cart_item->options->sub_total * 100, + 'product_discount_amount' => $cart_item->options->product_discount * 100, + 'product_discount_type' => $cart_item->options->product_discount_type, + 'product_tax_amount' => $cart_item->options->product_tax * 100, + ]); + + $product = Product::findOrFail($cart_item->id); + $product->update([ + 'product_quantity' => $product->product_quantity - $cart_item->qty + ]); + } + + Cart::instance('sale')->destroy(); + + SalePayment::create([ + 'date' => now()->format('Y-m-d'), + 'reference' => 'INV/'.$sale->reference, + 'amount' => $sale->paid_amount, + 'sale_id' => $sale->id, + 'payment_method' => $request->payment_method + ]); + }); + + toast('POS Sale Created!', 'success'); + + return redirect()->route('sales.index'); + } +} diff --git a/Modules/Sale/Http/Requests/StorePosSaleRequest.php b/Modules/Sale/Http/Requests/StorePosSaleRequest.php new file mode 100644 index 00000000..6b584c12 --- /dev/null +++ b/Modules/Sale/Http/Requests/StorePosSaleRequest.php @@ -0,0 +1,37 @@ + 'required|numeric', + 'tax_percentage' => 'required|integer|min:0|max:100', + 'discount_percentage' => 'required|integer|min:0|max:100', + 'shipping_amount' => 'required|numeric', + 'total_amount' => 'required|numeric', + 'paid_amount' => 'required|numeric', + 'note' => 'nullable|string|max:1000' + ]; + } + + /** + * Determine if the user is authorized to make this request. + * + * @return bool + */ + public function authorize() + { + return Gate::allows('create_pos_sales'); + } +} diff --git a/Modules/Sale/Resources/views/pos/index.blade.php b/Modules/Sale/Resources/views/pos/index.blade.php new file mode 100644 index 00000000..ee02538a --- /dev/null +++ b/Modules/Sale/Resources/views/pos/index.blade.php @@ -0,0 +1,67 @@ +@extends('layouts.app') + +@section('title', 'POS') + +@section('third_party_stylesheets') + +@endsection + +@section('breadcrumb') + +@endsection + +@section('content') +
+
+
+ @include('utils.alerts') +
+
+ + +
+
+ +
+
+
+@endsection + +@push('page_scripts') + + + +@endpush diff --git a/Modules/Sale/Routes/web.php b/Modules/Sale/Routes/web.php index a89c9014..0d0cabda 100644 --- a/Modules/Sale/Routes/web.php +++ b/Modules/Sale/Routes/web.php @@ -13,6 +13,10 @@ Route::group(['middleware' => 'auth'], function () { + //POS + Route::get('/app/pos', 'PosController@index')->name('app.pos.index'); + Route::post('/app/pos', 'PosController@store')->name('app.pos.store'); + //Generate PDF Route::get('/sales/pdf/{id}', function ($id) { $sale = \Modules\Sale\Entities\Sale::findOrFail($id); diff --git a/app/Http/Livewire/Pos/Checkout.php b/app/Http/Livewire/Pos/Checkout.php new file mode 100644 index 00000000..fe361842 --- /dev/null +++ b/app/Http/Livewire/Pos/Checkout.php @@ -0,0 +1,208 @@ +cart_instance = $cartInstance; + $this->customers = $customers; + $this->global_discount = 0; + $this->global_tax = 0; + $this->shipping = 0.00; + $this->check_quantity = []; + $this->quantity = []; + $this->discount_type = []; + $this->item_discount = []; + $this->total_amount = 0; + } + + public function hydrate() { + $this->total_amount = $this->calculateTotal(); + $this->updatedCustomerId(); + } + + public function render() { + $cart_items = Cart::instance($this->cart_instance)->content(); + + return view('livewire.pos.checkout', [ + 'cart_items' => $cart_items + ]); + } + + public function proceed() { + $this->dispatchBrowserEvent('showCheckoutModal'); + } + + public function calculateTotal() { + return Cart::instance($this->cart_instance)->total() + $this->shipping; + } + + public function resetCart() { + Cart::instance($this->cart_instance)->destroy(); + } + + public function productSelected($product) { + $cart = Cart::instance($this->cart_instance); + + $exists = $cart->search(function ($cartItem, $rowId) use ($product) { + return $cartItem->id == $product['id']; + }); + + if ($exists->isNotEmpty()) { + session()->flash('message', 'Product exists in the cart!'); + + return; + } + + $cart->add([ + 'id' => $product['id'], + 'name' => $product['product_name'], + 'qty' => 1, + 'price' => $this->calculate($product)['price'], + 'weight' => 1, + 'options' => [ + 'product_discount' => 0.00, + 'product_discount_type' => 'fixed', + 'sub_total' => $this->calculate($product)['sub_total'], + 'code' => $product['product_code'], + 'stock' => $product['product_quantity'], + 'product_tax' => $this->calculate($product)['product_tax'], + 'unit_price' => $this->calculate($product)['unit_price'] + ] + ]); + + $this->check_quantity[$product['id']] = $product['product_quantity']; + $this->quantity[$product['id']] = 1; + $this->discount_type[$product['id']] = 'fixed'; + $this->item_discount[$product['id']] = 0; + $this->total_amount = $this->calculateTotal(); + } + + public function removeItem($row_id) { + Cart::instance($this->cart_instance)->remove($row_id); + } + + public function updatedGlobalTax() { + Cart::instance($this->cart_instance)->setGlobalTax((integer)$this->global_tax); + } + + public function updatedGlobalDiscount() { + Cart::instance($this->cart_instance)->setGlobalDiscount((integer)$this->global_discount); + } + + public function updateQuantity($row_id, $product_id) { + if ($this->check_quantity[$product_id] < $this->quantity[$product_id]) { + session()->flash('message', 'The requested quantity is not available in stock.'); + + return; + } + + Cart::instance($this->cart_instance)->update($row_id, $this->quantity[$product_id]); + + $cart_item = Cart::instance($this->cart_instance)->get($row_id); + + Cart::instance($this->cart_instance)->update($row_id, [ + 'options' => [ + 'sub_total' => $cart_item->price * $cart_item->qty, + 'code' => $cart_item->options->code, + 'stock' => $cart_item->options->stock, + 'product_tax' => $cart_item->options->product_tax, + 'unit_price' => $cart_item->options->unit_price, + 'product_discount' => $cart_item->options->product_discount, + 'product_discount_type' => $cart_item->options->product_discount_type, + ] + ]); + } + + public function updatedDiscountType($value, $name) { + $this->item_discount[$name] = 0; + } + + public function discountModalRefresh($product_id, $row_id) { + $this->updateQuantity($row_id, $product_id); + } + + public function setProductDiscount($row_id, $product_id) { + $cart_item = Cart::instance($this->cart_instance)->get($row_id); + + if ($this->discount_type[$product_id] == 'fixed') { + Cart::instance($this->cart_instance) + ->update($row_id, [ + 'price' => ($cart_item->price + $cart_item->options->product_discount) - $this->item_discount[$product_id] + ]); + + $discount_amount = $this->item_discount[$product_id]; + + $this->updateCartOptions($row_id, $product_id, $cart_item, $discount_amount); + } elseif ($this->discount_type[$product_id] == 'percentage') { + $discount_amount = $cart_item->price * ($this->item_discount[$product_id] / 100); + + Cart::instance($this->cart_instance) + ->update($row_id, [ + 'price' => ($cart_item->price + $cart_item->options->product_discount) - (($cart_item->price * $this->item_discount[$product_id] / 100)) + ]); + + $this->updateCartOptions($row_id, $product_id, $cart_item, $discount_amount); + } + + session()->flash('discount_message' . $product_id, 'Discount added to the product!'); + } + + public function calculate($product) { + $price = 0; + $unit_price = 0; + $product_tax = 0; + $sub_total = 0; + + if ($product['product_tax_type'] == 1) { + $price = $product['product_price'] + ($product['product_price'] * ($product['product_order_tax'] / 100)); + $unit_price = $product['product_price']; + $product_tax = $product['product_price'] * ($product['product_order_tax'] / 100); + $sub_total = $product['product_price'] + ($product['product_price'] * ($product['product_order_tax'] / 100)); + } elseif ($product['product_tax_type'] == 2) { + $price = $product['product_price']; + $unit_price = $product['product_price'] - ($product['product_price'] * ($product['product_order_tax'] / 100)); + $product_tax = $product['product_price'] * ($product['product_order_tax'] / 100); + $sub_total = $product['product_price']; + } else { + $price = $product['product_price']; + $unit_price = $product['product_price']; + $product_tax = 0.00; + $sub_total = $product['product_price']; + } + + return ['price' => $price, 'unit_price' => $unit_price, 'product_tax' => $product_tax, 'sub_total' => $sub_total]; + } + + public function updateCartOptions($row_id, $product_id, $cart_item, $discount_amount) { + Cart::instance($this->cart_instance)->update($row_id, ['options' => [ + 'sub_total' => $cart_item->price * $cart_item->qty, + 'code' => $cart_item->options->code, + 'stock' => $cart_item->options->stock, + 'product_tax' => $cart_item->options->product_tax, + 'unit_price' => $cart_item->options->unit_price, + 'product_discount' => $discount_amount, + 'product_discount_type' => $this->discount_type[$product_id], + ]]); + } +} diff --git a/app/Http/Livewire/Pos/Filter.php b/app/Http/Livewire/Pos/Filter.php new file mode 100644 index 00000000..24b22831 --- /dev/null +++ b/app/Http/Livewire/Pos/Filter.php @@ -0,0 +1,28 @@ +categories = $categories; + } + + public function render() { + return view('livewire.pos.filter'); + } + + public function updatedCategory() { + $this->emitUp('selectedCategory', $this->category); + } + + public function updatedShowCount() { + $this->emitUp('showCount', $this->category); + } +} diff --git a/app/Http/Livewire/Pos/ProductList.php b/app/Http/Livewire/Pos/ProductList.php new file mode 100644 index 00000000..d0c8c3e4 --- /dev/null +++ b/app/Http/Livewire/Pos/ProductList.php @@ -0,0 +1,45 @@ + 'categoryChanged', + 'showCount' => 'showCountChanged' + ]; + + public $categories; + public $products; + public $limit = 9; + + public function mount($categories) { + $this->products = Product::limit($this->limit)->get(); + $this->categories = $categories; + } + + public function render() { + return view('livewire.pos.product-list'); + } + + public function categoryChanged($category_id) { + if ($category_id == '*') { + $this->products = Product::limit($this->limit)->get(); + } else { + $this->products = Product::where('category_id', $category_id)->limit($this->limit)->get(); + } + } + + public function showCountChanged($value) { + $this->limit = $value; + } + + public function selectProduct($product) { + $this->emit('productSelected', $product); + } +} diff --git a/public/css/select2-coreui.min.css b/public/css/select2-coreui.min.css new file mode 100644 index 00000000..93f00d2d --- /dev/null +++ b/public/css/select2-coreui.min.css @@ -0,0 +1 @@ +:root{--primary-legacy-theme: #321fdb;--secondary-legacy-theme: #ced2d8;--success-legacy-theme: #2eb85c;--info-legacy-theme: #39f;--warning-legacy-theme: #f9b115;--danger-legacy-theme: #e55353;--light-legacy-theme: #ebedef;--dark-legacy-theme: #636f83}:root{--primary-dark-theme: #4638c2;--secondary-dark-theme: #4c4f54;--success-dark-theme: #45a164;--info-dark-theme: #4799eb;--warning-dark-theme: #e1a82d;--danger-dark-theme: #d16767;--light-dark-theme: #6c6e7e;--dark-dark-theme: #0e0e15}.select2-container--coreui .select2-selection--single{height:calc(1.5em + .75rem + 2px) !important}.select2-container--coreui .select2-selection--single .select2-selection__placeholder{color:#757575;line-height:calc(1.5em + .75rem)}.select2-container--coreui .select2-selection--single .select2-selection__arrow{position:absolute;top:50%;right:3px;width:20px}.select2-container--coreui .select2-selection--single .select2-selection__arrow b{top:60%;border-color:#636f83 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;width:0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute}.select2-container--coreui .select2-selection--single .select2-selection__rendered{line-height:calc(1.5em + .75rem)}.select2-search--dropdown .select2-search__field{border:1px solid;border-radius:.25rem;color:#768192;background:#fff;border-color:#d8dbe0}.c-dark-theme .select2-search--dropdown .select2-search__field{color:rgba(255,255,255,0.87);background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.09)}.select2-results__message{color:#3c4b64}.select2-container--coreui .select2-selection--multiple{min-height:calc(1.5em + .75rem + 2px) !important}.select2-container--coreui .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--coreui .select2-selection--multiple .select2-selection__rendered .select2-search__field{color:#768192;background-color:#fff}.c-dark-theme .select2-container--coreui .select2-selection--multiple .select2-selection__rendered .select2-search__field{color:rgba(255,255,255,0.87);background-color:rgba(0,0,0,0)}.select2-container--coreui .select2-selection--multiple .select2-selection__choice{border:1px solid;border-radius:.2rem;padding:0;padding-right:5px;cursor:pointer;float:left;margin-top:0.3em;margin-right:5px;color:#5c6873;border-color:#39f}.c-dark-theme .select2-container--coreui .select2-selection--multiple .select2-selection__choice{color:rgba(255,255,255,0.87)}.c-dark-theme .select2-container--coreui .select2-selection--multiple .select2-selection__choice{border-color:#4799eb}.c-legacy-theme .select2-container--coreui .select2-selection--multiple .select2-selection__choice{border-color:#63c2de}.select2-container--coreui .select2-selection--multiple .select2-selection__choice__remove{width:26px;cursor:pointer;display:inline-block;font-weight:bold;text-align:center;margin-right:.375rem;border-right:1px solid;background:#fff;color:#9cf;border-color:#39f;background:rgba(51,153,255,0)}.c-dark-theme .select2-container--coreui .select2-selection--multiple .select2-selection__choice__remove{color:#a3ccf5;border-color:#4799eb;background:rgba(71,153,235,0)}.c-legacy-theme .select2-container--coreui .select2-selection--multiple .select2-selection__choice__remove{color:#b7e3f0;border-color:#63c2de;background:rgba(99,194,222,0)}.select2-container--coreui .select2-selection--multiple .select2-selection__choice__remove:hover{color:#39f;background:rgba(51,153,255,0.1)}.c-dark-theme .select2-container--coreui .select2-selection--multiple .select2-selection__choice__remove:hover{color:#4799eb;background:rgba(71,153,235,0.1)}.c-legacy-theme .select2-container--coreui .select2-selection--multiple .select2-selection__choice__remove:hover{color:#63c2de;background:rgba(99,194,222,0.1)}.select2-container{display:block;width:100% !important}.select2-container *:focus{outline:0}.input-group .select2-container--coreui{-ms-flex-positive:1;flex-grow:1}.input-group-prepend ~ .select2-container--coreui .select2-selection{border-top-left-radius:0;border-bottom-left-radius:0}.select2-container--coreui .select2-selection{border:1px solid;border-radius:.25rem;width:100%;background:#fff;border-color:#d8dbe0}.c-dark-theme .select2-container--coreui .select2-selection{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.09)}.select2-container--coreui.select2-container--focus .select2-selection{border-color:#39f;box-shadow:0 0 0 .2rem rgba(50,31,219,0.25)}.select2-container--coreui.select2-container--focus.select2-container--open .select2-selection{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--coreui.select2-container--disabled .select2-selection,.select2-container--coreui.select2-container--disabled.select2-container--focus .select2-selection{cursor:not-allowed;box-shadow:none;background-color:#d8dbe0;border-color:#d8dbe0}.c-dark-theme .select2-container--coreui.select2-container--disabled .select2-selection,.c-dark-theme .select2-container--coreui.select2-container--disabled.select2-container--focus .select2-selection{background-color:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.09)}.select2-container--coreui.select2-container--disabled .select2-search__field,.select2-container--coreui.select2-container--disabled.select2-container--focus .select2-search__field{background-color:transparent}select.is-invalid ~ .select2-container--coreui .select2-selection{border-color:#e55353}select.is-valid ~ .select2-container--coreui .select2-selection{border-color:#2eb85c}.select2-container--coreui .select2-dropdown{background-color:#fff;border-color:#d8dbe0;border-top:none;border-top-left-radius:0;border-top-right-radius:0}.c-dark-theme .select2-container--coreui .select2-dropdown{background-color:#34353e;border-color:rgba(255,255,255,0.075)}.c-app:not(.c-legacy-theme) .select2-container--coreui .select2-dropdown{border:0;box-shadow:0 4px 5px 0 rgba(var(--elevation-base-color), .14), 0 1px 10px 0 rgba(var(--elevation-base-color), .12), 0 2px 4px -1px rgba(var(--elevation-base-color), .20)}@media all and (-ms-high-contrast: none), (-ms-high-contrast: active){.c-app:not(.c-legacy-theme) .select2-container--coreui .select2-dropdown{box-shadow:0 4px 5px 0 rgba(60,75,100, .14), 0 1px 10px 0 rgba(60,75,100, .12), 0 2px 4px -1px rgba(60,75,100, .20)}}.select2-container--coreui .select2-dropdown.select2-dropdown--above{border-top:1px solid;border-top-left-radius:.25rem;border-top-right-radius:.25rem;border-color:#958bef}.c-dark-theme .select2-container--coreui .select2-dropdown.select2-dropdown--above{border-color:rgba(255,255,255,0.2)}.select2-container--coreui .select2-dropdown .select2-results__option[aria-selected=true]{background-color:#f2f2f2}.c-dark-theme .select2-container--coreui .select2-dropdown .select2-results__option[aria-selected=true]{background-color:rgba(242,242,242,0.05)}.select2-container--coreui .select2-results__option--highlighted,.select2-container--coreui .select2-results__option--highlighted.select2-results__option[aria-selected=true]{background-color:#321fdb;color:#ebedef}.select2-container--coreui .select2-results__option[role=group]{padding:0}.select2-container--coreui .select2-results>.select2-results__options{max-height:15em;overflow-y:auto}.select2-container--coreui .select2-results__group{padding:6px;display:list-item;color:#3c4b64}.select2-container--coreui .select2-selection__clear{width:1.2em;height:1.2em;line-height:1.15em;padding-left:0.3em;margin-top:0.5em;border-radius:100%;background-color:#3c4b64;color:#ebedef;float:right;margin-right:0.3em}.select2-container--coreui .select2-selection__clear:hover{background-color:#636f83} diff --git a/public/css/select2.min.css b/public/css/select2.min.css new file mode 100644 index 00000000..7c18ad59 --- /dev/null +++ b/public/css/select2.min.css @@ -0,0 +1 @@ +.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb} diff --git a/public/js/app.js b/public/js/app.js index 37d4a2c2..ffac372e 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -(()=>{var t,e={62:function(t,e,n){t.exports=function(){"use strict";function t(t,e){for(var n=0;n-1||(o=t),[r,i,o]}function Y(t,e,n,r,i){if("string"==typeof e&&t){n||(n=r,r=null);var o=X(e,n,r),a=o[0],s=o[1],l=o[2],u=q(t),c=u[l]||(u[l]={}),f=U(c,s,a?n:null);if(f)f.oneOff=f.oneOff&&i;else{var d=B(s,e.replace(I,"")),h=a?function(t,e,n){return function r(i){for(var o=t.querySelectorAll(e),a=i.target;a&&a!==this;a=a.parentNode)for(var s=o.length;s--;)if(o[s]===a)return i.delegateTarget=a,r.oneOff&&V.off(t,i.type,n),n.apply(a,[i]);return null}}(t,n,r):function(t,e){return function n(r){return r.delegateTarget=t,n.oneOff&&V.off(t,r.type,e),e.apply(t,[r])}}(t,n);h.delegationSelector=a?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=d,c[d]=h,t.addEventListener(l,h,a)}}}function z(t,e,n,r,i){var o=U(e[n],r,i);o&&(t.removeEventListener(n,o,Boolean(i)),delete e[n][o.uidEvent])}var V={on:function(t,e,n,r){Y(t,e,n,r,!1)},one:function(t,e,n,r){Y(t,e,n,r,!0)},off:function(t,e,n,r){if("string"==typeof e&&t){var i=X(e,n,r),o=i[0],a=i[1],s=i[2],l=s!==e,u=q(t),c="."===e.charAt(0);if(void 0===a){c&&Object.keys(u).forEach((function(n){!function(t,e,n,r){var i=e[n]||{};Object.keys(i).forEach((function(o){if(o.indexOf(r)>-1){var a=i[o];z(t,e,n,a.originalHandler,a.delegationSelector)}}))}(t,u,n,e.slice(1))}));var f=u[s]||{};Object.keys(f).forEach((function(n){var r=n.replace(R,"");if(!l||e.indexOf(r)>-1){var i=f[n];z(t,u,s,i.originalHandler,i.delegationSelector)}}))}else{if(!u||!u[s])return;z(t,u,s,a,o?n:null)}}},trigger:function(t,e,n){if("string"!=typeof e||!t)return null;var r,i=e.replace(P,""),o=e!==i,a=W.indexOf(i)>-1,s=!0,l=!0,u=!1,c=null;return o&&j&&(r=j.Event(e,n),j(t).trigger(r),s=!r.isPropagationStopped(),l=!r.isImmediatePropagationStopped(),u=r.isDefaultPrevented()),a?(c=document.createEvent("HTMLEvents")).initEvent(i,s,!0):c=new CustomEvent(e,{bubbles:s,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((function(t){Object.defineProperty(c,t,{get:function(){return n[t]}})})),u&&(c.preventDefault(),O||Object.defineProperty(c,"defaultPrevented",{get:function(){return!0}})),l&&t.dispatchEvent(c),c.defaultPrevented&&void 0!==r&&r.preventDefault(),c}},$="asyncLoad",Q="coreui.asyncLoad",K="c-active",J="c-show",G=".c-sidebar-nav-dropdown",Z=".c-xhr-link, .c-sidebar-nav-link",tt={defaultPage:"main.html",errorPage:"404.html",subpagesDirectory:"views/"},et=function(){function t(t,e){this._config=this._getConfig(e),this._element=t;var n=location.hash.replace(/^#/,"");""!==n?this._setUpUrl(n):this._setUpUrl(this._config.defaultPage),this._addEventListeners()}var n=t.prototype;return n._getConfig=function(t){return o(o({},tt),t)},n._loadPage=function(t){var e=this,n=this._element,r=this._config,i=function t(n,r){void 0===r&&(r=0);var i=document.createElement("script");i.type="text/javascript",i.src=n[r],i.className="view-script",i.onload=i.onreadystatechange=function(){e.readyState&&"complete"!==e.readyState||n.length>r+1&&t(n,r+1)},document.getElementsByTagName("body")[0].appendChild(i)},o=new XMLHttpRequest;o.open("GET",r.subpagesDirectory+t);var a=new CustomEvent("xhr",{detail:{url:t,status:o.status}});n.dispatchEvent(a),o.onload=function(e){if(200===o.status){a=new CustomEvent("xhr",{detail:{url:t,status:o.status}}),n.dispatchEvent(a);var s=document.createElement("div");s.innerHTML=e.target.response;var l=Array.from(s.querySelectorAll("script")).map((function(t){return t.attributes.getNamedItem("src").nodeValue}));s.querySelectorAll("script").forEach((function(t){return t.remove(t)})),window.scrollTo(0,0),n.innerHTML="",n.appendChild(s),(u=document.querySelectorAll(".view-script")).length&&u.forEach((function(t){t.remove()})),l.length&&i(l),window.location.hash=t}else window.location.href=r.errorPage;var u},o.send()},n._setUpUrl=function(t){t=t.replace(/^\//,"").split("?")[0],Array.from(document.querySelectorAll(Z)).forEach((function(t){t.classList.remove(K)})),Array.from(document.querySelectorAll(Z)).forEach((function(t){t.classList.remove(K)})),Array.from(document.querySelectorAll(G)).forEach((function(t){t.classList.remove(J)})),Array.from(document.querySelectorAll(G)).forEach((function(e){Array.from(e.querySelectorAll('a[href*="'+t+'"]')).length>0&&e.classList.add(J)})),Array.from(document.querySelectorAll('.c-sidebar-nav-item a[href*="'+t+'"]')).forEach((function(t){t.classList.add(K)})),this._loadPage(t)},n._loadBlank=function(t){window.open(t)},n._loadTop=function(t){window.location=t},n._update=function(t){"#"!==t.href&&(void 0!==t.dataset.toggle&&"null"!==t.dataset.toggle||("_top"===t.target?this._loadTop(t.href):"_blank"===t.target?this._loadBlank(t.href):this._setUpUrl(t.getAttribute("href"))))},n._addEventListeners=function(){var t=this;V.on(document,"click.coreui.asyncLoad.data-api",Z,(function(e){e.preventDefault();var n=e.target;n.classList.contains("c-sidebar-nav-link")||(n=n.closest(Z)),n.classList.contains("c-sidebar-nav-dropdown-toggle")||"#"===n.getAttribute("href")||t._update(n)}))},t._asyncLoadInterface=function(e,n){var r=D(e,Q);if(r||(r=new t(e,"object"==typeof n&&n)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}},t.jQueryInterface=function(e){return this.each((function(){t._asyncLoadInterface(this,e)}))},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"Default",get:function(){return tt}}]),t}(),nt=S();if(nt){var rt=nt.fn[$];nt.fn[$]=et.jQueryInterface,nt.fn[$].Constructor=et,nt.fn[$].noConflict=function(){return nt.fn[$]=rt,et.jQueryInterface}}var it="coreui.alert",ot=function(){function t(t){this._element=t,this._element&&E(t,it,this)}var n=t.prototype;return n.close=function(t){var e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);null===n||n.defaultPrevented||this._removeElement(e)},n.dispose=function(){A(this._element,it),this._element=null},n._getRootElement=function(t){return p(t)||t.closest(".alert")},n._triggerCloseEvent=function(t){return V.trigger(t,"close.coreui.alert")},n._removeElement=function(t){var e=this;if(t.classList.remove("show"),t.classList.contains("fade")){var n=g(t);V.one(t,c,(function(){return e._destroyElement(t)})),y(t,n)}else this._destroyElement(t)},n._destroyElement=function(t){t.parentNode&&t.parentNode.removeChild(t),V.trigger(t,"closed.coreui.alert")},t.jQueryInterface=function(e){return this.each((function(){var n=D(this,it);n||(n=new t(this)),"close"===e&&n[e](this)}))},t.handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},t.getInstance=function(t){return D(t,it)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}}]),t}();V.on(document,"click.coreui.alert.data-api",'[data-dismiss="alert"]',ot.handleDismiss(new ot));var at=S();if(at){var st=at.fn.alert;at.fn.alert=ot.jQueryInterface,at.fn.alert.Constructor=ot,at.fn.alert.noConflict=function(){return at.fn.alert=st,ot.jQueryInterface}}var lt={matches:function(t,e){return t.matches(e)},find:function(t,e){var n;return void 0===e&&(e=document.documentElement),(n=[]).concat.apply(n,k.call(e,t))},findOne:function(t,e){return void 0===e&&(e=document.documentElement),L.call(e,t)},children:function(t,e){var n;return(n=[]).concat.apply(n,t.children).filter((function(t){return t.matches(e)}))},parents:function(t,e){for(var n=[],r=t.parentNode;r&&r.nodeType===Node.ELEMENT_NODE&&3!==r.nodeType;)this.matches(r,e)&&n.push(r),r=r.parentNode;return n},prev:function(t,e){for(var n=t.previousElementSibling;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next:function(t,e){for(var n=t.nextElementSibling;n;){if(this.matches(n,e))return[n];n=n.nextElementSibling}return[]}},ut="coreui.button",ct="active",ft="disabled",dt="focus",ht='[data-toggle^="button"]',pt=".btn",gt=function(){function t(t){this._element=t,E(t,ut,this)}var n=t.prototype;return n.toggle=function(){var t=!0,e=!0,n=this._element.closest('[data-toggle="buttons"]');if(n){var r=lt.findOne('input:not([type="hidden"])',this._element);if(r&&"radio"===r.type){if(r.checked&&this._element.classList.contains(ct))t=!1;else{var i=lt.findOne(".active",n);i&&i.classList.remove(ct)}if(t){if(r.hasAttribute("disabled")||n.hasAttribute("disabled")||r.classList.contains(ft)||n.classList.contains(ft))return;r.checked=!this._element.classList.contains(ct),V.trigger(r,"change")}r.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(ct)),t&&this._element.classList.toggle(ct)},n.dispose=function(){A(this._element,ut),this._element=null},t.jQueryInterface=function(e){return this.each((function(){var n=D(this,ut);n||(n=new t(this)),"toggle"===e&&n[e]()}))},t.getInstance=function(t){return D(t,ut)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}}]),t}();V.on(document,"click.coreui.button.data-api",ht,(function(t){t.preventDefault();var e=t.target.closest(pt),n=D(e,ut);n||(n=new gt(e)),n.toggle()})),V.on(document,"focus.coreui.button.data-api",ht,(function(t){var e=t.target.closest(pt);e&&e.classList.add(dt)})),V.on(document,"blur.coreui.button.data-api",ht,(function(t){var e=t.target.closest(pt);e&&e.classList.remove(dt)}));var mt=S();if(mt){var vt=mt.fn.button;mt.fn.button=gt.jQueryInterface,mt.fn.button.Constructor=gt,mt.fn.button.noConflict=function(){return mt.fn.button=vt,gt.jQueryInterface}}function yt(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function _t(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))}var bt={setDataAttribute:function(t,e,n){t.setAttribute("data-"+_t(e),n)},removeDataAttribute:function(t,e){t.removeAttribute("data-"+_t(e))},getDataAttributes:function(t){if(!t)return{};var e=o({},t.dataset);return Object.keys(e).forEach((function(t){e[t]=yt(e[t])})),e},getDataAttribute:function(t,e){return yt(t.getAttribute("data-"+_t(e)))},offset:function(t){var e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:function(t){return{top:t.offsetTop,left:t.offsetLeft}},toggleClass:function(t,e){t&&(t.classList.contains(e)?t.classList.remove(e):t.classList.add(e))}},wt="carousel",xt="coreui.carousel",Tt="."+xt,St={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Ct={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Et="next",Dt="prev",At="slid"+Tt,kt="active",Lt=".active.carousel-item",Ot={TOUCH:"touch",PEN:"pen"},Nt=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=lt.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners(),E(t,xt,this)}var n=t.prototype;return n.next=function(){this._isSliding||this._slide(Et)},n.nextWhenVisible=function(){!document.hidden&&b(this._element)&&this.next()},n.prev=function(){this._isSliding||this._slide(Dt)},n.pause=function(t){t||(this._isPaused=!0),lt.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(m(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var e=this;this._activeElement=lt.findOne(Lt,this._element);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)V.one(this._element,At,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var r=t>n?Et:Dt;this._slide(r,this._items[t])}},n.dispose=function(){V.off(this._element,Tt),A(this._element,xt),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=o(o({},St),t),_(wt,t,Ct),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},n._addEventListeners=function(){var t=this;this._config.keyboard&&V.on(this._element,"keydown.coreui.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&(V.on(this._element,"mouseenter.coreui.carousel",(function(e){return t.pause(e)})),V.on(this._element,"mouseleave.coreui.carousel",(function(e){return t.cycle(e)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this,e=function(e){t._pointerEvent&&Ot[e.pointerType.toUpperCase()]?t.touchStartX=e.clientX:t._pointerEvent||(t.touchStartX=e.touches[0].clientX)},n=function(e){t._pointerEvent&&Ot[e.pointerType.toUpperCase()]&&(t.touchDeltaX=e.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};lt.find(".carousel-item img",this._element).forEach((function(t){V.on(t,"dragstart.coreui.carousel",(function(t){return t.preventDefault()}))})),this._pointerEvent?(V.on(this._element,"pointerdown.coreui.carousel",(function(t){return e(t)})),V.on(this._element,"pointerup.coreui.carousel",(function(t){return n(t)})),this._element.classList.add("pointer-event")):(V.on(this._element,"touchstart.coreui.carousel",(function(t){return e(t)})),V.on(this._element,"touchmove.coreui.carousel",(function(e){return function(e){e.touches&&e.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.touches[0].clientX-t.touchStartX}(e)})),V.on(this._element,"touchend.coreui.carousel",(function(t){return n(t)})))},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.key){case"ArrowLeft":t.preventDefault(),this.prev();break;case"ArrowRight":t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?lt.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n=t===Et,r=t===Dt,i=this._getItemIndex(e),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return e;var a=(i+(t===Dt?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},n._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),r=this._getItemIndex(lt.findOne(Lt,this._element));return V.trigger(this._element,"slide.coreui.carousel",{relatedTarget:t,direction:e,from:r,to:n})},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){for(var e=lt.find(".active",this._indicatorsElement),n=0;n0})).filter((function(e){return t.includes(e)}))[0]},n._breakpoints=function(t){var e=this._config.breakpoints;return e.slice(0,e.indexOf(e.filter((function(t){return t.length>0})).filter((function(e){return t.includes(e)}))[0])+1)},n._updateResponsiveClassNames=function(t){var e=this._breakpoint(t);return this._breakpoints(t).map((function(n){return n.length>0?t.replace(e,n):t.replace("-"+e,n)}))},n._includesResponsiveClass=function(t){var e=this;return this._updateResponsiveClassNames(t).filter((function(t){return e._config.target.contains(t)}))},n._getConfig=function(t){return t=o(o(o({},this.constructor.Default),bt.getDataAttributes(this._element)),t),_(Pt,t,this.constructor.DefaultType),t},t.classTogglerInterface=function(e,n){var r=D(e,Rt);if(r||(r=new t(e,"object"==typeof n&&n)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}},t.jQueryInterface=function(e){return this.each((function(){t.classTogglerInterface(this,e)}))},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"Default",get:function(){return Ft}},{key:"DefaultType",get:function(){return Ht}}]),t}();V.on(document,"click.coreui.class-toggler.data-api",Bt,(function(t){t.preventDefault(),t.stopPropagation();var e=t.target;e.classList.contains("c-class-toggler")||(e=e.closest(Bt)),void 0!==e.dataset.addClass&&qt.classTogglerInterface(e,"add"),void 0!==e.dataset.removeClass&&qt.classTogglerInterface(e,"remove"),void 0!==e.dataset.toggleClass&&qt.classTogglerInterface(e,"toggle"),void 0!==e.dataset.class&&qt.classTogglerInterface(e,"class")}));var Ut=S();if(Ut){var Xt=Ut.fn[Pt];Ut.fn[Pt]=qt.jQueryInterface,Ut.fn[Pt].Constructor=qt,Ut.fn[Pt].noConflict=function(){return Ut.fn[Pt]=Xt,qt.jQueryInterface}}var Yt="collapse",zt="coreui.collapse",Vt={toggle:!0,parent:""},$t={toggle:"boolean",parent:"(string|element)"},Qt="show",Kt="collapse",Jt="collapsing",Gt="collapsed",Zt="width",te='[data-toggle="collapse"]',ee=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=lt.find(te+'[href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]');for(var n=lt.find(te),r=0,i=n.length;r0)for(var r=0;r=0}function Ee(t){return((_e(t)?t.ownerDocument:t.document)||window.document).documentElement}function De(t){return"html"===ve(t)?t:t.assignedSlot||t.parentNode||t.host||Ee(t)}function Ae(t){if(!be(t)||"fixed"===Se(t).position)return null;var e=t.offsetParent;if(e){var n=Ee(e);if("body"===ve(e)&&"static"===Se(e).position&&"static"!==Se(n).position)return n}return e}function ke(t){for(var e=ye(t),n=Ae(t);n&&Ce(n)&&"static"===Se(n).position;)n=Ae(n);return n&&"body"===ve(n)&&"static"===Se(n).position?e:n||function(t){for(var e=De(t);be(e)&&["html","body"].indexOf(ve(e))<0;){var n=Se(e);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return e;e=e.parentNode}return null}(t)||e}function Le(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Oe(t,e,n){return Math.max(t,Math.min(e,n))}function Ne(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function je(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var Ie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pe(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.offsets,a=t.position,s=t.gpuAcceleration,l=t.adaptive,u=function(t){var e=t.x,n=t.y,r=window.devicePixelRatio||1;return{x:Math.round(e*r)/r||0,y:Math.round(n*r)/r||0}}(o),c=u.x,f=u.y,d=o.hasOwnProperty("x"),h=o.hasOwnProperty("y"),p=se,g=ie,m=window;if(l){var v=ke(n);v===ye(n)&&(v=Ee(n)),i===ie&&(g=oe,f-=v.clientHeight-r.height,f*=s?1:-1),i===se&&(p=ae,c-=v.clientWidth-r.width,c*=s?1:-1)}var y,_=Object.assign({position:a},l&&Ie);return s?Object.assign(Object.assign({},_),{},((y={})[g]=h?"0":"",y[p]=d?"0":"",y.transform=(m.devicePixelRatio||1)<2?"translate("+c+"px, "+f+"px)":"translate3d("+c+"px, "+f+"px, 0)",y)):Object.assign(Object.assign({},_),{},((e={})[g]=h?f+"px":"",e[p]=d?c+"px":"",e.transform="",e))}var Re={passive:!0},He={left:"right",right:"left",bottom:"top",top:"bottom"};function Fe(t){return t.replace(/left|right|bottom|top/g,(function(t){return He[t]}))}var Me={start:"end",end:"start"};function We(t){return t.replace(/start|end/g,(function(t){return Me[t]}))}function Be(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function qe(t){var e=ye(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ue(t){return Be(Ee(t)).left+qe(t).scrollLeft}function Xe(t){var e=Se(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ye(t){return["html","body","#document"].indexOf(ve(t))>=0?t.ownerDocument.body:be(t)&&Xe(t)?t:Ye(De(t))}function ze(t,e){void 0===e&&(e=[]);var n=Ye(t),r="body"===ve(n),i=ye(n),o=r?[i].concat(i.visualViewport||[],Xe(n)?n:[]):n,a=e.concat(o);return r?a:a.concat(ze(De(o)))}function Ve(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function $e(t,e){return e===de?Ve(function(t){var e=ye(t),n=Ee(t),r=e.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+Ue(t),y:s}}(t)):be(e)?function(t){var e=Be(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Ve(function(t){var e=Ee(t),n=qe(t),r=t.ownerDocument.body,i=Math.max(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Math.max(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+Ue(t),s=-n.scrollTop;return"rtl"===Se(r||e).direction&&(a+=Math.max(e.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}(Ee(t)))}function Qe(t,e,n){var r="clippingParents"===e?function(t){var e=ze(De(t)),n=["absolute","fixed"].indexOf(Se(t).position)>=0&&be(t)?ke(t):t;return _e(n)?e.filter((function(t){return _e(t)&&Te(t,n)&&"body"!==ve(t)})):[]}(t):[].concat(e),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(e,n){var r=$e(t,n);return e.top=Math.max(r.top,e.top),e.right=Math.min(r.right,e.right),e.bottom=Math.min(r.bottom,e.bottom),e.left=Math.max(r.left,e.left),e}),$e(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ke(t){return t.split("-")[1]}function Je(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?we(i):null,a=i?Ke(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case ie:e={x:s,y:n.y-r.height};break;case oe:e={x:s,y:n.y+n.height};break;case ae:e={x:n.x+n.width,y:l};break;case se:e={x:n.x-r.width,y:l};break;default:e={x:n.x,y:n.y}}var u=o?Le(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case ce:e[u]=Math.floor(e[u])-Math.floor(n[c]/2-r[c]/2);break;case fe:e[u]=Math.floor(e[u])+Math.ceil(n[c]/2-r[c]/2)}}return e}function Ge(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,o=n.boundary,a=void 0===o?"clippingParents":o,s=n.rootBoundary,l=void 0===s?de:s,u=n.elementContext,c=void 0===u?he:u,f=n.altBoundary,d=void 0!==f&&f,h=n.padding,p=void 0===h?0:h,g=Ne("number"!=typeof p?p:je(p,ue)),m=c===he?"reference":he,v=t.elements.reference,y=t.rects.popper,_=t.elements[d?m:c],b=Qe(_e(_)?_:_.contextElement||Ee(t.elements.popper),a,l),w=Be(v),x=Je({reference:w,element:y,strategy:"absolute",placement:i}),T=Ve(Object.assign(Object.assign({},y),x)),S=c===he?T:w,C={top:b.top-S.top+g.top,bottom:S.bottom-b.bottom+g.bottom,left:b.left-S.left+g.left,right:S.right-b.right+g.right},E=t.modifiersData.offset;if(c===he&&E){var D=E[i];Object.keys(C).forEach((function(t){var e=[ae,oe].indexOf(t)>=0?1:-1,n=[ie,oe].indexOf(t)>=0?"y":"x";C[t]+=D[n]*e}))}return C}function Ze(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?ge:l,c=Ke(r),f=c?s?pe:pe.filter((function(t){return Ke(t)===c})):ue,d=f.filter((function(t){return u.indexOf(t)>=0}));0===d.length&&(d=f);var h=d.reduce((function(e,n){return e[n]=Ge(t,{placement:n,boundary:i,rootBoundary:o,padding:a})[we(n)],e}),{});return Object.keys(h).sort((function(t,e){return h[t]-h[e]}))}function tn(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function en(t){return[ie,ae,oe,se].some((function(e){return t[e]>=0}))}function nn(t,e,n){void 0===n&&(n=!1);var r,i=Ee(e),o=Be(t),a=be(e),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(a||!a&&!n)&&(("body"!==ve(e)||Xe(i))&&(s=(r=e)!==ye(r)&&be(r)?function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(r):qe(r)),be(e)?((l=Be(e)).x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=Ue(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function rn(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),r}var on={placement:"bottom",modifiers:[],strategy:"absolute"};function an(){for(var t=arguments.length,e=new Array(t),n=0;n=0?-1:1,o="function"==typeof n?n(Object.assign(Object.assign({},e),{},{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[se,ae].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,o),t}),{}),s=a[e.placement],l=s.x,u=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,g=n.allowedAutoPlacements,m=e.options.placement,v=we(m),y=l||(v!==m&&p?function(t){if(we(t)===le)return[];var e=Fe(t);return[We(t),e,We(e)]}(m):[Fe(m)]),_=[m].concat(y).reduce((function(t,n){return t.concat(we(n)===le?Ze(e,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),b=e.rects.reference,w=e.rects.popper,x=new Map,T=!0,S=_[0],C=0;C<_.length;C++){var E=_[C],D=we(E),A=Ke(E)===ce,k=[ie,oe].indexOf(D)>=0,L=k?"width":"height",O=Ge(e,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),N=k?A?ae:se:A?oe:ie;b[L]>w[L]&&(N=Fe(N));var j=Fe(N),I=[];if(o&&I.push(O[D]<=0),s&&I.push(O[N]<=0,O[j]<=0),I.every((function(t){return t}))){S=E,T=!1;break}x.set(E,I)}if(T)for(var P=function(t){var e=_.find((function(e){var n=x.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return S=e,"break"},R=p?3:1;R>0&&"break"!==P(R);R--);e.placement!==S&&(e.modifiersData[r]._skip=!0,e.placement=S,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,m=Ge(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),v=we(e.placement),y=Ke(e.placement),_=!y,b=Le(v),w="x"===b?"y":"x",x=e.modifiersData.popperOffsets,T=e.rects.reference,S=e.rects.popper,C="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,E={x:0,y:0};if(x){if(o){var D="y"===b?ie:se,A="y"===b?oe:ae,k="y"===b?"height":"width",L=x[b],O=x[b]+m[D],N=x[b]-m[A],j=h?-S[k]/2:0,I=y===ce?T[k]:S[k],P=y===ce?-S[k]:-T[k],R=e.elements.arrow,H=h&&R?xe(R):{width:0,height:0},F=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},M=F[D],W=F[A],B=Oe(0,T[k],H[k]),q=_?T[k]/2-j-B-M-C:I-B-M-C,U=_?-T[k]/2+j+B+W+C:P+B+W+C,X=e.elements.arrow&&ke(e.elements.arrow),Y=X?"y"===b?X.clientTop||0:X.clientLeft||0:0,z=e.modifiersData.offset?e.modifiersData.offset[e.placement][b]:0,V=x[b]+q-z-Y,$=x[b]+U-z,Q=Oe(h?Math.min(O,V):O,L,h?Math.max(N,$):N);x[b]=Q,E[b]=Q-L}if(s){var K="x"===b?ie:se,J="x"===b?oe:ae,G=x[w],Z=Oe(G+m[K],G,G-m[J]);x[w]=Z,E[w]=Z-G}e.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=we(n.placement),s=Le(a),l=[se,ae].indexOf(a)>=0?"height":"width";if(i&&o){var u=n.modifiersData[r+"#persistent"].padding,c=xe(i),f="y"===s?ie:se,d="y"===s?oe:ae,h=n.rects.reference[l]+n.rects.reference[s]-o[s]-n.rects.popper[l],p=o[s]-n.rects.reference[s],g=ke(i),m=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=h/2-p/2,y=u[f],_=m-c[l]-u[d],b=m/2-c[l]/2+v,w=Oe(y,b,_),x=s;n.modifiersData[r]=((e={})[x]=w,e.centerOffset=w-b,e)}},effect:function(t){var e=t.state,n=t.options,r=t.name,i=n.element,o=void 0===i?"[data-popper-arrow]":i,a=n.padding,s=void 0===a?0:a;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&Te(e.elements.popper,o)&&(e.elements.arrow=o,e.modifiersData[r+"#persistent"]={padding:Ne("number"!=typeof s?s:je(s,ue))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=Ge(e,{elementContext:"reference"}),s=Ge(e,{altBoundary:!0}),l=tn(a,r),u=tn(s,i,o),c=en(l),f=en(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),un="dropdown",cn="coreui.dropdown",fn="."+cn,dn="Escape",hn="Space",pn="ArrowUp",gn="ArrowDown",mn=new RegExp("ArrowUp|ArrowDown|Escape"),vn="hide"+fn,yn="hidden"+fn,_n="click.coreui.dropdown.data-api",bn="keydown.coreui.dropdown.data-api",wn="disabled",xn="show",Tn="dropdown-menu-right",Sn='[data-toggle="dropdown"]',Cn=".dropdown-menu",En={offset:[0,0],flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Dn={offset:"(array|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},An=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._inHeader=this._detectHeader(),this._addEventListeners(),E(t,cn,this)}var n=t.prototype;return n.toggle=function(){if(!this._element.disabled&&!this._element.classList.contains(wn)){var e=this._menu.classList.contains(xn);t.clearMenus(),e||this.show()}},n.show=function(){if(!(this._element.disabled||this._element.classList.contains(wn)||this._menu.classList.contains(xn))){var e=t.getParentFromElement(this._element),n={relatedTarget:this._element};if(!V.trigger(e,"show.coreui.dropdown",n).defaultPrevented){if(!this._inNavbar&&!this._inHeader){if(void 0===ln)throw new TypeError("CoreUI's dropdowns require Popper.js (https://popper.js.org)");var r=this._element;"parent"===this._config.reference?r=e:v(this._config.reference)&&(r=this._config.reference,void 0!==this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e.classList.add("position-static"),this._popper=ln(r,this._menu,this._getPopperConfig())}var i,o;"ontouchstart"in document.documentElement&&!e.closest(".navbar-nav")&&(i=[]).concat.apply(i,document.body.children).forEach((function(t){return V.on(t,"mouseover",null,(function(){}))})),"ontouchstart"in document.documentElement&&!e.closest(".c-header-nav")&&(o=[]).concat.apply(o,document.body.children).forEach((function(t){return V.on(t,"mouseover",null,(function(){}))})),this._element.focus(),this._element.setAttribute("aria-expanded",!0),bt.toggleClass(this._menu,xn),bt.toggleClass(e,xn),V.trigger(e,"shown.coreui.dropdown",n)}}},n.hide=function(){if(!this._element.disabled&&!this._element.classList.contains(wn)&&this._menu.classList.contains(xn)){var e=t.getParentFromElement(this._element),n={relatedTarget:this._element};V.trigger(e,vn,n).defaultPrevented||(this._popper&&this._popper.destroy(),bt.toggleClass(this._menu,xn),bt.toggleClass(e,xn),V.trigger(e,yn,n))}},n.dispose=function(){A(this._element,cn),V.off(this._element,fn),this._element=null,this._menu=null,this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),this._inHeader=this._detectHeader(),this._popper&&this._popper.update()},n._addEventListeners=function(){var t=this;V.on(this._element,"click.coreui.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},n._getConfig=function(t){return t=o(o(o({},this.constructor.Default),bt.getDataAttributes(this._element)),t),_(un,t,this.constructor.DefaultType),t},n._getMenuElement=function(){var e=t.getParentFromElement(this._element);return lt.findOne(Cn,e)},n._getPlacement=function(){var t=this._element.parentNode,e="bottom-start";return t.classList.contains("dropup")?(e="top-start",this._menu.classList.contains(Tn)&&(e="top-end")):t.classList.contains("dropright")?e="right-start":t.classList.contains("dropleft")?e="left-start":this._menu.classList.contains(Tn)&&(e="bottom-end"),e},n._detectNavbar=function(){return Boolean(this._element.closest(".navbar"))},n._detectHeader=function(){return Boolean(this._element.closest(".c-header"))},n._getOffset=function(){var t=this;return"function"==typeof this._config.offset?function(e){var n=e.placement,r=e.reference,i=e.popper;return t._config.offset({placement:n,reference:r,popper:i})}:this._config.offset},n._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:[{name:"offset",options:{offset:this._getOffset()}},{name:"flip",enabled:this._config.flip},{name:"preventOverflow",options:{boundary:this._config.boundary}}]};return"static"===this._config.display&&(t.modifiers={name:"applyStyles",enabled:!1}),o(o({},t),this._config.popperConfig)},t.dropdownInterface=function(e,n){var r=D(e,cn);if(r||(r=new t(e,"object"==typeof n?n:null)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}},t.jQueryInterface=function(e){return this.each((function(){t.dropdownInterface(this,e)}))},t.clearMenus=function(e){if(!e||2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(var n=lt.find(Sn),r=0,i=n.length;r0&&o--,e.key===gn&&odocument.documentElement.clientHeight;e||(this._element.style.overflowY="hidden"),this._element.classList.add(Vn);var n=g(this._dialog);V.off(this._element,c),V.one(this._element,c,(function(){t._element.classList.remove(Vn),e||(V.one(t._element,c,(function(){t._element.style.overflowY=""})),y(t._element,n))})),y(this._element,n),this._element.focus()}else this.hide()},n._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:nr,popperConfig:null},dr={HIDE:"hide"+ar,HIDDEN:"hidden"+ar,SHOW:"show"+ar,SHOWN:"shown"+ar,INSERTED:"inserted"+ar,CLICK:"click"+ar,FOCUSIN:"focusin"+ar,FOCUSOUT:"focusout"+ar,MOUSEENTER:"mouseenter"+ar,MOUSELEAVE:"mouseleave"+ar},hr="fade",pr="show",gr="show",mr="out",vr="hover",yr="focus",_r=function(){function t(t,e){if(void 0===ln)throw new TypeError("CoreUI's tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners(),E(t,this.constructor.DATA_KEY,this)}var n=t.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=D(t.delegateTarget,e);n||(n=new this.constructor(t.delegateTarget,this._getDelegateConfig()),E(t.delegateTarget,e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(this.getTipElement().classList.contains(pr))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),A(this.element,this.constructor.DATA_KEY),V.off(this.element,this.constructor.EVENT_KEY),V.off(this.element.closest(".modal"),"hide.coreui.modal",this._hideModalHandler),this.tip&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},n.show=function(){var t=this;if("none"===this.element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var e=V.trigger(this.element,this.constructor.Event.SHOW),n=w(this.element),r=null===n?this.element.ownerDocument.documentElement.contains(this.element):n.contains(this.element);if(e.defaultPrevented||!r)return;var i=this.getTipElement(),o=f(this.constructor.NAME);i.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&i.classList.add(hr);var a,s="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,l=this._getAttachment(s),u=this._getContainer();E(i,this.constructor.DATA_KEY,this),this.element.ownerDocument.documentElement.contains(this.tip)||u.appendChild(i),V.trigger(this.element,this.constructor.Event.INSERTED),this._popper=ln(this.element,i,this._getPopperConfig(l)),i.classList.add(pr),"ontouchstart"in document.documentElement&&(a=[]).concat.apply(a,document.body.children).forEach((function(t){V.on(t,"mouseover",(function(){}))}));var d=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,V.trigger(t.element,t.constructor.Event.SHOWN),e===mr&&t._leave(null,t)};if(this.tip.classList.contains(hr)){var h=g(this.tip);V.one(this.tip,c,d),y(this.tip,h)}else d()}},n.hide=function(){var t=this,e=this.getTipElement(),n=function(){t._hoverState!==gr&&e.parentNode&&e.parentNode.removeChild(e),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),V.trigger(t.element,t.constructor.Event.HIDDEN),t._popper.destroy()};if(!V.trigger(this.element,this.constructor.Event.HIDE).defaultPrevented){var r;if(e.classList.remove(pr),"ontouchstart"in document.documentElement&&(r=[]).concat.apply(r,document.body.children).forEach((function(t){return V.off(t,"mouseover",x)})),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains(hr)){var i=g(e);V.one(e,c,n),y(e,i)}else n();this._hoverState=""}},n.update=function(){null!==this._popper&&this._popper.update()},n.isWithContent=function(){return Boolean(this.getTitle())},n.getTipElement=function(){if(this.tip)return this.tip;var t=document.createElement("div");return t.innerHTML=this.config.template,this.tip=t.children[0],this.tip},n.setContent=function(){var t=this.getTipElement();this.setElementContent(lt.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove(hr,pr)},n.setElementContent=function(t,e){if(null!==t)return"object"==typeof e&&v(e)?(e.jquery&&(e=e[0]),void(this.config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this.config.html?(this.config.sanitize&&(e=rr(e,this.config.whiteList,this.config.sanitizeFn)),t.innerHTML=e):t.textContent=e)},n.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},n._getPopperConfig=function(t){var e=this;return o(o({},{placement:t,modifiers:[{name:"offset",options:{offset:this._getOffset()}},{name:"arrow",options:{element:"."+this.constructor.NAME+"-arrow"}},{name:"preventOverflow",options:{boundary:this.config.boundary}}],onFirstUpdate:function(t){t.originalPlacement!==t.placement&&e._popper.update()}}),this.config.popperConfig)},n._getOffset=function(){var t=this;return"function"==typeof this.config.offset?function(e){var n=e.placement,r=e.reference,i=e.popper;return t.config.offset({placement:n,reference:r,popper:i})}:this.config.offset},n._getContainer=function(){return!1===this.config.container?document.body:v(this.config.container)?this.config.container:lt.findOne(this.config.container)},n._getAttachment=function(t){return cr[t.toUpperCase()]},n._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)V.on(t.element,t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n=e===vr?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,r=e===vr?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;V.on(t.element,n,t.config.selector,(function(e){return t._enter(e)})),V.on(t.element,r,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},V.on(this.element.closest(".modal"),"hide.coreui.modal",this._hideModalHandler),this.config.selector?this.config=o(o({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||D(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),E(t.delegateTarget,n,e)),t&&(e._activeTrigger["focusin"===t.type?yr:vr]=!0),e.getTipElement().classList.contains(pr)||e._hoverState===gr?e._hoverState=gr:(clearTimeout(e._timeout),e._hoverState=gr,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===gr&&e.show()}),e.config.delay.show):e.show())},n._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||D(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),E(t.delegateTarget,n,e)),t&&(e._activeTrigger["focusout"===t.type?yr:vr]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=mr,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===mr&&e.hide()}),e.config.delay.hide):e.hide())},n._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},n._getConfig=function(t){var e=bt.getDataAttributes(this.element);return Object.keys(e).forEach((function(t){-1!==lr.indexOf(t)&&delete e[t]})),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof(t=o(o(o({},this.constructor.Default),e),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),_(ir,t,this.constructor.DefaultType),t.sanitize&&(t.template=rr(t.template,t.whiteList,t.sanitizeFn)),t},n._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},n._cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(sr);null!==e&&e.length>0&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},n._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("data-popper-placement")&&(t.classList.remove(hr),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t.jQueryInterface=function(e){return this.each((function(){var n=D(this,or),r="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,r)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t.getInstance=function(t){return D(t,or)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"Default",get:function(){return fr}},{key:"NAME",get:function(){return ir}},{key:"DATA_KEY",get:function(){return or}},{key:"Event",get:function(){return dr}},{key:"EVENT_KEY",get:function(){return ar}},{key:"DefaultType",get:function(){return ur}}]),t}(),br=S();if(br){var wr=br.fn.tooltip;br.fn.tooltip=_r.jQueryInterface,br.fn.tooltip.Constructor=_r,br.fn.tooltip.noConflict=function(){return br.fn.tooltip=wr,_r.jQueryInterface}}var xr="popover",Tr="coreui.popover",Sr="."+Tr,Cr=new RegExp("(^|\\s)bs-popover\\S+","g"),Er=o(o({},_r.Default),{},{placement:"right",trigger:"click",content:"",template:''}),Dr=o(o({},_r.DefaultType),{},{content:"(string|element|function)"}),Ar={HIDE:"hide"+Sr,HIDDEN:"hidden"+Sr,SHOW:"show"+Sr,SHOWN:"shown"+Sr,INSERTED:"inserted"+Sr,CLICK:"click"+Sr,FOCUSIN:"focusin"+Sr,FOCUSOUT:"focusout"+Sr,MOUSEENTER:"mouseenter"+Sr,MOUSELEAVE:"mouseleave"+Sr},kr=function(t){var n,r;function i(){return t.apply(this,arguments)||this}r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.setContent=function(){var t=this.getTipElement();this.setElementContent(lt.findOne(".popover-header",t),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(lt.findOne(".popover-body",t),e),t.classList.remove("fade","show")},o._addAttachmentClass=function(t){this.getTipElement().classList.add("bs-popover-"+t)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(Cr);null!==e&&e.length>0&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},i.jQueryInterface=function(t){return this.each((function(){var e=D(this,Tr),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new i(this,n),E(this,Tr,e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},i.getInstance=function(t){return D(t,Tr)},e(i,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"Default",get:function(){return Er}},{key:"NAME",get:function(){return xr}},{key:"DATA_KEY",get:function(){return Tr}},{key:"Event",get:function(){return Ar}},{key:"EVENT_KEY",get:function(){return Sr}},{key:"DefaultType",get:function(){return Dr}}]),i}(_r),Lr=S();if(Lr){var Or=Lr.fn.popover;Lr.fn.popover=kr.jQueryInterface,Lr.fn.popover.Constructor=kr,Lr.fn.popover.noConflict=function(){return Lr.fn.popover=Or,kr.jQueryInterface}}var Nr="scrollspy",jr="coreui.scrollspy",Ir="."+jr,Pr={offset:10,method:"auto",target:""},Rr={offset:"number",method:"string",target:"(string|element)"},Hr="dropdown-item",Fr="active",Mr=".nav-link",Wr="position",Br=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" .nav-link, "+this._config.target+" .list-group-item, "+this._config.target+" ."+Hr,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,V.on(this._scrollElement,"scroll.coreui.scrollspy",(function(t){return n._process(t)})),this.refresh(),this._process(),E(t,jr,this)}var n=t.prototype;return n.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":Wr,n="auto"===this._config.method?e:this._config.method,r=n===Wr?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),lt.find(this._selector).map((function(t){var e=h(t),i=e?lt.findOne(e):null;if(i){var o=i.getBoundingClientRect();if(o.width||o.height)return[bt[n](i).top+r,e]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},n.dispose=function(){A(this._element,jr),V.off(this._scrollElement,Ir),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){if("string"!=typeof(t=o(o({},Pr),"object"==typeof t&&t?t:{})).target&&v(t.target)){var e=t.target.id;e||(e=f(Nr),t.target.id=e),t.target="#"+e}return _(Nr,t,Rr),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&t>=this._offsets[i]&&(void 0===this._offsets[i+1]||tt[o]-t[a]-1&&(t.reach[l]="end"),e&&(f.dispatchEvent(si("ps-scroll-"+l)),e<0?f.dispatchEvent(si("ps-scroll-"+u)):e>0&&f.dispatchEvent(si("ps-scroll-"+c)),r&&function(t,e){ni(t,e),ri(t,e)}(t,l)),t.reach[l]&&(e||i)&&f.dispatchEvent(si("ps-"+l+"-reach-"+t.reach[l]))}(t,n,o,r,i)}function ui(t){return parseInt(t,10)||0}ai.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new ii(t),this.eventElements.push(e)),e},ai.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},ai.prototype.unbind=function(t,e,n){var r=this.eventElement(t);r.unbind(e,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},ai.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},ai.prototype.once=function(t,e,n){var r=this.eventElement(t),i=function(t){r.unbind(e,i),n(t)};r.bind(e,i)};var ci={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function fi(t){var e=t.element,n=Math.floor(e.scrollTop),r=e.getBoundingClientRect();t.containerWidth=Math.ceil(r.width),t.containerHeight=Math.ceil(r.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(Kr(e,Zr.rail("x")).forEach((function(t){return Qr(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(Kr(e,Zr.rail("y")).forEach((function(t){return Qr(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var n={width:e.railXWidth},r=Math.floor(t.scrollTop);e.isRtl?n.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:n.left=t.scrollLeft,e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-r:n.top=e.scrollbarXTop+r,Yr(e.scrollbarXRail,n);var i={top:r,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?i.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:i.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?i.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:i.left=e.scrollbarYLeft+t.scrollLeft,Yr(e.scrollbarYRail,i),Yr(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),Yr(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(ti.active("x")):(e.classList.remove(ti.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(ti.active("y")):(e.classList.remove(ti.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function di(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function hi(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=t.element,d=null,h=null,p=null;function g(e){e.touches&&e.touches[0]&&(e[i]=e.touches[0].pageY),f[l]=d+p*(e[i]-h),ni(t,u),fi(t),e.stopPropagation(),e.preventDefault()}function m(){ri(t,u),t[c].classList.remove(ti.clicking),t.event.unbind(t.ownerDocument,"mousemove",g)}function v(e,a){d=f[l],a&&e.touches&&(e[i]=e.touches[0].pageY),h=e[i],p=(t[r]-t[n])/(t[o]-t[s]),a?t.event.bind(t.ownerDocument,"touchmove",g):(t.event.bind(t.ownerDocument,"mousemove",g),t.event.once(t.ownerDocument,"mouseup",m),e.preventDefault()),t[c].classList.add(ti.clicking),e.stopPropagation()}t.event.bind(t[a],"mousedown",(function(t){v(t)})),t.event.bind(t[a],"touchstart",(function(t){v(t,!0)}))}var pi={"click-rail":function(t){t.element,t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=n*t.containerHeight,fi(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=n*t.containerWidth,fi(t),e.stopPropagation()}))},"drag-thumb":function(t){hi(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),hi(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&($r(e,":hover")||$r(t.scrollbarX,":focus")||$r(t.scrollbarY,":focus"))){var r,i=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if($r(r=i,"input,[contenteditable]")||$r(r,"select,[contenteditable]")||$r(r,"textarea,[contenteditable]")||$r(r,"button,[contenteditable]"))return}var o=0,a=0;switch(n.which){case 37:o=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:a=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:o=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:a=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:a=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==a||(e.scrollTop-=a,e.scrollLeft+=o,fi(t),function(n,r){var i=Math.floor(e.scrollTop);if(0===n){if(!t.scrollbarYActive)return!1;if(0===i&&r>0||i>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===r){if(!t.scrollbarXActive)return!1;if(0===o&&n<0||o>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(o,a)&&n.preventDefault())}}))},wheel:function(t){var e=t.element;function n(n){var r=function(t){var e=t.deltaX,n=-1*t.deltaY;return void 0!==e&&void 0!==n||(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!=e&&n!=n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}(n),i=r[0],o=r[1];if(!function(t,n,r){if(!ci.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var i=t;i&&i!==e;){if(i.classList.contains(Zr.consuming))return!0;var o=Xr(i);if(r&&o.overflowY.match(/(scroll|auto)/)){var a=i.scrollHeight-i.clientHeight;if(a>0&&(i.scrollTop>0&&r<0||i.scrollTop0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var s=i.scrollWidth-i.clientWidth;if(s>0&&(i.scrollLeft>0&&n<0||i.scrollLeft0))return!0}i=i.parentNode}return!1}(n.target,i,o)){var a=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=i*t.settings.wheelSpeed,a=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(i?e.scrollLeft+=i*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,a=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=i*t.settings.wheelSpeed),fi(t),(a=a||function(n,r){var i=Math.floor(e.scrollTop),o=0===e.scrollTop,a=i+e.offsetHeight===e.scrollHeight,s=0===e.scrollLeft,l=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(r)>Math.abs(n)?o||a:s||l)||!t.settings.wheelPropagation}(i,o))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",n):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",n)},touch:function(t){if(ci.supportsTouch||ci.supportsIePointer){var e=t.element,n={},r=0,i={},o=null;ci.supportsTouch?(t.event.bind(e,"touchstart",u),t.event.bind(e,"touchmove",c),t.event.bind(e,"touchend",f)):ci.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",u),t.event.bind(e,"pointermove",c),t.event.bind(e,"pointerup",f)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",u),t.event.bind(e,"MSPointerMove",c),t.event.bind(e,"MSPointerUp",f)))}function a(n,r){e.scrollTop-=r,e.scrollLeft-=n,fi(t)}function s(t){return t.targetTouches?t.targetTouches[0]:t}function l(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function u(t){if(l(t)){var e=s(t);n.pageX=e.pageX,n.pageY=e.pageY,r=(new Date).getTime(),null!==o&&clearInterval(o)}}function c(o){if(l(o)){var u=s(o),c={pageX:u.pageX,pageY:u.pageY},f=c.pageX-n.pageX,d=c.pageY-n.pageY;if(function(t,n,r){if(!e.contains(t))return!1;for(var i=t;i&&i!==e;){if(i.classList.contains(Zr.consuming))return!0;var o=Xr(i);if(r&&o.overflowY.match(/(scroll|auto)/)){var a=i.scrollHeight-i.clientHeight;if(a>0&&(i.scrollTop>0&&r<0||i.scrollTop0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var s=i.scrollWidth-i.clientWidth;if(s>0&&(i.scrollLeft>0&&n<0||i.scrollLeft0))return!0}i=i.parentNode}return!1}(o.target,f,d))return;a(f,d),n=c;var h=(new Date).getTime(),p=h-r;p>0&&(i.x=f/p,i.y=d/p,r=h),function(n,r){var i=Math.floor(e.scrollTop),o=e.scrollLeft,a=Math.abs(n),s=Math.abs(r);if(s>a){if(r<0&&i===t.contentHeight-t.containerHeight||r>0&&0===i)return 0===window.scrollY&&r>0&&ci.isChrome}else if(a>s&&(n<0&&o===t.contentWidth-t.containerWidth||n>0&&0===o))return!0;return!0}(f,d)&&o.preventDefault()}}function f(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval((function(){t.isInitialized?clearInterval(o):i.x||i.y?Math.abs(i.x)<.01&&Math.abs(i.y)<.01?clearInterval(o):(a(30*i.x,30*i.y),i.x*=.8,i.y*=.8):clearInterval(o)}),10))}}},gi=function(t,e){var n=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var r in this.element=t,t.classList.add(Jr),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[r]=e[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i,o,a=function(){return t.classList.add(ti.focus)},s=function(){return t.classList.remove(ti.focus)};this.isRtl="rtl"===Xr(t).direction,!0===this.isRtl&&t.classList.add(Gr),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,i=t.scrollLeft<0,t.scrollLeft=o,i),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new ai,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=zr(Zr.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=zr(Zr.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=Xr(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ui(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ui(l.borderLeftWidth)+ui(l.borderRightWidth),Yr(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ui(l.marginLeft)+ui(l.marginRight),Yr(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=zr(Zr.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=zr(Zr.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=Xr(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ui(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=Xr(t);return ui(e.width)+ui(e.paddingLeft)+ui(e.paddingRight)+ui(e.borderLeftWidth)+ui(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=ui(u.borderTopWidth)+ui(u.borderBottomWidth),Yr(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ui(u.marginTop)+ui(u.marginBottom),Yr(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return pi[t](n)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return n.onScroll(t)})),fi(this)};gi.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Yr(this.scrollbarXRail,{display:"block"}),Yr(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ui(Xr(this.scrollbarXRail).marginLeft)+ui(Xr(this.scrollbarXRail).marginRight),this.railYMarginHeight=ui(Xr(this.scrollbarYRail).marginTop)+ui(Xr(this.scrollbarYRail).marginBottom),Yr(this.scrollbarXRail,{display:"none"}),Yr(this.scrollbarYRail,{display:"none"}),fi(this),li(this,"top",0,!1,!0),li(this,"left",0,!1,!0),Yr(this.scrollbarXRail,{display:""}),Yr(this.scrollbarYRail,{display:""}))},gi.prototype.onScroll=function(t){this.isAlive&&(fi(this),li(this,"top",this.element.scrollTop-this.lastScrollTop),li(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},gi.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Qr(this.scrollbarX),Qr(this.scrollbarY),Qr(this.scrollbarXRail),Qr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},gi.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};var mi="sidebar",vi="coreui.sidebar",yi={activeLinksExact:!0,breakpoints:{xs:"c-sidebar-show",sm:"c-sidebar-sm-show",md:"c-sidebar-md-show",lg:"c-sidebar-lg-show",xl:"c-sidebar-xl-show",xxl:"c-sidebar-xxl-show"},dropdownAccordion:!0},_i={activeLinksExact:"boolean",breakpoints:"object",dropdownAccordion:"(string|boolean)"},bi="c-active",wi="c-sidebar-nav-dropdown",xi="c-show",Ti="c-sidebar-minimized",Si="c-sidebar-unfoldable",Ci="click.coreui.sidebar.data-api",Ei=".c-sidebar-nav-dropdown-toggle",Di=".c-sidebar-nav-dropdown",Ai=".c-sidebar-nav-link",ki=".c-sidebar-nav",Li=".c-sidebar",Oi=function(){function t(t,e){if(void 0===gi)throw new TypeError("CoreUI's sidebar require Perfect Scrollbar");this._element=t,this._config=this._getConfig(e),this._open=this._isVisible(),this._mobile=this._isMobile(),this._overlaid=this._isOverlaid(),this._minimize=this._isMinimized(),this._unfoldable=this._isUnfoldable(),this._setActiveLink(),this._ps=null,this._backdrop=null,this._psInit(),this._addEventListeners(),E(t,vi,this)}var n=t.prototype;return n.open=function(t){var e=this;V.trigger(this._element,"open.coreui.sidebar"),this._isMobile()?(this._addClassName(this._firstBreakpointClassName()),this._showBackdrop(),V.one(this._element,c,(function(){e._addClickOutListener()}))):t?(this._addClassName(this._getBreakpointClassName(t)),this._isOverlaid()&&V.one(this._element,c,(function(){e._addClickOutListener()}))):(this._addClassName(this._firstBreakpointClassName()),this._isOverlaid()&&V.one(this._element,c,(function(){e._addClickOutListener()})));var n=g(this._element);V.one(this._element,c,(function(){!0===e._isVisible()&&(e._open=!0,V.trigger(e._element,"opened.coreui.sidebar"))})),y(this._element,n)},n.close=function(t){var e=this;V.trigger(this._element,"close.coreui.sidebar"),this._isMobile()?(this._element.classList.remove(this._firstBreakpointClassName()),this._removeBackdrop(),this._removeClickOutListener()):t?(this._element.classList.remove(this._getBreakpointClassName(t)),this._isOverlaid()&&this._removeClickOutListener()):(this._element.classList.remove(this._firstBreakpointClassName()),this._isOverlaid()&&this._removeClickOutListener());var n=g(this._element);V.one(this._element,c,(function(){!1===e._isVisible()&&(e._open=!1,V.trigger(e._element,"closed.coreui.sidebar"))})),y(this._element,n)},n.toggle=function(t){this._open?this.close(t):this.open(t)},n.minimize=function(){this._isMobile()||(this._addClassName(Ti),this._minimize=!0,this._psDestroy())},n.unfoldable=function(){this._isMobile()||(this._addClassName(Si),this._unfoldable=!0)},n.reset=function(){this._element.classList.contains(Ti)&&(this._element.classList.remove(Ti),this._minimize=!1,V.one(this._element,c,this._psInit())),this._element.classList.contains(Si)&&(this._element.classList.remove(Si),this._unfoldable=!1)},n._getConfig=function(t){return t=o(o(o({},this.constructor.Default),bt.getDataAttributes(this._element)),t),_(mi,t,this.constructor.DefaultType),t},n._isMobile=function(){return Boolean(window.getComputedStyle(this._element,null).getPropertyValue("--is-mobile"))},n._isIOS=function(){var t=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"];if(Boolean(navigator.platform))for(;t.length;)if(navigator.platform===t.pop())return!0;return!1},n._isMinimized=function(){return this._element.classList.contains(Ti)},n._isOverlaid=function(){return this._element.classList.contains("c-sidebar-overlaid")},n._isUnfoldable=function(){return this._element.classList.contains(Si)},n._isVisible=function(){var t=this._element.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},n._addClassName=function(t){this._element.classList.add(t)},n._firstBreakpointClassName=function(){return Object.keys(yi.breakpoints).map((function(t){return yi.breakpoints[t]}))[0]},n._getBreakpointClassName=function(t){return yi.breakpoints[t]},n._removeBackdrop=function(){this._backdrop&&(this._backdrop.parentNode.removeChild(this._backdrop),this._backdrop=null)},n._showBackdrop=function(){this._backdrop||(this._backdrop=document.createElement("div"),this._backdrop.className="c-sidebar-backdrop",this._backdrop.classList.add("c-fade"),document.body.appendChild(this._backdrop),T(this._backdrop),this._backdrop.classList.add(xi))},n._clickOutListener=function(t,e){null===t.target.closest(Li)&&(t.preventDefault(),t.stopPropagation(),e.close())},n._addClickOutListener=function(){var t=this;V.on(document,Ci,(function(e){t._clickOutListener(e,t)}))},n._removeClickOutListener=function(){V.off(document,Ci)},n._getAllSiblings=function(t,e){var n=[];t=t.parentNode.firstChild;do{3!==t.nodeType&&8!==t.nodeType&&(e&&!e(t)||n.push(t))}while(t=t.nextSibling);return n},n._toggleDropdown=function(t,e){var n=t.target;n.classList.contains("c-sidebar-nav-dropdown-toggle")||(n=n.closest(Ei));var r=n.closest(ki).dataset;void 0!==r.dropdownAccordion&&(yi.dropdownAccordion=JSON.parse(r.dropdownAccordion)),!0===yi.dropdownAccordion&&this._getAllSiblings(n.parentElement,(function(t){return Boolean(t.classList.contains(wi))})).forEach((function(t){t!==n.parentNode&&t.classList.contains(wi)&&t.classList.remove(xi)})),n.parentNode.classList.toggle(xi),e._psUpdate()},n._psInit=function(){this._element.querySelector(ki)&&!this._isIOS()&&(this._ps=new gi(this._element.querySelector(ki),{suppressScrollX:!0,wheelPropagation:!1}))},n._psUpdate=function(){this._ps&&this._ps.update()},n._psDestroy=function(){this._ps&&(this._ps.destroy(),this._ps=null)},n._getParents=function(t,e){for(var n=[];t&&t!==document;t=t.parentNode)e?t.matches(e)&&n.push(t):n.push(t);return n},n._setActiveLink=function(){var t=this;Array.from(this._element.querySelectorAll(Ai)).forEach((function(e){var n=String(window.location);(/\?.*=/.test(n)||/\?./.test(n))&&(n=n.split("?")[0]),/#./.test(n)&&(n=n.split("#")[0]);var r=e.closest(ki).dataset;void 0!==r.activeLinksExact&&(yi.activeLinksExact=JSON.parse(r.activeLinksExact)),yi.activeLinksExact&&e.href===n&&(e.classList.add(bi),Array.from(t._getParents(e,Di)).forEach((function(t){t.classList.add(xi)}))),!yi.activeLinksExact&&e.href.startsWith(n)&&(e.classList.add(bi),Array.from(t._getParents(e,Di)).forEach((function(t){t.classList.add(xi)})))}))},n._addEventListeners=function(){var t=this;this._mobile&&this._open&&this._addClickOutListener(),this._overlaid&&this._open&&this._addClickOutListener(),V.on(this._element,"classtoggle",(function(e){if(e.detail.className===Ti&&(t._element.classList.contains(Ti)?t.minimize():t.reset()),e.detail.className===Si&&(t._element.classList.contains(Si)?t.unfoldable():t.reset()),void 0!==Object.keys(yi.breakpoints).find((function(t){return yi.breakpoints[t]===e.detail.className}))){var n=e.detail.className,r=Object.keys(yi.breakpoints).find((function(t){return yi.breakpoints[t]===n}));e.detail.add?t.open(r):t.close(r)}})),V.on(this._element,Ci,Ei,(function(e){e.preventDefault(),t._toggleDropdown(e,t)})),V.on(this._element,Ci,Ai,(function(){t._isMobile()&&t.close()}))},t._sidebarInterface=function(e,n){var r=D(e,vi);if(r||(r=new t(e,"object"==typeof n&&n)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}},t.jQueryInterface=function(e){return this.each((function(){t._sidebarInterface(this,e)}))},t.getInstance=function(t){return D(t,vi)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"Default",get:function(){return yi}},{key:"DefaultType",get:function(){return _i}}]),t}();V.on(window,"load.coreui.sidebar.data-api",(function(){Array.from(document.querySelectorAll(Li)).forEach((function(t){Oi._sidebarInterface(t)}))}));var Ni=S();if(Ni){var ji=Ni.fn.sidebar;Ni.fn.sidebar=Oi.jQueryInterface,Ni.fn.sidebar.Constructor=Oi,Ni.fn.sidebar.noConflict=function(){return Ni.fn.sidebar=ji,Oi.jQueryInterface}}var Ii="coreui.tab",Pi="active",Ri="fade",Hi="show",Fi=".active",Mi=":scope > li > .active",Wi=function(){function t(t){this._element=t,E(this._element,Ii,this)}var n=t.prototype;return n.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Pi)||this._element.classList.contains("disabled"))){var e,n=p(this._element),r=this._element.closest(".nav, .list-group");if(r){var i="UL"===r.nodeName||"OL"===r.nodeName?Mi:Fi;e=(e=lt.find(i,r))[e.length-1]}var o=null;if(e&&(o=V.trigger(e,"hide.coreui.tab",{relatedTarget:this._element})),!(V.trigger(this._element,"show.coreui.tab",{relatedTarget:e}).defaultPrevented||null!==o&&o.defaultPrevented)){this._activate(this._element,r);var a=function(){V.trigger(e,"hidden.coreui.tab",{relatedTarget:t._element}),V.trigger(t._element,"shown.coreui.tab",{relatedTarget:e})};n?this._activate(n,n.parentNode,a):a()}}},n.dispose=function(){A(this._element,Ii),this._element=null},n._activate=function(t,e,n){var r=this,i=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?lt.children(e,Fi):lt.find(Mi,e))[0],o=n&&i&&i.classList.contains(Ri),a=function(){return r._transitionComplete(t,i,n)};if(i&&o){var s=g(i);i.classList.remove(Hi),V.one(i,c,a),y(i,s)}else a()},n._transitionComplete=function(t,e,n){if(e){e.classList.remove(Pi);var r=lt.findOne(":scope > .dropdown-menu .active",e.parentNode);r&&r.classList.remove(Pi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(Pi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),T(t),t.classList.contains(Ri)&&t.classList.add(Hi),t.parentNode&&t.parentNode.classList.contains("dropdown-menu")&&(t.closest(".dropdown")&<.find(".dropdown-toggle").forEach((function(t){return t.classList.add(Pi)})),t.setAttribute("aria-expanded",!0)),n&&n()},t.jQueryInterface=function(e){return this.each((function(){var n=D(this,Ii)||new t(this);if("string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t.getInstance=function(t){return D(t,Ii)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}}]),t}();V.on(document,"click.coreui.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),(D(this,Ii)||new Wi(this)).show()}));var Bi=S();if(Bi){var qi=Bi.fn.tab;Bi.fn.tab=Wi.jQueryInterface,Bi.fn.tab.Constructor=Wi,Bi.fn.tab.noConflict=function(){return Bi.fn.tab=qi,Wi.jQueryInterface}}var Ui,Xi,Yi,zi,Vi="toast",$i="coreui.toast",Qi="click.dismiss."+$i,Ki="hide",Ji="show",Gi="showing",Zi={animation:"boolean",autohide:"boolean",delay:"number"},to={animation:!0,autohide:!0,delay:5e3},eo=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners(),E(t,$i,this)}var n=t.prototype;return n.show=function(){var t=this;if(!V.trigger(this._element,"show.coreui.toast").defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var e=function(){t._element.classList.remove(Gi),t._element.classList.add(Ji),V.trigger(t._element,"shown.coreui.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(Ki),T(this._element),this._element.classList.add(Gi),this._config.animation){var n=g(this._element);V.one(this._element,c,e),y(this._element,n)}else e()}},n.hide=function(){var t=this;if(this._element.classList.contains(Ji)&&!V.trigger(this._element,"hide.coreui.toast").defaultPrevented){var e=function(){t._element.classList.add(Ki),V.trigger(t._element,"hidden.coreui.toast")};if(this._element.classList.remove(Ji),this._config.animation){var n=g(this._element);V.one(this._element,c,e),y(this._element,n)}else e()}},n.dispose=function(){this._clearTimeout(),this._element.classList.contains(Ji)&&this._element.classList.remove(Ji),V.off(this._element,Qi),A(this._element,$i),this._element=null,this._config=null},n._getConfig=function(t){return t=o(o(o({},to),bt.getDataAttributes(this._element)),"object"==typeof t&&t?t:{}),_(Vi,t,this.constructor.DefaultType),t},n._setListeners=function(){var t=this;V.on(this._element,Qi,'[data-dismiss="toast"]',(function(){return t.hide()}))},n._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t.jQueryInterface=function(e){return this.each((function(){var n=D(this,$i);if(n||(n=new t(this,"object"==typeof e&&e)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e](this)}}))},t.getInstance=function(t){return D(t,$i)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"DefaultType",get:function(){return Zi}},{key:"Default",get:function(){return to}}]),t}(),no=S();if(no){var ro=no.fn.toast;no.fn.toast=eo.jQueryInterface,no.fn.toast.Constructor=eo,no.fn.toast.noConflict=function(){return no.fn.toast=ro,eo.jQueryInterface}}return Array.from||(Array.from=(Ui=Object.prototype.toString,Xi=function(t){return"function"==typeof t||"[object Function]"===Ui.call(t)},Yi=Math.pow(2,53)-1,zi=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),Yi)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,i=arguments.length>1?arguments[1]:void 0;if(void 0!==i){if(!Xi(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var o,a=zi(n.length),s=Xi(e)?Object(new e(a)):new Array(a),l=0;l=0&&e.item(n)!==this;);return n>-1}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i-1||(t.prototype=window.Event.prototype,window.CustomEvent=t)}(),{AsyncLoad:et,Alert:ot,Button:gt,Carousel:Nt,ClassToggler:qt,Collapse:ee,Dropdown:An,Modal:Kn,Popover:kr,Scrollspy:Br,Sidebar:Oi,Tab:Wi,Toast:eo,Tooltip:_r}}()},80:(t,e,n)=>{n(689),n(62),n(112),n(21)},689:(t,e,n)=>{window._=n(486);try{window.Popper=n(981).default,window.$=window.jQuery=n(755),n(734)}catch(t){}},734:function(t,e,n){!function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=r(e),o=r(n);function a(t,e){for(var n=0;n=a)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};v.jQueryDetection(),m();var y="alert",_="4.6.0",b="bs.alert",w="."+b,x=".data-api",T=i.default.fn[y],S='[data-dismiss="alert"]',C="close"+w,E="closed"+w,D="click"+w+x,A="alert",k="fade",L="show",O=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){i.default.removeData(this._element,b),this._element=null},e._getRootElement=function(t){var e=v.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=i.default(t).closest("."+A)[0]),n},e._triggerCloseEvent=function(t){var e=i.default.Event(C);return i.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(i.default(t).removeClass(L),i.default(t).hasClass(k)){var n=v.getTransitionDurationFromElement(t);i.default(t).one(v.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){i.default(t).detach().trigger(E).remove()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data(b);r||(r=new t(this),n.data(b,r)),"close"===e&&r[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return _}}]),t}();i.default(document).on(D,S,O._handleDismiss(new O)),i.default.fn[y]=O._jQueryInterface,i.default.fn[y].Constructor=O,i.default.fn[y].noConflict=function(){return i.default.fn[y]=T,O._jQueryInterface};var N="button",j="4.6.0",I="bs.button",P="."+I,R=".data-api",H=i.default.fn[N],F="active",M="btn",W="focus",B='[data-toggle^="button"]',q='[data-toggle="buttons"]',U='[data-toggle="button"]',X='[data-toggle="buttons"] .btn',Y='input:not([type="hidden"])',z=".active",V=".btn",$="click"+P+R,Q="focus"+P+R+" blur"+P+R,K="load"+P+R,J=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=i.default(this._element).closest(q)[0];if(n){var r=this._element.querySelector(Y);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(F))t=!1;else{var o=n.querySelector(z);o&&i.default(o).removeClass(F)}t&&("checkbox"!==r.type&&"radio"!==r.type||(r.checked=!this._element.classList.contains(F)),this.shouldAvoidTriggerChange||i.default(r).trigger("change")),r.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(F)),t&&i.default(this._element).toggleClass(F))},e.dispose=function(){i.default.removeData(this._element,I),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var r=i.default(this),o=r.data(I);o||(o=new t(this),r.data(I,o)),o.shouldAvoidTriggerChange=n,"toggle"===e&&o[e]()}))},s(t,null,[{key:"VERSION",get:function(){return j}}]),t}();i.default(document).on($,B,(function(t){var e=t.target,n=e;if(i.default(e).hasClass(M)||(e=i.default(e).closest(V)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var r=e.querySelector(Y);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||J._jQueryInterface.call(i.default(e),"toggle","INPUT"===n.tagName)}})).on(Q,B,(function(t){var e=i.default(t.target).closest(V)[0];i.default(e).toggleClass(W,/^focus(in)?$/.test(t.type))})),i.default(window).on(K,(function(){for(var t=[].slice.call(document.querySelectorAll(X)),e=0,n=t.length;e0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(ct)},e.nextWhenVisible=function(){var t=i.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(ft)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(Mt)&&(v.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(Rt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)i.default(this._element).one(gt,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var r=t>n?ct:ft;this._slide(r,this._items[t])}},e.dispose=function(){i.default(this._element).off(et),i.default.removeData(this._element,tt),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=l({},lt,t),v.typeCheckConfig(G,t,ut),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=st)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&i.default(this._element).on(mt,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&i.default(this._element).on(vt,(function(e){return t.pause(e)})).on(yt,(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&Ut[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX},r=function(e){t._pointerEvent&&Ut[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),at+t._config.interval))};i.default(this._element.querySelectorAll(Ft)).on(St,(function(t){return t.preventDefault()})),this._pointerEvent?(i.default(this._element).on(xt,(function(t){return e(t)})),i.default(this._element).on(Tt,(function(t){return r(t)})),this._element.classList.add(It)):(i.default(this._element).on(_t,(function(t){return e(t)})),i.default(this._element).on(bt,(function(t){return n(t)})),i.default(this._element).on(wt,(function(t){return r(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case it:t.preventDefault(),this.prev();break;case ot:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(Ht)):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===ct,r=t===ft,i=this._getItemIndex(e),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return e;var a=(i+(t===ft?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),r=this._getItemIndex(this._element.querySelector(Rt)),o=i.default.Event(pt,{relatedTarget:t,direction:e,from:r,to:n});return i.default(this._element).trigger(o),o},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Pt));i.default(e).removeClass(At);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i.default(n).addClass(At)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(Rt);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,r,o,a=this,s=this._element.querySelector(Rt),l=this._getItemIndex(s),u=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(u),f=Boolean(this._interval);if(t===ct?(n=Ot,r=Nt,o=dt):(n=Lt,r=jt,o=ht),u&&i.default(u).hasClass(At))this._isSliding=!1;else if(!this._triggerSlideEvent(u,o).isDefaultPrevented()&&s&&u){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var d=i.default.Event(gt,{relatedTarget:u,direction:o,from:l,to:c});if(i.default(this._element).hasClass(kt)){i.default(u).addClass(r),v.reflow(u),i.default(s).addClass(n),i.default(u).addClass(n);var h=v.getTransitionDurationFromElement(s);i.default(s).one(v.TRANSITION_END,(function(){i.default(u).removeClass(n+" "+r).addClass(At),i.default(s).removeClass(At+" "+r+" "+n),a._isSliding=!1,setTimeout((function(){return i.default(a._element).trigger(d)}),0)})).emulateTransitionEnd(h)}else i.default(s).removeClass(At),i.default(u).addClass(At),this._isSliding=!1,i.default(this._element).trigger(d);f&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(tt),r=l({},lt,i.default(this).data());"object"==typeof e&&(r=l({},r,e));var o="string"==typeof e?e:r.slide;if(n||(n=new t(this,r),i.default(this).data(tt,n)),"number"==typeof e)n.to(e);else if("string"==typeof o){if(void 0===n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=v.getSelectorFromElement(this);if(n){var r=i.default(n)[0];if(r&&i.default(r).hasClass(Dt)){var o=l({},i.default(r).data(),i.default(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),t._jQueryInterface.call(i.default(r),o),a&&i.default(r).data(tt).to(a),e.preventDefault()}}},s(t,null,[{key:"VERSION",get:function(){return Z}},{key:"Default",get:function(){return lt}}]),t}();i.default(document).on(Et,Bt,Xt._dataApiClickHandler),i.default(window).on(Ct,(function(){for(var t=[].slice.call(document.querySelectorAll(qt)),e=0,n=t.length;e0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){i.default(this._element).hasClass(ie)?this.hide():this.show()},e.show=function(){var e,n,r=this;if(!(this._isTransitioning||i.default(this._element).hasClass(ie)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(ce)).filter((function(t){return"string"==typeof r._config.parent?t.getAttribute("data-parent")===r._config.parent:t.classList.contains(oe)}))).length&&(e=null),e&&(n=i.default(e).not(this._selector).data(Vt))&&n._isTransitioning))){var o=i.default.Event(Zt);if(i.default(this._element).trigger(o),!o.isDefaultPrevented()){e&&(t._jQueryInterface.call(i.default(e).not(this._selector),"hide"),n||i.default(e).data(Vt,null));var a=this._getDimension();i.default(this._element).removeClass(oe).addClass(ae),this._element.style[a]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(se).attr("aria-expanded",!0),this.setTransitioning(!0);var s=function(){i.default(r._element).removeClass(ae).addClass(oe+" "+ie),r._element.style[a]="",r.setTransitioning(!1),i.default(r._element).trigger(te)},l="scroll"+(a[0].toUpperCase()+a.slice(1)),u=v.getTransitionDurationFromElement(this._element);i.default(this._element).one(v.TRANSITION_END,s).emulateTransitionEnd(u),this._element.style[a]=this._element[l]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&i.default(this._element).hasClass(ie)){var e=i.default.Event(ee);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",v.reflow(this._element),i.default(this._element).addClass(ae).removeClass(oe+" "+ie);var r=this._triggerArray.length;if(r>0)for(var o=0;o0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),l({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(ge);if(n||(n=new t(this,"object"==typeof e?e:null),i.default(this).data(ge,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||e.which!==Se&&("keyup"!==e.type||e.which===we))for(var n=[].slice.call(document.querySelectorAll(Be)),r=0,o=n.length;r0&&a--,e.which===Te&&adocument.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(kn);var r=v.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(v.TRANSITION_END),i.default(this._element).one(v.TRANSITION_END,(function(){t._element.classList.remove(kn),n||i.default(t._element).one(v.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,r)})).emulateTransitionEnd(r),this._element.focus()}},e._showElement=function(t){var e=this,n=i.default(this._element).hasClass(Dn),r=this._dialog?this._dialog.querySelector(On):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass(Tn)&&r?r.scrollTop=0:this._element.scrollTop=0,n&&v.reflow(this._element),i.default(this._element).addClass(An),this._config.focus&&this._enforceFocus();var o=i.default.Event(gn,{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,i.default(e._element).trigger(o)};if(n){var s=v.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(v.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},e._enforceFocus=function(){var t=this;i.default(document).off(mn).on(mn,(function(e){document!==e.target&&t._element!==e.target&&0===i.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?i.default(this._element).on(_n,(function(e){t._config.keyboard&&e.which===ln?(e.preventDefault(),t.hide()):t._config.keyboard||e.which!==ln||t._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(_n)},e._setResizeEvent=function(){var t=this;this._isShown?i.default(window).on(vn,(function(e){return t.handleUpdate(e)})):i.default(window).off(vn)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass(En),t._resetAdjustments(),t._resetScrollbar(),i.default(t._element).trigger(hn)}))},e._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=i.default(this._element).hasClass(Dn)?Dn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Cn,n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(yn,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&v.reflow(this._backdrop),i.default(this._backdrop).addClass(An),!t)return;if(!n)return void t();var r=v.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(v.TRANSITION_END,t).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(An);var o=function(){e._removeBackdrop(),t&&t()};if(i.default(this._element).hasClass(Dn)){var a=v.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(v.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Fn,popperConfig:null},tr="show",er="out",nr={HIDE:"hide"+zn,HIDDEN:"hidden"+zn,SHOW:"show"+zn,SHOWN:"shown"+zn,INSERTED:"inserted"+zn,CLICK:"click"+zn,FOCUSIN:"focusin"+zn,FOCUSOUT:"focusout"+zn,MOUSEENTER:"mouseenter"+zn,MOUSELEAVE:"mouseleave"+zn},rr="fade",ir="show",or=".tooltip-inner",ar=".arrow",sr="hover",lr="focus",ur="click",cr="manual",fr=function(){function t(t,e){if(void 0===o.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(ir))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(e);var n=v.findShadowRoot(this.element),r=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!r)return;var a=this.getTipElement(),s=v.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&i.default(a).addClass(rr);var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment(l);this.addAttachmentClass(u);var c=this._getContainer();i.default(a).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(a).appendTo(c),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,a,this._getPopperConfig(u)),i.default(a).addClass(ir),i.default(a).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var f=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i.default(t.element).trigger(t.constructor.Event.SHOWN),e===er&&t._leave(null,t)};if(i.default(this.tip).hasClass(rr)){var d=v.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(v.TRANSITION_END,f).emulateTransitionEnd(d)}else f()}},e.hide=function(t){var e=this,n=this.getTipElement(),r=i.default.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==tr&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),i.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(i.default(this.element).trigger(r),!r.isDefaultPrevented()){if(i.default(n).removeClass(ir),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger[ur]=!1,this._activeTrigger[lr]=!1,this._activeTrigger[sr]=!1,i.default(this.tip).hasClass(rr)){var a=v.getTransitionDurationFromElement(n);i.default(n).one(v.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass($n+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(or)),this.getTitle()),i.default(t).removeClass(rr+" "+ir)},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=qn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:ar},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:v.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},e._getAttachment=function(t){return Gn[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)i.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if(e!==cr){var n=e===sr?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,r=e===sr?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(r,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?lr:sr]=!0),i.default(e.getTipElement()).hasClass(ir)||e._hoverState===tr?e._hoverState=tr:(clearTimeout(e._timeout),e._hoverState=tr,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===tr&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?lr:sr]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=er,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===er&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=i.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==Kn.indexOf(t)&&delete e[t]})),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),v.typeCheckConfig(Un,t,this.constructor.DefaultType),t.sanitize&&(t.template=qn(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(Qn);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i.default(t).removeClass(rr),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data(Yn),o="object"==typeof e&&e;if((r||!/dispose|hide/.test(e))&&(r||(r=new t(this,o),n.data(Yn,r)),"string"==typeof e)){if(void 0===r[e])throw new TypeError('No method named "'+e+'"');r[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return Xn}},{key:"Default",get:function(){return Zn}},{key:"NAME",get:function(){return Un}},{key:"DATA_KEY",get:function(){return Yn}},{key:"Event",get:function(){return nr}},{key:"EVENT_KEY",get:function(){return zn}},{key:"DefaultType",get:function(){return Jn}}]),t}();i.default.fn[Un]=fr._jQueryInterface,i.default.fn[Un].Constructor=fr,i.default.fn[Un].noConflict=function(){return i.default.fn[Un]=Vn,fr._jQueryInterface};var dr="popover",hr="4.6.0",pr="bs.popover",gr="."+pr,mr=i.default.fn[dr],vr="bs-popover",yr=new RegExp("(^|\\s)"+vr+"\\S+","g"),_r=l({},fr.Default,{placement:"right",trigger:"click",content:"",template:''}),br=l({},fr.DefaultType,{content:"(string|element|function)"}),wr="fade",xr="show",Tr=".popover-header",Sr=".popover-body",Cr={HIDE:"hide"+gr,HIDDEN:"hidden"+gr,SHOW:"show"+gr,SHOWN:"shown"+gr,INSERTED:"inserted"+gr,CLICK:"click"+gr,FOCUSIN:"focusin"+gr,FOCUSOUT:"focusout"+gr,MOUSEENTER:"mouseenter"+gr,MOUSELEAVE:"mouseleave"+gr},Er=function(t){function e(){return t.apply(this,arguments)||this}u(e,t);var n=e.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(vr+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},n.setContent=function(){var t=i.default(this.getTipElement());this.setElementContent(t.find(Tr),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Sr),e),t.removeClass(wr+" "+xr)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(yr);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(pr),r="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,r),i.default(this).data(pr,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return hr}},{key:"Default",get:function(){return _r}},{key:"NAME",get:function(){return dr}},{key:"DATA_KEY",get:function(){return pr}},{key:"Event",get:function(){return Cr}},{key:"EVENT_KEY",get:function(){return gr}},{key:"DefaultType",get:function(){return br}}]),e}(fr);i.default.fn[dr]=Er._jQueryInterface,i.default.fn[dr].Constructor=Er,i.default.fn[dr].noConflict=function(){return i.default.fn[dr]=mr,Er._jQueryInterface};var Dr="scrollspy",Ar="4.6.0",kr="bs.scrollspy",Lr="."+kr,Or=".data-api",Nr=i.default.fn[Dr],jr={offset:10,method:"auto",target:""},Ir={offset:"number",method:"string",target:"(string|element)"},Pr="activate"+Lr,Rr="scroll"+Lr,Hr="load"+Lr+Or,Fr="dropdown-item",Mr="active",Wr='[data-spy="scroll"]',Br=".nav, .list-group",qr=".nav-link",Ur=".nav-item",Xr=".list-group-item",Yr=".dropdown",zr=".dropdown-item",Vr=".dropdown-toggle",$r="offset",Qr="position",Kr=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+qr+","+this._config.target+" "+Xr+","+this._config.target+" "+zr,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on(Rr,(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?$r:Qr,n="auto"===this._config.method?e:this._config.method,r=n===Qr?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,o=v.getSelectorFromElement(t);if(o&&(e=document.querySelector(o)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[i.default(e)[n]().top+r,o]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){i.default.removeData(this._element,kr),i.default(this._scrollElement).off(Lr),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=l({},jr,"object"==typeof t&&t?t:{})).target&&v.isElement(t.target)){var e=i.default(t.target).attr("id");e||(e=v.getUID(Dr),i.default(t.target).attr("id",e)),t.target="#"+e}return v.typeCheckConfig(Dr,t,Ir),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&t>=this._offsets[i]&&(void 0===this._offsets[i+1]||t{var r,i;r=[n(755),n(920)],void 0===(i=function(t){return function(t,e,n,r){var i=t.fn.dataTable;return t.extend(!0,i.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),t.extend(i.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),i.ext.renderer.pageButton.bootstrap=function(e,o,a,s,l,u){var c,f,d,h=new i.Api(e),p=e.oClasses,g=e.oLanguage.oPaginate,m=e.oLanguage.oAria.paginate||{},v=0,y=function(n,r){var i,o,s,d,_=function(e){e.preventDefault(),!t(e.currentTarget).hasClass("disabled")&&h.page()!=e.data.action&&h.page(e.data.action).draw("page")};for(i=0,o=r.length;i",{class:p.sPageButton+" "+f,id:0===a&&"string"==typeof d?e.sTableId+"_"+d:null}).append(t("",{href:"#","aria-controls":e.sTableId,"aria-label":m[d],"data-dt-idx":v,tabindex:e.iTabIndex,class:"page-link"}).html(c)).appendTo(n),e.oApi._fnBindAction(s,{action:d},_),v++)}};try{d=t(o).find(n.activeElement).data("dt-idx")}catch(t){}y(t(o).empty().html('