UNPKG

@digital-blueprint/sublibrary-app

Version:

[GitHub Repository](https://github.com/digital-blueprint/sublibrary-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/sublibrary-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/sublibrary-app/) | [Sublibrary Bundle](ht

35 lines 177 kB
let e=e=>e,t,n;function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,`string`);return typeof t==`symbol`?t:t+``}function s(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)} /*! * License: LGPL-2.1-or-later * Dependencies: * * @webcomponents/scoped-custom-element-registry: BSD-3-Clause * @dbp-toolkit/app-shell: LGPL-2.1-or-later * @dbp-toolkit/language-select: LGPL-2.1-or-later * @dbp-toolkit/auth: LGPL-2.1-or-later * lit-html: BSD-3-Clause * @dbp-toolkit/notification: LGPL-2.1-or-later * @dbp-toolkit/theme-switcher: LGPL-2.1-or-later * universal-router: MIT * @dbp-toolkit/matomo: LGPL-2.1-or-later * xtend: MIT * fuzzy: (MIT) * suggestions: ISC * keycloak-js: Apache-2.0 * @dbp-toolkit/common: LGPL-2.1-or-later * jquery: MIT * select2: MIT * @dbp-toolkit/resource-select: LGPL-2.1-or-later */ import{B as c,C as l,F as u,H as d,N as f,S as p,T as m,V as h,b as g,c as _,g as v,s as y,t as b}from"./styles.D8JNhv4k.js";var x=Object.create,S=Object.defineProperty,C=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,T=Object.getPrototypeOf,ee=Object.prototype.hasOwnProperty,te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),E=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=w(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ee.call(e,s)&&s!==n&&S(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=C(t,s))||r.enumerable});return e},D=(e,t,n)=>(n=e==null?{}:x(T(e)),E(t||!e||!e.__esModule?S(n,`default`,{value:e,enumerable:!0}):n,e)),ne=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function.")}),re={"book-list":{"book-author":`Autor`,"book-availability-date":`Inventarisierungsdatum`,"book-barcode":`Barcode`,"book-description":`Beschreibung`,"book-inventory-year":`Inventarisierungsjahr`,"book-isbn":`ISBN/ISSN`,"book-location-identifier":`Aufstellung`,"book-publication-date":`Erscheinungsdatum`,"book-publisher":`Verlag`,"book-title":`Titel`,books:`Bücher`,"current-state":`Stand`,"error-load-books":`Liste der Bücher konnte nicht geladen werden`,"export-name":`Buchliste {{organizationCode}}`,"inventory-year-select-placeholder":`Bitte wählen Sie ein Inventarisierungsjahr aus um die Büchsterliste einzuschränken`,"location-identifier-select-placeholder":`Bitte wählen Sie eine Aufstellung aus um die Büchsterliste einzuschränken`,"mini-spinner-text":`Bücher werden geladen...`,"no-books":`Es sind keine Bücher vorhanden.`},budget:{"budget-key-values":`Budgetzahlen`,"load-error":`Fehler beim Laden der Budgetwerte`,"mini-spinner-text":`Budgetzahlen werden geladen...`,"no-budget":`Für dieses Institut existieren keine Budgetzahlen!`,taa:`Zugewiesenes Guthaben (inkl. Übertrag vom Vorjahr)`,"taa-tcb":`Summe Rechnungsbelastungen`,tab:`Verfügbares Guthaben`,tcb:`Aktuelles Guthaben`,"tcb-tab":`Belastetes Guthaben (offene Bestellungen)`},"create-loan":{"button-refresh-title":`Entlehnungen von {{name}} erneut überprüfen`,"error-existing-loans-body":`Es wurde eine bestehende Entlehnung gefunden, das Buch kann nicht entlehnt werden!`,"error-existing-loans-summary":`Bestehende Entlehnung!`,"info-no-existing-loans-body":`Es wurden keine bestehenden Entlehnungen gefunden, das Buch kann entlehnt werden.`,"info-no-existing-loans-summary":`Keine bestehenden Entlehnungen`,"mini-spinner-text":`Entlehnungen werden geladen...`,submit:`Buch entlehnen`,"success-body":`Das Buch wurde erfolgreich entlehnt.`,"success-summary":`Buchentlehnung erfolgreich`},"error-login-link":`Anmelden`,"error-login-message":`Bitte melden Sie sich an, um diese Funktion nutzen zu können.`,"error-permission-message":`Sie müssen Bibliotheksbeauftragte/r sein um diese Funktion nutzen zu können!`,"error-summary":`Ein Fehler ist aufgetreten`,"library-book-offer-select":{headline:`Bibliothek Buch`,placeholder:`Bitte geben Sie einen Barcode ein`},"loan-list":{"book-author":`Autor/Herausgeber`,"borrower-name":`Entlehner`,"current-state":`Stand`,"due-date":`Fällig am`,"error-load-loan":`Entlehnung konnte nicht geladen werden`,"error-load-loans":`Liste der Entlehnungen konnte nicht geladen werden`,"export-name":`Entlehnungen {{organizationCode}}`,loans:`Entlehnungen`,"mini-spinner-text":`Entlehnungen werden geladen...`,"no-loans":`Es sind keine Entlehnungen vorhanden.`,"open-only":`Nur offene Entlehnungen anzeigen`,"overdue-only":`Nur überfällige Entlehnungen anzeigen`,"return-date":`Rückgegeben am`,"start-date":`Entlehndatum`},"location-identifier":{headline:`Identifikator zur Aufstellung`,placeholder:`Bitte geben Sie den Identifikator um das Buch aufzustellen ein`,submit:`Abschicken`},"order-list":{"book-price":`Preis`,"current-state":`Stand`,"error-load-orders":`Liste der Bestellungen konnte nicht geladen werden`,"export-name":`Buchbestellungen {{organizationCode}}`,"mini-spinner-text":`Bestellungen werden geladen...`,"open-only":`Nur offene Bestellungen anzeigen`,"order-date":`Bestelldatum`,"order-number":`Bestellnummer`,"order-status":`Status`,"receiving -note":`Information`,"status-name-active":`offen`,"status-name-cancelled":`storniert`,"status-name-closed":`abgeschlossen`},"organization-select":{label:`Institut`},"person-select":{headline:`Person`},"renew-loan":{book:`Buch`,"button-refresh-title":`Entlehnungen von {{personName}} erneut laden`,"contact-subject":`Entlehnung von: {{bookName}}`,"contact-title":`Per EMail Kontakt mit {{personName}} aufnehmen`,"contact-value":`EMail`,"end-date":`Rückgabedatum`,"error-load-loans-summary":`Fehler beim Laden der Entlehnungen`,"error-renew-loan-date-in-past":`Enddatum darf nicht in der Vergangenheit liegen!`,"error-renew-loan-summary":`Fehler beim Verlängern`,"info-renew-loan-success-body":`Das Verlängern der Entlehnung war erfolgreich.`,"info-renew-loan-success-summary":`Verlängern erfolgreich`,loans:`Entlehnungen`,"mini-spinner-text":`Entlehnungen werden geladen...`,"no-loans":`Es wurden keine bestehenden Entlehnungen gefunden!`,"renew-loan":`Entlehnung verlängern`},"return-book":{borrower:`Entlehner`,"button-refresh-title":`Entlehnung von {{name}} erneut laden`,"error-no-existing-loans-body":`Es wurden keine bestehenden Entlehnungen gefunden!`,"error-no-existing-loans-summary":`Keine bestehenden Entlehnungen`,"info-existing-loans-body":`Es wurden eine bestehende Entlehnung gefunden, das Buch kann zurückgegeben werden!`,"info-existing-loans-summary":`Bestehende Entlehnung!`,"mini-spinner-text":`Entlehnungen werden geladen...`,submit:`Buch zurückgeben`,"success-body":`Das Buch von {{personName}} wurde erfolgreich zurückgegeben.`,"success-summary":`Buchrückgabe erfolgreich`,"user-name-unknown":`Unbekannt`},shelving:{"button-refresh-title":`Aufstellung von {{name}} erneut laden`},"success-body":`Das Buch "{{name}}" wurde erfolgreich aufgestellt.`,"success-summary":`Buchaufstellung erfolgreich`},O={"book-list":{"book-author":`Author`,"book-availability-date":`Availability date`,"book-barcode":`Barcode`,"book-description":`Description`,"book-inventory-year":`Availability year`,"book-isbn":`ISBN/ISSN`,"book-location-identifier":`Location`,"book-publication-date":`Publication date`,"book-publisher":`Publisher`,"book-title":`Title`,books:`Books`,"current-state":`State`,"error-load-books":`List of books could not be loaded`,"export-name":`Books {{organizationCode}}`,"inventory-year-select-placeholder":`Please select a availability year to restrict the book list`,"location-identifier-select-placeholder":`Please select a location to restrict the book list`,"mini-spinner-text":`Loading books...`,"no-books":`There are no books.`},budget:{"budget-key-values":`Budget`,"load-error":`Failed to load budget values`,"mini-spinner-text":`Budget will be loaded...`,"no-budget":`There are no budget values for this institute!`,taa:`Allocated credit (including carryover from previous year)`,"taa-tcb":`Sum of billing charges`,tab:`Available balance`,tcb:`Current balances`,"tcb-tab":`Debited credit (open orders)`},"create-loan":{"button-refresh-title":`Check loans of {{name}} again`,"error-existing-loans-body":`Existing loan was found, a new one cannot be created!`,"error-existing-loans-summary":`Existing loan was found!`,"info-no-existing-loans-body":`No existing loans were found, a new one can be created.`,"info-no-existing-loans-summary":`No existing loans`,"mini-spinner-text":`Loading loans...`,submit:`Loan book`,"success-body":`The book loan creation successful.`,"success-summary":`Book loan creation successful`},"error-login-link":`Log in`,"error-login-message":`Please log in to use this functionality.`,"error-permission-message":`You need to be a library officer to use this function!`,"error-summary":`An error occurred`,"library-book-offer-select":{headline:`Library book`,placeholder:`Please enter a barcode`},"loan-list":{"book-author":`Author/Publisher`,"borrower-name":`Borrower`,"current-state":`State`,"due-date":`Due date`,"error-load-loan":`Loan could not be loaded`,"error-load-loans":`List of loans could not be loaded`,"export-name":`Loans {{organizationCode}}`,loans:`Loans`,"mini-spinner-text":`Loading loans...`,"no-loans":`There are no books.`,"open-only":`Show open loans only`,"overdue-only":`Show overdue loans only`,"return-date":`Return date`,"start-date":`Start date`},"location-identifier":{headline:`Identifier for book placement`,placeholder:`Please enter the identifier to place the book`,submit:`Send`},"order-list":{"book-price":`Price`,"current-state":`State`,"error-load-orders":`List of orders could not be loaded`,"export-name":`Orders {{organizationCode}}`,"mini-spinner-text":`Loading order...`,"open-only":`Show open orders only`,"order-date":`Order date`,"order-number":`Order number`,"order-status":`Status`,"receiving -note":`Information`,"status-name-active":`active`,"status-name-cancelled":`cancelled`,"status-name-closed":`closed`},"organization-select":{label:`Institute`},"person-select":{headline:`Person`},"renew-loan":{book:`Book`,"button-refresh-title":`Load loans from {{personName}} again`,"contact-subject":`Loaning of: {{bookName}}`,"contact-title":`Contact {{personName}} via email`,"contact-value":`EMail`,"end-date":`Return date`,"error-load-loans-summary":`Error on loading loans`,"error-renew-loan-date-in-past":`End time may not be in the past!`,"error-renew-loan-summary":`Renewal failed`,"info-renew-loan-success-body":`The renewal of the loan was successful.`,"info-renew-loan-success-summary":`Renewal successfull`,loans:`Loans`,"mini-spinner-text":`Loading loans...`,"no-loans":`No existing loans were found!`,"renew-loan":`Renew loan`},"return-book":{borrower:`Borrower`,"button-refresh-title":`Load loans of {{name}} again`,"error-no-existing-loans-body":`No existing loans were found!`,"error-no-existing-loans-summary":`No existing loans`,"info-existing-loans-body":`Existing loan was found, it can be returned!`,"info-existing-loans-summary":`Existing loan was found!`,"mini-spinner-text":`Loading loans...`,submit:`Return book`,"success-body":`The book from {{personName}} was successfully returned.`,"success-summary":`Book returned successfully`,"user-name-unknown":`Unknown`},shelving:{"button-refresh-title":`Load shelving from {{name}} again`},"success-body":`The book lineup for "{{name}}" was successful.`,"success-summary":`Book lineup successful`};function ie(){return d({en:O,de:re},`de`,`en`)}function k(e){return e}const A={handleXhrError(e,t,n,r=`sad`,i=`de`){if(t===`abort`)return;let a,o=_();o.changeLanguage(i),e.responseJSON!==void 0&&e.responseJSON[`hydra:description`]!==void 0?a=e.responseJSON[`hydra:description`]:e.responseJSON!==void 0&&e.responseJSON.detail!==void 0?a=e.responseJSON.detail:(a=t,n&&(a+=` - `+n)),e.status===0&&(a=o.t(`error.connection-to-server-refused`)),b({summary:o.t(`error.summary`),body:a,icon:r,type:`danger`}),this.sendSetPropertyEvent!==void 0&&this.sendSetPropertyEvent(`analytics-event`,{category:`XhrError`,action:a})},handleFetchError:async function(e,t=``,n=`sad`,r=`de`){if(e.name===`AbortError`)return;let i,a=_();a.changeLanguage(r);try{await e.json().then(t=>{i=t[`hydra:description`]===void 0?t.detail===void 0?e.statusText:t.detail:t[`hydra:description`]}).catch(()=>{i=e.statusText===void 0?e:e.statusText})}catch{e.name===`TypeError`&&(i=e.message===``?a.t(`error.connection-to-server-refused`):e.message)}b({summary:t===``?a.t(`error.summary`):t,body:i,icon:n,type:`danger`}),this.sendSetPropertyEvent!==void 0&&this.sendSetPropertyEvent(`analytics-event`,{category:`FetchError`,action:t===``?i:t+`: `+i})}};var ae=class e extends v{constructor(){super(),Object.assign(e.prototype,A)}_(e){return this.shadowRoot===null?this.querySelector(e):this.shadowRoot.querySelector(e)}hasLibraryPermissions(){return!this.auth.person||!Array.isArray(this.auth.person.roles)?!1:this.auth.person.roles.indexOf(`ROLE_LIBRARY_MANAGER`)!==-1}_updateAuth(){this._loginStatus=this.auth[`login-status`];let e=[this.isLoggedIn(),this.isLoading()];this._loginState.toString()!==e.toString()&&this.requestUpdate(),this._loginState=e,this.isLoggedIn()&&!this._loginCalled&&(this._loginCalled=!0,this.loginCallback())}update(e){e.forEach((e,t)=>{switch(t){case`auth`:this._updateAuth();break}}),super.update(e)}connectedCallback(){super.connectedCallback(),this._loginStatus=``,this._loginState=[],this._loginCalled=!1}isLoggedIn(){return this.auth.person!==void 0&&this.auth.person!==null}isLoading(){return this._loginStatus===`logged-out`?!1:!this.isLoggedIn()&&this.auth.token!==void 0}loginCallback(){}getOrganization(){let e=this._(`dbp-library-select`);if(e){let t=e.getAttribute(`data-object`);if(t!==null)return JSON.parse(t)}return null}getOrganizationCode(){let e=this.getOrganization();return e===null?``:e.name}},j=te((e,t)=>{ /*! * jQuery JavaScript Library v3.7.1 * https://jquery.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2023-08-28T13:37Z */ (function(e,n){typeof t==`object`&&typeof t.exports==`object`?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw Error(`jQuery requires a window with a document`);return n(e)}:n(e)})(typeof window<`u`?window:e,function(e,t){var n=[],r=Object.getPrototypeOf,i=n.slice,a=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},o=n.push,s=n.indexOf,c={},l=c.toString,u=c.hasOwnProperty,d=u.toString,f=d.call(Object),p={},m=function(e){return typeof e==`function`&&typeof e.nodeType!=`number`&&typeof e.item!=`function`},h=function(e){return e!=null&&e===e.window},g=e.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function v(e,t,n){n||=g;var r,i,a=n.createElement(`script`);if(a.text=e,t)for(r in _)i=t[r]||t.getAttribute&&t.getAttribute(r),i&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}function y(e){return e==null?e+``:typeof e==`object`||typeof e==`function`?c[l.call(e)]||`object`:typeof e}var b=`3.7.1`,x=/HTML$/i,S=function e(t,n){return new e.fn.init(t,n)};S.fn=S.prototype={jquery:b,constructor:S,length:0,toArray:function(){return i.call(this)},get:function(e){return e==null?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:n.sort,splice:n.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,c=arguments.length,l=!1;for(typeof o==`boolean`&&(l=o,o=arguments[s]||{},s++),typeof o!=`object`&&!m(o)&&(o={}),s===c&&(o=this,s--);s<c;s++)if((e=arguments[s])!=null)for(t in e)r=e[t],!(t===`__proto__`||o===r)&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],a=i&&!Array.isArray(n)?[]:!i&&!S.isPlainObject(n)?{}:n,i=!1,o[t]=S.extend(l,a,r)):r!==void 0&&(o[t]=r));return o},S.extend({expando:`jQuery`+(b+Math.random()).replace(/\D/g,``),isReady:!0,error:function(e){throw Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||l.call(e)!==`[object Object]`?!1:(t=r(e),t?(n=u.call(t,`constructor`)&&t.constructor,typeof n==`function`&&d.call(n)===f):!0)},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){v(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},text:function(e){var t,n=``,r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=S.text(t);return i===1||i===11?e.textContent:i===9?e.documentElement.textContent:i===3||i===4?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return e!=null&&(C(Object(e))?S.merge(n,typeof e==`string`?[e]:e):o.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:s.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!x.test(t||n&&n.nodeName||`HTML`)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],a=0,o=e.length,s=!n;a<o;a++)r=!t(e[a],a),r!==s&&i.push(e[a]);return i},map:function(e,t,n){var r,i,o=0,s=[];if(C(e))for(r=e.length;o<r;o++)i=t(e[o],o,n),i!=null&&s.push(i);else for(o in e)i=t(e[o],o,n),i!=null&&s.push(i);return a(s)},guid:1,support:p}),typeof Symbol==`function`&&(S.fn[Symbol.iterator]=n[Symbol.iterator]),S.each(`Boolean Number String Function Array Date RegExp Object Error Symbol`.split(` `),function(e,t){c[`[object `+t+`]`]=t.toLowerCase()});function C(e){var t=!!e&&`length`in e&&e.length,n=y(e);return m(e)||h(e)?!1:n===`array`||t===0||typeof t==`number`&&t>0&&t-1 in e}function w(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=n.pop,ee=n.sort,te=n.splice,E=`[\\x20\\t\\r\\n\\f]`,D=RegExp(`^`+E+`+|((?:^|[^\\\\])(?:\\\\.)*)`+E+`+$`,`g`);S.contains=function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))};var ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function re(e,t){return t?e===`\0`?`�`:e.slice(0,-1)+`\\`+e.charCodeAt(e.length-1).toString(16)+` `:`\\`+e}S.escapeSelector=function(e){return(e+``).replace(ne,re)};var O=g,ie=o;(function(){var t,r,a,o,c,l=ie,d,f,m,h,g,_=S.expando,v=0,y=0,b=he(),x=he(),C=he(),ne=he(),re=function(e,t){return e===t&&(c=!0),0},k=`checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped`,A=`(?:\\\\[\\da-fA-F]{1,6}`+E+`?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+`,ae=`\\[`+E+`*(`+A+`)(?:`+E+`*([*^$|!~]?=)`+E+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+A+`))|)`+E+`*\\]`,j=`:(`+A+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ae+`)*)|.*)\\)|)`,oe=RegExp(E+`+`,`g`),se=RegExp(`^`+E+`*,`+E+`*`),ce=RegExp(`^`+E+`*([>+~]|`+E+`)`+E+`*`),le=RegExp(E+`|>`),ue=new RegExp(j),de=RegExp(`^`+A+`$`),M={ID:RegExp(`^#(`+A+`)`),CLASS:RegExp(`^\\.(`+A+`)`),TAG:RegExp(`^(`+A+`|[*])`),ATTR:RegExp(`^`+ae),PSEUDO:RegExp(`^`+j),CHILD:RegExp(`^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(`+E+`*(even|odd|(([+-]|)(\\d*)n|)`+E+`*(?:([+-]|)`+E+`*(\\d+)|))`+E+`*\\)|)`,`i`),bool:RegExp(`^(?:`+k+`)$`,`i`),needsContext:RegExp(`^`+E+`*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(`+E+`*((?:-\\d)?\\d*)`+E+`*\\)|)(?=[^-]|$)`,`i`)},N=/^(?:input|select|textarea|button)$/i,fe=/^h\d$/i,P=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,F=/[+~]/,I=RegExp(`\\\\[\\da-fA-F]{1,6}`+E+`?|\\\\([^\\r\\n\\f])`,`g`),L=function(e,t){var n=`0x`+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320))},pe=function(){W()},me=G(function(e){return e.disabled===!0&&w(e,`fieldset`)},{dir:`parentNode`,next:`legend`});function R(){try{return d.activeElement}catch{}}try{l.apply(n=i.call(O.childNodes),O.childNodes),n[O.childNodes.length].nodeType}catch{l={apply:function(e,t){ie.apply(e,i.call(t))},call:function(e){ie.apply(e,i.call(arguments,1))}}}function z(e,t,n,r){var i,a,o,s,c,u,f,g=t&&t.ownerDocument,v=t?t.nodeType:9;if(n||=[],typeof e!=`string`||!e||v!==1&&v!==9&&v!==11)return n;if(!r&&(W(t),t||=d,m)){if(v!==11&&(c=P.exec(e))){if(i=c[1]){if(v===9)if(o=t.getElementById(i)){if(o.id===i)return l.call(n,o),n}else return n;else if(g&&(o=g.getElementById(i))&&z.contains(t,o)&&o.id===i)return l.call(n,o),n}else if(c[2])return l.apply(n,t.getElementsByTagName(e)),n;else if((i=c[3])&&t.getElementsByClassName)return l.apply(n,t.getElementsByClassName(i)),n}if(!ne[e+` `]&&(!h||!h.test(e))){if(f=e,g=t,v===1&&(le.test(e)||ce.test(e))){for(g=F.test(e)&&ve(t.parentNode)||t,(g!=t||!p.scope)&&((s=t.getAttribute(`id`))?s=S.escapeSelector(s):t.setAttribute(`id`,s=_)),u=be(e),a=u.length;a--;)u[a]=(s?`#`+s:`:scope`)+` `+xe(u[a]);f=u.join(`,`)}try{return l.apply(n,g.querySelectorAll(f)),n}catch{ne(e,!0)}finally{s===_&&t.removeAttribute(`id`)}}}return Ee(e.replace(D,`$1`),t,n,r)}function he(){var e=[];function t(n,i){return e.push(n+` `)>r.cacheLength&&delete t[e.shift()],t[n+` `]=i}return t}function B(e){return e[_]=!0,e}function V(e){var t=d.createElement(`fieldset`);try{return!!e(t)}catch{return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ge(e){return function(t){return w(t,`input`)&&t.type===e}}function _e(e){return function(t){return(w(t,`input`)||w(t,`button`))&&t.type===e}}function H(e){return function(t){return`form`in t?t.parentNode&&t.disabled===!1?`label`in t?`label`in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&me(t)===e:t.disabled===e:`label`in t?t.disabled===e:!1}}function U(e){return B(function(t){return t=+t,B(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function ve(e){return e&&e.getElementsByTagName!==void 0&&e}function W(e){var t,n=e?e.ownerDocument||e:O;return n==d||n.nodeType!==9||!n.documentElement?d:(d=n,f=d.documentElement,m=!S.isXMLDoc(d),g=f.matches||f.webkitMatchesSelector||f.msMatchesSelector,f.msMatchesSelector&&O!=d&&(t=d.defaultView)&&t.top!==t&&t.addEventListener(`unload`,pe),p.getById=V(function(e){return f.appendChild(e).id=S.expando,!d.getElementsByName||!d.getElementsByName(S.expando).length}),p.disconnectedMatch=V(function(e){return g.call(e,`*`)}),p.scope=V(function(){return d.querySelectorAll(`:scope`)}),p.cssHas=V(function(){try{return d.querySelector(`:has(*,:jqfake)`),!1}catch{return!0}}),p.getById?(r.filter.ID=function(e){var t=e.replace(I,L);return function(e){return e.getAttribute(`id`)===t}},r.find.ID=function(e,t){if(t.getElementById!==void 0&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(I,L);return function(e){var n=e.getAttributeNode!==void 0&&e.getAttributeNode(`id`);return n&&n.value===t}},r.find.ID=function(e,t){if(t.getElementById!==void 0&&m){var n,r,i,a=t.getElementById(e);if(a){if(n=a.getAttributeNode(`id`),n&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if(n=a.getAttributeNode(`id`),n&&n.value===e)return[a]}return[]}}),r.find.TAG=function(e,t){return t.getElementsByTagName===void 0?t.querySelectorAll(e):t.getElementsByTagName(e)},r.find.CLASS=function(e,t){if(t.getElementsByClassName!==void 0&&m)return t.getElementsByClassName(e)},h=[],V(function(e){var t;f.appendChild(e).innerHTML=`<a id='`+_+`' href='' disabled='disabled'></a><select id='`+_+`-\r\\' disabled='disabled'><option selected=''></option></select>`,e.querySelectorAll(`[selected]`).length||h.push(`\\[`+E+`*(?:value|`+k+`)`),e.querySelectorAll(`[id~=`+_+`-]`).length||h.push(`~=`),e.querySelectorAll(`a#`+_+`+*`).length||h.push(`.#.+[+~]`),e.querySelectorAll(`:checked`).length||h.push(`:checked`),t=d.createElement(`input`),t.setAttribute(`type`,`hidden`),e.appendChild(t).setAttribute(`name`,`D`),f.appendChild(e).disabled=!0,e.querySelectorAll(`:disabled`).length!==2&&h.push(`:enabled`,`:disabled`),t=d.createElement(`input`),t.setAttribute(`name`,``),e.appendChild(t),e.querySelectorAll(`[name='']`).length||h.push(`\\[`+E+`*name`+E+`*=`+E+`*(?:''|"")`)}),p.cssHas||h.push(`:has`),h=h.length&&new RegExp(h.join(`|`)),re=function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,n&1||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===d||e.ownerDocument==O&&z.contains(O,e)?-1:t===d||t.ownerDocument==O&&z.contains(O,t)?1:o?s.call(o,e)-s.call(o,t):0:n&4?-1:1)},d)}for(t in z.matches=function(e,t){return z(e,null,null,t)},z.matchesSelector=function(e,t){if(W(e),m&&!ne[t+` `]&&(!h||!h.test(t)))try{var n=g.call(e,t);if(n||p.disconnectedMatch||e.document&&e.document.nodeType!==11)return n}catch{ne(t,!0)}return z(t,d,null,[e]).length>0},z.contains=function(e,t){return(e.ownerDocument||e)!=d&&W(e),S.contains(e,t)},z.attr=function(e,t){(e.ownerDocument||e)!=d&&W(e);var n=r.attrHandle[t.toLowerCase()],i=n&&u.call(r.attrHandle,t.toLowerCase())?n(e,t,!m):void 0;return i===void 0?e.getAttribute(t):i},z.error=function(e){throw Error(`Syntax error, unrecognized expression: `+e)},S.uniqueSort=function(e){var t,n=[],r=0,a=0;if(c=!p.sortStable,o=!p.sortStable&&i.call(e,0),ee.call(e,re),c){for(;t=e[a++];)t===e[a]&&(r=n.push(a));for(;r--;)te.call(e,n[r],1)}return o=null,e},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(i.apply(this)))},r=S.expr={cacheLength:50,createPseudo:B,match:M,attrHandle:{},find:{},relative:{">":{dir:`parentNode`,first:!0}," ":{dir:`parentNode`},"+":{dir:`previousSibling`,first:!0},"~":{dir:`previousSibling`}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(I,L),e[3]=(e[3]||e[4]||e[5]||``).replace(I,L),e[2]===`~=`&&(e[3]=` `+e[3]+` `),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)===`nth`?(e[3]||z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]===`even`||e[3]===`odd`)),e[5]=+(e[7]+e[8]||e[3]===`odd`)):e[3]&&z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return M.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||``:n&&ue.test(n)&&(t=be(n,!0))&&(t=n.indexOf(`)`,n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(I,L).toLowerCase();return e===`*`?function(){return!0}:function(e){return w(e,t)}},CLASS:function(e){var t=b[e+` `];return t||(t=RegExp(`(^|`+E+`)`+e+`(`+E+`|$)`))&&b(e,function(e){return t.test(typeof e.className==`string`&&e.className||e.getAttribute!==void 0&&e.getAttribute(`class`)||``)})},ATTR:function(e,t,n){return function(r){var i=z.attr(r,e);return i==null?t===`!=`:t?(i+=``,t===`=`?i===n:t===`!=`?i!==n:t===`^=`?n&&i.indexOf(n)===0:t===`*=`?n&&i.indexOf(n)>-1:t===`$=`?n&&i.slice(-n.length)===n:t===`~=`?(` `+i.replace(oe,` `)+` `).indexOf(n)>-1:t===`|=`?i===n||i.slice(0,n.length+1)===n+`-`:!1):!0}},CHILD:function(e,t,n,r,i){var a=e.slice(0,3)!==`nth`,o=e.slice(-4)!==`last`,s=t===`of-type`;return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,f,p,m=a===o?`previousSibling`:`nextSibling`,h=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!c&&!s,b=!1;if(h){if(a){for(;m;){for(d=t;d=d[m];)if(s?w(d,g):d.nodeType===1)return!1;p=m=e===`only`&&!p&&`nextSibling`}return!0}if(p=[o?h.firstChild:h.lastChild],o&&y){for(u=h[_]||(h[_]={}),l=u[e]||[],f=l[0]===v&&l[1],b=f&&l[2],d=f&&h.childNodes[f];d=++f&&d&&d[m]||(b=f=0)||p.pop();)if(d.nodeType===1&&++b&&d===t){u[e]=[v,f,b];break}}else if(y&&(u=t[_]||(t[_]={}),l=u[e]||[],f=l[0]===v&&l[1],b=f),b===!1)for(;(d=++f&&d&&d[m]||(b=f=0)||p.pop())&&!((s?w(d,g):d.nodeType===1)&&++b&&(y&&(u=d[_]||(d[_]={}),u[e]=[v,b]),d===t)););return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||z.error(`unsupported pseudo: `+e);return i[_]?i(t):i.length>1?(n=[e,e,``,t],r.setFilters.hasOwnProperty(e.toLowerCase())?B(function(e,n){for(var r,a=i(e,t),o=a.length;o--;)r=s.call(e,a[o]),e[r]=!(n[r]=a[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:B(function(e){var t=[],n=[],r=Te(e.replace(D,`$1`));return r[_]?B(function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:B(function(e){return function(t){return z(e,t).length>0}}),contains:B(function(e){return e=e.replace(I,L),function(t){return(t.textContent||S.text(t)).indexOf(e)>-1}}),lang:B(function(e){return de.test(e||``)||z.error(`unsupported lang: `+e),e=e.replace(I,L).toLowerCase(),function(t){var n;do if(n=m?t.lang:t.getAttribute(`xml:lang`)||t.getAttribute(`lang`))return n=n.toLowerCase(),n===e||n.indexOf(e+`-`)===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===R()&&d.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:H(!1),disabled:H(!0),checked:function(e){return w(e,`input`)&&!!e.checked||w(e,`option`)&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return fe.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return w(e,`input`)&&e.type===`button`||w(e,`button`)},text:function(e){var t;return w(e,`input`)&&e.type===`text`&&((t=e.getAttribute(`type`))==null||t.toLowerCase()===`text`)},first:U(function(){return[0]}),last:U(function(e,t){return[t-1]}),eq:U(function(e,t,n){return[n<0?n+t:n]}),even:U(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:U(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:U(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:U(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ge(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=_e(t);function ye(){}ye.prototype=r.filters=r.pseudos,r.setFilters=new ye;function be(e,t){var n,i,a,o,s,c,l,u=x[e+` `];if(u)return t?0:u.slice(0);for(s=e,c=[],l=r.preFilter;s;){for(o in(!n||(i=se.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),c.push(a=[])),n=!1,(i=ce.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(D,` `)}),s=s.slice(n.length)),r.filter)(i=M[o].exec(s))&&(!l[o]||(i=l[o](i)))&&(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?z.error(e):x(e,c).slice(0)}function xe(e){for(var t=0,n=e.length,r=``;t<n;t++)r+=e[t].value;return r}function G(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&a===`parentNode`,s=y++;return t.first?function(t,n,i){for(;t=t[r];)if(t.nodeType===1||o)return e(t,n,i);return!1}:function(t,n,c){var l,u,d=[v,s];if(c){for(;t=t[r];)if((t.nodeType===1||o)&&e(t,n,c))return!0}else for(;t=t[r];)if(t.nodeType===1||o){if(u=t[_]||(t[_]={}),i&&w(t,i))t=t[r]||t;else if((l=u[a])&&l[0]===v&&l[1]===s)return d[2]=l[2];else if(u[a]=d,d[2]=e(t,n,c))return!0}return!1}}function K(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function q(e,t,n){for(var r=0,i=t.length;r<i;r++)z(e,t[r],n);return n}function J(e,t,n,r,i){for(var a,o=[],s=0,c=e.length,l=t!=null;s<c;s++)(a=e[s])&&(!n||n(a,r,i))&&(o.push(a),l&&t.push(s));return o}function Se(e,t,n,r,i,a){return r&&!r[_]&&(r=Se(r)),i&&!i[_]&&(i=Se(i,a)),B(function(a,o,c,u){var d,f,p,m,h=[],g=[],_=o.length,v=a||q(t||`*`,c.nodeType?[c]:c,[]),y=e&&(a||!t)?J(v,h,e,c,u):v;if(n?(m=i||(a?e:_||r)?[]:o,n(y,m,c,u)):m=y,r)for(d=J(m,g),r(d,[],c,u),f=d.length;f--;)(p=d[f])&&(m[g[f]]=!(y[g[f]]=p));if(a){if(i||e){if(i){for(d=[],f=m.length;f--;)(p=m[f])&&d.push(y[f]=p);i(null,m=[],d,u)}for(f=m.length;f--;)(p=m[f])&&(d=i?s.call(a,p):h[f])>-1&&(a[d]=!(o[d]=p))}}else m=J(m===o?m.splice(_,m.length):m),i?i(null,o,m,u):l.apply(o,m)})}function Ce(e){for(var t,n,i,o=e.length,c=r.relative[e[0].type],l=c||r.relative[` `],u=c?1:0,d=G(function(e){return e===t},l,!0),f=G(function(e){return s.call(t,e)>-1},l,!0),p=[function(e,n,r){var i=!c&&(r||n!=a)||((t=n).nodeType?d(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[G(K(p),n)];else{if(n=r.filter[e[u].type].apply(null,e[u].matches),n[_]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return Se(u>1&&K(p),u>1&&xe(e.slice(0,u-1).concat({value:e[u-2].type===` `?`*`:``})).replace(D,`$1`),n,u<i&&Ce(e.slice(u,i)),i<o&&Ce(e=e.slice(i)),i<o&&xe(e))}p.push(n)}return K(p)}function we(e,t){var n=t.length>0,i=e.length>0,o=function(o,s,c,u,f){var p,h,g,_=0,y=`0`,b=o&&[],x=[],C=a,w=o||i&&r.find.TAG(`*`,f),ee=v+=C==null?1:Math.random()||.1,te=w.length;for(f&&(a=s==d||s||f);y!==te&&(p=w[y])!=null;y++){if(i&&p){for(h=0,!s&&p.ownerDocument!=d&&(W(p),c=!m);g=e[h++];)if(g(p,s||d,c)){l.call(u,p);break}f&&(v=ee)}n&&((p=!g&&p)&&_--,o&&b.push(p))}if(_+=y,n&&y!==_){for(h=0;g=t[h++];)g(b,x,s,c);if(o){if(_>0)for(;y--;)b[y]||x[y]||(x[y]=T.call(u));x=J(x)}l.apply(u,x),f&&!o&&x.length>0&&_+t.length>1&&S.uniqueSort(u)}return f&&(v=ee,a=C),b};return n?B(o):o}function Te(e,t){var n,r=[],i=[],a=C[e+` `];if(!a){for(t||=be(e),n=t.length;n--;)a=Ce(t[n]),a[_]?r.push(a):i.push(a);a=C(e,we(i,r)),a.selector=e}return a}function Ee(e,t,n,i){var a,o,s,c,u,d=typeof e==`function`&&e,f=!i&&be(e=d.selector||e);if(n||=[],f.length===1){if(o=f[0]=f[0].slice(0),o.length>2&&(s=o[0]).type===`ID`&&t.nodeType===9&&m&&r.relative[o[1].type]){if(t=(r.find.ID(s.matches[0].replace(I,L),t)||[])[0],t)d&&(t=t.parentNode);else return n;e=e.slice(o.shift().value.length)}for(a=M.needsContext.test(e)?0:o.length;a--&&(s=o[a],!r.relative[c=s.type]);)if((u=r.find[c])&&(i=u(s.matches[0].replace(I,L),F.test(o[0].type)&&ve(t.parentNode)||t))){if(o.splice(a,1),e=i.length&&xe(o),!e)return l.apply(n,i),n;break}}return(d||Te(e,f))(i,t,!m,n,!t||F.test(e)&&ve(t.parentNode)||t),n}p.sortStable=_.split(``).sort(re).join(``)===_,W(),p.sortDetached=V(function(e){return e.compareDocumentPosition(d.createElement(`fieldset`))&1}),S.find=z,S.expr[`:`]=S.expr.pseudos,S.unique=S.uniqueSort,z.compile=Te,z.select=Ee,z.setDocument=W,z.tokenize=be,z.escape=S.escapeSelector,z.getText=S.text,z.isXML=S.isXMLDoc,z.selectors=S.expr,z.support=S.support,z.uniqueSort=S.uniqueSort})();var k=function(e,t,n){for(var r=[],i=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(i&&S(e).is(n))break;r.push(e)}return r},A=function(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n},ae=S.expr.match.needsContext,j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function oe(e,t,n){return m(t)?S.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?S.grep(e,function(e){return e===t!==n}):typeof t==`string`?S.filter(t,e,n):S.grep(e,function(e){return s.call(t,e)>-1!==n})}S.filter=function(e,t,n){var r=t[0];return n&&(e=`:not(`+e+`)`),t.length===1&&r.nodeType===1?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return e.nodeType===1}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if(typeof e!=`string`)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(oe(this,e||[],!1))},not:function(e){return this.pushStack(oe(this,e||[],!0))},is:function(e){return!!oe(this,typeof e==`string`&&ae.test(e)?S(e):e||[],!1).length}});var se,ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,le=S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n||=se,typeof e==`string`)if(r=e[0]===`<`&&e[e.length-1]===`>`&&e.length>=3?[null,e,null]:ce.exec(e),r&&(r[1]||!t))if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),j.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}else return i=g.getElementById(r[2]),i&&(this[0]=i,this.length=1),this;else if(!t||t.jquery)return(t||n).find(e);else return this.constructor(t).find(e);else if(e.nodeType)return this[0]=e,this.length=1,this;else if(m(e))return n.ready===void 0?e(S):n.ready(e);return S.makeArray(e,this)};le.prototype=S.fn,se=S(g);var ue=/^(?:parents|prev(?:Until|All))/,de={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,a=[],o=typeof e!=`string`&&S(e);if(!ae.test(e)){for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:n.nodeType===1&&S.find.matchesSelector(n,e))){a.push(n);break}}return this.pushStack(a.length>1?S.uniqueSort(a):a)},index:function(e){return e?typeof e==`string`?s.call(S(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function M(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}S.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return k(e,`parentNode`)},parentsUntil:function(e,t,n){return k(e,`parentNode`,n)},next:function(e){return M(e,`nextSibling`)},prev:function(e){return M(e,`previousSibling`)},nextAll:function(e){return k(e,`nextSibling`)},prevAll:function(e){return k(e,`previousSibling`)},nextUntil:function(e,t,n){return k(e,`nextSibling`,n)},prevUntil:function(e,t,n){return k(e,`previousSibling`,n)},siblings:function(e){return A((e.parentNode||{}).firstChild,e)},children:function(e){return A(e.firstChild)},contents:function(e){return e.contentDocument!=null&&r(e.contentDocument)?e.contentDocument:(w(e,`template`)&&(e=e.content||e),S.merge([],e.childNodes))}},function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return e.slice(-5)!==`Until`&&(r=n),r&&typeof r==`string`&&(i=S.filter(r,i)),this.length>1&&(de[e]||S.uniqueSort(i),ue.test(e)&&i.reverse()),this.pushStack(i)}});var N=/[^\x20\t\r\n\f]+/g;function fe(e){var t={};return S.each(e.match(N)||[],function(e,n){t[n]=!0}),t}S.Callbacks=function(e){e=typeof e==`string`?fe(e):S.extend({},e);var t,n,r,i,a=[],o=[],s=-1,c=function(){for(i||=e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)a[s].apply(n[0],n[1])===!1&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:``)},l={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),(function t(n){S.each(n,function(n,r){m(r)?(!e.unique||!l.has(r))&&a.push(r):r&&r.length&&y(r)!==`string`&&t(r)})})(arguments),n&&!t&&c()),this},remove:function(){return S.each(arguments,function(e,t){for(var n;(n=S.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?S.inArray(e,a)>-1:a.length>0},empty:function(){return a&&=[],this},disable:function(){return i=o=[],a=n=``,this},disabled:function(){return!a},lock:function(){return i=o=[],!n&&!t&&(a=n=``),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n||=[],n=[e,n.slice?n.slice():n],o.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l};function P(e){return e}function F(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.extend({Deferred:function(t){var n=[[`notify`,`progress`,S.Callbacks(`memory`),S.Callbacks(`memory`),2],[`resolve`,`done`,S.Callbacks(`once memory`),S.Callbacks(`once memory`),0,`resolved`],[`reject`,`fail`,S.Callbacks(`once memory`),S.Callbacks(`once memory`),1,`rejected`]],r=`pending`,i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return S.Deferred(function(t){S.each(n,function(n,r){var i=m(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&m(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+`With`](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var a=0;function o(t,n,r,i){return function(){var s=this,c=arguments,l=function(){var e,l;if(!(t<a)){if(e=r.apply(s,c),e===n.promise())throw TypeError(`Thenable self-resolution`);l=e&&(typeof e==`object`||typeof e==`function`)&&e.then,m(l)?i?l.call(e,o(a,n,P,i),o(a,n,F,i)):(a++,l.call(e,o(a,n,P,i),o(a,n,F,i),o(a,n,P,n.notifyWith))):(r!==P&&(s=void 0,c=[e]),(i||n.resolveWith)(s,c))}},u=i?l:function(){try{l()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,u.error),t+1>=a&&(r!==F&&(s=void 0,c=[e]),n.rejectWith(s,c))}};t?u():(S.Deferred.getErrorHook?u.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(u.error=S.Deferred.getStackHook()),e.setTimeout(u))}}return S.Deferred(function(e){n[0][3].add(o(0,e,m(i)?i:P,e.notifyWith)),n[1][3].add(o(0,e,m(t)?t:P)),n[2][3].add(o(0,e,m(r)?r:F))}).promise()},promise:function(e){return e==null?i:S.extend(e,i)}},a={};return S.each(n,function(e,t){var o=t[2],s=t[5];i[t[1]]=o.add,s&&o.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),o.add(t[3].fire),a[t[0]]=function(){return a[t[0]+`With`](this===a?void 0:this,arguments),this},a[t[0]+`With`]=o.fireWith}),i.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),a=i.call(arguments),o=S.Deferred(),s=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?i.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(I(e,o.done(s(n)).resolve,o.reject,!t),o.state()===`pending`||m(a[n]&&a[n].then)))return o.then();for(;n--;)I(a[n],s(n),o.reject);return o.promise()}});var L=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&L.test(t.name)&&e.console.warn(`jQuery.Deferred exception: `+t.message,t.stack,n)},S.readyException=function(t){e.setTimeout(function(){throw t})};var pe=S.Deferred();S.fn.ready=function(e){return pe.then(e).catch(function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--S.readyWait:S.isReady)||(S.isReady=!0,!(e!==!0&&--S.readyWait>0)&&pe.resolveWith(g,[S]))}}),S.ready.then=pe.then;function me(){g.removeEventListener(`DOMContentLoaded`,me),e.removeEventListener(`load`,me),S.ready()}g.readyState===`complete`||g.readyState!==`loading`&&!g.documentElement.doScroll?e.setTimeout(S.ready):(g.addEventListener(`DOMContentLoaded`,me),e.addEventListener(`load`,me));var R=function e(t,n,r,i,a,o,s){var c=0,l=t.length,u=r==null;if(y(r)===`object`)for(c in a=!0,r)e(t,n,c,r[c],!0,o,s);else if(i!==void 0&&(a=!0,m(i)||(s=!0),u&&(s?(n.call(t,i),n=null):(u=n,n=function(e,t,n){return u.call(S(e),n)})),n))for(;c<l;c++)n(t[c],r,s?i:i.call(t[c],c,n(t[c],r)));return a?t:u?n.call(t):l?n(t[0],r):o},z=/^-ms-/,he=/-([a-z])/g;function B(e,t){return t.toUpperCase()}function V(e){return e.replace(z,`ms-`).replace(he,B)}var ge=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function _e(){this.expando=S.expando+ _e.uid++}_e.uid=1,_e.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ge(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if(typeof t==`string`)i[V(t)]=n;else for(r in t)i[V(r)]=t[r];return i},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][V(t)]},access:function(e,t,n){return t===void 0||t&&typeof t==`string`&&n===void 0?this.get(e,t):(this.set(e,t,n),n===void 0?t:n)},remove:function(e,t){var n,r=e[this.expando];if(r!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t.map(V):(t=V(t),t=(t in r)?[t]:t.match(N)||[]),n=t.length;n--;)delete r[t[n]];(t===void 0||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==void 0&&!S.isEmptyObject(t)}};var H=new _e,U=new _e,ve=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,W=/[A-Z]/g;function ye(e){return e===`true`?!0:e===`false`?!1:e===`null`?null:e===+e+``?+e:ve.test(e)?JSON.parse(e):e}function be(e,t,n){var r;if(n===void 0&&e.nodeType===1)if(r=`data-`+t.replace(W,`-$&`).toLowerCase(),n=e.getAttribute(r),typeof n==`string`){try{n=ye(n)}catch{}U.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return U.hasData(e)||H.hasData(e)},data:function(e,t,n){return U.access(e,t,n)},removeData:function(e,t){U.remove(e,t)},_data:function(e,t,n){return H.access(e,t,n)},_removeData:function(e,t){H.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(e===void 0){if(this.length&&(i=U.get(a),a.nodeType===1&&!H.get(a,`hasDataAttrs`))){for(n=o.length;n--;)o[n]&&(r=o[n].name,r.indexOf(`data-`)===0&&(r=V(r.slice(5)),be(a,r,i[r])));H.set(a,`hasDataAttrs`,!0)}return i}return typeof e==`object`?this.each(function(){U.set(this,e)}):R(this,function(t){var n;if(a&&t===void 0)return n=U.get(a,e),n!==void 0||(n=be(a,e),n!==void 0)?n:void 0;this.each(function(){U.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){U.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||`fx`)+`queue`,r=H.get(e,t),n&&(!r||Array.isArray(n)?r=H.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t||=`fx`;var n=S.queue(e,t),r=n.length,i=n.shift(),a=S._queueHooks(e,t);i===`inprogress`&&(i=n.shift(),r--),i&&(t===`fx`&&n.unshift(`inprogress`),delete a.stop,i.call(e,function(){S.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+`queueHooks`;return H.get(e,n)||H.access(e,n,{empty:S.Callbacks(`once memory`).add(function(){H.remove(e,[t+`queue`,n])})})}}),S.fn.extend({queue:function(e,t){var n=2;return typeof e!=`string`&&(t=e,e=`fx`,n--),arguments.length<n?S.queue(this[0],e):t===void 0?this:this.each(function(){var n=S.queue(this,e,t);S._queueHooks(this,e),e===`fx`&&n[0]!==`inprogress`&&S.dequeue(this,e)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||`fx`,[])},promise:function(e,t){var n,r=1,i=S.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for(typeof e!=`string`&&(t=e,e=void 0),e||=`fx`;o--;)n=H.get(a[o],e+`queueHooks`),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var xe=`[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)`,G=RegExp(`^(?:([+-])=|)(`+xe+`)([a-z%]*)$`,`i`),K=[`Top`,`Right`,`Bottom`,`Left`],q=g.documentElement,J=function(e){return S.contains(e.ownerDocument,e)},Se={composed:!0};q.getRootNode&&(J=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(Se)===e.ownerDocument});var Ce=function(e,t){return e=t||e,e.style.display===`none`||e.style.display===``&&J(e)&&S.css(e,`display`)===`none`};function we(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,``)},c=s(),l=n&&n[3]||(S.cssNumber[t]?``:`px`),u=e.nodeType&&(S.cssNumber[t]||l!==`px`&&+c)&&G.exec(S.css(e,t));if(u&&u[3]!==l){for(c/=2,l||=u[3],u=+c||1;o--;)S.style(e,t,u+l),(1-a)*(1-(a=s()/c||.5))<=0&&(o=0),u/=a;u*=2,S.style(e,t,u+l),n||=[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var Te={};function Ee(e){var t,n=e.ownerDocument,r=e.nodeName,i=Te[r];return i||(t=n.body.appendChild(n.createElement(r)),i=S.css(t,`display`),t.parentNode.removeChild(t),i===`none`&&(i=`block`),Te[r]=i,i)}function De(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)r=e[a],r.style&&(n=r.style.display,t?(n===`none`&&(i[a]=H.get(r,`display`)||null,i[a]||(r.style.display=``)),r.style.display===``&&Ce(r)&&(i[a]=Ee(r))):n!==`none`&&(i[a]=`none`,H.set(r,`display`,n)));for(a=0;a<o;a++)i[a]!=null&&(e[a].style.display=i[a]);return e}S.fn.extend({show:function(){return De(this,!0)},hide:function(){return De(this)},toggle:function(e){return typeof e==`boolean`?e?this.show():this.hide():this.each(function(){Ce(this)?S(this).show():S(this).hide()})}});var Oe=/^(?:checkbox|radio)$/i,ke=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ae=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=g.createDocumentFragment().appendChild(g.createElement(`div`)),t=g.createElement(`input`);t.setAttribute(`type`,`radio`),t.setAttribute(`checked`,`checked`),t.setAttribute(`name`,`t`),e.appendChild(t),p.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML=`<textarea>x</textarea>`,p.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML=`<option></option>`,p.option=!!e.lastChild})();var Y={thead:[1,`<table>`,`</table>`],col:[2,`<table><colgroup>`,`</colgroup></tabl