PageSourceSearch

https://www.hiscox.co.uk/sites/default/files/js/js_jNtRy2ZZzS3pNnu…1PGEdJRtzmOb6RUqBJBRZ7tPloTW4mv-xb8zQ8TT0hl

js hiscox.co.uk collected 2026-09-24 17:15:41 UTC 407,135 bytes, 326 lines download raw bytes

1/* @license MIT https://raw.githubusercontent.com/jquery/jquery/3.7.1/LICENSE.txt */
vendor: 11,348 bytes, lines 2-3
2/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
3!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)}
vendor: 4,763 bytes, line 3
3,I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)}
vendor: 6,770 bytes, line 3
3,input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}
vendor: 6,600 bytes, line 3
3return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;
vendor: 13,727 bytes, line 3
3if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);
vendor: 6,944 bytes, line 3
3n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;
vendor: 25,800 bytes, line 3
3left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);
vendor: 11,581 bytes, line 3
3if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
4;
5/* @license GPL-2.0-or-later https://git.drupalcode.org/project/once/-/raw/v1.0.1/LICENSE.md */
6/*! @drupal/once - v1.0.1 - 2021-06-12 */
7var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}();
8
9;
10/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
11(function(){const settingsElement=document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');window.drupalSettings={};if(settingsElement!==null)window.drupalSettings=JSON.parse(settingsElement.textContent);})();;
12window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i<fragments.length;i++)fragments[i]=Drupal.stringReplace(fragments[i],args,keys.slice(0));}return fragments.join(args[key]);};Drupal.t=function(str,args,options){options=options||{};options.context=options.context||'';if(typeof drupalTranslations!=='undefined'&&drupalTranslations.strings&&drupalTranslations.strings[options.context]&&drupalTranslations.strings[options.context][str])str=drupalTranslations.strings[options.context][str];if(args)str=Drupal.formatString(str,args);return str;};Drupal.url=function(path){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+path;};Drupal.url.toAbsolute=function(url){const urlParsingNode=document.createElement('a');try{url=decodeURIComponent(url);}catch(e){}urlParsingNode.setAttribute('href',url);return urlParsingNode.cloneNode(false).href;};Drupal.url.isLocal=function(url){let absoluteUrl=Drupal.url.toAbsolute(url);let {protocol}=window.location;if(protocol==='http:'&&absoluteUrl.startsWith('https:'))protocol='https:';let baseUrl=`${protocol}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl);}catch(e){}try{baseUrl=decodeURIComponent(baseUrl);}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`);};Drupal.formatPlural=function(count,singular,plural,args,options){args=args||{};args['@count']=count;const pluralDelimiter=drupalSettings.pluralDelimiter;const translations=Drupal.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;
12if(typeof drupalTranslations!=='undefined'&&drupalTranslations.pluralFormula)index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default;else{if(args['@count']!==1)index=1;}return translations[index];};Drupal.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,'/');};Drupal.deprecationError=({message})=>{if(drupalSettings.suppressDeprecationErrors===false&&typeof console!=='undefined'&&console.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(func in Drupal.theme)return Drupal.theme[func](...args);};Drupal.theme.placeholder=function(str){return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;};Drupal.elementIsVisible=function(elem){return !!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};Drupal.elementIsHidden=function(elem){return !Drupal.elementIsVisible(elem);};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);;
13if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);;
14!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.14.1"});
15
16/*!
17 * jQuery UI :data 1.14.1
18 * https://jqueryui.com
19 *
20 * Copyright OpenJS Foundation and other contributors
21 * Released under the MIT license.
22 * https://jquery.org/license
23 */
24!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo(function(n){return function(t){return!!e.data(t,n)}})})});
25
26/*!
27 * jQuery UI Disable Selection 1.14.1
28 * https://jqueryui.com
29 *
30 * Copyright OpenJS Foundation and other contributors
31 * Released under the MIT license.
32 * https://jquery.org/license
33 */
34!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var n});
35
36/*!
37 * jQuery UI Legacy jQuery Core patches 1.14.1
38 * https://jqueryui.com
39 *
40 * Copyright OpenJS Foundation and other contributors
41 * Released under the MIT license.
42 * https://jquery.org/license
43 *
44 */
45!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";e.escapeSelector||(e.escapeSelector=function(e){return CSS.escape(e+"")}),e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter(function(e){return e%2==0}
45)},odd:function(){return this.filter(function(e){return e%2==1})}})});
46
47/*!
48 * jQuery UI Scroll Parent 1.14.1
49 * https://jqueryui.com
50 *
51 * Copyright OpenJS Foundation and other contributors
52 * Released under the MIT license.
53 * https://jquery.org/license
54 */
55!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.scrollParent=function(e){var s=this.css("position"),n="absolute"===s,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==s&&i.length?i:t(this[0].ownerDocument||document)}});
56
57/*!
58 * jQuery UI Unique ID 1.14.1
59 * https://jqueryui.com
60 *
61 * Copyright OpenJS Foundation and other contributors
62 * Released under the MIT license.
63 * https://jquery.org/license
64 */
65!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],i):i(jQuery)}(function(i){"use strict";return i.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&i(this).removeAttr("id")})}});var e});
66
67/*!
68 * jQuery UI Focusable 1.14.1
69 * https://jqueryui.com
70 *
71 * Copyright OpenJS Foundation and other contributors
72 * Released under the MIT license.
73 * https://jquery.org/license
74 */
75!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.focusable=function(t,i){var s,n,u,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=(s=t.parentNode).name,!(!t.href||!n||"map"!==s.nodeName.toLowerCase())&&((u=e("img[usemap='#"+n+"']")).length>0&&u.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(a=!t.disabled)&&(o=e(t).closest("fieldset")[0])&&(a=!o.disabled):a="a"===r&&t.href||i,a&&e(t).is(":visible")&&"visible"===e(t).css("visibility"))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable});
76
77/*!
78 * jQuery UI Keycode 1.14.1
79 * https://jqueryui.com
80 *
81 * Copyright OpenJS Foundation and other contributors
82 * Released under the MIT license.
83 * https://jquery.org/license
84 */
85!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});
86
87!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.plugin={add:function(n,i,t){var u,o=e.ui[n].prototype;for(u in t)o.plugins[u]=o.plugins[u]||[],o.plugins[u].push([i,t[u]])},call:function(e,n,i,t){var u,o=e.plugins[n];if(o&&(t||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(u=0;u<o.length;u++)e.options[o[u][0]]&&o[u][1].apply(e.element,i)}}});
88
89/*!
90 * jQuery UI Widget 1.14.1
91 * https://jqueryui.com
92 *
93 * Copyright OpenJS Foundation and other contributors
94 * Released under the MIT license.
95 * https://jquery.org/license
96 */
97!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";var e,i=0,s=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove");e(i)}),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var u=l+"-"+e;return s||(s=i,i=t.Widget),Array.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr.pseudos[u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,function(t,e){r[t]="function"==typeof e?function(){function s(){return i.prototype[t].apply(this,arguments)}function n(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=s,this._superApply=n,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o}
vendor: 4,414 bytes, line 97
97,t.widget.extend=function(e){for(var i,o,a=n.call(arguments,1),r=0,l=a.length;r<l;r++)for(i in a[r])o=a[r][i],s.call(a[r],i)&&void 0!==o&&(t.isPlainObject(o)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],o):t.widget.extend({},o):e[i]=o);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=n.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,n=t.data(this,s);return"instance"===o?(l=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,r))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,s);e?(e.option(o||{}),e._init&&e._init()):t.data(this,s,new i(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;o<s.length-1;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],s=this;function n(){var i=[];e.element.each(function(e,n){t.map(s.classesElementLookup,function(t){return t}).some(function(t){return t.is(n)})||i.push(n)}),s._on(t(i),{remove:"_untrackClassesElement"})}function o(o,a){var r,l;for(l=0;l<o.length;l++)r=s.classesElementLookup[o[l]]||t(),e.add?(n(),r=t(t.uniqueSort(r.get().concat(e.element.get())))):r=t(r.not(e.element).get()),s.classesElementLookup[o[l]]=r,i.push(o[l]),a&&e.classes[o[l]]&&i.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))}),this._off(t(e.target))}
vendor: 9,887 bytes, lines 97-137
97,_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,h=l[2];h?n.on(u,h,r):i.on(u,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!("function"==typeof a&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){var a;"string"==typeof n&&(n={effect:n});var r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})?n={duration:n}:!0===n&&(n={}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget});
98
99/*!
100 * jQuery UI Labels 1.14.1
101 * https://jqueryui.com
102 *
103 * Copyright OpenJS Foundation and other contributors
104 * Released under the MIT license.
105 * https://jquery.org/license
106 */
107!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.labels=function(){var t,s,e,i,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(e=this.attr("id"))&&(n=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),s="label[for='"+CSS.escape(e)+"']",i=i.add(n.find(s).addBack(s))),this.pushStack(i)):this.pushStack([])}});
108
109/*!
110 * jQuery UI Controlgroup 1.14.1
111 * https://jqueryui.com
112 *
113 * Copyright OpenJS Foundation and other contributors
114 * Released under the MIT license.
115 * https://jquery.org/license
116 */
117!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../widget"],t):t(jQuery)}(function(t){"use strict";var e=/ui-corner-([a-z]){2,6}/g;return t.widget("ui.controlgroup",{version:"1.14.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,function(n,o){var s,l={};if(o)return"controlgroupLabel"===n?((s=e.element.find(o)).each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(s,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(s.get()))):void(t.fn[n]&&(l=e["_"+n+"Options"]?e["_"+n+"Options"]("middle"):{classes:{}},e.element.find(o).each(function(){var o=t(this),s=o[n]("instance"),r=t.widget.extend({},l);if("button"!==n||!o.parent(".ui-spinner").length){s||(s=o[n]()[n]("instance")),s&&(r.classes=e._resolveClassesValues(r.classes,s)),o[n](r);var u=o[n]("widget");t.data(u[0],"ui-controlgroup-data",s||o[n]("instance")),i.push(u[0])}})))}),this.childWidgets=t(t.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this).data("ui-controlgroup-data");i&&i[e]&&i[e]()})},_updateCornerClass:function(t,e){var i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var o={};return t.each(i,function(t){var s=n.options.classes[t]||"";s=String.prototype.trim.call(s.replace(e,"")),o[t]=(s+" "+i[t]).replace(/\s+/g," ")}),o},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,n){var o=e[n]().data("ui-controlgroup-data");if(o&&i["_"+o.widgetName+"Options"]){var s=i["_"+o.widgetName+"Options"](1===e.length?"only":n);s.classes=i._resolveClassesValues(s.classes,o),o.element[o.widgetName](s)}else i._updateCornerClass(e[n](),n)}),this._callChildMethod("refresh"))}})});
118
119/*!
120 * jQuery UI Form Reset Mixin 1.14.1
121 * https://jqueryui.com
122 *
123 * Copyright OpenJS Foundation and other contributors
124 * Released under the MIT license.
125 * https://jquery.org/license
126 */
127!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout(function(){var r=t.data("ui-form-reset-instances");e.each(r,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=e(this.element.prop("form")),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}}});
128
129/*!
130 * jQuery UI Mouse 1.14.1
131 * https://jqueryui.com
132 *
133 * Copyright OpenJS Foundation and other contributors
134 * Released under the MIT license.
135 * https://jquery.org/license
136 */
137!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../widget"],e):e(jQuery)}(function(e){"use strict";var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.14.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(s){if(!0===e.data(s.target,t.widgetName+".preventClickEvent"))return e.removeData(s.target,t.widgetName+".preventClickEvent"),s.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(s){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(s),this._mouseDownEvent=s;var i=this,o=1===s.which,n="string"==typeof this.options.cancel&&e(s.target).closest(this.options.cancel).length;
vendor: 12,146 bytes, lines 137-157
137return!(o&&!n&&this._mouseCapture(s))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(s)&&this._mouseDelayMet(s)&&(this._mouseStarted=!1!==this._mouseStart(s),!this._mouseStarted)?(s.preventDefault(),!0):(!0===e.data(s.target,this.widgetName+".preventClickEvent")&&e.removeData(s.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),s.preventDefault(),t=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved&&!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e);return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(s){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,s.target===this._mouseDownEvent.target&&e.data(s.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(s)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,s.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});
138
139/*!
140 * jQuery UI Checkboxradio 1.14.1
141 * https://jqueryui.com
142 *
143 * Copyright OpenJS Foundation and other contributors
144 * Released under the MIT license.
145 * https://jquery.org/license
146 */
147!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../form-reset-mixin","../labels","../widget"],e):e(jQuery)}(function(e){"use strict";return e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.14.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var i,t,s,n=this._super()||{};return this._readType(),t=this.element.labels(),this.label=e(t[t.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",(s=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=s.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(n.label=this.originalLabel),null!=(i=this.element[0].disabled)&&(n.disabled=i),n},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var i=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===i&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+i+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var i=this.element[0].name,t="input[name='"+CSS.escape(i)+"']";return i?(this.form.length?e(this.form[0].elements).filter(t):e(t).filter(function(){return 0===e(e(this).prop("form")).length})).not(this.element):e([])},_toggleClasses:function(){var i=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",i),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",i)._toggleClass(this.icon,null,"ui-icon-blank",!i),"radio"===this.type&&this._getRadioGroup().each(function(){var i=e(this).checkboxradio("instance");i&&i._removeClass(i.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,i){if("label"!==e||i){if(this._super(e,i),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",i),void(this.element[0].disabled=i);this.refresh()}},_updateIcon:function(i){var t="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(t+=i?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,i?"ui-icon-blank":"ui-icon-check")):t+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",t),i||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,i=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),i!==this.options.disabled&&this._setOptions({disabled:i})}}]),e.ui.checkboxradio});
148
149/*!
150 * jQuery UI Draggable 1.14.1
151 * https://jqueryui.com
152 *
153 * Copyright OpenJS Foundation and other contributors
154 * Released under the MIT license.
155 * https://jquery.org/license
156 */
157!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(t){"use strict";return t.widget("ui.draggable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var s=this.options;return!(this.helper||s.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===s.iframeFix?"iframe":s.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var s=this.document[0].activeElement;t(e.target).closest(s).length||t(s).trigger("blur")},_mouseStart:function(e){var s=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,s){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!s){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var s=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==s._trigger("stop",e)&&s._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var s=this.options,i="function"==typeof s.helper,o=i?t(s.helper.apply(this.element[0],[e])):"clone"===s.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===s.appendTo?this.element[0].parentNode:s.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}
vendor: 4,612 bytes, line 157
157),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),s=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==s&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,s,i,o=this.options,n=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(s=t(o.containment))[0])&&(e=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=o.containment:this.containment=[0,0,t(n).width()-this.helperProportions.width-this.margins.left,(t(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var s="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*s,left:e.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*s}},_generatePosition:function(t,e){var s,i,o,n,r=this.options,l=this._isRootNode(this.scrollParent[0]),a=t.pageX,h=t.pageY;return l&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),s=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):s=this.containment,t.pageX-this.offset.click.left<s[0]&&(a=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(h=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(a=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3]&&(h=s[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=s?o-this.offset.click.top>=s[1]||o-this.offset.click.top>s[3]?o:o-this.offset.click.top>=s[1]?o-r.grid[1]:o+r.grid[1]:o,n=r.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)
vendor: 4,883 bytes, line 157
157/r.grid[0])*r.grid[0]:this.originalPageX,a=s?n-this.offset.click.left>=s[0]||n-this.offset.click.left>s[2]?n:n-this.offset.click.left>=s[0]?n-r.grid[0]:n+r.grid[0]:n),"y"===r.axis&&(a=this.originalPageX),"x"===r.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:l?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,s,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[s,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,s,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,s,i){var o=t.extend({},s,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each(function(){var s=t(this).sortable("instance");s&&!s.options.disabled&&(i.sortables.push(s),s.refreshPositions(),s._trigger("activate",e,o))})},stop:function(e,s,i){var o=t.extend({},s,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,o))})},drag:function(e,s,i){t.each(i.sortables,function(){var o=!1,n=this;n.positionAbs=i.positionAbs,n.helperProportions=i.helperProportions,n.offset.click=i.offset.click,n._intersectsWith(n.containerCache)&&(o=!0,t.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==n&&this._intersectsWith(this.containerCache)&&t.contains(n.element[0],this.element[0])&&(o=!1),o})),o?(n.isOver||(n.isOver=1,i._parent=s.helper.parent(),n.currentItem=s.helper.appendTo(n.element).data("ui-sortable-item",!0),n.options._helper=n.options.helper,n.options.helper=function(){return s.helper[0]},e.target=n.currentItem[0],n._mouseCapture(e,!0),n._mouseStart(e,!0,!0),n.offset.click.top=i.offset.click.top,n.offset.click.left=i.offset.click.left,n.offset.parent.left-=i.offset.parent.left-n.offset.parent.left,n.offset.parent.top-=i.offset.parent.top-n.offset.parent.top,i._trigger("toSortable",e),i.dropped=n.element,t.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,n.fromOutside=i),n.currentItem&&(n._mouseDrag(e),s.position=n.position)):n.isOver&&(n.isOver=0,n.cancelHelperRemoval=!0,n.options._revert=n.options.revert,n.options.revert=!1,n._trigger("out",e,n._uiHash(n)),n._mouseStop(e,!0),n.options.revert=n.options._revert,n.options.helper=n.options._helper,n.placeholder&&n.placeholder.remove(),s.helper.appendTo(i._parent),i._refreshOffsets(e),s.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,s,i){var o=t("body"),n=i.options;o.css("cursor")&&(n._cursor=o.css("cursor")),o.css("cursor",n.cursor)},stop:function(e,s,i){var o=i.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("opacity")&&(n._opacity=o.css("opacity")),o.css("opacity",n.opacity)},stop:function(e,s,i){var o=i.options;o._opacity&&t(s.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(e,s,i){var o=i.options,n=!1,r=i.scrollParentNotHidden[0],l=i.document[0];r!==l&&"HTML"!==r.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+r.offsetHeight-e.pageY<o.scrollSensitivity?r.scrollTop=n=r.scrollTop+o.scrollSpeed:e.pageY-i.overflowOffset.top<o.scrollSensitivity&&(r.scrollTop=n=r.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+r.offsetWidth-e.pageX<o.scrollSensitivity?r.scrollLeft=n=r.scrollLeft+o.scrollSpeed:e.pageX-i.overflowOffset.left<o.scrollSensitivity&&(r.scrollLeft=n=r.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t
vendor: 4,192 bytes, lines 157-167
157(l).scrollTop()<o.scrollSensitivity?n=t(l).scrollTop(t(l).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(l).scrollTop())<o.scrollSensitivity&&(n=t(l).scrollTop(t(l).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(l).scrollLeft()<o.scrollSensitivity?n=t(l).scrollLeft(t(l).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(l).scrollLeft())<o.scrollSensitivity&&(n=t(l).scrollLeft(t(l).scrollLeft()+o.scrollSpeed)))),!1!==n&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,s,i){var o=i.options;i.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var e=t(this),s=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:s.top,left:s.left})})},drag:function(e,s,i){var o,n,r,l,a,h,p,c,f,d,g=i.options,u=g.snapTolerance,m=s.offset.left,v=m+i.helperProportions.width,_=s.offset.top,P=_+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)h=(a=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,c=(p=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<a-u||m>h+u||P<p-u||_>c+u||!t.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==g.snapMode&&(o=Math.abs(p-P)<=u,n=Math.abs(c-_)<=u,r=Math.abs(a-v)<=u,l=Math.abs(h-m)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h}).left)),d=o||n||r||l,"outer"!==g.snapMode&&(o=Math.abs(p-_)<=u,n=Math.abs(c-P)<=u,r=Math.abs(a-m)<=u,l=Math.abs(h-v)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||n||r||l||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||n||r||l||d)}}),t.ui.plugin.add("draggable","stack",{start:function(e,s,i){var o,n=i.options,r=t.makeArray(t(n.stack)).sort(function(e,s){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(s).css("zIndex"),10)||0)});r.length&&(o=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each(function(e){t(this).css("zIndex",o+e)}),this.css("zIndex",o+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("zIndex")&&(n._zIndex=o.css("zIndex")),o.css("zIndex",n.zIndex)},stop:function(e,s,i){var o=i.options;o._zIndex&&t(s.helper).css("zIndex",o._zIndex)}}),t.ui.draggable});
158
159/*!
160 * jQuery UI Resizable 1.14.1
161 * https://jqueryui.com
162 *
163 * Copyright OpenJS Foundation and other contributors
164 * Released under the MIT license.
165 * https://jquery.org/license
166 */
167!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../disable-selection","../plugin","../version","../widget"],t):t(jQuery)}(function(t){"use strict";return t.widget("ui.resizable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){var s,h=!1,n=t(e).css("overflow");if("hidden"===n)return!1;if("scroll"===n)return!0;
vendor: 31,128 bytes, lines 167-187
167if(e[s=i&&"left"===i?"scrollLeft":"scrollTop"]>0)return!0;try{e[s]=1,h=e[s]>0,e[s]=0}catch(t){}return h},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,i,s,h,n,o=this.options,a=this;if(this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;i<s.length;i++)h="ui-resizable-"+(e=String.prototype.trim.call(s[i])),n=t("<div>"),this._addClass(n,"ui-resizable-handle "+h),n.css({zIndex:o.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(e){var i,s,h,n;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),n=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),h=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(h,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var i,s,h=!1;for(i in this.handles)((s=t(this.handles[i])[0])===e.target||t.contains(s,e.target))&&(h=!0);return!this.options.disabled&&h},_mouseStart:function(e){var i,s,h,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this._helper||(n=this._calculateAdjustedElementDimensions(a)),this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width,height:n.height},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:n.width,height:n.height},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,h=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===h?this.axis+"-resize":h),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,h=this.originalMousePosition,n=this.axis,o=e.pageX-h.left||0,a=e.pageY-h.top||0,l=this._change[n];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,o,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,s,h,n,o,a,l,r=this.options,p=this;return this._helper&&(h=(s=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:p.sizeDiff.height,n=s?0:p.sizeDiff.width,o={width:p.helper.width()-n,height:p.helper.height()-h},a=parseFloat(p.element.css("left"))+(p.position.left-p.originalPosition.left)||null,l=parseFloat(p.element.css("top"))+(p.position.top-p.originalPosition.top)||null,r.animate||this.element.css(t.extend(o,{top:l,left:a})),p.helper.height(p.size.height),p.helper.width(p.size.width),this._helper&&!r.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.helper.css(t),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px",this.helper.width(t.width)),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px",this.helper.height(t.height)),t},_updateVirtualBoundaries:function(t){var e,i,s,h,n,o=this.options;n={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=n.minHeight*this.aspectRatio,s=n.minWidth/this.aspectRatio,i=n.maxHeight*this.aspectRatio,h=n.maxWidth/this.aspectRatio,e>n.minWidth&&(n.minWidth=e),s>n.minHeight&&(n.minHeight=s),i<n.maxWidth&&(n.maxWidth=i),h<n.maxHeight&&(n.maxHeight=h)),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,h=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,n=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,o=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,r=/sw|nw|w/.test(i),p=/nw|ne|n/.test(i);return n&&(t.width=e.minWidth),o&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),h&&(t.height=e.maxHeight),n&&r&&(t.left=a-e.minWidth),s&&r&&(t.left=a-e.maxWidth),o&&p&&(t.top=l-e.minHeight),h&&p&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],h=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(h[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_calculateAdjustedElementDimensions:function(t){var e,i,s,h=t.get(0);return"content-box"!==t.css("box-sizing")||!this._hasScroll(h)&&!this._hasScroll(h,"left")?{height:parseFloat(t.css("height")),width:parseFloat(t.css("width"))}:(e=parseFloat(h.style.width),i=parseFloat(h.style.height),s=this._getPaddingPlusBorderDimensions(t),e=isNaN(e)?this._getElementTheoreticalSize(t,s,"width"):e,{height:i=isNaN(i)?this._getElementTheoreticalSize(t,s,"height"):i,width:e})},_getElementTheoreticalSize:function(t,e,i){return Math.max(0,Math.ceil(t.get(0)["offset"+i[0].toUpperCase()+i.slice(1)]-e[i]-.5))||0},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,h=i._proportionallyResizeElements,n=h.length&&/textarea/i.test(h[0].nodeName),o=n&&i._hasScroll(h[0],"left")?0:i.sizeDiff.height,a=n?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-o},r=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,p=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,p&&r?{top:p,left:r}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};h&&h.length&&t(h[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,h,n,o,a,l=t(this).resizable("instance"),r=l.options,p=l.element,d=r.containment,g=d instanceof t?d.get(0):/parent/.test(d)?p.parent().get(0):d;g&&(l.containerElement=t(g),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(g),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){i[t]=l._num(e.css("padding"+s))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=l.containerOffset,h=l.containerSize.height,n=l.containerSize.width,o=l._hasScroll(g,"left")?g.scrollWidth:n,a=l._hasScroll(g)?g.scrollHeight:h,l.parentData={element:g,left:s.left,top:s.top,width:o,height:a}))},resize:function(e){var i,s,h,n,o=t(this).resizable("instance"),a=o.options,l=o.containerOffset,r=o.position,p=o._aspectRatio||e.shiftKey,d={top:0,left:0},g=o.containerElement,u=!0;g[0]!==document&&/static/.test(g.css("position"))&&(d=l),r.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-d.left),p&&(o.size.height=o.size.width/o.aspectRatio,u=!1),o.position.left=a.helper?l.left:0),r.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),p&&(o.size.width=o.size.height*o.aspectRatio,u=!1),o.position.top=o._helper?l.top:0),h=o.containerElement.get(0)===o.element.parent().get(0),n=/relative|absolute/.test(o.containerElement.css("position")),h&&n?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),i=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-d.left:o.offset.left-l.left)),s=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-d.top:o.offset.top-l.top)),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,p&&(o.size.height=o.size.width/o.aspectRatio,u=!1)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,p&&(o.size.width=o.size.height*o.aspectRatio,u=!1)),u||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,h=e.containerPosition,n=e.containerElement,o=t(e.helper),a=o.offset(),l=o.outerWidth()-e.sizeDiff.width,r=o.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r}),e._helper&&!i.animate&&/static/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var i=t(this),s=e._calculateAdjustedElementDimensions(i);i.data("ui-resizable-alsoresize",{width:s.width,height:s.height,left:parseFloat(i.css("left")),top:parseFloat(i.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"),h=s.options,n=s.originalSize,o=s.originalPosition,a={height:s.size.height-n.height||0,width:s.size.width-n.width||0,top:s.position.top-o.top||0,left:s.position.left-o.left||0};t(h.alsoResize).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),h={},n=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(n,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&i>=0&&(h[e]=i||null)}),e.css(h)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!0===t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,h=i.size,n=i.originalSize,o=i.originalPosition,a=i.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,r=l[0]||1,p=l[1]||1,d=Math.round((h.width-n.width)/r)*r,g=Math.round((h.height-n.height)/p)*p,u=n.width+d,c=n.height+g,f=s.maxWidth&&s.maxWidth<u,m=s.maxHeight&&s.maxHeight<c,z=s.minWidth&&s.minWidth>u,_=s.minHeight&&s.minHeight>c;s.grid=l,z&&(u+=r),_&&(c+=p),f&&(u-=r),m&&(c-=p),/^(se|s|e)$/.test(a)?(i.size.width=u,i.size.height=c):/^(ne)$/.test(a)?(i.size.width=u,i.size.height=c,i.position.top=o.top-g):/^(sw)$/.test(a)?(i.size.width=u,i.size.height=c,i.position.left=o.left-d):((c-p<=0||u-r<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),c-p>0?(i.size.height=c,i.position.top=o.top-g):(c=p-e.height,i.size.height=c,i.position.top=o.top+n.height-c),u-r>0?(i.size.width=u,i.position.left=o.left-d):(u=r-e.width,i.size.width=u,i.position.left=o.left+n.width-u))}}),t.ui.resizable});
168
169/*!
170 * jQuery UI Button 1.14.1
171 * https://jqueryui.com
172 *
173 * Copyright OpenJS Foundation and other contributors
174 * Released under the MIT license.
175 * https://jquery.org/license
176 */
177!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./controlgroup","./checkboxradio","../keycode","../widget"],t):t(jQuery)}(function(t){"use strict";var i;return t.widget("ui.button",{version:"1.14.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,i=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(i.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(i.label=this.originalLabel),i},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(i){i.keyCode===t.ui.keyCode.SPACE&&(i.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(i,o){var s="iconPosition"!==i,n=s?this.options.iconPosition:o,e="top"===n||"bottom"===n;this.icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,o),this._attachIcon(n),e?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var i=void 0===t.showLabel?this.options.showLabel:t.showLabel,o=void 0===t.icon?this.options.icon:t.icon;i||o||(t.showLabel=!0),this._super(t)},_setOption:function(t,i){"icon"===t&&(i?this._updateIcon(t,i):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,i),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!i),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(i):(this.element.html(i),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,i),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",i),this.element[0].disabled=i,i&&this.element.trigger("blur"))},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!0===t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,i){"text"!==t?("showLabel"===t&&(this.options.text=i),"icon"===t&&(this.options.icons.primary=i),"icons"===t&&(i.primary?(this._super("icon",i.primary),this._super("iconPosition","beginning")):i.secondary&&(this._super("icon",i.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",i)}}),t.fn.button=(i=t.fn.button,function(o){var s="string"==typeof o,n=Array.prototype.slice.call(arguments,1),e=this;return s?this.length||"instance"!==o?this.each(function(){var i,s=t(this).attr("type"),h="checkbox"!==s&&"radio"!==s?"button":"checkboxradio",a=t.data(this,"ui-"+h);return"instance"===o?(e=a,!1):a?"function"!=typeof a[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for button widget instance"):(i=a[o].apply(a,n))!==a&&void 0!==i?(e=i&&i.jquery?e.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on button prior to initialization; attempted to call method '"+o+"'")}):e=void 0:(n.length&&(o=t.widget.extend.apply(null,[o].concat(n))),this.each(function(){var s=t(this).attr("type"),n="checkbox"!==s&&"radio"!==s?"button":"checkboxradio",e=t.data(this,"ui-"+n);if(e)e.option(o||{}),e._init&&e._init();else{if("button"===n)return void i.call(t(this),o);t(this).checkboxradio(t.extend({icon:!1},o))}})),e}),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button});
178
179/*!
180 * jQuery UI Dialog 1.14.1
181 * https://jqueryui.com
182 *
183 * Copyright OpenJS Foundation and other contributors
184 * Released under the MIT license.
185 * https://jquery.org/license
186 */
187!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./button","./draggable","./mouse","./resizable","../focusable","../keycode","../position","../tabbable","../unique-id","../version","../widget"],i):i(jQuery)}(function(i){"use strict";return i.widget("ui.dialog",{version:"1.14.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=i(this).css(t).offset().top;e<0&&i(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,uiDialogTitleHeadingLevel:0,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&i.fn.draggable&&this._makeDraggable(),this.options.resizable&&i.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?i(t):this.document.find(t||"body").eq(0)},_destroy:function(){var i,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(i=t.parent.children().eq(t.index)).length&&i[0]!==this.element[0]?i.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:i.noop,enable:i.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||i(this.document[0].activeElement).trigger("blur"),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var o=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+i(this).css("z-index")}).get(),n=Math.max.apply(null,s);return n>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",n+1),o=!0),o&&!e&&this._trigger("focus",t),o},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=i(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var i=this._focusedElement;i||(i=this.element.find("[autofocus]")),i.length||(i=this.element.find(":tabbable")),i.length||(i=this.uiDialogButtonPane.find(":tabbable")),i.length||(i=this.uiDialogTitlebarClose.filter(":tabbable")),i.length||(i=this.uiDialog),i.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=this.document[0].activeElement;this.uiDialog[0]===t||i.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(i){i.preventDefault(),this._restoreTabbableFocus()},_createWrapper:function(){this.uiDialog=i("<div>").hide().attr({tabIndex:-1,role:"dialog","aria-modal":this.options.modal?"true":null}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===i.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===i.ui.keyCode.TAB&&!t.isDefaultPrevented()){var e=this.uiDialog.find(":tabbable"),o=e.first(),s=e.last();t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==o[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){o.trigger("focus")}),t.preventDefault())}},mousedown:function(i){this._moveToTop(i)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=i("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){i(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=i("<button type='button'></button>").button({label:i("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(i){i.preventDefault(),this.close(i)}});var e=Number.isInteger(this.options.uiDialogTitleHeadingLevel)&&this.options.uiDialogTitleHeadingLevel>0&&this.options.uiDialogTitleHeadingLevel<=6?"h"+this.options.uiDialogTitleHeadingLevel:"span";t=i("<"+e+">").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prepe
vendor: 9,361 bytes, lines 187-222
187ndTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(i){this.options.title?i.text(this.options.title):i.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=i("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=i("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,e=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),i.isEmptyObject(e)||Array.isArray(e)&&!e.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(i.each(e,function(e,o){var s,n;o="function"==typeof o?{click:o,text:e}:o,o=i.extend({type:"button"},o),s=o.click,n={icon:o.icon,iconPosition:o.iconPosition,showLabel:o.showLabel,icons:o.icons,text:o.text},delete o.click,delete o.icon,delete o.iconPosition,delete o.showLabel,delete o.icons,"boolean"==typeof o.text&&delete o.text,i("<button></button>",o).button(n).appendTo(t.uiButtonSet).on("click",function(){s.apply(t.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var t=this,e=this.options;function o(i){return{position:i.position,offset:i.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,s){t._addClass(i(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",e,o(s))},drag:function(i,e){t._trigger("drag",i,o(e))},stop:function(s,n){var a=n.offset.left-t.document.scrollLeft(),l=n.offset.top-t.document.scrollTop();e.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(l>=0?"+":"")+l,of:t.window},t._removeClass(i(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",s,o(n))}})},_makeResizable:function(){var t=this,e=this.options,o=e.resizable,s=this.uiDialog.css("position"),n="string"==typeof o?o:"n,e,s,w,se,sw,ne,nw";function a(i){return{originalPosition:i.originalPosition,originalSize:i.originalSize,position:i.position,size:i.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:this._minHeight(),handles:n,start:function(e,o){t._addClass(i(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",e,a(o))},resize:function(i,e){t._trigger("resize",i,a(e))},stop:function(o,s){var n=t.uiDialog.offset(),l=n.left-t.document.scrollLeft(),h=n.top-t.document.scrollTop();e.height=t.uiDialog.height(),e.width=t.uiDialog.width(),e.position={my:"left top",at:"left"+(l>=0?"+":"")+l+" top"+(h>=0?"+":"")+h,of:t.window},t._removeClass(i(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",o,a(s))}}).css("position",s)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=i(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=i.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var i=this.document.data("ui-dialog-instances");return i||(i=[],this.document.data("ui-dialog-instances",i)),i},_minHeight:function(){var i=this.options;return"auto"===i.height?i.minHeight:Math.min(i.minHeight,i.height)},_position:function(){var i=this.uiDialog.is(":visible");i||this.uiDialog.show(),this.uiDialog.position(this.options.position),i||this.uiDialog.hide()},_setOptions:function(t){var e=this,o=!1,s={};i.each(t,function(i,t){e._setOption(i,t),i in e.sizeRelatedOptions&&(o=!0),i in e.resizableRelatedOptions&&(s[i]=t)}),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var o,s,n=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:i("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((o=n.is(":data(ui-draggable)"))&&!e&&n.draggable("destroy"),!o&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((s=n.is(":data(ui-resizable)"))&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")),"modal"===t&&n.attr("aria-modal",e?"true":null))},_size:function(){var i,t,e,o=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),o.minWidth>o.width&&(o.width=o.minWidth),i=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),t=Math.max(0,o.minHeight-i),e="number"==typeof o.maxHeight?Math.max(0,o.maxHeight-i):"none","auto"===o.height?this.element.css({minHeight:t,maxHeight:e,height:"auto"}):this.element.height(Math.max(0,o.height-i)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=i(this);return i("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!i(t.target).closest(".ui-dialog").length||!!i(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(i){if(!t){var e=this._trackingInstances()[0];e._allowInteraction(i)||(i.preventDefault(),e._focusTabbable())}}.bind(this)),this.overlay=i("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var i=this.document.data("ui-dialog-overlays")-1;i?this.document.data("ui-dialog-overlays",i):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!0===i.uiBackCompat&&i.widget("ui.dialog",i.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(i,t){"dialogClass"===i&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),i.ui.dialog});
188
189/* @license Public Domain https://raw.githubusercontent.com/jquery/jquery-ui/1.13.2/LICENSE.txt */
190!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}((function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.13.2"}));
191
192/*!
193 * jQuery UI :data 1.13.2
194 * http://jqueryui.com
195 *
196 * Copyright jQuery Foundation and other contributors
197 * Released under the MIT license.
198 * http://jquery.org/license
199 */
200!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo?e.expr.createPseudo((function(n){return function(t){return!!e.data(t,n)}})):function(n,t,r){return!!e.data(n,r[3])}})}));
201
202/*!
203 * jQuery UI Disable Selection 1.13.2
204 * http://jqueryui.com
205 *
206 * Copyright jQuery Foundation and other contributors
207 * Released under the MIT license.
208 * http://jquery.org/license
209 */
210!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var n}));
211
212/*!
213 * jQuery UI Focusable 1.13.2
214 * http://jqueryui.com
215 *
216 * Copyright jQuery Foundation and other contributors
217 * Released under the MIT license.
218 * http://jquery.org/license
219 */
220!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.focusable=function(i,t){var n,s,r,u,a,o=i.nodeName.toLowerCase();return"area"===o?(s=(n=i.parentNode).name,!(!i.href||!s||"map"!==n.nodeName.toLowerCase())&&((r=e("img[usemap='#"+s+"']")).length>0&&r.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(o)?(u=!i.disabled)&&(a=e(i).closest("fieldset")[0])&&(u=!a.disabled):u="a"===o&&i.href||t,u&&e(i).is(":visible")&&function(e){var i=e.css("visibility");for(;"inherit"===i;)i=(e=e.parent()).css("visibility");return"visible"===i}(e(i)))},e.extend(e.expr.pseudos,{focusable:function(i){return e.ui.focusable(i,null!=e.attr(i,"tabindex"))}}),e.ui.focusable}));
221
222!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";return t.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)}}
222));
223
224!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())}));
225
226/*!
227 * jQuery UI Keycode 1.13.2
228 * http://jqueryui.com
229 *
230 * Copyright jQuery Foundation and other contributors
231 * Released under the MIT license.
232 * http://jquery.org/license
233 */
234!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}));
235
236/*!
237 * jQuery UI Labels 1.13.2
238 * http://jqueryui.com
239 *
240 * Copyright jQuery Foundation and other contributors
241 * Released under the MIT license.
242 * http://jquery.org/license
243 */
244!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";return t.fn.labels=function(){var e,s,i,n,a;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),(i=this.attr("id"))&&(a=(e=this.eq(0).parents().last()).add(e.length?e.siblings():this.siblings()),s="label[for='"+t.escapeSelector(i)+"']",n=n.add(a.find(s).addBack(s))),this.pushStack(n)):this.pushStack([])}}));
245
246!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.plugin={add:function(n,i,t){var u,o=e.ui[n].prototype;for(u in t)o.plugins[u]=o.plugins[u]||[],o.plugins[u].push([i,t[u]])},call:function(e,n,i,t){var u,o=e.plugins[n];if(o&&(t||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(u=0;u<o.length;u++)e.options[o[u][0]]&&o[u][1].apply(e.element,i)}}}));
247
248!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.safeActiveElement=function(e){var n;try{n=e.activeElement}catch(t){n=e.body}return n||(n=e.body),n.nodeName||(n=e.body),n}}));
249
250!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.safeBlur=function(n){n&&"body"!==n.nodeName.toLowerCase()&&e(n).trigger("blur")}}));
251
252/*!
253 * jQuery UI Scroll Parent 1.13.2
254 * http://jqueryui.com
255 *
256 * Copyright jQuery Foundation and other contributors
257 * Released under the MIT license.
258 * http://jquery.org/license
259 */
260!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";return t.fn.scrollParent=function(e){var s=this.css("position"),n="absolute"===s,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==s&&i.length?i:t(this[0].ownerDocument||document)}}));
261
262/*!
263 * jQuery UI Tabbable 1.13.2
264 * http://jqueryui.com
265 *
266 * Copyright jQuery Foundation and other contributors
267 * Released under the MIT license.
268 * http://jquery.org/license
269 */
270!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version","./focusable"],e):e(jQuery)}((function(e){"use strict";return e.extend(e.expr.pseudos,{tabbable:function(n){var t=e.attr(n,"tabindex"),u=null!=t;return(!u||t>=0)&&e.ui.focusable(n,u)}})}));
271
272/*!
273 * jQuery UI Unique ID 1.13.2
274 * http://jqueryui.com
275 *
276 * Copyright jQuery Foundation and other contributors
277 * Released under the MIT license.
278 * http://jquery.org/license
279 */
280!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],i):i(jQuery)}((function(i){"use strict";return i.fn.extend({uniqueId:(e=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++e)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&i(this).removeAttr("id")}))}});var e}));
281
282/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
283(function($,window,Drupal,drupalSettings){'use strict';Drupal.behaviors.FunnelBack={attach:function(){let isFront=false;
283if(drupalSettings.hiscoxfunnelback)if(drupalSettings.hiscoxfunnelback.isFront)isFront=drupalSettings.hiscoxfunnelback.isFront;const dcThemeActive=window.dcThemeActive||false;let dcFunnelActive=false;if((dcThemeActive==true)&&(isFront==false))dcFunnelActive=true;let collectionKey='',funnelbackCollectionKey=window.funnelbackCollectionKey||false;const pathname=window.location.pathname;if(pathname.includes('/business-blog')||pathname==='/business-insurance/faq'||pathname==='/')$('meta[name=viewport]').attr('content','width=device-width, initial-scale=1.0, maximum-scale=5.0');else $('meta[name=viewport]').attr('content','width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no');$('.search-form *').click(function(){$('body').removeClass('is--search-open');});function getParameterByName(name,url=window.location.href){name=name.replace(/[\[\]]/g,'\\$&');const regex=new RegExp('[?&]'+name+'(=([^&#]*)|&|#|$)'),results=regex.exec(url);if(!results)return null;if(!results[2])return '';return decodeURIComponent(results[2].replace(/\+/g,' '));}let business_area='';function define_fb_collection(){let collection='';let first_slug=$(location).attr('pathname');first_slug.indexOf(1);first_slug.toLowerCase();let second_slug=first_slug.split('/')[2];first_slug=first_slug.split('/')[1];const slug_collection={};slug_collection['home-insurance']='hiscox~ds-home-insurance';slug_collection['business-insurance']='hiscox~ds-business-insurance';slug_collection['business-insurance/faq']='hiscox~ds-business-insurance-faqs';slug_collection['private-client']='hiscox~ds-private-clients';slug_collection['broker']='hiscox~ds-broker-centre';slug_collection['business-blog']='hiscox~ds-business-blog';const ba_collection={};ba_collection['home-insurance']='Home+Insurance';ba_collection['business-insurance']='Business+Insurance';ba_collection['business-insurance/faq']='Faq';ba_collection['private-client']='Private+Client';ba_collection['broker']='Broker+Centre';ba_collection['business-blog']='Knowledge+Centre';if(funnelbackCollectionKey!=false)collectionKey=funnelbackCollectionKey;else{const pathname=window.location.pathname;if((first_slug==='business-insurance')&&(second_slug==='faq'))collectionKey='business-insurance/faq';else if(slug_collection[first_slug]!=undefined)collectionKey=first_slug;else if(pathname.includes('/business-blog')||getParameterByName('collection')==='hiscox~sp-business-blog')collectionKey='business-blog';else collectionKey='';}if(slug_collection[collectionKey]!=undefined){collection=slug_collection[collectionKey];business_area=ba_collection[collectionKey];}return collection;}function make_fb_search_call(search_term,collection,target){let url;if((funnelbackCollectionKey==='business-insurance/faq')||(collectionKey==='business-insurance/faq'))url='https://hiscox-search.funnelback.squiz.cloud/s/suggest.json?collection=hiscox~ds-business-insurance-faqs&fmt=json%2B%2B&alpha=0.5&profile=_default&show=10&sort=0&partial_query='+search_term;else url='https://hiscox-search.funnelback.squiz.cloud/s/suggest.json?collection='+collection+'&fmt=json%2B%2B&alpha=0.5&show=3&sort=0&partial_query='+search_term;$.ajax({url,type:'GET',dataType:'HTML',crossOrigin:true,contentType:'application/json',success:function(result){let search_autocomplete_result='';const obj=jQuery.parseJSON(result);$.each(obj,function(key,value){let filter='';if(collection!='hiscox~sp-search')if(collection.startsWith('hiscox~sp-business-blog'))filter='&f.Results+filtered+by%3A%7C'+collection+'='+business_area;else filter='&f.Results+filtered+by+%3A%7C'+collection+'='+business_area;if(dcFunnelActive)search_autocomplete_result=search_autocomplete_result+'<li><a href="/business-insurance/search-results?query='+value.key+'&collection='+collection+filter+'"><strong>'+value.key+'</strong></a></li>';else search_autocomplete_result=search_autocomplete_result+'<li><a href="/search?query='+value.key+'&collection='+collection+filter+'"><strong>'+value.key+'</strong></a></li>';});$(target).empty();if(search_autocomplete_result!=="")$(target).append('<ul>'+search_autocomplete_result+'</ul>');},error:function(error){console.log('FB autocomplete error');console.log(url);console.log('----');console.log(error);}});}function make_fb_concierge_call(search_term,collection,targetCall){let last_concierge='';if(search_term==='')$(targetCall).empty();let url;if((funnelbackCollectionKey==='business-insurance/faq')||(collectionKey==='business-insurance/faq'))url='https://hiscox-search.funnelback.squiz.cloud/s/suggest.json?collection=hiscox~sp-search&fmt=json%2B%2B&alpha=0.5&profile=ac-business-faqs&show=10&sort=0&partial_query='+search_term;else if(collection==='business-insurance')url='https://hiscox-search.funnelback.squiz.cloud/s/suggest.json?collection=hiscox~sp-search&fmt=json%2B%2B&alpha=0.5&profile=ac-business-insurance&show=3&sort=0&partial_query='+search_term;else if(collection==='business-blog')url='https://hiscox-search.funnelback.squiz.cloud/s/suggest.json?collection=hiscox~sp-business-blog-search&fmt=json%2B%2B&alpha=0.5&profile=ac-business-blog&show=3&sort=0&partial_query='+search_term;else if(funnelbackCollectionKey==='')url='https://hiscox-search.funnelback.squiz.cloud/s/suggest.json?collection=hiscox~sp-search&fmt=json%2B%2B&alpha=0.5&profile=_default&show=3&sort=0&partial_query='+search_term;else if(collection=='home-insurance')url='https://hiscox-search.funnelback.squiz.cloud/s/suggest.json?collection=hiscox~sp-search&fmt=json%2B%2B&alpha=0.5&profile=ac-home-insurance&show=3&sort=0&partial_query='+search_term;else if(collection='private-client')url='https://hiscox-search.funnelback.squiz.cloud/s/suggest.json?collection=hiscox~sp-search&fmt=json%2B%2B&alpha=0.5&profile=ac-private-clients&show=3&sort=0&partial_query='+search_term;else url='https://hiscox-search.funnelback.squiz.cloud/s/suggest.json?collection=hiscox~sp-search&fmt=json%2B%2B&alpha=0.5&profile=ac-business-insurance&show=3&sort=0&partial_query='+search_term;$.ajax({url,type:'GET',dataType:'HTML',crossOrigin:true,contentType:'application/json',success:function(result){let search_autocomplete_result='';const obj=jQuery.parseJSON(result);$.each(obj,function(key,value){let Category;if(value.disp.metaData.Category!=undefined)Category=value.disp.metaData.Category;else Category=' ';if(value.disp.title!=undefined){let filetype='';if(value.disp.fileType!=undefined)filetype=value.disp.fileType;search_autocomplete_result=search_autocomplete_result+'<li class="suggested-result '+filetype+'">';search_autocomplete_result=search_autocomplete_result+'<a href="'+value.action+'" class="suggested-result-title">'+value.disp.title+'</a>';search_autocomplete_result=search_autocomplete_result+'<p class="suggested-result-type">'+Category+'</p>';search_autocomplete_result=search_autocomplete_result+'<p class="suggested-result-description">'+value.disp.summary+'</p>';search_autocomplete_result=search_autocomplete_result+'</li>';}else{console.log('FB concierge data error: missing disp data at key = '+key);console.log(url);console.log('----');}});if(search_autocomplete_result===''){$(targetCall).empty();last_concierge=search_autocomplete_result;}else{if(last_concierge!=search_autocomplete_result){$(targetCall).empty();$(targetCall).append(search_autocomplete_result);last_concierge=search_autocomplete_result;}}},error:function(error){console.log('Suggested results (concierge) error');console.log(url);console.log('----');console.log(error);}});}$('.funnel-overlay-close').click(function(){$('#funnelback-search-autocomplete-result').empty();$('.funnel-search-suggested-results-wrapper').empty();$('#funnel-search').val('');$('#funnel-search').blur();$('.search-overlay-wrapper').fadeOut(1000);$('.search-wrapper').slideUp(600);});$('.funnel-search-form').click(function(){$('#funnelback-search-autocomplete-result').empty();});if(dcThemeActive)$(window).on('click',function(){$('.funnelback-search-autocomplete-wrapper').css('display','none');});$('.checkbox-filter').change(function(){if(this.checked)$(this).closest('.result').addClass('active');else $(this).closest('.result').removeClass('active');});$('.results-filter-mobile-dropdown').click(function(){$('.results-filters-wrapper').addClass('active');$('.results-filters').slideDown(600);});$('#funnel-search').keyup(function(){$('#funnel-search-autocomplete-result').empty();if($(this).val()){let collection=define_fb_collection(),target='#funnelback-search-autocomplete-result, #funnelback-results-autocomplete-result',targetCall='.funnel-search-suggested-results-wrapper';if(collection==='')collection='hiscox~sp-search';make_fb_search_call($(this).val(),collection,target);make_fb_concierge_call($(this).val(),collection,targetCall);$('.funnel-search-autocomplete-wrapper').css('display','block');}else{$('.funnel-search-autocomplete-wrapper').css('display','none');$('.funnel-search-suggested-results-wrapper').empty();}});function paragraphSearchAutocomplete(){if(dcFunnelActive)$('.paragraph--type--in-body-search .form__item--search [data-drupal-selector="edit-search"], .paragraph--type--dc-knowledge-centre-search .form__item--search [data-drupal-selector="edit-search"]').each(function(){var $this=$(this);$this.after('<div class="funnelback-search-autocomplete-wrapper"><span id="funnelback-search-autocomplete-form-result"></span></div>');});else $('.paragraph--type--in-body-search .form__item--search input, .paragraph--type--dc-knowledge-centre-search .form__item--search input').after('<div class="funnelback-search-autocomplete-wrapper"><span id="funnelback-search-autocomplete-form-result"></span></div>');$('.paragraph--type--in-body-search .form__item--search input, .paragraph--type--dc-knowledge-centre-search .form__item--search input').keyup(function(){var $this=$(this),$thisAutocompleteWrapper=$this.parent().find('.funnelback-search-autocomplete-wrapper');if($this.val()){var collection=define_fb_collection(),target='#funnelback-search-autocomplete-form-result, #funnelback-results-autocomplete-result',targetCall='.funnel-search-suggested-form-results-wrapper';if(collection==='')collection='hiscox~sp-search';make_fb_search_call($this.val(),collection,target);make_fb_concierge_call($this.val(),collection,targetCall);$thisAutocompleteWrapper.css('display','block');}else{$thisAutocompleteWrapper.css('display','none');$this.find('.funnel-search-suggested-form-results-wrapper').empty();}});}paragraphSearchAutocomplete();$('body').on('keyup','.results-component-wrapper #funnel-search',function(){if(!$(this).next().hasClass('funnel-search-autocomplete-wrapper'))$(this).after('<div class="funnel-search-autocomplete-wrapper"><span id="funnelback-results-autocomplete-result"></div>');$('#funnel-results-autocomplete-result').empty();if($(this).val()){let collection=define_fb_collection(),target='#funnelback-search-autocomplete-result, #funnelback-results-autocomplete-result',targetCall='.funnel-search-suggested-form-results-wrapper, .funnel-search-suggested-results-wrapper';if(collection==='')collection='hiscox~sp-search';make_fb_search_call($(this).val(),collection,target);make_fb_concierge_call($(this).val(),collection,targetCall);$('.funnel-search-autocomplete-wrapper').css('display','block');}else $('.funnel-search-autocomplete-wrapper').css('display','none');});function redirectToResultspage(e,targetId){e.preventDefault();let searchVal=$(targetId).val();searchVal=encodeURIComponent(searchVal);let currentCollection=define_fb_collection();let queryString;if(currentCollection===''){currentCollection='hiscox~sp-search';if(dcFunnelActive)queryString='/business-insurance/search-results?query='+searchVal+'&collection='+currentCollection;else queryString='/search?query='+searchVal+'&collection='+currentCollection;}else{let filteredCollection;if(currentCollection.startsWith('hiscox~sp-business-blog'))filteredCollection=currentCollection+'&f.Results+filtered+by%3A%7C'+currentCollection+'='+business_area;else filteredCollection=currentCollection+'&f.Results+filtered+by+%3A%7C'+currentCollection+'='+business_area;if(dcFunnelActive)queryString='/business-insurance/search-results?query='+searchVal+'&collection='+filteredCollection;else queryString='/search?query='+searchVal+'&collection='+filteredCollection;}$(location).attr('href',queryString);}$('#overlay-submit').on('submit',function(e){redirectToResultspage(e,'#funnel-search');});$('.paragraph--type--in-body-search #search-form, .paragraph--type--dc-knowledge-centre-search #search-form').on('submit',function(e){redirectToResultspage(e,'#edit-search');});$('.paragraph--type--in-body-search #search-form--2, .paragraph--type--dc-knowledge-centre-search #search-form--2').on('submit',function(e){redirectToResultspage(e,'#edit-search--2');});}};})(jQuery,window,Drupal,drupalSettings);;
284(function($,window,Drupal){'use strict';Drupal.behaviors.FunnelBackCall={attach:function(){const path=window.location.pathname;const error_page=$('.error-page--404');const funnelsearch_selector=$('#funnel-search');if((path==='/')||(path==='/business-insurance/faq')||(path==='/business-insurance/search-results')||(path==='/award-winning-home-and-business-insurance')||(error_page.length>0)||path.startsWith('/business-blog')){const dcSearchFunnelBack='.header [link_style="search_icon"]';$(dcSearchFunnelBack).on('click',function(e){e.preventDefault();$('.mobile-search__search-icon').addClass('is-hidden');$('.l-header').addClass('is-absolute');$('.funnel-overlay-close').on('click',function(){$('.mobile-search__search-icon').removeClass('is-hidden');$('.l-header').removeClass('is-absolute');});$('.search-overlay-wrapper').fadeIn(1000);$('.search-wrapper').slideDown(600,function(){funnelsearch_selector.val('').focus();});});$('.block--search-block [data-drupal-selector="edit-submit"]').click(function(){$('.
vendor: 5,483 bytes, lines 284-290
284search-overlay-wrapper').fadeIn(1000);$('.search-wrapper').slideDown(600,function(){funnelsearch_selector.val('').focus();});});}else{const dcSearchFunnelBack='.header [link_style="search_icon"]';$(dcSearchFunnelBack).on('click',function(e){e.preventDefault();$('.mobile-search__search-icon').addClass('is-hidden');$('.l-header').addClass('is-absolute');$('.funnel-overlay-close').on('click',function(){$('.mobile-search__search-icon').removeClass('is-hidden');$('.l-header').removeClass('is-absolute');});$('.search-overlay-wrapper').fadeIn(1000);$('.search-wrapper').slideDown(600,function(){funnelsearch_selector.val('').focus();});});$('.block--search-block [data-drupal-selector="edit-submit"]').click(function(){$('.search-overlay-wrapper').fadeIn(1000);$('.search-wrapper').slideDown(600,function(){funnelsearch_selector.val('').focus();});});}$('.menu__item').off('click.searchOverlay').on('click.searchOverlay',function(e){var linkText=$(this).text().trim();if(linkText==="Search"){e.preventDefault();var $header=$('.l-header');var $overlay=$('.search-overlay-wrapper');var $wrapper=$('.search-wrapper');if(!$header.length||!$overlay.length||!$wrapper.length||!funnelsearch_selector.length){console.error('Search overlay: Required elements missing.');return;}$overlay.attr('aria-hidden','false');$wrapper.attr('aria-hidden','false');$header.addClass('is-absolute');$overlay.fadeIn(1000);$wrapper.slideDown(600,function(){funnelsearch_selector.val('').focus();$(document).on('keydown.searchOverlay',function(evt){if(evt.key==="Escape"){$overlay.fadeOut(300).attr('aria-hidden','true');$wrapper.slideUp(300).attr('aria-hidden','true');$header.removeClass('is-absolute');$(document).off('keydown.searchOverlay');}});});}});}};})(jQuery,window,Drupal);;
285/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */
286/*!
287* tabbable 6.3.0
288* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
289*/
290!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function(t,e){var n;void 0===e&&(e=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||e&&t&&a(t.parentNode)},l=function(t,e,o){if(a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(var i=[],l=Array.from(t);l.length;){var c=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){var v=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}else l.unshift.apply(l,c.children)}}return i},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){return function(t){return s(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||i(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,o=e.height;return 0===n&&0===o},v=function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;var a=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;
290if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof o){for(var l=t;t;){var u=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){var e,n,o,r,a=t&&i(t),l=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!u&&l;){var c,d,f;u=!(null===(d=l=null===(c=a=i(l))||void 0===c?void 0:c.host)||void 0===d||null===(f=d.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!r.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(p(e)||d(e)<0||!b(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function(t){var e=[],n=[];return t.forEach((function(t,o){var r=!!t.scopeParent,i=r?t.scopeParent:t,a=function(t,e){var n=d(t);return n<0&&e&&!c(t)?0:n}(i,r),l=r?g(t.candidates):i;0===a?r?e.push.apply(e,l):e.push(i):n.push({documentOrder:o,tabIndex:a,item:t,isScope:r,content:l})})),n.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(e)},w=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},t.getTabIndex=d,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,w)&&b(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,n)&&y(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):l(t,e.includeContainer,y.bind(null,e)),g(n)}}));
291
292;
293/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
294/**
295 * tua-body-scroll-lock v1.6.1
296 * (c) 2025 Evinma, BuptStEve
297 * @license MIT
298 */
299!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bodyScrollLock={})}(this,(function(e){"use strict";var t=function(){return"undefined"==typeof window},n=function(e){e=e||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!t&&/(iPhone\sOS)\s([\d_]+)/.test(e)||t,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}};function o(e){if(t())return!1;if(!e)throw new Error("options must be provided");var n=!1,o={get passive(){n=!0}},i=function(){},l="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(l,i,o),window.removeEventListener(l,i,o);var c=e.capture;return n?e:void 0!==c&&c}function i(){return"__BSL_PREVENT_DEFAULT__"in window||(window.__BSL_PREVENT_DEFAULT__=function(e){e.cancelable&&e.preventDefault()}),window.__BSL_PREVENT_DEFAULT__}function l(e){return e?Array.isArray(e)?e:[e]:[]}function c(e,t,n){var o,i,l,c,r=e.scrollTop,s=e.scrollLeft,d=e.scrollWidth,u=e.scrollHeight,a=e.clientWidth,f=e.clientHeight,v=function(e){var t=window.getComputedStyle(e).flexDirection;return{column:"column-reverse"===t,row:"row-reverse"===t}}(e);return v.column?(o=n>0&&Math.abs(r)+f+1>=u,i=n<0&&Math.abs(r)<=1):(o=n>0&&0===r,i=n<0&&r+f+1>=u),v.row?(l=t>0&&Math.abs(s)+a+1>=d,c=t<0&&Math.abs(s)<=1):(l=t>0&&0===s,c=t<0&&s+a+1>=d),{isOnTop:o,isOnBottom:i,isOnLeft:l,isOnRight:c}}var r={lockedNum:0,lockedElements:[],unLockCallback:null,documentListenerAdded:!1,initialClientPos:{clientX:0,clientY:0}};function s(e){if(t())return r;if(!(null==e?void 0:e.useGlobalLockState))return s.lockState;var n="__BSL_LOCK_STATE__"in window?Object.assign(Object.assign({},r),window.__BSL_LOCK_STATE__):r;return window.__BSL_LOCK_STATE__=n,n}function d(e){var t=document.documentElement,n=Object.assign({},t.style),o=(void 0,!0);if(t.style.overflow="hidden",t.style.boxSizing="border-box",o){var i=window.innerWidth-t.clientWidth,l=parseInt(window.getComputedStyle(t).paddingRight,10);t.style.paddingRight="".concat(i+l,"px")}return function(){["overflow","boxSizing","paddingRight"].forEach((function(e){t.style[e]=n[e]||""}))}}function u(e){e.documentListenerAdded&&(document.removeEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!1)}s.lockState=r,e.clearBodyLocks=function(e){var o;if(!t()){var i=s(e);if(i.lockedNum=0,null===(o=i.unLockCallback)||void 0===o||o.call(i),n().ios){if(i.lockedElements.length)for(var l=i.lockedElements.pop();l;)l.ontouchmove=null,l.ontouchstart=null,l=i.lockedElements.pop();u(i)}}},e.getLockState=s,e.lock=function(e,r){if(!t()){var u=n(),a=s(r);u.ios?(l(e).filter((function(e){return e&&-1===a.lockedElements.indexOf(e)}
299)).forEach((function(e){e.ontouchstart=function(e){var t=e.targetTouches[0],n=t.clientX,o=t.clientY;a.initialClientPos={clientX:n,clientY:o}},e.ontouchmove=function(t){!function(e,t,n){if(t){var o=e.targetTouches[0].clientX-n.clientX,l=e.targetTouches[0].clientY-n.clientY,r=Math.abs(l)>Math.abs(o),s=c(t,o,l),d=s.isOnTop,u=s.isOnBottom,a=s.isOnLeft,f=s.isOnRight;if(r&&(d||u)||!r&&(a||f))return i()(e)}e.stopPropagation()}(t,e,a.initialClientPos)},a.lockedElements.push(e)})),function(e){if(!n().ios)return;if(e.documentListenerAdded)return;document.addEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!0}(a),(null==r?void 0:r.setOverflowForIOS)&&(a.unLockCallback=d())):a.lockedNum<=0&&(a.unLockCallback=u.android?function(e){var t=document.documentElement,n=document.body,o=t.scrollTop||n.scrollTop,i=Object.assign({},t.style),l=Object.assign({},n.style);return t.style.height="100%",t.style.overflow="hidden",n.style.top="-".concat(o,"px"),n.style.width="100%",n.style.height="auto",n.style.position="fixed",n.style.overflow=(null==e?void 0:e.overflowType)||"hidden",function(){t.style.height=i.height||"",t.style.overflow=i.overflow||"",["top","width","height","overflow","position"].forEach((function(e){n.style[e]=l[e]||""})),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:o,behavior:"instant"}):window.scrollTo(0,o)}}(r):d()),a.lockedNum+=1}},e.unlock=function(e,o){var i;if(!t()){var c=s(o);c.lockedNum-=1,c.lockedNum>0||(null===(i=c.unLockCallback)||void 0===i||i.call(c),n().ios&&(l(e).forEach((function(e){var t=c.lockedElements.indexOf(e);e&&-1!==t&&(e.ontouchmove=null,e.ontouchstart=null,c.lockedElements.splice(t,1))})),u(c)))}}}));
300;
301Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};;
302(function($,Drupal,once){'use strict';Drupal.behaviors.dcFooterLocation={attach:function(){var $blockLocation=$('#block-hiscox-uk-dc-footer-location-toggle');var $wrapper=$blockLocation.find('.country-wrapper');var $list=$blockLocation.find('.country-list');$(once('footerLocation',$wrapper)).each(function(){$('body').bind('keypress click',function(event){var $eventClass=$(event.target).attr('class');var $displayList=$list.css('display');if($eventClass=='country-btn'&&$displayList=='none'){$list.show();$wrapper.addClass('focus');}else{$list.hide();$wrapper.removeClass('focus');}});});}};})(jQuery,Drupal,once);;
303(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);;
304/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
305loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}
305function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();;
306/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
307(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);;
308((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){Array.prototype.forEach.call(this.messageWrapper.querySelectorAll('[data-drupal-message-id]'),(message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);;
309(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;
309once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={};elementSettings.url=$(el.form).attr('action');elementSettings.setClick=true;elementSettings.event='click';elementSettings.progress={type:'throbber'};elementSettings.base=el.id;elementSettings.element=el;Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element&&this.element.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=$.parseJSON(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
309$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
309d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
309$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){if(typeof response.data==='string'){Drupal.deprecationError({message:'Passing a string to the Drupal.ajax.add_css() method is deprecated in 10.1.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3154948.'});$('head').prepend(response.data);return;}const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;
309if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&settings.isInProgress&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);;
310(function(Drupal){Drupal.theme.ajaxProgressBar=function($element){return $element.addClass('ajax-progress ajax-progress-bar');};})(Drupal);;
311(function($,Drupal,debounce){const cache={right:0,left:0,bottom:0,top:0};const cssVarPrefix='--drupal-displace-offset';const documentStyle=document.documentElement.style;const offsetKeys=Object.keys(cache);const offsetProps={};offsetKeys.forEach((edge)=>{offsetProps[edge]={enumerable:true,get(){return cache[edge];},set(value){if(value!==cache[edge])documentStyle.setProperty(`${cssVarPrefix}-${edge}`,`${value}px`);cache[edge]=value;}};});const offsets=Object.seal(Object.defineProperties({},offsetProps));function getRawOffset(el,edge){const $el=$(el);const documentElement=document.documentElement;let displacement=0;const horizontal=edge==='left'||edge==='right';let placement=$el.offset()[horizontal?'left':'top'];placement-=window[`scroll${horizontal?'X':'Y'}`]||document.documentElement[`scroll${horizontal?'Left':'Top'}`]||0;switch(edge){case 'top':displacement=placement+$el.outerHeight();break;case 'left':displacement=placement+$el.outerWidth();break;case 'bottom':displacement=documentElement.clientHeight-placement;break;case 'right':displacement=documentElement.clientWidth-placement;break;default:displacement=0;}return displacement;}function calculateOffset(edge){let edgeOffset=0;const displacingElements=document.querySelectorAll(`[data-offset-${edge}]`);const n=displacingElements.length;for(let i=0;i<n;i++){const el=displacingElements[i];if(el.style.display==='none')continue;let displacement=parseInt(el.getAttribute(`data-offset-${edge}`),10);if(isNaN(displacement))displacement=getRawOffset(el,edge);edgeOffset=Math.max(edgeOffset,displacement);}return edgeOffset;}function displace(broadcast=true){const newOffsets={};offsetKeys.forEach((edge)=>{newOffsets[edge]=calculateOffset(edge);});offsetKeys.forEach((edge)=>{offsets[edge]=newOffsets[edge];});if(broadcast)$(document).trigger('drupalViewportOffsetChange',offsets);return offsets;}Drupal.behaviors.drupalDisplace={attach(){if(this.displaceProcessed)return;this.displaceProcessed=true;$(window).on('resize.drupalDisplace',debounce(displace,200));}};Drupal.displace=displace;Object.defineProperty(Drupal.displace,'offsets',{value:offsets,writable:false});Drupal.displace.calculateOffset=calculateOffset;})(jQuery,Drupal,Drupal.debounce);;
312(($,Drupal,{isTabbable})=>{$.extend($.expr[':'],{tabbable(element){Drupal.deprecationError({message:'The :tabbable selector is deprecated in Drupal 9.2.0 and will be removed in Drupal 11.0.0. Use the core/tabbable library instead. See https://www.drupal.org/node/3183730'});return isTabbable(element);}});})(jQuery,Drupal,window.tabbable);;
313(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===9)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>
3130&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===9;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
313if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);;
314(function($,Drupal,once){if(once('drupal-dialog-deprecation-listener','html').length){const eventSpecial={handle($event){const $element=$($event.target);const event=$event.originalEvent;const dialog=event.dialog;const dialogArguments=[$event,dialog,$element,event?.settings];$event.handleObj.handler.apply(this,dialogArguments);}};$.event.special['dialog:beforecreate']=eventSpecial;$.event.special['dialog:aftercreate']=eventSpecial;$.event.special['dialog:beforeclose']=eventSpecial;$.event.special['dialog:afterclose']=eventSpecial;const listenDialogEvent=(event)=>{const windowEvents=$._data(window,'events');const isWindowHasDialogListener=windowEvents[event.type];if(isWindowHasDialogListener)Drupal.deprecationError({message:`jQuery event ${event.type} is deprecated in 10.3.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3422670`});};['dialog:beforecreate','dialog:aftercreate','dialog:beforeclose','dialog:afterclose'].forEach((e)=>window.addEventListener(e,listenDialogEvent));}})(jQuery,Drupal,once);;
315class DrupalDialogEvent extends Event{constructor(type,dialog,settings=null){super(`dialog:${type}`,{bubbles:true});this.dialog=dialog;this.settings=settings;}}(function($,Drupal,drupalSettings,bodyScrollLock){drupalSettings.dialog={autoOpen:true,dialogClass:'',buttonClass:'button',buttonPrimaryClass:'button--primary',close(event){Drupal.dialog(event.target).close();Drupal.detachBehaviors(event.target,null,'unload');}};Drupal.dialog=function(element,options){let undef;const $element=$(element);const domElement=$element.get(0);const dialog={open:false,returnValue:undef};function openDialog(settings){settings=$.extend({},drupalSettings.dialog,options,settings);const event=new DrupalDialogEvent('beforecreate',dialog,settings);domElement.dispatchEvent(event);$element.dialog(event.settings);dialog.open=true;if(event.settings.modal)bodyScrollLock.lock(domElement);domElement.dispatchEvent(new DrupalDialogEvent('aftercreate',dialog,event.settings));}function closeDialog(value){domElement.dispatchEvent(new DrupalDialogEvent('beforeclose',dialog));bodyScrollLock.clearBodyLocks();$element.dialog('close');dialog.returnValue=value;dialog.open=false;domElement.dispatchEvent(new DrupalDialogEvent('afterclose',dialog));}dialog.show=()=>{openDialog({modal:false});};dialog.showModal=()=>{openDialog({modal:true});};dialog.close=closeDialog;return dialog;};})(jQuery,Drupal,drupalSettings,bodyScrollLock);;
316(function($,Drupal,drupalSettings,debounce,displace){drupalSettings.dialog=$.extend({autoResize:true,maxHeight:'95%'},drupalSettings.dialog);function resetPosition(options){const offsets=displace.offsets;const left=offsets.left-offsets.right;const top=offsets.top-offsets.bottom;const leftString=`${(left>0?'+':'-')+Math.abs(Math.round(left/2))}px`;const topString=`${(top>0?'+':'-')+Math.abs(Math.round(top/2))}px`;options.position={my:`center${left!==0?leftString:''} center${top!==0?topString:''}`,of:window};return options;}function resetSize(event){const positionOptions=['width','height','minWidth','minHeight','maxHeight','maxWidth','position'];let adjustedOptions={};let windowHeight=$(window).height();let option;let optionValue;let adjustedValue;for(let n=0;n<positionOptions.length;n++){option=positionOptions[n];optionValue=event.data.settings[option];if(optionValue)if(typeof optionValue==='string'&&optionValue.endsWith('%')&&/height/i.test(option)){windowHeight-=displace.offsets.top+displace.offsets.bottom;adjustedValue=parseInt(0.01*parseInt(optionValue,10)*windowHeight,10);if(option==='height'&&Math.round(event.data.$element.parent().outerHeight())<adjustedValue)adjustedValue='auto';adjustedOptions[option]=adjustedValue;}}if(!event.data.settings.modal)adjustedOptions=resetPosition(adjustedOptions);event.data.$element.dialog('option',adjustedOptions);event.data.$element?.get(0)?.dispatchEvent(new CustomEvent('dialogContentResize',{bubbles:true}));}window.addEventListener('dialog:aftercreate',(e)=>{const autoResize=debounce(resetSize,20);const $element=$(e.target);const {settings}=e;const eventData={settings,$element};if(settings.autoResize===true||settings.autoResize==='true'){const uiDialog=$element.dialog('option',{resizable:false,draggable:false}).dialog('widget');uiDialog[0].style.position='fixed';$(window).on('resize.dialogResize scroll.dialogResize',eventData,autoResize).trigger('resize.dialogResize');$(document).on('drupalViewportOffsetChange.dialogResize',eventData,autoResize);}});window.addEventListener('dialog:beforeclose',()=>{$(window).off('.dialogResize');$(document).off('.dialogResize');});})(jQuery,Drupal,drupalSettings,Drupal.debounce,Drupal.displace);;
317(function($,{tabbable,isTabbable}){$.widget('ui.dialog',$.ui.dialog,{options:{buttonClass:'button',buttonPrimaryClass:'button--primary'},_createButtons(){const opts=this.options;let primaryIndex;let index;const il=opts.buttons.length;for(index=0;index<il;index++)if(opts.buttons[index].primary&&opts.buttons[index].primary===true){primaryIndex=index;delete opts.buttons[index].primary;break;}this._super();const $buttons=this.uiButtonSet.children().addClass(opts.buttonClass);if(typeof primaryIndex!=='undefined')$buttons.eq(index).addClass(opts.buttonPrimaryClass);},_focusTabbable(){let hasFocus=this._focusedElement?this._focusedElement.get(0):null;if(!hasFocus)hasFocus=this.element.find('[autofocus]').get(0);if(!hasFocus){const $elements=[this.element,this.uiDialogButtonPane];for(let i=0;i<$elements.length;i++){const element=$elements[i].get(0);if(element){const elementTabbable=tabbable(element);hasFocus=elementTabbable.length?elementTabbable[0]:null;}if(hasFocus)break;}}if(!hasFocus){const closeBtn=this.uiDialogTitlebarClose.get(0);hasFocus=closeBtn&&isTabbable(closeBtn)?closeBtn:null;}if(!hasFocus)hasFocus=this.uiDialog.get(0);$(hasFocus).eq(0).trigger('focus');}});})(jQuery,window.tabbable);;
318(($)=>{$.widget('ui.dialog',$.ui.dialog,{_allowInteraction(event){if(event.target.classList===undefined)return this._super(event);return event.target.classList.contains('ck')||this._super(event);}});})(jQuery);;
319;(function(factory){var registeredInModuleLoader=false;if(typeof define==='function'&&define.amd){define(factory);registeredInModuleLoader=true;}if(typeof exports==='object'){module.exports=factory();registeredInModuleLoader=true;}if(!registeredInModuleLoader){var OldCookies=window.Cookies;var api=window.Cookies=factory();api.noConflict=function(){window.Cookies=OldCookies;return api;};}}(function(){function extend(){var i=0;var result={};for(;i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes)result[key]=attributes[key];}return result;}function init(converter){function api(key,value,attributes){var result;if(typeof document==='undefined')return;if(arguments.length>1){attributes=extend({path:'/'},api.defaults,attributes);if(typeof attributes.expires==='number'){var expires=new Date();expires.setMilliseconds(expires.getMilliseconds()+attributes.expires*864e+5);attributes.expires=expires;}attributes.expires=attributes.expires?attributes.expires.toUTCString():'';try{result=JSON.stringify(value);if(/^[\{\[]/.test(result))value=result;}catch(e){}if(!converter.write)value=encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decode
319URIComponent);else value=converter.write(value,key);key=encodeURIComponent(String(key));key=key.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent);key=key.replace(/[\(\)]/g,escape);var stringifiedAttributes='';for(var attributeName in attributes){if(!attributes[attributeName])continue;stringifiedAttributes+='; '+attributeName;if(attributes[attributeName]===true)continue;stringifiedAttributes+='='+attributes[attributeName];}return (document.cookie=key+'='+value+stringifiedAttributes);}if(!key)result={};var cookies=document.cookie?document.cookie.split('; '):[];var rdecode=/(%[0-9A-Z]{2})+/g;var i=0;for(;i<cookies.length;i++){var parts=cookies[i].split('=');var cookie=parts.slice(1).join('=');if(cookie.charAt(0)==='"')cookie=cookie.slice(1,-1);try{var name=parts[0].replace(rdecode,decodeURIComponent);cookie=converter.read?converter.read(cookie,name):converter(cookie,name)||cookie.replace(rdecode,decodeURIComponent);if(this.json)try{cookie=JSON.parse(cookie);}catch(e){}if(key===name){result=cookie;break;}if(!key)result[name]=cookie;}catch(e){}}return result;}api.set=api;api.get=function(key){return api.call(api,key);};api.getJSON=function(){return api.apply({json:true},[].slice.call(arguments));};api.defaults={};api.remove=function(key,attributes){api(key,'',extend(attributes,{expires:-1}));};api.withConverter=init;return api;}return init(function(){});}));;
320!function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports;}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r});},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t];}.bind(null,n));return r;},o.n=function(e){var t=e&&e.__esModule?function(){return e.default;}:function(){return e;};return o.d(t,"a",t),t;},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);},o.p="",o(o.s=2);}({2:function(e,t){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var o=0;o<this.length;o++)e.call(t,this[o],o,this);}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;--o>=0&&t.item(o)!==this;);return o>-1;}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode;}while(null!==t&&1===t.nodeType);return null;}),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(e){e.hasOwnProperty("prepend")||Object.defineProperty(e,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){var o=e instanceof Node;t.appendChild(o?e:document.createTextNode(String(e)));})),this.insertBefore(t,this.firstChild);}});})),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){var o=e instanceof Node;t.appendChild(o?e:document.createTextNode(String(e)));})),this.appendChild(t);}});})),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("before")||Object.defineProperty(e,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){var o=e instanceof Node;t.appendChild(o?e:document.createTextNode(String(e)));})),this.parentNode.insertBefore(t,this);}});})),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this);}});}));}});;
321!function(e){var n={};function t(i){if(n[i])return n[i].exports;var a=n[i]={i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,t),a.l=!0,a.exports;}t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i});},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(i,a,function(n){return e[n];}.bind(null,a));return i;},t.n=function(e){var n=e&&e.__esModule?function(){return e.default;}:function(){return e;};return t.d(n,"a",n),n;},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n);},t.p="",t(t.s=3);}({3:function(e,n){function t(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value" in i&&(i.writable=!0),Object.defineProperty(e,i.key,i);}}function i(e){return function(e){if(Array.isArray(e))return a(e);}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e);}(e)||function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n);}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}();}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i;}function o(e){return (o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e;}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e;})(e);}!function(e){var n={};function t(i){if(n[i])return n[i].exports;var a=n[i]={i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,t),a.l=!0,a.exports;}t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i});},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==o(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(i,a,function(n){return e[n];}.bind(null,a));return i;},t.n=function(e){var n=e&&e.__esModule?function(){return e.default;}:function(){return e;};return t.d(n,"a",n),n;},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n);},t.p="",t(t.s=0);}([function(e,n,a){"use strict";a.r(n);function s(e,n){for(var t in "object"!=r(e)&&(e={}),"object"!=r(n)&&(n={}),n)n.hasOwnProperty(t)&&(void 0===e[t]?e[t]=n[t]:"object"==r(e[t])&&s(e[t],n[t]));return e;}function r(e){return {}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase();}function l(e,n,t){if("function"==typeof n){var i=n.call(e);if(void 0!==i)return i;}return null!==n&&"function"!=typeof n&&void 0!==n||void 0===t?n:t;}function c(e,n,t){var i=!1,a=function t(a){void 0!==a&&a.target!==e||(i||(e.removeEventListener("transitionend",t),e.removeEventListener("webkitTransitionEnd",t),n.call(e)),i=!0);};e.addEventListener("transitionend",a),e.addEventListener("webkitTransitionEnd",a),setTimeout(a,1.1*t);}function m(){return "mm-"+d++;}var d=0;function u(e){return "mm-"==e.slice(0,3)?e.slice(3):e;}var f={};function p(e,n){void 0===f[n]&&(f[n]={}),s(f[n],e);}function h(e){var n;return e.split(".").forEach((function(e,t){0==t?n=document.createElement(e):n.classList.add(e);})),n;}function v(e,n){return Array.prototype.slice.call(e.querySelectorAll(n));}function b(e,n){var t=Array.prototype.slice.call(e.children);return n?t.filter((function(e){return e.matches(n);})):t;}function g(e,n){for(var t=[],i=e.parentElement;i;)t.push(i),i=i.parentElement;return n?t.filter((function(e){return e.matches(n);})):t;}function _(e){return e.filter((function(e){return !e.matches(".mm-hidden");}));}function y(e){var n=[];return _(e).forEach((function(e){n.push.apply(n,i(b(e,"a.mm-listitem__text")));})),n.filter((function(e){return !e.matches(".mm-btn_next");}));}function w(e,n,t){e.matches("."+n)&&(e.classList.remove(n),e.classList.add(t));}var L={};function E(e,n,t){"number"==typeof e&&(e="(min-width: "+e+"px)"),L[e]=L[e]||[],L[e].push({yes:n,no:t});}function x(e,n){for(var t=n.matches?"yes":"no",i=0;i<L[e].length;i++)L[e][i][t]();}p({Menu:"Menu"},"nl"),p({Menu:"منو"},"fa"),p({Menu:"Menü"},"de"),p({Menu:"Меню"},"ru");var k=function(){function e(n,t,i){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function");}(this,e),this.opts=s(t,e.options),this.conf=s(i,e.configs),this._api=["bind","initPanels","openPanel","closePanel","closeAllPanels","setSelected"],this.node={},this.vars={},this.hook={},this.clck=[],this.node.menu="string"==typeof n?document.querySelector(n):n,"function"==typeof this._deprecatedWarnings&&this._deprecatedWarnings(),this._initWrappers(),this._initAddons(),this._initExtensions(),this._initHooks(),this._initAPI(),this._initMenu(),this._initPanels(),this._initOpened(),this._initAnchors(),function(){var e=function(e){var n=window.matchMedia(e);x(e,n),n.onchange=function(t){x(e,n);};};for(var n in L)e(n);}(),this;}var n,a,o;return n=e,(a=[{key:"openPanel",value:function(e,n){var t=this;if(this.trigger("openPanel:before",[e]),e&&(e.matches(".mm-panel")||(e=e.closest(".mm-panel")),e)){if("boolean"!=typeof n&&(n=!0),e.parentElement.matches(".mm-listitem_vertical")){g(e,".mm-listitem_vertical").forEach((function(e){e.classList.add("mm-listitem_opened"),b(e,".mm-panel").forEach((function(e){e.classList.remove("mm-hidden");}));}));var i=g(e,".mm-panel").filter((function(e){return !e.parentElement.matches(".mm-listitem_vertical");}));
321this.trigger("openPanel:start",[e]),i.length&&this.openPanel(i[0]),this.trigger("openPanel:finish",[e]);}else{if(e.matches(".mm-panel_opened"))return;var a=b(this.node.pnls,".mm-panel"),o=b(this.node.pnls,".mm-panel_opened")[0];a.filter((function(n){return n!==e;})).forEach((function(e){e.classList.remove("mm-panel_opened-parent");}));for(var s=e.mmParent;s;)(s=s.closest(".mm-panel"))&&(s.parentElement.matches(".mm-listitem_vertical")||s.classList.add("mm-panel_opened-parent"),s=s.mmParent);a.forEach((function(e){e.classList.remove("mm-panel_highest");})),a.filter((function(e){return e!==o;})).filter((function(n){return n!==e;})).forEach((function(e){e.classList.add("mm-hidden");})),e.classList.remove("mm-hidden");var r=function(){o&&o.classList.remove("mm-panel_opened"),e.classList.add("mm-panel_opened"),e.matches(".mm-panel_opened-parent")?(o&&o.classList.add("mm-panel_highest"),e.classList.remove("mm-panel_opened-parent")):(o&&o.classList.add("mm-panel_opened-parent"),e.classList.add("mm-panel_highest")),t.trigger("openPanel:start",[e]);},l=function(){o&&(o.classList.remove("mm-panel_highest"),o.classList.add("mm-hidden")),e.classList.remove("mm-panel_highest"),t.trigger("openPanel:finish",[e]);};n&&!e.matches(".mm-panel_noanimation")?setTimeout((function(){c(e,(function(){l();}),t.conf.transitionDuration),r();}),this.conf.openingInterval):(r(),l());}this.trigger("openPanel:after",[e]);}}},{key:"closePanel",value:function(e){this.trigger("closePanel:before",[e]);var n=e.parentElement;n.matches(".mm-listitem_vertical")&&(n.classList.remove("mm-listitem_opened"),e.classList.add("mm-hidden"),this.trigger("closePanel",[e])),this.trigger("closePanel:after",[e]);}},{key:"closeAllPanels",value:function(e){this.trigger("closeAllPanels:before"),this.node.pnls.querySelectorAll(".mm-listitem").forEach((function(e){e.classList.remove("mm-listitem_selected","mm-listitem_opened");}));var n=b(this.node.pnls,".mm-panel"),t=e||n[0];b(this.node.pnls,".mm-panel").forEach((function(e){e!==t&&(e.classList.remove("mm-panel_opened"),e.classList.remove("mm-panel_opened-parent"),e.classList.remove("mm-panel_highest"),e.classList.add("mm-hidden"));})),this.openPanel(t,!1),this.trigger("closeAllPanels:after");}},{key:"togglePanel",value:function(e){var n=e.parentElement;n.matches(".mm-listitem_vertical")&&this[n.matches(".mm-listitem_opened")?"closePanel":"openPanel"](e);}},{key:"setSelected",value:function(e){this.trigger("setSelected:before",[e]),v(this.node.menu,".mm-listitem_selected").forEach((function(e){e.classList.remove("mm-listitem_selected");})),e.classList.add("mm-listitem_selected"),this.trigger("setSelected:after",[e]);}},{key:"bind",value:function(e,n){this.hook[e]=this.hook[e]||[],this.hook[e].push(n);}},{key:"trigger",value:function(e,n){if(this.hook[e])for(var t=0,i=this.hook[e].length;t<i;t++)this.hook[e][t].apply(this,n);}},{key:"_initAPI",value:function(){var e=this,n=this;this.API={},this._api.forEach((function(t){e.API[t]=function(){var e=n[t].apply(n,arguments);return void 0===e?n.API:e;};})),this.node.menu.mmApi=this.API;}},{key:"_initHooks",value:function(){for(var e in this.opts.hooks)this.bind(e,this.opts.hooks[e]);}},{key:"_initWrappers",value:function(){this.trigger("initWrappers:before");for(var n=0;n<this.opts.wrappers.length;n++){var t=e.wrappers[this.opts.wrappers[n]];"function"==typeof t&&t.call(this);}this.trigger("initWrappers:after");}},{key:"_initAddons",value:function(){for(var n in this.trigger("initAddons:before"),e.addons)e.addons[n].call(this);this.trigger("initAddons:after");}},{key:"_initExtensions",value:function(){var e=this;for(var n in this.trigger("initExtensions:before"),"array"==r(this.opts.extensions)&&(this.opts.extensions={all:this.opts.extensions}),this.opts.extensions)this.opts.extensions[n].length&&function(){var t=e.opts.extensions[n].map((function(e){return "mm-menu_"+e;}));E(n,(function(){var n;(n=e.node.menu.classList).add.apply(n,i(t));}),(function(){var n;(n=e.node.menu.classList).remove.apply(n,i(t));}));}();this.trigger("initExtensions:after");}},{key:"_initMenu",value:function(){var e=this;this.trigger("initMenu:before"),this.node.wrpr=this.node.wrpr||this.node.menu.parentElement,this.node.wrpr.classList.add("mm-wrapper"),this.node.menu.id=this.node.menu.id||m();var n=h("div.mm-panels");b(this.node.menu).forEach((function(t){e.conf.panelNodetype.indexOf(t.nodeName.toLowerCase())>-1&&n.append(t);})),this.node.menu.append(n),this.node.pnls=n,this.node.menu.classList.add("mm-menu"),this.trigger("initMenu:after");}},{key:"_initPanels",value:function(){var e=this;this.clck.push((function(n,t){if(t.inMenu){var i=n.getAttribute("href");if(i&&i.length>1&&"#"==i.slice(0,1))try{var a=v(e.node.menu,i)[0];if(a&&a.matches(".mm-panel"))return n.parentElement.matches(".mm-listitem_vertical")?e.togglePanel(a):e.openPanel
321(a),!0;}catch(n){}}})),this.initPanels();}},{key:"initPanels",value:function(e){var n=this;this.trigger("initPanels:before",[e]);var t=this.conf.panelNodetype.join(", "),a=[];(function e(o){o.filter((function(e){return e.matches(t);})).forEach((function(o){if(o=n._initPanel(o)){n._initNavbar(o),n._initListview(o),a.push(o);var s=[];s.push.apply(s,i(b(o,"."+n.conf.classNames.panel))),b(o,".mm-listview").forEach((function(e){b(e,".mm-listitem").forEach((function(e){s.push.apply(s,i(b(e,t)));}));})),s.length&&e(s);}}));})(e=e||b(this.node.pnls,t)),this.trigger("initPanels:after",[a]);}},{key:"_initPanel",value:function(e){if(this.trigger("initPanel:before",[e]),e.matches(".mm-panel"))return e;if(w(e,this.conf.classNames.panel,"mm-panel"),w(e,this.conf.classNames.nopanel,"mm-nopanel"),w(e,this.conf.classNames.inset,"mm-listview_inset"),e.matches(".mm-listview_inset")&&e.classList.add("mm-nopanel"),e.matches(".mm-nopanel"))return null;var n=e.id||m(),t=e.matches("."+this.conf.classNames.vertical)||!this.opts.slidingSubmenus;if(e.classList.remove(this.conf.classNames.vertical),e.matches("ul, ol")){e.removeAttribute("id");var i=h("div");e.before(i),i.append(e),e=i;}e.id=n,e.classList.add("mm-panel","mm-hidden");var a=[e.parentElement].filter((function(e){return e.matches("li");}))[0];return t?a&&a.classList.add("mm-listitem_vertical"):this.node.pnls.append(e),a&&(a.mmChild=e,e.mmParent=a),this.trigger("initPanel:after",[e]),e;}},{key:"_initNavbar",value:function(e){if(this.trigger("initNavbar:before",[e]),!b(e,".mm-navbar").length){var n=e.mmParent,t=h("div.mm-navbar"),i=this._getPanelTitle(e,this.opts.navbar.title),a="";if(n){if(n.matches(".mm-listitem_vertical"))return;var o,s=(o=n.matches(".mm-listitem")?b(n,".mm-listitem__text")[0]:v(o=e.closest(".mm-panel"),'a[href="#'+e.id+'"]')[0]).closest(".mm-panel").id;switch(i=this._getPanelTitle(e,o.textContent),this.opts.navbar.titleLink){case "anchor":a=o.getAttribute("href");break;case "parent":a="#"+s;}var r=h("a.mm-btn.mm-btn_prev.mm-navbar__btn");r.setAttribute("href","#"+s),t.append(r);}else{if(!this.opts.navbar.title)return;}this.opts.navbar.add||b(e,".mm-navbar")[0].classList.add("mm-hidden");var l=h("a.mm-navbar__title");if(l.innerHTML=i,a&&l.setAttribute("href",a),t.append(l),n){var c=h("span.mm-btn.mm-navbar__btn");t.append(c);}e.prepend(t),this.trigger("initNavbar:after",[e]);}}},{key:"_initListview",value:function(e){var n=this;this.trigger("initListview:before",[e]),b(e,"ul, ol").forEach((function(e){w(e,n.conf.classNames.nolistview,"mm-nolistview"),e.matches(".mm-nolistview")||(e.classList.add("mm-listview"),b(e).forEach((function(e){e.classList.add("mm-listitem"),w(e,n.conf.classNames.selected,"mm-listitem_selected"),w(e,n.conf.classNames.spacer,"mm-listitem_spacer"),b(e,"a, span").forEach((function(e){e.matches(".mm-btn")||e.classList.add("mm-listitem__text");}));})));}));var t=e.mmParent;if(t&&t.matches(".mm-listitem")&&!b(t,".mm-btn").length){var i=b(t,".mm-listitem__text")[0];if(i){var a=h("a.mm-btn.mm-btn_next.mm-listitem__btn");a.setAttribute("href","#"+e.id),i.matches("span")?(a.classList.add("mm-listitem__text"),a.innerHTML=i.innerHTML,t.insertBefore(a,i.nextElementSibling),i.remove()):t.append(a);}}this.trigger("initListview:after",[e]);}},{key:"_initOpened",value:function(){this.trigger("initOpened:before");var e=this.node.pnls.querySelectorAll(".mm-listitem_selected"),n=null;e.forEach((function(e){n=e,e.classList.remove("mm-listitem_selected");})),n&&n.classList.add("mm-listitem_selected");var t=n?n.closest(".mm-panel"):b(this.node.pnls,".mm-panel")[0];this.openPanel(t,!1),this.trigger("initOpened:after");}},{key:"_initAnchors",value:function(){var e=this;this.trigger("initAnchors:before"),document.addEventListener("click",(function(n){var t=n.target.closest("a[href]");if(t){for(var i={inMenu:t.closest(".mm-menu")===e.node.menu,inListview:t.matches(".mm-listitem > a"),toExternal:t.matches('[rel="external"]')||t.matches('[target="_blank"]')},a={close:null,setSelected:null,preventDefault:"#"==t.getAttribute("href").slice(0,1)},o=0;o<e.clck.length;o++){var c=e.clck[o].call(e,t,i);if(c){if("boolean"==typeof c)return void n.preventDefault();"object"==r(c)&&(a=s(c,a));}}i.inMenu&&i.inListview&&!i.toExternal&&(l(t,e.opts.onClick.setSelected,a.setSelected)&&e.setSelected(t.parentElement),l(t,e.opts.onClick.preventDefault,a.preventDefault)&&n.preventDefault(),l(t,e.opts.onClick.close,a.close)&&e.opts.offCanvas&&"function"==typeof e.close&&e.close());}}),!0),this.trigger("initAnchors:after");}},{key:"i18n",value:function(e){return function(e,n){return "string"==typeof n&&void 0!==f[n]&&f[n][e]||e;}(e,this.conf.language);}},{key:"_getPanelTitle",value:function(n,t){var i;return "function"==typeof this.opts.navbar.title&&(i=this.opts.navbar.title.call(n)),void 0===i&&(i=n.getAttribute("mm-data-title")),"string"==typeof i&&i.length?i:"string"==typeof t?this.i18n(t):"function"==typeof t?this.i18n(t.call(n)):"string"==typeof e.o
321ptions.navbar.title?this.i18n(e.options.navbar.title):this.i18n("Menu");}}])&&t(n.prototype,a),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),e;}();k.version="8.1.1",k.options={hooks:{},extensions:[],wrappers:[],navbar:{add:!0,title:"Menu",titleLink:"parent"},onClick:{close:null,preventDefault:null,setSelected:!0},slidingSubmenus:!0},k.configs={classNames:{inset:"Inset",nolistview:"NoListview",nopanel:"NoPanel",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,language:null,openingInterval:25,panelNodetype:["ul","ol","div"],transitionDuration:400},k.addons={},k.wrappers={},k.node={},k.vars={};function P(e){return e?e.charAt(0).toUpperCase()+e.slice(1):"";}function S(e,n,t){var i=n.split(".");e[n="mmEvent"+P(i[0])+P(i[1])]=e[n]||[],e[n].push(t),e.addEventListener(i[0],t);}function M(e,n){var t=n.split(".");n="mmEvent"+P(t[0])+P(t[1]),(e[n]||[]).forEach((function(n){e.removeEventListener(t[0],n);}));}k.options.offCanvas={blockUI:!0,moveBackground:!0},k.configs.offCanvas={clone:!1,menu:{insertMethod:"prepend",insertSelector:"body"},page:{nodetype:"div",selector:null,noSelector:[]}},k.prototype.open=function(){var e=this;this.trigger("open:before"),this.vars.opened||(this._openSetup(),setTimeout((function(){e._openStart();}),this.conf.openingInterval),this.trigger("open:after"));},k.prototype._openSetup=function(){var e,n=this,t=this.opts.offCanvas;this.closeAllOthers(),k.node.page.mmStyle=k.node.page.getAttribute("style")||"",function(e,n,t){var i=n.split(".");(e[n="mmEvent"+P(i[0])+P(i[1])]||[]).forEach((function(e){e(t||{});}));}(window,"resize.page",{force:!0});var i=["mm-wrapper_opened"];t.blockUI&&i.push("mm-wrapper_blocking"),"modal"==t.blockUI&&i.push("mm-wrapper_modal"),t.moveBackground&&i.push("mm-wrapper_background"),(e=this.node.wrpr.classList).add.apply(e,i),setTimeout((function(){n.vars.opened=!0;}),this.conf.openingInterval),this.node.menu.classList.add("mm-menu_opened");},k.prototype._openStart=function(){var e=this;c(k.node.page,(function(){e.trigger("open:finish");}),this.conf.transitionDuration),this.trigger("open:start"),this.node.wrpr.classList.add("mm-wrapper_opening");},k.prototype.close=function(){var e=this;this.trigger("close:before"),this.vars.opened&&(c(k.node.page,(function(){e.node.menu.classList.remove("mm-menu_opened"),e.node.wrpr.classList.remove("mm-wrapper_opened","mm-wrapper_blocking","mm-wrapper_modal","mm-wrapper_background"),k.node.page.setAttribute("style",k.node.page.mmStyle),e.vars.opened=!1,e.trigger("close:finish");}),this.conf.transitionDuration),this.trigger("close:start"),this.node.wrpr.classList.remove("mm-wrapper_opening"),this.trigger("close:after"));},k.prototype.closeAllOthers=function(){var e=this;v(document.body,".mm-menu_offcanvas").forEach((function(n){if(n!==e.node.menu){var t=n.mmApi;t&&t.close&&t.close();}}));},k.prototype.setPage=function(e){this.trigger("setPage:before",[e]);var n=this.conf.offCanvas;if(!e){var t="string"==typeof n.page.selector?v(document.body,n.page.selector):b(document.body,n.page.nodetype);if(t=t.filter((function(e){return !e.matches(".mm-menu, .mm-wrapper__blocker");})),n.page.noSelector.length&&(t=t.filter((function(e){return !e.matches(n.page.noSelector.join(", "));}))),t.length>1){var i=h("div");t[0].before(i),t.forEach((function(e){i.append(e);})),t=[i];}e=t[0];}e.classList.add("mm-page","mm-slideout"),e.id=e.id||m(),k.node.page=e,this.trigger("setPage:after",[e]);};var A,T=function(){var e=this;M(document.body,"keydown.tabguard"),S(document.body,"keydown.tabguard",(function(n){9==n.keyCode&&e.node.wrpr.matches(".mm-wrapper_opened")&&n.preventDefault();})),M(window,"resize.page"),S(window,"resize.page",(function(n){k.node.page&&(e.node.wrpr.matches(".mm-wrapper_opening")||n.force)&&(k.node.page.style.minHeight=window.innerHeight+"px");}));},C=function(){var e=this;this.trigger("initBlocker:before");var n=this.opts.offCanvas,t=this.conf.offCanvas;if(n.blockUI){if(!k.node.blck){var i=h("div.mm-wrapper__blocker.mm-slideout");i.innerHTML="<a></a>",document.querySelector(t.menu.insertSelector).append(i),k.node.blck=i;}var a=function(n){n.preventDefault(),n.stopPropagation(),e.node.wrpr.matches(".mm-wrapper_modal")||e.close();};k.node.blck.addEventListener("mousedown",a),k.node.blck.addEventListener("touchstart",a),k.node.blck.addEventListener("touchmove",a),this.trigger("initBlocker:after");}};p({"Close menu":"Menu sluiten","Close submenu":"Submenu sluiten","Open submenu":"Submenu openen","Toggle submenu":"Submenu wisselen"},"nl"),p({"Close menu":"بستن منو","Close submenu":"بستن زیرمنو","Open submenu":"بازکردن زیرمنو","Toggle submenu":"سوییچ زیرمنو"},"fa"),p({"Close menu":"Menü schließen","Close submenu":"Untermenü schließen","Open submenu":"Untermenü öffnen","Toggle submenu":"Untermenü wechseln"},"de"),p({"Close menu":"Закрыть меню","Close submenu":"Закрыть подменю","Open submenu":"Открыть подменю","Toggle submenu":"Переключить подменю"},"ru"),k.options.screenReader={aria:!0,text:!0},k.configs.screenReader={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},A=function(e,n,t){e[n]=t,t?e.setAttribute(n,t.toString()):e.removeAttribute(n);},k.sr_aria=function(e,n,t){A(e,"aria-"+n,t);},k.sr_role=function(e,n){A(e,"role",n);},k.sr_text=function(e){return '<span class="mm-sronly">'+e+"</span>";};var N="ontouchstart" in window||!!navigator.msMaxTouchPoints||!1;k.options.scrollBugFix={fix:!0};k.options.autoHeight={height:"default"};k.options.backButton={close:!1,open:!1};k.options.columns={add:!1,visible:{min:1,max:3}};k.options.counters={add:!1,addTo:"panels",count:!1}
321,k.configs.classNames.counters={counter:"Counter"};k.options.dividers={add:!1,addTo:"panels",type:null},k.configs.classNames.divider="Divider";k.options.drag={menu:{open:!1,node:null,maxStartPos:100,threshold:50},panels:{close:!1},vendors:{hammer:{}}},k.configs.drag={menu:{width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}}};k.options.dropdown={drop:!1,fitViewport:!0,event:"click",position:{},tip:!0},k.configs.dropdown={offset:{button:{x:-5,y:5},viewport:{x:20,y:20}},height:{max:880},width:{max:440}};k.configs.fixedElements={fixed:{insertMethod:"append",insertSelector:"body"},sticky:{offset:0}},k.configs.classNames.fixedElements={fixed:"Fixed",sticky:"Sticky"};k.options.iconbar={use:!1,top:[],bottom:[],position:"left",type:"default"};k.options.iconPanels={add:!1,blockPanel:!0,hideDivider:!1,hideNavbar:!0,visible:3};k.options.keyboardNavigation={enable:!1,enhance:!1};var j=function(e){var n=this;M(document.body,"keydown.tabguard"),M(document.body,"focusin.tabguard"),S(document.body,"focusin.tabguard",(function(e){if(n.node.wrpr.matches(".mm-wrapper_opened")){var t,i=e.target;if(i.matches(".mm-tabend"))i.parentElement.matches(".mm-menu")&&k.node.blck&&(t=k.node.blck),i.parentElement.matches(".mm-wrapper__blocker")&&(t=v(document.body,".mm-menu_offcanvas.mm-menu_opened")[0]),t||(t=i.parentElement),t&&b(t,".mm-tabstart")[0].focus();}})),M(document.body,"keydown.navigate"),S(document.body,"keydown.navigate",(function(n){var t=n.target,i=t.closest(".mm-menu");if(i){if(i.mmApi,!t.matches("input, textarea"))switch(n.keyCode){case 13:(t.matches(".mm-toggle")||t.matches(".mm-check"))&&t.dispatchEvent(new Event("click"));break;case 32:case 37:case 38:case 39:case 40:n.preventDefault();}if(e)if(t.matches("input"))switch(n.keyCode){case 27:t.value="";}else{var a=i.mmApi;switch(n.keyCode){case 8:var o=v(i,".mm-panel_opened")[0].mmParent;o&&a.openPanel(o.closest(".mm-panel"));break;case 27:i.matches(".mm-menu_offcanvas")&&a.close();}}}}));};k.options.lazySubmenus={load:!1};function H(){var e=this,n=this.opts.navbars;if(void 0!==n){n instanceof Array||(n=[n]);var t={};n.length&&(n.forEach((function(n){if(!(n=function(e){return "boolean"==typeof e&&e&&(e={}),"object"!=o(e)&&(e={}),void 0===e.content&&(e.content=["prev","title"]),e.content instanceof Array||(e.content=[e.content]),void 0===e.use&&(e.use=!0),"boolean"==typeof e.use&&e.use&&(e.use=!0),e;}(n)).use)return !1;var i=h("div.mm-navbar"),a=n.position;"bottom"!==a&&(a="top"),t[a]||(t[a]=h("div.mm-navbars_"+a)),t[a].append(i);for(var s=0,r=n.content.length;s<r;s++){var l=n.content[s];
321if("string"==typeof l){var c=H.navbarContents[l];if("function"==typeof c)c.call(e,i);else{var m=h("span");m.innerHTML=l;var d=b(m);1==d.length&&(m=d[0]),i.append(m);}}else i.append(l);}if("string"==typeof n.type){var u=H.navbarTypes[n.type];"function"==typeof u&&u.call(e,i);}"boolean"!=typeof n.use&&E(n.use,(function(){i.classList.remove("mm-hidden"),k.sr_aria(i,"hidden",!1);}),(function(){i.classList.add("mm-hidden"),k.sr_aria(i,"hidden",!0);}));})),this.bind("initMenu:after",(function(){for(var n in t)e.node.menu["bottom"==n?"append":"prepend"](t[n]);})));}}k.options.navbars=[],k.configs.navbars={breadcrumbs:{separator:"/",removeFirst:!1}},k.configs.classNames.navbars={panelNext:"Next",panelPrev:"Prev",panelTitle:"Title"},H.navbarContents={breadcrumbs:function(e){var n=this,t=h("span.mm-navbar__breadcrumbs");e.append(t),this.bind("initNavbar:after",(function(e){if(!e.querySelector(".mm-navbar__breadcrumbs")){b(e,".mm-navbar")[0].classList.add("mm-hidden");for(var t=[],i=h("span.mm-navbar__breadcrumbs"),a=e,o=!0;a;){if(a.matches(".mm-panel")||(a=a.closest(".mm-panel")),!a.parentElement.matches(".mm-listitem_vertical")){var s=v(a,".mm-navbar__title")[0].textContent;s.length&&t.unshift(o?"<span>"+s+"</span>":'<a href="#'+a.id+'">'+s+"</a>"),o=!1;}a=a.mmParent;}n.conf.navbars.breadcrumbs.removeFirst&&t.shift(),i.innerHTML=t.join('<span class="mm-separator">'+n.conf.navbars.breadcrumbs.separator+"</span>"),b(e,".mm-navbar")[0].append(i);}})),this.bind("openPanel:start",(function(e){var n=e.querySelector(".mm-navbar__breadcrumbs");n&&(t.innerHTML=n.innerHTML);})),this.bind("initNavbar:after:sr-aria",(function(e){v(e,".mm-breadcrumbs a").forEach((function(e){k.sr_aria(e,"owns",e.getAttribute("href").slice(1));}));}));},close:function(e){var n=this,t=h("a.mm-btn.mm-btn_close.mm-navbar__btn");e.append(t),this.bind("setPage:after",(function(e){t.setAttribute("href","#"+e.id);})),this.bind("setPage:after:sr-text",(function(){t.innerHTML=k.sr_text(n.i18n(n.conf.screenReader.text.closeMenu)),k.sr_aria(t,"owns",t.getAttribute("href").slice(1));}));},next:function(e){var n,t,i,a=this,o=h("a.mm-btn.mm-btn_next.mm-navbar__btn");e.append(o),this.bind("openPanel:start",(function(e){n=e.querySelector("."+a.conf.classNames.navbars.panelNext),t=n?n.getAttribute("href"):"",i=n?n.innerHTML:"",t?o.setAttribute("href",t):o.removeAttribute("href"),o.classList[t||i?"remove":"add"]("mm-hidden"),o.innerHTML=i;})),this.bind("openPanel:start:sr-aria",(function(e){k.sr_aria(o,"hidden",o.matches("mm-hidden")),k.sr_aria(o,"owns",(o.getAttribute("href")||"").slice(1));}));},prev:function(e){var n,t,i,a=this,o=h("a.mm-btn.mm-btn_prev.mm-navbar__btn");e.append(o),this.bind("initNavbar:after",(function(e){b(e,".mm-navbar")[0].classList.add("mm-hidden");})),this.bind("openPanel:start",(function(e){e.parentElement.matches(".mm-listitem_vertical")||((n=e.querySelector("."+a.conf.classNames.navbars.panelPrev))||(n=e.querySelector(".mm-navbar__btn.mm-btn_prev")),t=n?n.getAttribute("href"):"",i=n?n.innerHTML:"",t?o.setAttribute("href",t):o.removeAttribute("href"),o.classList[t||i?"remove":"add"]("mm-hidden"),o.innerHTML=i);})),this.bind("initNavbar:after:sr-aria",(function(e){k.sr_aria(e.querySelector(".mm-navbar"),"hidden",!0);})),this.bind("openPanel:start:sr-aria",(function(e){k.sr_aria(o,"hidden",o.matches(".mm-hidden")),k.sr_aria(o,"owns",(o.getAttribute("href")||"").slice(1));}));},searchfield:function(e){"object"!=r(this.opts.searchfield)&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=[e];},title:function(e){var n,t,i,a,o=this,s=h("a.mm-navbar__title");e.append(s),this.bind("openPanel:start",(function(e){e.parentElement.matches(".mm-listitem_vertical")||((i=e.querySelector("."+o.conf.classNames.navbars.panelTitle))||(i=e.querySelector(".mm-navbar__title")),(n=i?i.getAttribute("href"):"")?s.setAttribute("href",n):s.removeAttribute("href"),t=i?i.innerHTML:"",s.innerHTML=t,s.classList[n||t?"remove":"add"]("mm-hidden"));})),this.bind("openPanel:start:sr-aria",(function(e){if(o.opts.screenReader.text&&(a||b(o.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach((function(e){var n=e.querySelector(".mm-btn_prev");n&&(a=n);})),a)){var n=!0;"parent"==o.opts.navbar.titleLink&&(n=!a.matches(".mm-hidden")),k.sr_aria(s,"hidden",n);}}));}},H.navbarTypes={tabs:function(e){var n=this;e.classList.add("mm-navbar_tabs"),e.parentElement.classList.add("mm-navbars_has-tabs");var t=b(e,"a");e.addEventListener("click",(function(e){var t=e.target;if(t.matches("a"))if(t.matches(".mm-navbar__tab_selected"))e.stopImmediatePropagation();
321else try{n.openPanel(n.node.menu.querySelector(t.getAttribute("href")),!1),e.stopImmediatePropagation();}catch(e){}})),this.bind("openPanel:start",(function e(n){t.forEach((function(e){e.classList.remove("mm-navbar__tab_selected");}));var i=t.filter((function(e){return e.matches('[href="#'+n.id+'"]');}))[0];if(i)i.classList.add("mm-navbar__tab_selected");else{var a=n.mmParent;a&&e.call(this,a.closest(".mm-panel"));}}));}};k.options.pageScroll={scroll:!1,update:!1},k.configs.pageScroll={updateOffset:50};p({Search:"Zoeken","No results found.":"Geen resultaten gevonden.",cancel:"annuleren"},"nl"),p({Search:"جستجو","No results found.":"نتیجه‌ای یافت نشد.",cancel:"انصراف"},"fa"),p({Search:"Suche","No results found.":"Keine Ergebnisse gefunden.",cancel:"beenden"},"de"),p({Search:"Найти","No results found.":"Ничего не найдено.",cancel:"отменить"},"ru"),k.options.searchfield={add:!1,addTo:"panels",cancel:!1,noResults:"No results found.",placeholder:"Search",panel:{add:!1,dividers:!0,fx:"none",id:null,splash:null,title:"Search"},search:!0,showTextItems:!1,showSubPanels:!0},k.configs.searchfield={clear:!1,form:!1,input:!1,submit:!1};var O=function(e){var n=this.opts.searchfield;if(this.conf.searchfield,b(this.node.pnls,".mm-panel_search").length)return null;var t=h("div.mm-panel_search"),i=h("ul");switch(t.append(i),this.node.pnls.append(t),n.panel.id&&(t.id=n.panel.id),n.panel.title&&t.setAttribute("data-mm-title",n.panel.title),n.panel.fx){case !1:break;case "none":t.classList.add("mm-panel_noanimation");break;default:t.classList.add("mm-panel_fx-"+n.panel.fx);}if(n.panel.splash){var a=h("div.mm-panel__content");a.innerHTML=n.panel.splash,t.append(a);}return this.initPanels([t]),t;},I=function(e){var n=this.opts.searchfield,t=this.conf.searchfield;if(e.parentElement.matches(".mm-listitem_vertical"))return null;if(a=v(e,".mm-searchfield")[0])return a;function i(e,n){if(n)for(var t in n)e.setAttribute(t,n[t]);}var a=h((t.form?"form":"div")+".mm-searchfield"),o=h("div.mm-searchfield__input"),s=h("input");if(s.type="text",s.autocomplete="off",s.placeholder=this.i18n(n.placeholder),o.append(s),a.append(o),e.prepend(a),i(s,t.input),t.clear){var r=h("a.mm-btn.mm-btn_close.mm-searchfield__btn");r.setAttribute("href","#"),o.append(r);}if(i(a,t.form),t.form&&t.submit&&!t.clear){var l=h("a.mm-btn.mm-btn_next.mm-searchfield__btn");l.setAttribute("href","#"),o.append(l);}if(n.cancel){var c=h("a.mm-searchfield__cancel");c.setAttribute("href","#"),c.textContent=this.i18n("cancel"),a.append(c);}return a;},q=function(e){var n=this,t=this.opts.searchfield,a=(this.conf.searchfield,{});e.closest(".mm-panel_search")?(a.panels=v(this.node.pnls,".mm-panel"),a.noresults=[e.closest(".mm-panel")]):e.closest(".mm-panel")?(a.panels=[e.closest(".mm-panel")],a.noresults=a.panels):(a.panels=v(this.node.pnls,".mm-panel"),a.noresults=[this.node.menu]),a.panels=a.panels.filter((function(e){return !e.parentElement.matches(".mm-listitem_vertical");})),a.panels=a.panels.filter((function(e){return !e.matches(".mm-panel_search");})),a.listitems=[],a.dividers=[],a.panels.forEach((function(e){var n,t;(n=a.listitems).push.apply(n,i(v(e,".mm-listitem"))),(t=a.dividers).push.apply(t,i(v(e,".mm-divider")));}));var o=b(this.node.pnls,".mm-panel_search")[0],s=v(e,"input")[0],r=v(e,".mm-searchfield__cancel")[0];s.mmSearchfield=a,t.panel.add&&t.panel.splash&&(M(s,"focus.splash"),S(s,"focus.splash",(function(e){n.openPanel(o);}))),t.cancel&&(M(s,"focus.cancel"),S(s,"focus.cancel",(function(e){r.classList.add("mm-searchfield__cancel-active");})),M(r,"click.splash"),S(r,"click.splash",(function(e){if(e.preventDefault(),r.classList.remove("mm-searchfield__cancel-active"),o.matches(".mm-panel_opened")){var t=b(n.node.pnls,".mm-panel_opened-parent");t.length&&n.openPanel(t[t.length-1]);}}))),t.panel.add&&"panel"==t.addTo&&this.bind("openPanel:finish",(function(e){e===o&&s.focus();})),M(s,"input.search"),S(s,"input.search",(function(e){switch(e.keyCode){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:break;default:n.search(s);}})),this.search(s);},D=function(e){if(e){var n=this.opts.searchfield;if(this.conf.searchfield,e.closest(".mm-panel")||(e=b(this.node.pnls,".mm-panel")[0]),!b(e,".mm-panel__noresultsmsg").length){var t=h("div.mm-panel__noresultsmsg.mm-hidden");t.innerHTML=this.i18n(n.noResults),e.append(t);}}};k.prototype.search=function(e,n){var t=this,a=this.opts.searchfield;this.conf.searchfield,n=(n=n||""+e.value).toLowerCase().trim();var o=e.mmSearchfield,s=v(e.closest(".mm-searchfield"),".mm-btn"),r=b(this.node.pnls,".mm-panel_search")[0],l=o.panels,c=o.noresults,m=o.listitems,d=o.dividers;if(m.forEach((function(e){e.classList.remove("mm-listitem_nosubitems","mm-listitem_onlysubitems","mm-hidden");})),r&&(b(r,".mm-listview")[0].innerHTML=""),l.forEach((function(e){e.scrollTop=0;})),n.length){d.forEach((function(e){e.classList.add("mm-hidden");})),m.forEach((function(e){var t=b(e,".mm-listitem__text")[0],i=!1;t&&function(e){return Array.prototype.slice.call(e.childNodes).filter((function(e){return 3==e.nodeType;})).map((function(e){return e.textContent;})).join(" ");}(t).toLowerCase().indexOf(n)>-1&&(t.matches(".mm-listitem__btn")?a.showSubPanels&&(i=!0):(t.matches("a")||a.showTextItems)&&(i=!0)),i||e.classList.add("mm-hidden");}));var u=m.filter((function(e){return !e.matches(".mm-hidden");})).length;if(a.panel.add){var f,p=[];l.forEach((function(e){var n=_(v(e,".mm-listitem"));if((n=n.filter((function(e){return !e.matches(".mm-hidden");}))).length){if(a.panel.dividers){var t=h("li.mm-divider");t.innerHTML=e.querySelector(".mm-navbar__title").innerHTML,p.push(t);}n.forEach((function(e){p.push(e.cloneNode(!0));}));}})),p.forEach((function(e){e.querySelectorAll(".mm-toggle, .mm-check").forEach((function(e){e.remove();}));}
321)),(f=b(r,".mm-listview")[0]).append.apply(f,p),this.openPanel(r);}else a.showSubPanels&&l.forEach((function(e){_(v(e,".mm-listitem")).forEach((function(e){var n=e.mmChild;n&&v(n,".mm-listitem").forEach((function(e){e.classList.remove("mm-hidden");}));}));})),i(l).reverse().forEach((function(n,i){var a=n.mmParent;a&&(_(v(n,".mm-listitem")).length?(a.matches(".mm-hidden")&&a.classList.remove("mm-hidden"),a.classList.add("mm-listitem_onlysubitems")):e.closest(".mm-panel")||((n.matches(".mm-panel_opened")||n.matches(".mm-panel_opened-parent"))&&setTimeout((function(){t.openPanel(a.closest(".mm-panel"));}),(i+1)*(1.5*t.conf.openingInterval)),a.classList.add("mm-listitem_nosubitems")));})),l.forEach((function(e){_(v(e,".mm-listitem")).forEach((function(e){var n=function(e,n){for(var t=[],i=e.previousElementSibling;i;)!i.matches(n)||t.push(i),i=i.previousElementSibling;return t;}(e,".mm-divider")[0];n&&n.classList.remove("mm-hidden");}));}));s.forEach((function(e){return e.classList.remove("mm-hidden");})),c.forEach((function(e){v(e,".mm-panel__noresultsmsg").forEach((function(e){return e.classList[u?"add":"remove"]("mm-hidden");}));})),a.panel.add&&(a.panel.splash&&v(r,".mm-panel__content").forEach((function(e){return e.classList.add("mm-hidden");})),m.forEach((function(e){return e.classList.remove("mm-hidden");})),d.forEach((function(e){return e.classList.remove("mm-hidden");})));}else{if(m.forEach((function(e){return e.classList.remove("mm-hidden");})),d.forEach((function(e){return e.classList.remove("mm-hidden");})),s.forEach((function(e){return e.classList.add("mm-hidden");})),c.forEach((function(e){v(e,".mm-panel__noresultsmsg").forEach((function(e){return e.classList.add("mm-hidden");}));})),a.panel.add)if(a.panel.splash)v(r,".mm-panel__content").forEach((function(e){return e.classList.remove("mm-hidden");}));else{if(!e.closest(".mm-panel_search")){var g=b(this.node.pnls,".mm-panel_opened-parent");this.openPanel(g.slice(-1)[0]);}}}this.trigger("updateListview");};k.options.sectionIndexer={add:!1,addTo:"panels"};k.options.setSelected={current:!0,hover:!1,parent:!1};var B;k.options.sidebar={collapsed:{use:!1,blockMenu:!0,hideDivider:!1,hideNavbar:!0},expanded:{use:!1}},k.configs.classNames.toggles={toggle:"Toggle",check:"Check"},k.addons={offcanvas:function(){var e=this;if(this.opts.offCanvas){var n=function(e){return "object"!=o(e)&&(e={}),e;}(this.opts.offCanvas);this.opts.offCanvas=s(n,k.options.offCanvas);var t=this.conf.offCanvas;this._api.push("open","close","setPage"),this.vars.opened=!1,this.bind("initMenu:before",(function(){t.clone&&(e.node.menu=e.node.menu.cloneNode(!0),e.node.menu.id&&(e.node.menu.id="mm-"+e.node.menu.id),v(e.node.menu,"[id]").forEach((function(e){e.id="mm-"+e.id;}))),e.node.wrpr=document.documentElement,document.querySelector(t.menu.insertSelector)[t.menu.insertMethod](e.node.menu);})),this.bind("initMenu:after",(function(){C.call(e),e.setPage(k.node.page),T.call(e),e.node.menu.classList.add("mm-menu_offcanvas");var n=window.location.hash;if(n){var t=u(e.node.menu.id);t&&t==n.slice(1)&&setTimeout((function(){e.open();}),1e3);}})),this.bind("setPage:after",(function(e){k.node.blck&&b(k.node.blck,"a").forEach((function(n){n.setAttribute("href","#"+e.id);}));})),this.bind("open:start:sr-aria",(function(){k.sr_aria(e.node.menu,"hidden",!1);})),this.bind("close:finish:sr-aria",(function(){k.sr_aria(e.node.menu,"hidden",!0);})),this.bind("initMenu:after:sr-aria",(function(){k.sr_aria(e.node.menu,"hidden",!0);})),this.bind("initBlocker:after:sr-text",(function(){b(k.node.blck,"a").forEach((function(n){n.innerHTML=k.sr_text(e.i18n(e.conf.screenReader.text.closeMenu));}));})),this.clck.push((function(n,t){var i=u(e.node.menu.id);if(i&&n.matches('[href="#'+i+'"]')){if(t.inMenu)return e.open(),!0;var a=n.closest(".mm-menu");if(a){var o=a.mmApi;if(o&&o.close)return o.close(),c(a,(function(){e.open();}),e.conf.transitionDuration),!0;}return e.open(),!0;}if((i=k.node.page.id)&&n.matches('[href="#'+i+'"]'))return e.close(),!0;}));}},screenReader:function(){var e=this,n=function(e){return "boolean"==typeof e&&(e={aria:e,text:e}),"object"!=o(e)&&(e={}),e;}(this.opts.screenReader);this.opts.screenReader=s(n,k.options.screenReader);var t=this.conf.screenReader;n.aria&&(this.bind("initAddons:after",(function(){e.bind("initMenu:after",(function(){this.trigger("initMenu:after:sr-aria",[].slice.call(arguments));})),e.bind("initNavbar:after",(function(){this.trigger("initNavbar:after:sr-aria",[].slice.call(arguments));})),e.bind("openPanel:start",(function(){this.trigger("openPanel:start:sr-aria",[].slice.call(arguments));})),e.bind("close:start",(function(){this.trigger("close:start:sr-aria",[].slice.call(arguments));})),e.bind("close:finish",(function(){this.trigger("close:finish:sr-aria",[].slice.call(arguments));})),e.bind("open:start",(function(){this.trigger("open:start:sr-aria",[].slice.call(arguments));})),e.bind("initOpened:after",(function(){this.trigger("initOpened:after:sr-aria",[].slice.call(arguments));}));})),this.bind("updateListview",(function(){e.node.pnls.querySelectorAll(".mm-listitem").forEach((function(e){k.sr_aria(e,"hidden",e.matches(".mm-hidden"));}));})),this.bind("openPanel:start",(function(n){var t=v(e.node.pnls,".mm-panel").filter((function(e){return e!==n;})).filter((function(e){return !e.parentElement.matches(".mm-panel");})),a=[n];v(n,".mm-listitem_vertical .mm-listitem_opened").forEach((function(e){a.push.apply(a,i(b(e,".mm-panel")));})),t.forEach((function(e){k.sr_aria(e,"hidden",!0);})),a.forEach((function(e){k.sr_aria(e,"hidden",!1);}));})),this.bind("closePanel",(function(e){k.sr_aria(e,"hidden",!0);})),this.bind("initPanels:after",(function(e){e.forEach((function(e){v(e,".mm-btn").forEach((function(e){k.sr_aria(e,"haspopup",!0);var n=e.getAttribute("href");n&&k.sr_aria(e,"owns",n.replace("#",""));}));}));})),this.bind("initNavbar:after",(function(e){var n=b(e,".mm-navbar")[0],t=n.matches(".mm-hidden");k.sr_aria(n,"hidden",t);})),n.text&&"parent"==this.opts.navbar.titleLink&&this.bind("initNavbar:after",(function(e){var n=b(e,".mm-navbar")[0],t=!!n.querySelector(".mm-btn_prev");k.sr_aria(v(n,".mm-navbar__title")[0],"hidden",t);}))),n.text&&(this.bind("initAddons:after",(function(){e.bind("setPage:after",(function(){this.trigger("setPage:after:sr-text",[].slice.call(arguments));})),e.bind("initBlocker:after",(function(){this.trigger("initBlocker:after:sr-text",[].slice.call(arguments));}));})),this.bind("initNavbar:after",(function(n){var i=b(n,".mm-navbar")[0];if(i){var a=b(i,".mm-btn_prev")[0];a&&(a.innerHTML=k.sr_text(e.i18n(t.text.closeSubmenu)));}}
321)),this.bind("initListview:after",(function(n){var i=n.mmParent;if(i){var a=b(i,".mm-btn_next")[0];if(a){var o=e.i18n(t.text[a.parentElement.matches(".mm-listitem_vertical")?"toggleSubmenu":"openSubmenu"]);a.innerHTML+=k.sr_text(o);}}})));},scrollBugFix:function(){var e=this;if(N&&this.opts.offCanvas&&this.opts.offCanvas.blockUI){var n=function(e){return "boolean"==typeof e&&(e={fix:e}),"object"!=o(e)&&(e={}),e;}(this.opts.scrollBugFix);if(this.opts.scrollBugFix=s(n,k.options.scrollBugFix),n.fix){if(this.bind("open:start",(function(){b(e.node.pnls,".mm-panel_opened")[0].scrollTop=0;})),!k.vars.scrollBugFixed){var t=!1;document.addEventListener("touchmove",(function(n){e.node.wrpr.matches(".mm-wrapper_opened")&&n.preventDefault();})),document.body.addEventListener("touchstart",(function(n){var i=n.target;i.matches(".mm-panels > .mm-panel")&&e.node.wrpr.matches(".mm-wrapper_opened")&&(t||(t=!0,0===i.scrollTop?i.scrollTop=1:i.scrollHeight===i.scrollTop+i.offsetHeight&&(i.scrollTop-=1),t=!1));})),document.body.addEventListener("touchmove",(function(n){var t=n.target;t.matches(".mm-panels > .mm-panel")&&e.node.wrpr.matches(".mm-wrapper_opened")&&t.scrollHeight>t.clientHeight&&n.stopPropagation();}));}k.vars.scrollBugFixed=!0,window.addEventListener("orientationchange",(function(n){var t=b(e.node.pnls,".mm-panel_opened")[0];t.scrollTop=0,t.style["-webkit-overflow-scrolling"]="auto",t.style["-webkit-overflow-scrolling"]="touch";}));}}},autoHeight:function(){var e=this,n=function(e){return "boolean"==typeof e&&e&&(e={height:"auto"}),"string"==typeof e&&(e={height:e}),"object"!=o(e)&&(e={}),e;}(this.opts.autoHeight);if(this.opts.autoHeight=s(n,k.options.autoHeight),"auto"==n.height||"highest"==n.height){var t=function(){var t=function(){var n=b(e.node.pnls,".mm-panel_opened")[0];return n&&(n=a(n)),n||(n=b(e.node.pnls,".mm-panel")[0]),n.offsetHeight;},i=function(){var n=0;return b(e.node.pnls,".mm-panel").forEach((function(e){e=a(e),n=Math.max(n,e.offsetHeight);})),n;},a=function(e){return e.parentElement.matches(".mm-listitem_vertical")&&(e=g(e,".mm-panel").filter((function(e){return !e.parentElement.matches(".mm-listitem_vertical");}))[0]),e;};return function(){if(!e.opts.offCanvas||e.vars.opened){var a=window.getComputedStyle(e.node.pnls),o=Math.max(parseInt(a.top,10),0)||0,s=Math.max(parseInt(a.bottom,10),0)||0,r=0;e.node.menu.classList.add("mm-menu_autoheight-measuring"),"auto"==n.height?r=t():"highest"==n.height&&(r=i()),e.node.menu.style.height=r+o+s+"px",e.node.menu.classList.remove("mm-menu_autoheight-measuring");}};}();this.bind("initMenu:after",(function(){e.node.menu.classList.add("mm-menu_autoheight");})),this.opts.offCanvas&&this.bind("open:start",t),"highest"==n.height&&this.bind("initPanels:after",t),"auto"==n.height&&(this.bind("updateListview",t),this.bind("openPanel:start",t));}},backButton:function(){var e=this;if(this.opts.offCanvas){var n=function(e){return "boolean"==typeof e&&(e={close:e}),"object"!=o(e)&&(e={}),e;}(this.opts.backButton);this.opts.backButton=s(n,k.options.backButton);var t="#"+this.node.menu.id;if(n.close){var i=[],a=function(){i=[t],b(e.node.pnls,".mm-panel_opened, .mm-panel_opened-parent").forEach((function(e){i.push("#"+e.id);}));};this.bind("open:finish",(function(){history.pushState(null,document.title,t);})),this.bind("open:finish",a),this.bind("openPanel:finish",a),this.bind("close:finish",(function(){i=[],history.back(),history.pushState(null,document.title,location.pathname+location.search);})),window.addEventListener("popstate",(function(n){if(e.vars.opened&&i.length){var a=(i=i.slice(0,-1))[i.length-1];
321a==t?e.close():(e.openPanel(e.node.menu.querySelector(a)),history.pushState(null,document.title,t));}}));}n.open&&window.addEventListener("popstate",(function(n){e.vars.opened||location.hash!=t||e.open();}));}},columns:function(){var e=this,n=function(e){return "boolean"==typeof e&&(e={add:e}),"number"==typeof e&&(e={add:!0,visible:e}),"object"!=o(e)&&(e={}),"number"==typeof e.visible&&(e.visible={min:e.visible,max:e.visible}),e;}(this.opts.columns);if(this.opts.columns=s(n,k.options.columns),n.add){n.visible.min=Math.max(1,Math.min(6,n.visible.min)),n.visible.max=Math.max(n.visible.min,Math.min(6,n.visible.max));for(var t="",a="",r=0;r<=n.visible.max;r++)t+=" mm-menu_columns-"+r,a+=" mm-panel_columns-"+r;t.length&&(t=t.slice(1),a=a.slice(1));var l=a+" mm-panel_opened mm-panel_opened-parent mm-panel_highest";this.bind("openPanel:before",(function(n){var t;if(n&&(t=n.mmParent),t&&(t=t.closest(".mm-panel"))){var i=t.className;if(i.length&&(i=i.split("mm-panel_columns-")[1]))for(var a=parseInt(i.split(" ")[0],10)+1;a>0;){if(!(n=b(e.node.pnls,".mm-panel_columns-"+a)[0])){a=-1;break;}a++,n.classList.remove(l),n.classList.add("mm-hidden");}}})),this.bind("openPanel:start",(function(o){var s,r=b(e.node.pnls,".mm-panel_opened-parent").length;o.matches(".mm-panel_opened-parent")||r++,r=Math.min(n.visible.max,Math.max(n.visible.min,r)),(s=e.node.menu.classList).remove.apply(s,i(t.split(" "))),e.node.menu.classList.add("mm-menu_columns-"+r);var l=[];b(e.node.pnls,".mm-panel").forEach((function(e){var n;(n=e.classList).remove.apply(n,i(a.split(" "))),e.matches(".mm-panel_opened-parent")&&l.push(e);})),l.push(o),l.slice(-n.visible.max).forEach((function(e,n){e.classList.add("mm-panel_columns-"+n);}));}));}},counters:function(){var e=this,n=function(e){return "boolean"==typeof e&&(e={add:e,addTo:"panels",count:e}),"object"!=o(e)&&(e={}),"panels"==e.addTo&&(e.addTo=".mm-panel"),e;}(this.opts.counters);if(this.opts.counters=s(n,k.options.counters),this.bind("initListview:after",(function(n){var t=e.conf.classNames.counters.counter;n.querySelectorAll("."+t).forEach((function(e){w(e,t,"mm-counter");}));})),n.add&&this.bind("initListview:after",(function(e){if(e.matches(n.addTo)){var t=e.mmParent;if(t&&!t.querySelector(".mm-counter")){var i=h("span.mm-counter"),a=b(t,".mm-btn")[0];a&&a.prepend(i);}}})),n.count){var t=function(n){(n?[n]:b(e.node.pnls,".mm-panel")).forEac
321h((function(e){var n=e.mmParent;if(n){var t=n.querySelector(".mm-counter");if(t){var a=[];b(e,".mm-listview").forEach((function(e){a.push.apply(a,i(b(e)));})),t.innerHTML=_(a).length.toString();}}}));};this.bind("initListview:after",t),this.bind("updateListview",t);}},dividers:function(){var e=this,n=function(e){return "boolean"==typeof e&&(e={add:e}),"object"!=o(e)&&(e={}),"panels"==e.addTo&&(e.addTo=".mm-panel"),e;}(this.opts.dividers);this.opts.dividers=s(n,k.options.dividers),this.bind("initListview:after",(function(n){b(n,"ul, ol").forEach((function(n){b(n).forEach((function(n){w(n,e.conf.classNames.divider,"mm-divider"),n.matches(".mm-divider")&&n.classList.remove("mm-listitem");}));}));})),n.type&&this.bind("initMenu:after",(function(){e.node.menu.classList.add("mm-menu_dividers-"+n.type);})),n.add&&this.bind("initListview:after",(function(e){e.matches(n.addTo)&&(v(e,".mm-divider").forEach((function(e){e.remove();})),v(e,".mm-listview").forEach((function(e){var n="";_(b(e)).forEach((function(t){var i=b(t,".mm-listitem__text")[0].textContent.trim().toLowerCase()[0];if(i.length&&i!=n){n=i;var a=h("li.mm-divider");a.textContent=i,e.insertBefore(a,t);}}));})));}));},drag:function(){var e=this;if(this.opts.offCanvas&&!("function"!=typeof window.Hammer||window.Hammer.VERSION<2)){var n=function(e){return "boolean"==typeof e&&(e={menu:e,panels:e}),"object"!=o(e)&&(e={}),"boolean"==typeof e.menu&&(e.menu={open:e.menu}),"object"!=o(e.menu)&&(e.menu={}),"boolean"==typeof e.panels&&(e.panels={close:e.panels}),"object"!=o(e.panels)&&(e.panels={}),e;}(this.opts.drag);this.opts.drag=s(n,k.options.drag);var t=this.conf.drag;n.menu.open&&this.bind("setPage:after",(function(){var a,o,s,r={events:"panleft panright",typeLower:"x",typeUpper:"X",open_dir:"right",close_dir:"left",negative:!1},c="width",m="innerWidth",d=r.open_dir,u=function(e){e<=n.menu.maxStartPos&&(p=1);},f=function(){return v(document.body,".mm-slideout");},p=0,h=0,b=0,g=e.opts.extensions.all,_=void 0===g?"left":g.indexOf("mm-menu_position-right")>-1?"right":g.indexOf("mm-menu_position-top")>-1?"top":g.indexOf("mm-menu_position-bottom")>-1?"bottom":"left",y=void 0===g?"back":g.indexOf("mm-menu_position-top")>-1||g.indexOf("mm-menu_position-bottom")>-1||g.indexOf("mm-menu_position-front")>-1?"front":"back";switch(_){case "top":case "bottom":r.events="panup pandown",r.typeLower="y",r.typeUpper="Y",c="height",m="innerHeight";}switch(_){case "right":case "bottom":r.negative=!0,u=function(e){e>=window[m]-n.menu.maxStartPos&&(p=1);};}switch(_){case "right":r.open_dir="left",r.close_dir="right";break;case "top":r.open_dir="down",r.close_dir="up";break;case "bottom":r.open_dir="up",r.close_dir="down";}switch(y){case "front":f=function(){return [this.node.menu];};}var w=l(e.node.menu,n.menu.node,k.node.page);"string"==typeof w&&(w=document.querySelector(w));var L=new window.Hammer(w,e.opts.drag.vendors.hammer);L.on("panstart",(function(n){u.call(e,n.center[r.typeLower]),s=f.call(e),d=r.open_dir;})),L.on(r.events+" panend",(function(e){p>0&&e.preventDefault();})),L.on(r.events,(function(l){if(a=l["delta"+r.typeUpper],r.negative&&(a=-a),a!=h&&(d=a>=h?r.open_dir:r.close_dir),(h=a)>n.menu.threshold&&1==p){if(e.node.wrpr.matches(".mm-wrapper_opened"))return;p=2,e._openSetup(),e.trigger("open:start"),e.node.wrpr.classList.add("mm-wrapper_dragging"),b=i(window[m]*t.menu[c].perc,t.menu[c].min,t.menu[c].max);}if(2==p){o=i(h,10,b)-("front"==y?b:0),r.negative&&(o=-o);var u="translate"+r.typeUpper+"("+o+"px )";s.forEach((function(e){e.style["-webkit-transform"]="-webkit-"+u,e.style.transform=u;}));}})),L.on("panend",(function(n){2==p&&(e.node.wrpr.classList.remove("mm-wrapper_dragging"),s.forEach((function(e){e.style["-webkit-transform"]="",e.style.transform="";})),e[d==r.open_dir?"_openStart":"close"]()),p=0;}));})),n.panels.close&&this.bind("initPanel:after",(function(n){var t=n["mmParent "];if(t){t=t.closest(".mm-panel");var i=new window.Hammer(n,e.opts.drag.vendors.hammer),a=null;i.on("panright",(function(n){a||(e.openPanel(t),a=setTimeout((function(){clearTimeout(a),a=null;}),e.conf.openingInterval+e.conf.transitionDuration));}));}}));}function i(e,n,t){return e<n&&(e=n),e>t&&(e=t),e;}},dropdown:function(){var e=this;if(this.opts.offCanvas){var n=function(e){return "boolean"==typeof e&&e&&(e={drop:e}),"object"!=o(e)&&(e={}),"string"==typeof e.position&&(e.position={of:e.position}),e;}(this.opts.dropdown);this.opts.dropdown=s(n,k.options.dropdown);var t=this.conf.dropdown;if(n.drop){var a;this.bind("initMenu:after",(function(){if(e.node.menu.classList.add("mm-menu_dropdown"),"string"!=typeof n.position.of){var t=u(e.node.menu.id);t&&t.length&&(n.position.of='[href="#'+t+'"]');}if("string"==typeof n.position.of){a=v(document.body,n.position.of)[0];var i=n.event.split(" ");1==i.length&&(i[1]=i[0]),"hover"==i[0]&&a.addEventListener("mouseenter",(function(n){e.open();}),{passive:!0}),"hover"==i[1]&&e.node.menu.addEventListener("mouseleave",(function(n){e.close();}),{passive:!0});}})),this.bind("open:start",(function(){e.node.menu.mmStyle=e.node.menu.getAttribute("style"),e.node.wrpr.classList.add("mm-wrapper_dropdown");})),this.bind("close:finish",(function(){e.node.menu.setAttribute("style",e.node.menu.mmStyle),e.node.wrpr.classList.remove("mm-wrapper_dropdown");}));var r=function(e,i){var o,s,r,l=i[0],c=i[1],m="x"==e?"offsetWidth":"offsetHeight",d="x"==e?"left"
321:"top",u="x"==e?"right":"bottom",f="x"==e?"width":"height",p="x"==e?"innerWidth":"innerHeight",h="x"==e?"maxWidth":"maxHeight",v=null,b=window["x"==e?"scrollX":"scrollY"],g=(o=d,a.getBoundingClientRect()[o]+document.body["left"===o?"scrollLeft":"scrollTop"]-b),_=g+a[m],y=window[p],w=t.offset.button[e]+t.offset.viewport[e];if(n.position[e])switch(n.position[e]){case "left":case "bottom":v="after";break;case "right":case "top":v="before";}return null===v&&(v=g+(_-g)/2<y/2?"after":"before"),"after"==v?(r=y-((s="x"==e?g:_)+w),l[d]=s+t.offset.button[e]+"px",l[u]="auto",n.tip&&c.push("mm-menu_tip-"+("x"==e?"left":"top"))):(r=(s="x"==e?_:g)-w,l[u]="calc( 100% - "+(s-t.offset.button[e])+"px )",l[d]="auto",n.tip&&c.push("mm-menu_tip-"+("x"==e?"right":"bottom"))),n.fitViewport&&(l[h]=Math.min(t[f].max,r)+"px"),[l,c];};this.bind("open:start",l),window.addEventListener("resize",(function(n){l.call(e);}),{passive:!0}),this.opts.offCanvas.blockUI||window.addEventListener("scroll",(function(n){l.call(e);}),{passive:!0});}}function l(){if(this.vars.opened){var e;this.node.menu.setAttribute("style",this.node.menu.mmStyle);var t=[{},[]];for(var a in t=r.call(this,"y",t),(t=r.call(this,"x",t))[0])this.node.menu.style[a]=t[0][a];n.tip&&(this.node.menu.classList.remove("mm-menu_tip-left","mm-menu_tip-right","mm-menu_tip-top","mm-menu_tip-bottom"),(e=this.node.menu.classList).add.apply(e,i(t[1])));}}},fixedElements:function(){var e=this;if(this.opts.offCanvas){var n,t,i,a,o=this.conf.fixedElements;this.bind("setPage:after",(function(s){n=e.conf.classNames.fixedElements.fixed,a=v(document,o.fixed.insertSelector)[0],v(s,"."+n).forEach((function(e){w(e,n,"mm-slideout"),a[o.fixed.insertMethod](e);})),v(s,"."+(t=e.conf.classNames.fixedElements.sticky)).forEach((function(e){w(e,t,"mm-sticky");})),i=v(s,".mm-sticky");})),this.bind("open:start",(function(){if(i.length&&"hidden"==window.getComputedStyle(e.node.wrpr).overflow){var n=window.scrollY+o.sticky.offset;i.forEach((function(e){e.style.top=parseInt(window.getComputedStyle(e).top,10)+n+"px";}));}})),this.bind("close:finish",(function(){i.forEach((function(e){e.style.top="";}));}));}},iconbar:function(){var e,n=this,t=function(e){return "array"==r(e)&&(e={use:!0,top:e}),"object"!=r(e)&&(e={}),void 0===e.use&&(e.use=!0),"boolean"==typeof e.use&&e.use&&(e.use=!0),e;}(this.opts.iconbar);if(this.opts.iconbar=s(t,k.options.iconbar),t.use&&(["top","bottom"].forEach((function(n,i){var a=t[n];"array"!=r(a)&&(a=[a]);for(var o=h("div.mm-iconbar__"+n),s=0,l=a.length;s<l;s++)"string"==typeof a[s]?o.innerHTML+=a[s]:o.append(a[s]);o.children.length&&(e||(e=h("div.mm-iconbar")),e.append(o));})),e)){this.bind("initMenu:after",(function(){n.node.menu.prepend(e);}));var i="mm-menu_iconbar-"+t.position,a=function(){n.node.menu.classList.add(i),k.sr_aria(e,"hidden",!1);};if("boolean"==typeof t.use?this.bind("initMenu:after",a):E(t.use,a,(function(){n.node.menu.classList.remove(i),k.sr_aria(e,"hidden",!0);})),"tabs"==t.type){e.classList.add("mm-iconbar_tabs"),e.addEventListener("click",(function(e){var t=e.target;if(t.matches("a"))if(t.matches(".mm-iconbar__tab_selected"))e.stopImmediatePropagation();else try{var i=n.node.menu.querySelector(t.getAttribute("href"))[0];i&&i.matches(".mm-panel")&&(e.preventDefault(),e.stopImmediatePropagation(),n.openPanel(i,!1));}catch(e){}}));this.bind("openPanel:start",(function n(t){v(e,"a").forEach((function(e){e.classList.remove("mm-iconbar__tab_selected");}));var i=v(e,'[href="#'+t.id+'"]')[0];if(i)i.classList.add("mm-iconbar__tab_selected");else{var a=t.mmParent;a&&n(a.closest(".mm-panel"));}}));}}},iconPanels:function(){var e=this,n=function(e){return "boolean"==typeof e&&(e={add:e}),"number"!=typeof e&&"string"!=typeof e||(e={add:!0,visible:e}),"object"!=o(e)&&(e={}),e;}(this.opts.iconPanels);this.opts.iconPanels=s(n,k.options.iconPanels);var t=!1;if("first"==n.visible&&(t=!0,n.visible=1),n.visible=Math.min(3,Math.max(1,n.visible)),n.visible++,n.add){this.bind("initMenu:after",(function(){var t,i=["mm-menu_iconpanel"];n.hideNavbar&&i.push("mm-menu_hidenavbar"),n.hideDivider&&i.push("mm-menu_hidedivi
321der"),(t=e.node.menu.classList).add.apply(t,i);}));var i=[];if(!t)for(var a=0;a<=n.visible;a++)i.push("mm-panel_iconpanel-"+a);this.bind("openPanel:start",(function(a){var o=b(e.node.pnls,".mm-panel");if(!(a=a||o[0]).parentElement.matches(".mm-listitem_vertical"))if(t)o.forEach((function(e,n){e.classList[0==n?"add":"remove"]("mm-panel_iconpanel-first");}));else{o.forEach((function(e){var n;(n=e.classList).remove.apply(n,i);})),o=o.filter((function(e){return e.matches(".mm-panel_opened-parent");}));var s=!1;o.forEach((function(e){a===e&&(s=!0);})),s||o.push(a),o.forEach((function(e){e.classList.remove("mm-hidden");})),(o=o.slice(-n.visible)).forEach((function(e,n){e.classList.add("mm-panel_iconpanel-"+n);}));}})),this.bind("initListview:after",(function(e){if(n.blockPanel&&!e.parentElement.matches(".mm-listitem_vertical")&&!b(e,".mm-panel__blocker")[0]){var t=h("a.mm-panel__blocker");t.setAttribute("href","#"+e.closest(".mm-panel").id),e.prepend(t);}}));}},keyboardNavigation:function(){var e=this;if(!N){var n=function(e){return "boolean"!=typeof e&&"string"!=typeof e||(e={enable:e}),"object"!=o(e)&&(e={}),e;}(this.opts.keyboardNavigation);if(this.opts.keyboardNavigation=s(n,k.options.keyboardNavigation),n.enable){var t=h("button.mm-tabstart.mm-sronly"),a=h("button.mm-tabend.mm-sronly"),r=h("button.mm-tabend.mm-sronly");this.bind("initMenu:after",(function(){n.enhance&&e.node.menu.classList.add("mm-menu_keyboardfocus"),j.call(e,n.enhance);})),this.bind("initOpened:before",(function(){e.node.menu.prepend(t),e.node.menu.append(a),b(e.node.menu,".mm-navbars-top, .mm-navbars-bottom").forEach((function(e){e.querySelectorAll(".mm-navbar__title").forEach((function(e){e.setAttribute("tabindex","-1");}));}));})),this.bind("initBlocker:after",(function(){k.node.blck.append(r),b(k.node.blck,"a")[0].classList.add("mm-tabstart");}));var l="input, select, textarea, button, label, a[href]",c=function(t){t=t||b(e.node.pnls,".mm-panel_opened")[0];var a=null,o=document.activeElement.closest(".mm-navbar");if(!o||o.closest(".mm-menu")!=e.node.menu){if("default"==n.enable&&((a=v(t,".mm-listview a[href]:not(.mm-hidden)")[0])||(a=v(t,l+":not(.mm-hidden)")[0]),!a)){var s=[];b(e.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach((function(e){s.push.apply(s,i(v(e,l+":not(.mm-hidden)")));})),a=s[0];}a||(a=b(e.node.menu,".mm-tabstart")[0]),a&&a.focus();}};this.bind("open:finish",c),this.bind("openPanel:finish",c),this.bind("initOpened:after:sr-aria",(function(){[e.node.menu,k.node.blck].forEach((function(e){b(e,".mm-tabstart, .mm-tabend").forEach((function(e){k.sr_aria(e,"hidden",!0),k.sr_role(e,"presentation");}));}));}));}}},lazySubmenus:function(){var e=this,n=function(e){return "boolean"==typeof e&&(e={load:e}),"object"!=o(e)&&(e={}),e;}(this.opts.lazySubmenus);this.opts.lazySubmenus=s(n,k.options.lazySubmenus),n.load&&(this.bind("initMenu:after",(function(){var n=[];v(e.node.pnls,"li").forEach((function(t){n.push.apply(n,i(b(t,e.conf.panelNodetype.join(", "))));})),n.filter((function(e){return !e.matches(".mm-listview_inset");})).filter((function(e){return !e.matches(".mm-nolistview");})).filter((function(e){return !e.matches(".mm-nopanel");})).forEach((function(e){e.classList.add("mm-panel_lazysubmenu","mm-nolistview","mm-nopanel");}));})),this.bind("initPanels:before",(function(n){(n=n||b(e.node.pnls,e.conf.panelNodetype.join(", "))).forEach((function(e){var n=".mm-panel_lazysubmenu",t=v(e,n);e.matches(n)&&t.unshift(e),t.filter((function(e){return !e.matches(".mm-panel_lazysubmenu .mm-panel_lazysubmenu");})).forEach((function(e){e.classList.remove("mm-panel_lazysubmenu","mm-nolistview","mm-nopanel");}));}));})),this.bind("initOpened:before",(function(){var n=[];v(e.node.pnls,"."+e.conf.classNames.selected).forEach((function(e){n.push.apply(n,i(g(e,".mm-panel_lazysubmenu")));})),n.length&&(n.forEach((function(e){e.classList.remove("mm-panel_lazysubmenu","mm-nolistview mm-nopanel");})),e.initPanels([n[n.length-1]]));})),this.bind("openPanel:before",(function(n){var t=".mm-panel_lazysubmenu",i=v(n,t);n.matches(t)&&i.unshift(n),(i=i.filter((function(e){return !e.matches(".mm-panel_lazysubmenu .mm-panel_lazysubmenu");}))).length&&e.initPanels(i);})));},navbars:H,pageScroll:function(){var e=this,n=function(e){return "boolean"==typeof e&&(e={scroll:e}),"object"!=o(e)&&(e={}),e;}(this.opts.pageScroll);this.opts.pageScroll=s(n,k.options.pageScroll);var t,i=this.conf.pageScroll;function a(){t&&t.scrollIntoView({behavior:"smooth"}),t=null;}function r(e){try{return "#"!=e&&"#"==e.slice(0,1)?k.node.page.querySelector(e):null;}catch(e){return null;}}if(n.scroll&&this.bind("close:finish",(function(){a();})),this.opts.offCanvas&&n.scroll&&this.clck.push((function(n,i){if
321(t=null,i.inMenu){var o=n.getAttribute("href");if(t=r(o))return e.node.menu.matches(".mm-menu_sidebar-expanded")&&e.node.wrpr.matches(".mm-wrapper_sidebar-expanded")?void a():{close:!0};}})),n.update){var l=[];this.bind("initListview:after",(function(e){y(v(e,".mm-listitem")).forEach((function(e){var n=r(e.getAttribute("href"));n&&l.unshift(n);}));}));var c=-1;window.addEventListener("scroll",(function(n){for(var t=window.scrollY,a=0;a<l.length;a++)if(l[a].offsetTop<t+i.updateOffset){if(c!==a){c=a;var o=y(v(b(e.node.pnls,".mm-panel_opened")[0],".mm-listitem"));(o=o.filter((function(e){return e.matches('[href="#'+l[a].id+'"]');}))).length&&e.setSelected(o[0].parentElement);}break;}}));}},searchfield:function(){var e=this,n=function(e){return "boolean"==typeof e&&(e={add:e}),"object"!=o(e)&&(e={}),"boolean"==typeof e.panel&&(e.panel={add:e.panel}),"object"!=o(e.panel)&&(e.panel={}),"panel"==e.addTo&&(e.panel.add=!0),e.panel.add&&(e.showSubPanels=!1,e.panel.splash&&(e.cancel=!0)),e;}(this.opts.searchfield);this.opts.searchfield=s(n,k.options.searchfield),this.conf.searchfield,n.add&&(this.bind("close:start",(function(){v(e.node.menu,".mm-searchfield").forEach((function(e){e.blur();}));})),this.bind("initPanels:after",(function(t){var i=null;n.panel.add&&(i=O.call(e,t));var a=null;switch(n.addTo){case "panels":a=t;break;case "panel":a=[i];break;default:"string"==typeof n.addTo?a=v(e.node.menu,n.addTo):"array"==r(n.addTo)&&(a=n.addTo);}a.forEach((function(t){t=I.call(e,t),n.search&&t&&q.call(e,t);})),n.noResults&&(n.panel.add?[i]:t).forEach((function(n){D.call(e,n);}));})),this.clck.push((function(n,t){if(t.inMenu&&n.matches(".mm-searchfield__btn")){if(n.matches(".mm-btn_close")){var i=v(n.closest(".mm-searchfield"),"input")[0];return i.value="",e.search(i),!0;}if(n.matches(".mm-btn_next")){var a=n.closest("form");return a&&a.submit(),!0;}}})));},sectionIndexer:function(){var e=this,n=function(e){return "boolean"==typeof e&&(e={add:e}),"object"!=o(e)&&(e={}),e;}(this.opts.sectionIndexer);this.opts.sectionIndexer=s(n,k.options.sectionIndexer),n.add&&this.bind("initPanels:after",(function(t){if("panels"!=n.addTo&&v(e.node.menu,n.addTo).filter((function(e){return e.matches(".mm-panel");})),!e.node.indx){var i="";"abcdefghijklmnopqrstuvwxyz".split("").forEach((function(e){i+='<a href="#">'+e+"</a>";}));var a=h("div.mm-sectionindexer");a.innerHTML=i,e.node.pnls.prepend(a),e.node.indx=a,e.node.indx.addEventListener("click",(function(e){e.target.matches("a")&&e.preventDefault();}));var o=function(n){if(n.target.matches("a")){var t=n.target.textContent,i=b(e.node.pnls,".mm-panel_opened")[0],a=-1,o=i.scrollTop;i.scrollTop=0,v(i,".mm-divider").filter((function(e){return !e.matches(".mm-hidden");})).forEach((function(e){a<0&&t==e.textContent.trim().slice(0,1).toLowerCase()&&(a=e.offsetTop);})),i.scrollTop=a>-1?a:o;}};N?(e.node.indx.addEventListener("touchstart",o),e.node.indx.addEventListener("touchmove",o)):e.node.indx.addEventListener("mouseover",o);}e.bind("openPanel:start",(function(n){var t=v(n,".mm-divider").filter((function(e){return !e.matches(".mm-hidden");})).length;e.node.indx.classList[t?"add":"remove"]("mm-sectionindexer_active");}));}));},setSelected:function(){var e=this,n=function(e){return "boolean"==typeof e&&(e={hover:e,parent:e}),"object"!=o(e)&&(e={}),e;}(this.opts.setSelected);if(this.opts.setSelected=s(n,k.options.setSelected),"detect"==n.current){var t=function n(t){t=t.split("?")[0].split("#")[0];var i=e.node.menu.querySelector('a[href="'+t+'"], a[href="'+t+'/"]');if(i)e.setSelected(i.parentElement);else{var a=t.split("/").slice(0,-1);a.length&&n(a.join("/"));}};this.bind("initMenu:after",(function(){t.call(e,window.location.href);}));}else n.current||this.bind("initListview:after",(function(e){v(e,".mm-listitem_selected").forEach((function(e){e.classList.remove("mm-listitem_selected");}));}));n.hover&&this.bind("initMenu:after",(function(){e.node.menu.classList.add("mm-menu_selected-hover");})),n.parent&&(this.bind("openPanel:finish",(function(n){v(e.node.pnls,".mm-listitem_selected-parent").forEach((function(e){e.classList.remove("mm-listitem_selected-parent");}));for(var t=n.mmParent;t;)t.matches(".mm-listitem_vertical")||t.classList.add("mm-listitem_selected-parent"),t=(t=t.closest(".mm-panel")).mmParent;})),this.bind("initMenu:after",(function(){e.node.menu.classList.add("mm-menu_selected-parent");})));},sidebar:function(){var e=this;if(this.opts.offCanvas){var n=function(e){return ("string"==typeof e||"boolean"==typeof e&&e||"number"==typeof e)&&(e={expanded:e}),"object"!=o(e)&&(e={}),"boolean"==typeof e.collapsed&&e.collapsed&&(e.collapsed={use:!0}),"string"!=typeof e.collapsed&&"number"!=typeof e.collapsed||(e.collapsed={use:e.collapsed}),"object"!=o(e.collapsed)&&(e.collapsed={}),"boolean"==typeof e.expanded&&e.expanded&&(e.expanded={use:!0}),"string"!=typeof e.expanded&&"number"!=typeof e.expanded||(e.expanded={use:e.expanded}),"object"!=o(e.expanded)&&(e.expanded={}),e;}(this.opts.sidebar);this.opts.sidebar=s(n,k.options.sidebar);var t="mm-wrapper_sidebar-collapsed",i="mm-wrapper_sidebar-expanded";if(n.collapsed.use){this.bind("initMenu:after",(function(){if(e.node.menu.classList.add("mm-menu_sidebar-collapsed"),n.c
321ollapsed.blockMenu&&e.opts.offCanvas&&!b(e.node.menu,".mm-menu__blocker")[0]){var t=h("a.mm-menu__blocker");t.setAttribute("href","#"+e.node.menu.id),e.node.menu.prepend(t);}n.collapsed.hideNavbar&&e.node.menu.classList.add("mm-menu_hidenavbar"),n.collapsed.hideDivider&&e.node.menu.classList.add("mm-menu_hidedivider");}));var a=function(){e.node.wrpr.classList.add(t);};"boolean"==typeof n.collapsed.use?this.bind("initMenu:after",a):E(n.collapsed.use,a,(function(){e.node.wrpr.classList.remove(t);}));}if(n.expanded.use){this.bind("initMenu:after",(function(){e.node.menu.classList.add("mm-menu_sidebar-expanded");}));var r=function(){e.node.wrpr.classList.add(i),e.node.wrpr.matches(".mm-wrapper_sidebar-closed")||e.open();};"boolean"==typeof n.expanded.use?this.bind("initMenu:after",r):E(n.expanded.use,r,(function(){e.node.wrpr.classList.remove(i),e.close();})),this.bind("close:start",(function(){e.node.wrpr.matches("."+i)&&e.node.wrpr.classList.add("mm-wrapper_sidebar-closed");})),this.bind("open:start",(function(){e.node.wrpr.classList.remove("mm-wrapper_sidebar-closed");})),this.clck.push((function(n,t){if(t.inMenu&&t.inListview&&e.node.wrpr.matches(".mm-wrapper_sidebar-expanded"))return {close:!1};}));}}},toggles:function(){var e=this;this.bind("initPanels:after",(function(n){n.forEach((function(n){v(n,"input").forEach((function(n){w(n,e.conf.classNames.toggles.toggle,"mm-toggle"),w(n,e.conf.classNames.toggles.check,"mm-check");}));}));}));}},k.wrappers={angular:function(){this.opts.onClick={close:!0,preventDefault:!1,setSelected:!0};},bootstrap:function(){var e=this;if(this.node.menu.matches(".navbar-collapse")){this.conf.offCanvas&&(this.conf.offCanvas.clone=!1);var n=h("nav"),t=h("div");n.append(t),b(this.node.menu).forEach((function(n){switch(!0){case n.matches(".navbar-nav"):t.append(function(e){var n=h("ul");return v(e,".nav-item").forEach((function(e){var t=h("li");if(e.matches(".active")&&t.classList.add("Selected"),!e.matches(".nav-link")){var i=b(e,".dropdown-menu")[0];i&&t.append(s(i)),e=b(e,".nav-link")[0];}t.prepend(o(e)),n.append(t);})),n;}(n));break;case n.matches(".dropdown-menu"):t.append(s(n));break;case n.matches(".form-inline"):e.conf.searchfield.form={action:n.getAttribute("action")||null,method:n.getAttribute("method")||null},e.conf.searchfield.input={name:n.querySelector("input").getAttribute("name")||null},e.conf.searchfield.clear=!1,e.conf.searchfield.submit=!0;break;default:t.append(n.cloneNode(!0));}})),this.bind("initMenu:before",(function(){document.body.prepend(n),e.node.menu=n;}));var i=this.node.menu.parentElement;if(i){var a=i.querySelector(".navbar-toggler");a&&(delete a.dataset.target,a.removeAttribute("aria-controls"),a.outerHTML=a.outerHTML,(a=i.querySelector(".navbar-toggler")).addEventListener("click",(function(n){n.preventDefault(),n.stopImmediatePropagation(),e[e.vars.opened?"close":"open"]();})));}}function o(e){for(var n=h(e.matches("a")?"a":"span"),t=["href","title","target"],i=0;i<t.length;i++)void 0!==e.getAttribute(t[i])&&n.setAttribute(t[i],e.getAttribute(t[i]));return n.innerHTML=e.innerHTML,v(n,".sr-only").forEach((function(e){e.remove();})),n;}function s(e){var n=h("ul");return b(e).forEach((function(e){var t=h("li");e.matches(".dropdown-divider")?t.classList.add("Divider"):e.matches(".dropdown-item")&&t.append(o(e)),n.append(t);})),n;}},olark:function(){this.conf.offCanvas.page.noSelector.push("#olark");},turbolinks:function(){var e;document.addEventListener("turbolinks:before-visit",(function(n){e=function(e,n){for(var t=[],i=0;i<e.length;i++){var a=e[i];n(a)&&t.push(a);}return t;}((e=document.documentElement.className).split(" "),(function(e){return !/mm-/.test(e);})).join(" ");})),document.addEventListener("turbolinks:load",(function(n){void 0!==e&&(document.documentElement.className=e);}));},wordpress:function(){this.conf.classNames.selected="current-menu-item";var e=document.getElementById("wpadminbar");e&&(e.style.position="fixed",e.classList.add("mm-slideout"));}},window.Mmenu=k,(B=window.jQuery||window.Zepto||null)&&(B.fn.mmenu=function(e,n){var t=B();return this.each((function(i,a){if(!a.mmApi){var o=new k(a,e,n),s=B(o.node.menu);s.data("mmenu",o.API),t=t.add(s);}})),t;});}]);}});;
322!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports;}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o});},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e];}.bind(null,i));return o;},n.n=function(t){var e=t&&t.__esModule?function(){return t.default;}:function(){return t;};return n.d(e,"a",e),e;},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e);},n.p="",n(n.s=4);}({4:function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver" in window&&"IntersectionObserverEntry" in window&&"intersectionRatio" in window.IntersectionObserverEntry.prototype)"isIntersecting" in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0;}});else{var t=function(t){for(var e=window.document,n=i(e);n;)n=i(e=n.ownerDocument);return e;}(),e=[],n=null,o=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){o=t&&n?l(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections();}));}),n;},s._resetCrossOriginUpdater=function(){n=null,o=null;},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t;}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections();}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t;})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance();},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance();},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t;},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1];}));},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return {value:parseFloat(e[1]),unit:e[2]};}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e;},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var o=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=n.setInterval(o,this.POLL_INTERVAL):(h(n,"resize",o,!0),h(e,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver" in n&&(s=new n.MutationObserver(o)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),u(t,"resize",o,!0)),u(e,"scroll",o,!0),s&&s.disconnect();}));var c=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=c){var a=i(e);a&&this._monitorIntersections(a.ownerDocument);}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var o=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return !0;for(;n&&n!=o;){var r=i(n);if((n=r&&r.ownerDocument)==e)return !0;}return !1;}))){var r=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),r(),e!=o){var s=i(e);s&&this._unmonitorIntersections(s.ownerDocument);}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]();},s.prototype._checkForIntersections=function(){if(this.root||!n||o){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};
322this._observationTargets.forEach((function(o){var i=o.element,s=c(i),h=this._rootContainsTarget(i),u=o.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=null;this._rootContainsTarget(i)?n&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var f=o.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:l,intersectionRect:a});u?t&&h?this._hasCrossedThreshold(u,f)&&this._queuedEntries.push(f):u&&u.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f);}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this);}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,u,a,f,d,g,m,v=i,b=p(e),_=!1;!_&&b;){var w=null,y=1==b.nodeType?window.getComputedStyle(b):{};if("none"==y.display)return null;if(b==this.root||9==b.nodeType)if(_=!0,b==this.root||b==t)n&&!this.root?!o||0==o.width&&0==o.height?(b=null,w=null,v=null):w=o:w=r;else{var I=p(b),T=I&&c(I),E=I&&this._computeTargetAndRootIntersection(I,T,r);T&&E?(b=I,w=l(T,E)):(b=null,v=null);}else{var R=b.ownerDocument;b!=R.body&&b!=R.documentElement&&"visible"!=y.overflow&&(w=c(b));}if(w&&(s=w,h=v,u=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,u=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-u,v=(g=d-f)>=0&&m>=0&&{top:u,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;b=b&&p(b);}return v;}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=c(this.root);else{var n=d(this.root)?this.root:t,o=n.documentElement,i=n.body;e={top:0,left:0,right:o.clientWidth||i.clientWidth,width:o.clientWidth||i.clientWidth,bottom:o.clientHeight||i.clientHeight,height:o.clientHeight||i.clientHeight};}return this._expandRectByRootMargin(e);},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return "px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100;})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n;},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return !0;}},s.prototype._rootIsInDom=function(){return !this.root||f(t,this.root);},s.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return f(n,e)&&(!this.root||n==e.ownerDocument);},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this);},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1);},window.IntersectionObserver=s,window.IntersectionObserverEntry=r;}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null;}catch(t){return null;}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0;}function s(t,e){var n,o,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){n(),i=null;}),o));}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit;})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[];}function h(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n);}function u(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detachEvent&&t.detachEvent("on"+e,n);}function c(t){var e;try{e=t.getBoundingClientRect();}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0};}function a(t){return !t||"x" in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height};}function l(t,e){var n=e.top-t.top,o=e.left-t.left;return {top:n,left:o,height:e.height,width:e.width,bottom:n+e.he
322ight,right:o+e.width};}function f(t,e){for(var n=e;n;){if(n==t)return !0;n=p(n);}return !1;}function p(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n);}function d(t){return t&&9===t.nodeType;}}();}});;
323!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports;}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o});},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t];}.bind(null,i));return o;},n.n=function(e){var t=e&&e.__esModule?function(){return e.default;}:function(){return e;};return n.d(t,"a",t),t;},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);},n.p="",n(n.s=4);}([function(e,t,n){!function(e){"use strict";const t=(e)=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>"#"+CSS.escape(t))),e),n=(e)=>{if(!e)return 0;let {transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const o=Number.parseFloat(t),i=Number.parseFloat(n);return o||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0;},o=(e)=>{e.dispatchEvent(new Event("transitionend"));},i=(e)=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),a=(e)=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null;}return e instanceof ShadowRoot?e:e.parentNode?a(e.parentNode):null;},r=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,
323s=[],c=(e)=>{"loading"===document.readyState?(s.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of s)e();}),s.push(e)):e();},l=(e,t=[],n=e)=>"function"==typeof e?e(...t):n;e.defineJQueryPlugin=(e)=>{c(()=>{const t=r();if(t){const n=e.NAME,o=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=o,e.jQueryInterface);}});},e.execute=l,e.executeAfterTransition=(e,t,i=!0)=>{if(!i)return void l(e);const a=n(t)+5;let r=!1;const s=({target:n})=>{n===t&&(r=!0,t.removeEventListener("transitionend",s),l(e));};t.addEventListener("transitionend",s),setTimeout(()=>{r||o(t);},a);},e.findShadowRoot=a,e.getElement=(e)=>i(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(t(e)):null,e.getNextActiveElement=(e,t,n,o)=>{const i=e.length;let a=e.indexOf(t);return -1===a?!n&&o?e[i-1]:e[0]:(a+=n?1:-1,o&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))]);},e.getTransitionDurationFromElement=n,e.getUID=(e)=>{do e+=Math.floor(1e6*Math.random());while(document.getElementById(e));return e;},e.getjQuery=r,e.isDisabled=(e)=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),e.isElement=i,e.isRTL=()=>"rtl"===document.documentElement.dir,e.isVisible=(e)=>{if(!i(e)||0===e.getClientRects().length)return !1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return !1;if(null===t)return !1;}return t;},e.noop=()=>{},e.onDOMContentLoaded=c,e.parseSelector=t,e.reflow=(e)=>{e.offsetHeight;},e.toType=(e)=>null==e?""+e:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),e.triggerTransitionEnd=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});}(t);},function(e,t,n){e.exports=function(e){"use strict";const t=/[^.]*(?=\..*)\.|.*/,n=/\..*/,o=/::\d+$/,i={};let a=1;
323const r={mouseenter:"mouseover",mouseleave:"mouseout"},s=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function c(e,t){return t&&`${t}::${a++}`||e.uidEvent||a++;}function l(e){const t=c(e);return e.uidEvent=t,i[t]=i[t]||{},i[t];}function d(e,t,n=null){return Object.values(e).find((e)=>e.callable===t&&e.delegationSelector===n);}function u(e,t,n){const o="string"==typeof t,i=o?n:t||n;let a=g(e);return s.has(a)||(a=e),[o,i,a];}function f(e,n,o,i,a){if("string"!=typeof n||!e)return;let [s,f,p]=u(n,o,i);n in r&&(f=((e)=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t);})(f));const h=l(e),g=h[p]||(h[p]={}),b=d(g,f,s?o:null);if(b)return void (b.oneOff=b.oneOff&&a);const _=c(f,n.replace(t,"")),y=s?function(e,t,n){return function o(i){const a=e.querySelectorAll(t);for(let {target:r}=i;r&&r!==this;r=r.parentNode){for(const s of a)if(s===r)return v(i,{delegateTarget:r}),o.oneOff&&m.off(e,i.type,t,n),n.apply(r,[i]);}};}(e,o,f):function(e,t){return function n(o){return v(o,{delegateTarget:e}),n.oneOff&&m.off(e,o.type,t),t.apply(e,[o]);};}(e,f);y.delegationSelector=s?o:null,y.callable=f,y.oneOff=a,y.uidEvent=_,g[_]=y,e.addEventListener(p,y,s);}function p(e,t,n,o,i){const a=d(t[n],o,i);a&&(e.removeEventListener(n,a,Boolean(i)),delete t[n][a.uidEvent]);}function h(e,t,n,o){const i=t[n]||{};for(const [a,r] of Object.entries(i))a.includes(o)&&p(e,t,n,r.callable,r.delegationSelector);}function g(e){return e=e.replace(n,""),r[e]||e;}const m={on(e,t,n,o){f(e,t,n,o,!1);},one(e,t,n,o){f(e,t,n,o,!0);},off(e,t,n,i){if("string"!=typeof t||!e)return;const [a,r,s]=u(t,n,i),c=s!==t,d=l(e),f=d[s]||{},g=t.startsWith(".");if(void 0===r){if(g){for(const n of Object.keys(d))h(e,d,n,t.slice(1));}for(const [n,i] of Object.entries(f)){const a=n.replace(o,"");c&&!t.includes(a)||p(e,d,s,i.callable,i.delegationSelector);}}else{if(!Object.keys(f).length)return;p(e,d,s,r,a?n:null);}},trigger(t,n,o){if("string"!=typeof n||!t)return null;const i=e.getjQuery();let a=null,r=!0,s=!0,c=!1;n!==g(n)&&i&&(a=i.Event(n,o),i(t).trigger(a),r=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());const l=v(new Event(n,{bubbles:r,cancelable:!0}),o);return c&&l.preventDefault(),s&&t.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l;}};function v(e,t={}){for(const [n,o] of Object.entries(t))try{e[n]=o;}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>o});}return e;}return m;}(n(0));},function(e,t,n){e.exports=function(e,t,n,o){"use strict";return class extends n{constructor(t,n){super(),(t=o.getElement(t))&&(this._element=t,this._config=this._getConfig(n),e.set(this._element,this.constructor.DATA_KEY,this));}dispose(){e.remove(this._element,this.constructor.DATA_KEY),t.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null;}_queueCallback(e,t,n=!0){o.executeAfterTransition(e,t,n);}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e;}static getInstance(t){return e.get(o.getElement(t),this.DATA_KEY);}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null);}static get VERSION(){return "5.3.3";}static get DATA_KEY(){return "bs."+this.NAME;}static get EVENT_KEY(){return "."+this.DATA_KEY;}static eventName(e){return `${e}${this.EVENT_KEY}`;}};}(n(6),n(1),n(7),n(0));},function(e,t,n){e.exports=function(e){"use strict";const t=(t)=>{let n=t.getAttribute("data-bs-target");if(!n||"#"===n){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e="#"+e.split("#")[1]),n=e&&"#"!==e?e.trim():null;}return n?n.split(",").map((t)=>e.parseSelector(t)).join(","):null;},n={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>
323[].concat(...e.children).filter((e)=>e.matches(t)),parents(e,t){const n=[];let o=e.parentNode.closest(t);for(;o;)n.push(o),o=o.parentNode.closest(t);return n;},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return [n];n=n.previousElementSibling;}return [];},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return [n];n=n.nextElementSibling;}return [];},focusableChildren(t){const n=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e)=>e+':not([tabindex^="-"])').join(",");return this.find(n,t).filter((t)=>!e.isDisabled(t)&&e.isVisible(t));},getSelectorFromElement(e){const o=t(e);return o&&n.findOne(o)?o:null;},getElementFromSelector(e){const o=t(e);return o?n.findOne(o):null;},getMultipleElementsFromSelector(e){const o=t(e);return o?n.find(o):[];}};return n;}(n(0));},function(e,t,n){"use strict";n.r(t);n(5),n(9);n(10),n(11),n(12),n(13),n(14),n(15),n(16),n(17),n(18),n(19),n(20),n(21),n(22),n(23),n(24),n(25),n(26),n(27),n(28),n(29),n(30),n(31);},function(e,t,n){e.exports=function(e,t,n,o){"use strict";const i="click.bs.collapse.data-api",a={parent:null,toggle:!0},r={parent:"(null|element)",toggle:"boolean"};class s extends e{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const o=n.find('[data-bs-toggle="collapse"]');for(const e of o){const t=n.getSelectorFromElement(e),o=n.find(t).filter((e)=>e===this._element);null!==t&&o.length&&this._triggerArray.push(e);}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle();}static get Default(){return a;}static get DefaultType(){return r;}static get NAME(){return "collapse";}toggle(){this._isShown()?this.hide():this.show();}show(){if(this._isTransitioning||this._isShown())return;let e=[];
323if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e)=>e!==this._element).map((e)=>s.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(t.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const t of e)t.hide();const n=this._getDimension();this._element.classList.remove("collapse"),this._element.classList.add("collapsing"),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o="scroll"+(n[0].toUpperCase()+n.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove("collapsing"),this._element.classList.add("collapse","show"),this._element.style[n]="",t.trigger(this._element,"shown.bs.collapse");},this._element,!0),this._element.style[n]=this._element[o]+"px";}hide(){if(this._isTransitioning||!this._isShown())return;if(t.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",o.reflow(this._element),this._element.classList.add("collapsing"),this._element.classList.remove("collapse","show");for(const e of this._triggerArray){const t=n.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1);}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove("collapsing"),this._element.classList.add("collapse"),t.trigger(this._element,"hidden.bs.collapse");},this._element,!0);}_isShown(e=this._element){return e.classList.contains("show");}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=o.getElement(e.parent),e;}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height";}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren('[data-bs-toggle="collapse"]');for(const t of e){const e=n.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e));}}_getFirstLevelChildren(e){const t=n.find(":scope .collapse .collapse",this._config.parent);return n.find(e,this._config.parent).filter((e)=>!t.includes(e));}_addAriaAndCollapsedClass(e,t){if(e.length){for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t);}}static jQueryInterface(e){const t={};return "string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=s.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]();}}));}}return t.on(document,i,'[data-bs-toggle="collapse"]',(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of n.getMultipleElementsFromSelector(this))s.getOrCreateInstance(e,{toggle:!1}).toggle();})),o.defineJQueryPlugin(s),s;}(n(2),n(1),n(3),n(0));},function(e,t,n){e.exports=function(){"use strict";const e=new Map();return {set(t,n,o){e.has(t)||e.set(t,new Map());const i=e.get(t);i.has(n)||0===i.size?i.set(n,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);},get:(t,n)=>e.has(t)&&e.get(t).get(n)||null,remove(t,n){if(!e.has(t))return;const o=e.get(t);o.delete(n),0===o.size&&e.delete(t);}};}();},function(e,t,n){e.exports=function(e,t){"use strict";return class{static get Default(){return {};}static get DefaultType(){return {};}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!');}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e;}_configAfterMerge(e){return e;}_mergeConfigObj(n,o){const i=t.isElement(o)?e.getDataAttribute(o,"config"):{};return {...this.constructor.Default,..."object"==typeof i?i:{},...t.isElement(o)?e.getDataAttributes(o):{},..."object"==typeof n?n:{}};}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const [o,i] of Object.entries(n)){const n=e[o],a=t.isElement(n)?"element":t.toType(n);if(!new RegExp(i).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${a}" but expected type "${i}".`);}}};}(n(8),n(0));},function(e,t,n){e.exports=function(){"use strict";function e(e){if("true"===e)return !0;if("false"===e)return !1;
323if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e));}catch(t){return e;}}function t(e){return e.replace(/[A-Z]/g,(e)=>"-"+e.toLowerCase());}return {setDataAttribute(e,n,o){e.setAttribute("data-bs-"+t(n),o);},removeDataAttribute(e,n){e.removeAttribute("data-bs-"+t(n));},getDataAttributes(t){if(!t)return {};const n={},o=Object.keys(t.dataset).filter((e)=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const i of o){let o=i.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),n[o]=e(t.dataset[i]);}return n;},getDataAttribute:(n,o)=>e(n.getAttribute("data-bs-"+t(o)))};}();},function(e,t,n){e.exports=function(e,t,n,o){"use strict";const i="click.bs.tab",a="load.bs.tab",r="ArrowLeft",s="ArrowRight",c="ArrowUp",l="ArrowDown",d="Home",u="End",f='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',p='.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), '+f,h='.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]';class g extends e{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),t.on(this._element,"keydown.bs.tab",(e)=>this._keydown(e)));}static get NAME(){return "tab";}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),o=n?t.trigger(n,"hide.bs.tab",{relatedTarget:e}):null;t.trigger(e,"show.bs.tab",{relatedTarget:n}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(n,e),this._activate(e,n));}_activate(e,o){e&&(e.classList.add("active"),this._activate(n.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),t.trigger(e,"shown.bs.tab",{relatedTarget:o})):e.classList.add("show");},e,e.classList.contains("fade")));}_deactivate(e,o){e&&(e.classList.remove("active"),e.blur(),this._deactivate(n.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),t.trigger(e,"hidden.bs.tab",{relatedTarget:o})):e.classList.remove("show");},e,e.classList.contains("fade")));}_keydown(e){if(![r,s,c,l,d,u].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e)=>!o.isDisabled(e));let n;if([d,u].includes(e.key))n=t[e.key===d?0:t.length-1];else{const i=[s,l].includes(e.key);n=o.getNextActiveElement(t,e.target,i,!0);}n&&(n.focus({preventScroll:!0}),g.getOrCreateInstance(n).show());}_getChildren(){return n.find(p,this._parent);}_getActiveElem(){return this._getChildren().find((e)=>this._elemIsActive(e))||null;}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e);}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e);}_setInitialAttributesOnTargetPanel(e){const t=n.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",""+e.id));}_toggleDropDown(e,t){const o=this._getOuterElement(e);if(!o.classList.contains("dropdown"))return;const i=(e,i)=>{const a=n.findOne(e,o);a&&a.classList.toggle(i,t);};i(".dropdown-toggle","active"),i(".dropdown-menu","show"),o.setAttribute("aria-expanded",t);}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n);}_elemIsActive(e){return e.classList.contains("active");}_getInnerElement(e){return e.matches(p)?e:n.findOne(p,e);}
323_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e;}static jQueryInterface(e){return this.each((function(){const t=g.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]();}}));}}return t.on(document,i,f,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),o.isDisabled(this)||g.getOrCreateInstance(this).show();})),t.on(window,a,()=>{for(const e of n.find(h))g.getOrCreateInstance(e);}),o.defineJQueryPlugin(g),g;}(n(2),n(1),n(3),n(0));},function(e,t){!function(e,t,n){function o(e){if(-1===e.className.indexOf("lazy-load--done")){var t=e.querySelectorAll("img.lazy-load_-when-js")[0];t.onload=function(){e.className+=" lazy-load--revealing",setTimeout((function(){e.className+=" lazy-load--done";}),500);},t.dataset.src&&(t.src=t.dataset.src,delete t.dataset.src),t.dataset.srcset&&(t.srcset=t.dataset.srcset,delete t.dataset.srcset);}}function i(e){e.forEach((function(e){e.isIntersecting&&o(e.target);}));}function a(t){var n=t.offset().top,a=t.offset().top+t.outerHeight(),r=e(window).scrollTop()+e(window).innerHeight(),s=e(window).scrollTop();r>n&&s<a?function(e){var t=e.find("img.lazy-load_-when-js")[0],n=e.find(".lazy-load__image");e.addClass("lazy-load--done"),e.removeClass("lazy-load lazy-load--revealing"),e.children().removeClass("lazy-load__holder"),e.children().addClass("no-lazy-load__holder"),n.removeClass("lazy-load__image lazy-load_-when-js"),t.dataset.src&&(t.src=t.dataset.src,delete t.dataset.src),t.dataset.srcset&&(t.srcset=t.dataset.srcset,delete t.dataset.srcset);}(t):(t.addClass("lazy-load--loading"),function(){var e,t=document.querySelectorAll(".lazy-load");if("IntersectionObserver" in window){var n=new IntersectionObserver(i);for(e=0;e<t.length;e++)n.observe(t[e]);}else for(e=0;e<t.length;e++)o(t[e]);}());}t.behaviors.lazyLoadViewport={attach:function(t){var o=e(".lazy-load",t);e(n("lazyLoadViewport",o)).each((function(){a(e(this));}));}};}(jQuery,Drupal,once);},function(e,t){!function(){function e(e){if(e.classList.contains("lazy-load-video")){var t='<iframe src="'+e.dataset.videoSrc+'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';e.innerHTML=t,e.classList.remove("lazy-load-video");}}function t(t){t.forEach((function(t){t.isIntersecting&&e(t.target);}));}!function(){var n,o=document.querySelectorAll(".lazy-load-video");if("IntersectionObserver" in window){var i=new IntersectionObserver(t);for(n=0;n<o.length;n++)i.observe(o[n]);}else for(n=0;n<o.length;n++)e(o[n]);}();}();},function(e,t){var n;n=jQuery,document.addEventListener("DOMContentLoaded",(function(){if(n("#block-businessnavigationprimarydc").length>0||n("#js-homepage-menu").length>0||n("#block-dcbusinessblog").length>0||n("#block-dceventinsurancenavigation").length>0||n("#block-businesssupporthubnavigation").length>0||n("#block-hiscox-uk-dc-broker-navigation-menu").length>0){var e="",t=n("#block-basicblockfullhtml .link-tel"),o="Call us now",i=n('[mobile_button="on"]'),a="",r=null;n(".hero--homepage__nav").length>0?(a="#js-homepage-menu",r=!0):n("#block-dcbusinessblog").length>0?(a="#block-dcbusinessblog",r=!1):n("#block-dceventinsurancenavigation").length>0?(a="#block-dceventinsurancenavigation",r=!1):n("#block-businesssupporthubnavigation").length>0?(a="#block-businesssupporthubnavigation",r=!1):n("#block-hiscox-uk-dc-broker-navigation-menu").length>0?(a="#block-hiscox-uk-dc-broker-navigation-menu",r=!1):(a="#block-businessnavigationprimarydc",r=!1);var s=n(a+" .menu.menu--level-0").get();if(!s||!s[0])return n(".mobile-menu__burger-open").css("display","none"),void n(".mobile-menu__burger-close").css("display","none");if(n(".mobile-menu__container").append(n("<div/>",{id:"mobile-menu"}).append(s[0].outerHTML)),n("#block-basicblockfullhtml .field__items a, #block-hiscox-uk-dc-eventinsuranceheader .field__items a").each((function(){var e=n(this),t=e.attr("href")||"";t.includes("tel")||n(".mobile-menu__container .menu.menu--level-0").append(n("<li/>",{class:"menu__item"}).append(n("<a/>",{href:t}).text(e.text())));})),n(".hero--homepage__nav").length>0&&(e+='<a class="btn btn--line btn--contact" href="/contact-us">Contact us</a>'),!r){t.attr("data-button-text")&&(o=t.attr("data-button-text"));var c=t.attr("href");null==c&&null==(c=n("#block-eventinsuranceheader .link-tel").attr("href"))&&(c="tel:+448008402469"),e+='<a class="btn btn--line btn--phone" href="'+c+'">'+o+"</a>";}for(var l=0;l<i.length;l++)e+='<a class="btn btn--black" href="'+i.eq(l).attr("href")+'">'+i.eq(l).text()+"</a>";Mmenu.configs.classNames.selected="active",Mmenu.configs.offCanvas.page.selector=".mm-page";var d=new Mmenu("#mobile-menu",{slidingSubmenus:!1,extensions:["position-bottom","fx-panels-slide-up","fullscreen","shadow-page"],navbars:[{content:["prev","close"],height:2},{position:"bottom",content:[e]}]});n(window).resize((function(){n(window).width()>768&&n("html.mm-wrapper_opened").length>0&&d.API.close();}));}else n(".mobile-menu__burger-open").css("display","none"),n(".mobile-menu__burger-close").css("display","none");}));},function(e,t){var n;(n=jQuery)(document).ready((function(){var e=n(window).scrollTop();n(".l-header .primary-nav nav").length>0?n(window).scroll((function(){var t=n(window).scrollTop();t>=e?(n(".l-header").addClass("js-header--sticky-down"),n(".l-header").removeClass("js-header--sticky-up")):(n(".l-header").removeClass("js-header--sticky-down"),n(".l-header").addClass("js-header--sticky-up")),t>0&&(e=t);})):n(".hero--homepage").length>0?n(".l-header").addClass("js-header--absolute"):n(".l-header").addClass("js-header"),1===n(".bmc-header__wrapper").length&&n('[link_style="search_icon"]').hide();}));},function(e,t){var n;(n=jQuery)(document).ready((function(){0==n(".LPMcontainer").length?n(".js-live-chat").hide():n(".js-live-chat").fadeIn("fast"),new MutationObserver((function(e){e.forEach((function(e){e.addedNodes&&e.addedNodes.length>0&&[].some.call(e.addedNodes,(function(e){return void 0!==e&&void 0!==e.classList&&e.classList.contains("LPMcontainer");}))&&(n(".js-live-chat").fadeIn("fast"),n(".js-live-chat").on("click",(function(){n(".LPMcontainer").trigger("click");})));}));})).observe(document.body,{attributes:!0,childList:!0,characterData:!0}
323),n(window).scroll((function(){var e=1==n(".LPMcontainer").length;0==n(".LPMcontainer").length?n(".js-live-chat").hide():e&&(n(".js-live-chat").fadeIn("fast"),n(".js-live-chat").on("click",(function(){n(".LPMcontainer").trigger("click");}))),n(window).width()>576&&(n(document).scrollTop()>50?n(".cta-footer").addClass("js-cta-footer--show"):n(".cta-footer").removeClass("js-cta-footer--show"));}));}));},function(e,t){var n;(n=jQuery)(document).ready((function(){var e=setInterval((function(){n(".related-searches-wrapper").length>0?(n(".related-searches-wrapper").appendTo(".filters-container"),o()):t+=1,t>60&&o();}),800),t=0;function o(){clearInterval(e);}}));},function(e,t){var n;(n=jQuery)(document).ready((function(){var e=setInterval((function(){n(".results-component-wrapper").length>0?(n(".results-search-wrapper").append(o),n(".dropdown-results-count").hide(),i()):t+=1,t>60&&i();}),800),t=0,o=n("<span />");function i(){clearInterval(e);}o.on("click",(function(){n(".dropdown-filter-text").trigger("click"),n(".results-filters-wrapper").addClass("is-open"),n(".filters-title").addClass("is-open"),n(".mobile-search, .mobile-menu__burger-open").hide(),o=n("<span />").addClass("filter__icon-close"),n(".l-header").prepend(o),n(".l-header .filter__icon-close").on("click",(function(){n(".results-filters-wrapper").removeClass("is-open"),n(".filters-title").removeClass("is-open"),n(".dropdown-filter-text").trigger("click"),n(".mobile-search, .mobile-menu__burger-open").show(),n(o).remove();}));}));}));},function(e,t){var n;(n=jQuery)(document).ready((function(){n(".js-modal-popup").on("click",(function(){n(".bap__modal").fadeIn().css("display","flex");})),n("#js-modal-close, .bap__modal--mask").on("click",(function(){n(".bap__modal").fadeOut();})),document.onkeyup=function(){27===event.keyCode&&n("#js-modal-close").trigger("click");};}));},function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;}var o=0;"#GTM_debug"==location.hash&&(o=1);var i="/business-insurance/build-my-cover/tempstore-values-json",a=!1;function r(e,t){if(e.attr("data-drupal-selector")){var n=e.attr("data-drupal-selector").split("-");""!=(n=n[1].toUpperCase())&&null!=n||(n=t);}else n=t;return n;}var s="data-gtm-action",c="data-gtm-cat",l="data-gtm-label",d={};d={data_updated:!1,data_ecomm:void 0,industry:void 0,primary_trade:void 0,turnover:void 0,employees:void 0,trading_start:void 0,partner_id:void 0,basket_size_initial:void 0,basket_value_initial:void 0,basket_size_final:void 0,basket_value_final:void 0,payroll:void 0,legal_structure:void 0,experience:void 0,dc_quote_ref:void 0,saved_quote:void 0,sector:void 0,bmc_journey_code:void 0,refferal_reason:void 0,bmc_referrer:void 0,basket_products:void 0,sha256_email_address:void 0};var u={};!function(e,t){function f(t){var n=[];return e.each(d.data_ecomm,(function(e,o){o.name!=t&&(n[e]={name:o.name});})),n;}e(document).ready((function(){var p,h;e("#block-businessnavigationprimarydc").length>0&&e('[link_style="button"]').attr((n(p={},s,"start quote button"),n(p,c,"build my cover"),n(p,l,"top nav"),p));e("[".concat(s,"], [").concat(c,"], [").concat(l,"]")).on("click",(function(t){var n=e(t.currentTarget),i=n.attr(s)?n.attr(s):void 0;!function(e,t,n){""==e&&(e=void 0);""==t&&(t=void 0);""==n&&(n=void 0);1!=o&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga_event",ga_event:{category:e,action:t,label:n}}));}(n.attr(c)?n.attr(c):void 0,i,n.attr(l)?n.attr(l):void 0);})),h={},e.getJSON(i,{format:"json"}).done((function(n){e.each(n,(function(t,n){if(d[t]=n,null!=n&&0==a&&"bmc_referrer"!=t&&"data_updated"!=t&&(a=!0),null!=d.bmc_referrer&&e("a.js-exit-bmc").length>0&&""!=d.bmc_referrer&&e("a.js-exit-bmc").attr("href",d.bmc_referrer),t.indexOf("price_covers_")>-1){var o=t.split("_"),i=o[2],r=o[3];null==h[i]&&(h[i]={}),h[i][r]=n;}})),e.each({industry:"policy_companyasset_piprofession",primary_trade:"policy_companyasset_primarytrade_readable",turnover:"policy_companyasset_annualturnover",employees:"policy_companyasset_noofemployees",trading_start:"policy_companyasset_tradingstartdate",partner_id:"Scheme-Id",payroll:"policy_companyasset_wageroll",legal_structure:"policy_companyasset_companytype",experience:"policy_includedcovers_pi_coveroptions_yearsofexperience",dc_quote_ref:"dcApiPolicyId",saved_quote:"saved_quote",sector:"policy_includedcovers_ppl_coveroptions_liabilityproduct",bmc_journey_code:"bmc_journey_name",sha256_email_address:"sha256_email_address"}
323,(function(e,t){t in n!=0&&(d[e]=n[t]);}));var i={industry:d.industry,primary_trade:d.policy_companyasset_primarytrade_readable,turnover:d.turnover,employees:d.employees,trading_start:d.trading_start,partner_id:d.partner_id,basket_size_initial:d.basket_size_initial,basket_value_initial:d.basket_value_initial,basket_size_final:d.basket_size_final,basket_value_final:d.basket_value_final,payroll:d.payroll,legal_structure:d.legal_structure,experience:d.experience,dc_quote_ref:d.dc_quote_ref,saved_quote:d.saved_quote,sector:d.sector,sha256_email_address:d.sha256_email_address};e.each(i,(function(e,t){void 0!==t&&(u[e]=t);})),d.data_ecomm=[];var r=0,s={name:"[name]",id:"[sku]",price:"[premium]",basket_value:"[premiumwithoutipt]"};e.each(h,(function(t,n){d.data_ecomm[r]=[],e.each(s,(function(e,t){t in n!=0&&(""==n[t]||"Undefined"==n[t]||"undefined"==n[t]?d.data_ecomm[r][e]=void 0:d.data_ecomm[r][e]=n[t],"[name]"==t&&(null==d.basket_products&&(d.basket_products=""),""!=d.basket_products&&(d.basket_products=d.basket_products+","),d.basket_products=d.basket_products+n[t]));})),d.data_ecomm[r].quantity=1,r+=1;})),d.data_updated=!0;var c=window.location.pathname;if(1!=o&&("/business-insurance/build-my-cover/thank-you"==c?(l=f(""),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga_custom_dimensions",industry:d.industry,primary_trade:d.policy_companyasset_primarytrade_readable,turnover:d.turnover,employees:d.employees,trading_start:d.trading_start,partner_id:d.partner_id,basket_size_initial:d.basket_size_initial,basket_value_initial:d.basket_value_initial,basket_size_final:d.basket_size_final,basket_value_final:d.basket_value_final,payroll:d.payroll,legal_structure:d.legal_structure,experience:d.experience,dc_quote_ref:d.dc_quote_ref,saved_quote:d.saved_quote,sector:d.sector,basket_products:d.basket_products,sha256_email_address:d.sha256_email_address,ecommerce:{purchase:{actionField:{id:d.dc_quote_ref,revenue:d.basket_value_final},products:l}}})):1==a&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga_custom_dimensions",industry:d.industry,primary_trade:d.policy_companyasset_primarytrade_readable,turnover:d.turnover,employees:d.employees,trading_start:d.trading_start,partner_id:d.partner_id,basket_size_initial:d.basket_size_initial,basket_value_initial:d.basket_value_initial,basket_size_final:d.basket_size_final,basket_value_final:d.basket_value_final,payroll:d.payroll,legal_structure:d.legal_structure,experience:d.experience,dc_quote_ref:d.dc_quote_ref,saved_quote:d.saved_quote,sector:d.sector,bmc_journey_code:d.bmc_journey_code,referral_reason:d.referral_reason,basket_products:d.basket_products,sha256_email_address:d.sha256_email_address})),"/business-insurance/build-my-cover/quote"==c&&d.basket_size_initial==d.basket_size_final&&d.basket_value_initial==d.basket_value_final&&void 0===t.get("BMC-quote-init"))){t.set("BMC-quote-init","1");var l=f(""),p={event:"ga_ecom_event",category:"build my quote",action:"add to quote",label:"review cover page",annual_premium:d.basket_size_final,site_section:"Build My Quote",ecommerce:{currencyCode:"GBP",add:{products:l}}};window.dataLayer=window.dataLayer||[],window.dataLayer.push(e.extend(p,u));}}));e.each({idd:'.bmc-wrapper [data-drupal-form-fields*="-idd-"]',desire:'.bmc-wrapper [id*="desire--wrapper"]'},(function(t,n){e(n).length>0&&e(n).each((function(){var t=e(this),n=t.find(".fieldset-legend").text();t.find("label.webform-options-display-buttons-label").on("click",(function(){var t=e(this).text();1!=o&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga_event",category:"build my cover",action:n,label:t}));}));}));}));var g=!1;if(e("#edit-policy-companyasset-annualturnover").length>0){var m=e("#edit-policy-companyasset-annualturnover"),v=m.closest("form");v.length>0&&v.submit((function(t){if(!g){t.preventDefault(),e(this).unbind("submit").submit(),g=!0;var n=m.val();1==o?g||v.submit():(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga_event",ga_event:{category:"quote action",action:"calculate quote",label:n,turnover:n,eventCallback:function(){v.submit();},eventTimeout:1100}}));}}));}var b=!1;function _(){b||e(".dc-bap-primary-trade-search-form").each((function(){var t=e(this);""!=t.find(".primarytrades-autocomplete").val()&&t.submit();}));}e(".dc-bap-primary-trade-search-form").each((function(){var t=e(this);t.find(".primarytrades-autocomplete").length>0&&t.submit((function(t){b||(t.preventDefault(),e(this).unbind("submit").submit(),b=!0,1==o?_():(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga_event",ga_event:{event:"ga_event",category:"build my cover",action:"BAP",label:d.dc_quote_ref,eventCallback:function(){_();},eventTimeout:1100}})));}));}));var y=!1;function w(){y||C.submit();}if(e(".your-quote-page #edit-company-email").length>0){var C=e("#edit-company-email").closest("form");C.length>0&&C.submit((function(t){t.preventDefault(),e(this).unbind("submit").submit(),y=!0,1==o?w():(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga_event",ga_event:{event:"ga_event",category:"build my cover",action:"save quote",label:d.dc_quote_ref,eventCallback:function(){w();},eventTimeout:1100}}));}));}e(document).ajaxComplete((function(t,n,a){~a.url.indexOf("/modal/")&&e("#drupal-modal .dc-modal-page").length>0&&(e.getJSON(i,{format:"json"}).done((function(e){null!=e.referral_reason&&""!=e.referral_reason&&(d.referral_reason=e.referral_reason);})),1!=o&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga_event",category:"build my cover",action:"referral",label:d.referral_reason})));}));
323var k='.your-quote-page form[id*="-desire-form"]',j=".your-quote-page a.js-remove-cover-modal-link",x="form.remove-cover-form",L=".your-quote-page input.js-update-price",A=".your-quote-page a.link--pencil-icon",T=!1;function E(){T||e(k).submit();}e(k).length>0&&e(k).each((function(){var t=e(this),n=t.find(".more-covers__title").text().trim();n=r(t,n),t.submit((function(t){if(!T)if(t.preventDefault(),e(this).unbind("submit").submit(),T=!0,"function"==typeof window.unveilLoadingLayer&&window.unveilLoadingLayer(),1==o)E();else{var i={event:"ga_ecom_event",category:"build my quote",action:"add to quote",label:"review cover page|add new product",ecommerce:{currencyCode:"GBP",add:{products:[{name:n}]}},eventCallback:function(){E();},eventTimeout:1100};window.dataLayer=window.dataLayer||[],window.dataLayer.push(e.extend(i,u));}}));}));var S=!1;function q(){S||e(x).submit();}e(j).length>0&&e(j).each((function(){e(this).on("click",(function(){var t=e(x),n=e(this).closest("form"),i=e(this).closest(".card").find(".card__title").text().trim();i=r(n,i),t.length>0&&t.submit((function(t){if(!S)if(t.preventDefault(),e(this).unbind("submit").submit(),S=!0,e(".remove-cover__modal").hide(),"function"==typeof window.unveilLoadingLayer&&window.unveilLoadingLayer(),"function"==typeof window.unveilLoadingLayer&&window.unveilLoadingLayer(),1==o)q();else{var n={event:"ga_ecom_event",category:"build my quote",action:"remove from quote",label:"review cover page",ecommerce:{currencyCode:"GBP",remove:{products:[{name:i}]}},eventCallback:function(){q();},eventTimeout:1100};window.dataLayer=window.dataLayer||[],window.dataLayer.push(e.extend(n,u));}}));}));}));var O=!1;function P(e){O||e.submit();}e(L).length>0&&e(L).each((function(){var t=e(this).closest("form"),n=t.find(".card__title").text();n=e.trim(n),r(t,n),t.submit((function(n){O||(n.preventDefault(),e(this).unbind("submit").submit(),O=!0,"function"==typeof window.unveilLoadingLayer&&window.unveilLoadingLayer(),P(t));}));}));var I=!1;function D(e){I||e.submit();}e(A).length>0&&e(A).each((function(){var t=e(this).closest("form"),n=t.find(".card__title").text();n=e.trim(n),r(t,n),t.submit((function(n){I||(n.preventDefault(),e(this).unbind("submit").submit(),I=!0,"function"==typeof window.unveilLoadingLayer&&window.unveilLoadingLayer(),D(t));}));}));}));}(jQuery,window.Cookies);},function(e,t){var n;(n=jQuery)(document).ready((function(){var e=n(".custom-number-input"),t=n(".number-input__prefix"),o=n(".number-input__suffix");function i(e){var t=e.val();return t=""==t?0:parseInt(t);}t.on("click",(function(){var t,n,o,a;n=t=e,o=i(t),a=0,(a=o-1)<=0&&(a=0),n.val(a);})),o.on("click",(function(){var t;(t=e).val(i(t)+1);}));}));},function(e,t){var n;(n=jQuery)(document).ready((function(){function e(){var e=n("<div></div>");e.addClass("ui-widget-overlay--additional"),e.css({position:"fixed","z-index":"100",width:"100%",height:"100%",top:"0",left:"0",background:"transparent"}),e.attr("data-dismiss","modal");var t=setInterval((function(){n(".ui-widget-overlay").length>0&&(n(".ui-dialog").addClass("dc-lightbox"),n(".ui-dialog, .ui-widget-overlay").addClass("is-shown"),n(".ui-widget-overlay").after(e),n(".ui-widget-overlay--additional").click((function(){n(".ui-dialog-titlebar-close").trigger("click");})),n(".ui-dialog-titlebar-close").click((function(){n(".ui-widget-overlay--additional").remove();})),document.onkeyup=function(){27===event.keyCode&&n(".ui-widget-overlay--additional").remove();},clearInterval(t));}),100);}n(".webform-element-help").on("click",'[data-dialog-type="modal"]',(function(t){n(this).closest(".webform-element-help").find(".webform-element-help__icon").trigger("click");var o={url:n(this).attr("href"),dialogType:"modal"};Drupal.ajax(o).execute(),e(),t.preventDefault();})),n('[data-dialog-type="modal"]').click((function(){e();}));}));},function(e,t){var n;(n=jQuery)(document).ready((function(){var e={},t={};function o(e){return "."+e;}var i=n(".paragraph--type--dc-table");i.length>0?(e={helpTextContainer:"table-row-wrapper",helpTextIcon:"table-info-wrapper",helpTextBubble:"table-info",helpTextBubbleClose:"table-close",fieldContainer:"table-row-wrapper",XSecondsTarget:"js-x-secs-help-text",XSecondsDisabled:"js-x-secs-disable",helpActive:"help-active",visible:"visible",unveil:"unveil"},n(".paragraph--type--dc-table table tr th, .paragraph--type--dc-table table tr b").each((function(){n(this).addClass(e.helpTextContainer);})),n(".paragraph--type--dc-table table .table-info").each((function(){n(this).wrap('<div class="table-info-wrapper"></div>'),n(this).append('<div class="table-close"></div>');}))):e={helpTextContainer:"webform-element-help",helpTextIcon:"webform-element-help__icon",helpTextBubble:"webform-element-help__bubble",helpTextBubbleClose:"webform-element-help__close",fieldContainer:"js-form-item",XSecondsTarget:"js-x-secs-help-text",XSecondsDisabled:"js-x-secs-disable",visible:"visible",unveil:"unveil"},n(document).mousedown((function(t){var i=n(o(e.helpTextBubble)+", "+o(e.helpTextIcon)+", "+o(e.helpTextBubbleClose));if(!i.is(t.target)&&0===i.has(t.target).length){var a=n(o(e.helpTextBubble)+o(e.visible)).siblings(o(e.helpTextIcon));a.length>0&&a.trigger("click");}})),t={animateShowHelpTextContainerHeight:function(t){n(window).width()<1200&&(i.length>0?t.closest(o(e.helpTextContainer)).animate({height:t.outerHeight()+40},300):t.closest(o(e.helpTextContainer)).animate({height:t.outerHeight()+30},300));},animateHideHelpTextContainerHeight:function(t){n(window).width()<1200&&t.closest(o(e.helpTextContainer)).animate({height:0},300);},visibleAndUnveil:function(n){n.addClass(e.visible),setTimeout((function(){t.animateShowHelpTextContainerHeight(n),n.addClass(e.unveil);}),1);},concealAndInvisible:function(n,o){o=o||600,n.removeClass(e.unveil),t.animateHideHelpTextContainerHeight(n),setTimeout((function(){n.removeClass(e.visible);}),o);},disableXSeconds:function(t){t.addClass(e.XSecondsDisabled);},isXSecondsDisabled:function(t){return t.hasClass(e.XSecondsDisabled);}},n(window).resize((function(){n(o(e.helpTextBubble)+o(e.visible)).each((function(){t.animateShowHelpTextContainerHeight();}));})),n(o(e.helpTextContainer)).each((function(){var a=n(this),r=n("<div></div>"),s=n("<div></div>");s.addClass(e.helpTextBubbleClose),r.addClass(e.helpTextBubble),r.append(a.attr("data-webform-help")),r.append(s),a.append(r),n(this).find(".webform-element-help__bubble").find('a[data-dialog-type="modal"]').attr("data-once","ajax"),a.find(o(e.helpTextIcon)).click((function(){n(o(e.helpTextBubble)+o(e.visible)).each((function(){t.concealAndInvisible(n(this)),t.disableXSeconds(n(this));}));var a=n(this).closest(o(e.fieldContainer)).find(o(e.helpTextBubble));a.hasClass(e.visible)?(t.concealAndInvisible(a),t.disableXSeconds(a),i.length>0&&n(this).removeClass(e.helpActive)):(t.visibleAndUnveil(a),i.length>0&&n(this).addClass(e.helpActive));})),a.find(o(e.helpTextBubbleClose)).click((function(){var i=n(this).closest(o(e.fieldContainer)).find(o(e.helpTextBubble));t.concealAndInvisible(i),t.disableXSeconds(i);})),a.closest(o(e.fieldContainer)).find("input,select,textarea").each((function(){var i=n(this),a=i.closest(o(e.fieldContainer)).find(o(e.helpTextBubble)),r=!1,s=!1,c=null,l=function(){if(t.isXSecondsDisabled(a))clearInterval(c);else{var n=Math.abs(r-new Date());!0===s&&n>=16e3&&(t.visibleAndUnveil(i.closest(o(e.fieldContainer)).find(o(e.helpTextBubble))),clearInterval(c));}};i.focus((function(){t.isXSecondsDisabled(a)||(r=new Date(),s=!0,c=setInterval(l,16e3));})),i.focusout((function(){r=!1,s=!1,clearInterval(c);}));}));}));}));},function(e,t){var n=window.jQuery;n(document).ready((function(){n('.use-ajax.autoload-modal[data-dialog-type="modal"]').eq(0).trigger("click");}));},function(e,t){var n;(n=jQuery)(document).ready((function(){var e="js-full-card-wrapper",t="js-edit-cover-link",o="card__quote-footer",i="js-update-price",a="js-update-btn",r="js-current-price",s="js-cancel-changes",c="js-cancel-btn",l="js-current-price-wrapper",d="js-level-radios",u="js-webform-type-radios",f="js-total-price",p="js-quote-per-month",h="js-edit-cover-content",g="card--buzz-cut",m="refine-quote__mask",v="cta-footer",b="js-exit-bmc",_="js-cta-footer",y="js-cta-footer-content-right",w="js-update-price-footer",C="js-continue-submission-footer",k="js-covered-now-footer",j="js-quote-info",x=".",L={cards:n("".concat(x).concat(e)),getCurrentPrice:n("".concat(x).concat(r)),stickyFooter:n("".concat(x).concat(v)),totalPrice:n("".concat(x).concat(f)),perMonth:n("".concat(x).concat(p)),exitBmc:n("".concat(x).concat(y," ").concat(x).concat(b)),SFContentRight:n("".concat(x).concat(y)),updateFooterPriceBtn:n("".concat(x).concat(w)),coverNowBtn:n("".concat(x).concat(k)),quoteInfoCover:n("".concat(x).concat(j)),continueFooterBtn:n("".concat(x).concat(C))},A="is-active";function T(){n('input[type="radio"]').closest("".concat(x).concat(d)).find('input[type="radio"]').each((function(){n(this).is(":checked")?n(this).parent().addClass("radio--checked"):n(this).parent().removeClass("radio--checked");}));}var E=L.totalPrice.clone();if(E.find(".price-notes, .price--per-year").remove(),n("".concat(x).concat(_," ").concat(x).concat(f)).eq(0).remove(),1===L.totalPrice.length&&1===L.quoteInfoCover.length){L.stickyFooter.show();var S=L.totalPrice.clone();S.find(".price-notes, .price--per-year").remove(),L.SFContentRight.append(S);var q=L.quoteInfoCover.find(".js-form-wrapper a").attr("href");L.exitBmc.hide(),n(window).width()>992&&(L.coverNowBtn.show(),L.coverNowBtn.attr("href",q));}else "javascript:void(0)"!=L.stickyFooter.find("a.js-covered-now-footer").attr("href")&&L.stickyFooter.show();L.coverNowBtn.on("click",(function(){n(".your-quote-page a.btn").length>0?window.location.href=n(".your-quote-page a.btn").attr("href"):n('form:not([class="dc-bap-no-results-form"]) .js-form-submit').click();})),L.updateFooterPriceBtn.hide(),L.continueFooterBtn.hide(),1===L.totalPrice.length&&L.cards.each((function(e,d){!function(e){var d=n(e),p=d.find("".concat(x).concat(t)),v=d.find("".concat(x).concat(r)),b=d.find("".concat(x).concat(c)),y=d.find("".concat(x).concat(s)),w=d.find("".concat(x).concat(g)),C=n("".concat(x).concat(m)),k=d.find("".concat(x).concat(i)),j=d.find("".concat(x).concat(a)),S=d.find("".concat(x).concat(h)),q=d.find("".concat(x).concat(l)),O=d.find('[type="radio"]'),P=d.find("".concat(x).concat(u)),I=n("".concat(x).concat(f)),D=d.find(".js-form-submit");O.filter(":checked").attr("data-price",v.text()),T(),p.click((function(e){var t=n(e.delegateTarget),i=t.closest(d).find(S),a=t.closest(d).find(n("".concat(x).concat(g))),r
323=t.closest(d).find(n("".concat(x).concat(o)));C.addClass(A),b.addClass(A),j.css("display","inline-block"),C.hasClass(A)&&(a.css("z-index","30"),r.fadeOut(30),q.hide(),I.hide(),n("".concat(x).concat(_," ").concat(x).concat(f)).hide(),i.addClass(A)),S.hasClass(A)&&(k.css("display","none"),y.removeClass(A),L.updateFooterPriceBtn.hide(),L.coverNowBtn.hide()),i.slideDown(),L.continueFooterBtn.on("click",(function(){S.hasClass(A)&&n(D).trigger("click");})),L.continueFooterBtn.show();})),O.change((function(){var e=d.find(".js-webform-type-radios").find("[data-price]:checked").not(".js-edit-cover-content [data-price]");P.not(".js-edit-cover-content .js-webform-type-radios").length===e.length?(q.show(),k.css("display","none"),y.removeClass(A),C.removeClass(A),C.hasClass(A)||(L.updateFooterPriceBtn.hide(),w.css("z-index","0"),E.show(),n("".concat(x).concat(_," ").concat(x).concat(f)).show(),n(window).width()>992&&L.coverNowBtn.show()),S.hasClass(A)&&(C.addClass(A),q.hide(),w.css("z-index","30"),L.coverNowBtn.hide(),E.hide(),n("".concat(x).concat(_," ").concat(x).concat(f)).hide())):(q.hide(),k.css("display","inline-block"),y.addClass(A),C.addClass(A),L.updateFooterPriceBtn.show(),E.hide(),n("".concat(x).concat(_," ").concat(x).concat(f)).hide(),L.coverNowBtn.hide(),L.updateFooterPriceBtn.on("click",(function(){n(k).trigger("click");})),C.hasClass(A)&&w.css("z-index","30"),S.hasClass(A)&&(k.css("display","none"),L.updateFooterPriceBtn.hide(),L.coverNowBtn.hide(),y.removeClass(A))),T();})),b.click((function(){O.prop("checked",!1),n("[data-price]").prop("checked",!0),T();var e=b.closest(d).find("".concat(x).concat(o)),t=b.closest(d).find(S);C.removeClass(A),b.removeClass(A),j.hide(),w.css("z-index","auto"),e.fadeIn(),q.show(),I.show(),n("".concat(x).concat(_," ").concat(x).concat(f)).show(),t.removeClass(A).slideUp(),L.coverNowBtn.show(),L.continueFooterBtn.hide();})),y.click((function(){O.prop("checked",!1),n("[data-price]").prop("checked",!0),T(),q.show(),k.css("display","none"),y.removeClass(A),C.removeClass(A),L.updateFooterPriceBtn.hide(),n("".concat(x).concat(_," ").concat(x).concat(f)).show(),n(window).width()>992&&L.coverNowBtn.show(),C.hasClass(A)||w.css("z-index","0");}));}(d);}));}));},function(e,t){var n;(n=jQuery)(document).ready((function(){n('a[href^="https://quote.hiscox.co.uk/"]').attr("target","_blank");}));},function(e,t){var n;(n=jQuery)(document).ready((function(){var e=window.location.pathname,t="/business-insurance/build-my-cover/skip-to-quote"===e,o="/business-insurance/build-my-cover/company/email"===e,i=n("#multistep-form");n(".bmc-wrapper--outer").addClass("loaded"),(t||o)&&(n(".bmc-wrapper--outer").closest(".container").addClass("container-spinner"),n(i).length>0&&i.submit((function(){t?n("#edit-skip-to-quote-view-quote").length>0&&n("#edit-skip-to-quote-view-quote").is(":checked")&&"function"==typeof window.unveilLoadingLayer&&window.unveilLoadingLayer():"function"==typeof window.unveilLoadingLayer&&window.unveilLoadingLayer();})));}));},function(e,t){var n;(n=jQuery)(document).ready((function(){var e=window.location.pathname;window.unveilLoadingLayer=function(){var t={},o="quote-page__submit-loading",i=n(".your-quote-page");i.length<1&&(i=n(".container-spinner")),(t={start:function(){t.ensureCreation(),t.unveil(),t.registerHandlers(),t.updatePosition();},updatePosition:function(){var e=n("."+o),t=n(window).height(),i=e.height(),a=n(window).scrollTop(),r=e.offset().top;if(i>t){var s=0,c=0,l=i-t;a<r+i&&a+t>r&&((c=a-r)<0?c=0:l<c&&(c=l),s=c+.5*t),e.find(".loading-icon").css("top",s);}else e.find(".loading-icon").css("top","50%");},registerHandlers:function(){n(window).resize((function(){t.updatePosition();})),n(window).scroll((function(){t.updatePosition();}));},ensureCreation:function(){var t=n("<div></div>"),a="";switch(e){case "/business-insurance/build-my-cover/skip-to-quote":case "/business-insurance/build-my-cover/company/email":a="Getting your quote";break;case "/business-insurance/build-my-cover/your-declarations":a="Summarising your cover";break;case "/business-insurance/build-my-cover/your-covers":a="Preparing payment options";break;case "/business-insurance/build-my-cover/payment":a=i.hasClass("back-to-covers-spinner")?"Updating your quote":"Processing your payment - please don’t close until completed",i.removeClass("back-to-covers-spinner");break;case "/business-insurance/consent":a="Loading";break;default:a="Updating your quote";}"Updating your quote"==a&&e.indexOf("/business-insurance/build-my-cover/retrieve")>=0&&(a="Retrieving your quote"),t.addClass(o),t.append(n("<div>"+a+"</div>").addClass("loading-icon")),i.prepend(t);},unveil:function(){i.find("."+o).addClass("active"),n(".js-covered-now-footer").length>0&&n(".js-covered-now-footer").fadeOut(),n(".js-update-price-footer").length>0&&n(".js-update-price-footer").fadeOut(),n(".js-continue-submission-footer").length>0&&n(".js-continue-submission-footer").fadeOut();}}).start();};}));},function(e,t){var n;(n=jQuery)(document).ready((function(){n(".js-supporting-content").length>0&&n(".bmc-wrapper--outer").length>0?(n(".js-supporting-content").parent().appendTo(n(".bmc-wrapper--outer").parent().parent()),n(".js-supporting-content").fadeIn()):n(".js-supporting-dynamic-content").length>0&&n(".js-supporting-dynamic-content").removeClass("hidden"),n(".js-supporting-content").length>0&&n("#toolbar-administration").length>0&&n(".js-supporting-content").fadeIn();}));},function(e,t){var n;(n=jQuery)(document).ready((function(){var e=".your-quote-page .more-covers",t="form.bmc-form",o={};o={isProtagonistActive:!1,isProtagonistBeingStopped:!1,setProtagonist:function(i){var a=n(e+" "+t);a.removeClass("protagonist"),a.addClass("not-protagonist"),i.removeClass("not-protagonist"),i.addClass("protagonist"),o.isProtagonistActive=!0,i.submit((function(){o.stopProtagonistHandler(),i.find('input[type="submit"]').prop("disabled",!0);}));},handleClick:function(e){e.is(".protagonist")?o.isProtagonistActive&&(o.isProtagonistBeingStopped=!1):(o.setProtagonist(e),o.isProtagonistBeingStopped=!1);},mouseOutOfCast:function(e){e.is(".protagonist")&&o.stopProtagonistHandler();},stopProtagonistHandler:function(){o.isProtagonistBeingStopped=!0,o.stopProtagonistInterval=setTimeout(o.stopProtagonist,2e3);},stopProtagonist:function(){if(o.isProtagonistBeingStopped){var e=n(".protagonist");n(".not-protagonist").removeClass("not-protagonist"),e.removeClass("protagonist"),o.isProtagonistActive=!1;}}},n(e+" "+t).click((function(e){o.handleClick(n(this)),e.stopPropagation();})),n(window).click((function(){o.isProtagonistBeingStopped=!0,o.stopProtagonist();})),n(document).ajaxComplete((function(t,i){for(var a=i.responseJSON,r=0;r<a.length;r++)if("addClass"==a[r].method&&a[r].args.indexOf("visually-hidden")>-1&&(o.isProtagonistBeingStopped=!0,o.stopProtagonist()),"invoke"===a[r].command&&"removeClass"===a[r].method){var s=e+" form"+a[r].selector;n(s).length&&o.setProtagonist(n(s));}}));}));},function(e,t){!function(e,t){t.behaviors.dcPopUp={attach:function(){setTimeout((function(){e(".block--pop-up").show();}),1e4),e(".block--pop-up").on("click",(function(){e(this).fadeOut();}));}};}(jQuery,Drupal);},function(e,t){!function(e,t){t.behaviors.dcCategoryDropdown={attach:function(){var t=e(".paragraph--type--dc-blog-feed-component").find(".dc-categories-btn"),n=e(".paragraph--type--dc-blog-feed-component").find(".dc-categories-dropdown");e("body").click((function(o){var i=e(o.target).attr("class"),a=e(".dc-categories-dropdown").css("display");if("dc-categories-btn dc-categories-open"==i&&"block"==a)n.hide(),t.removeClass("dc-categories-open");else{if("dc-categories-btn"==i&&"none"==a)return n.show(),void t.addClass("dc-categories-open");}n.hide(),t.removeClass("dc-categories-open");}));}},t.behaviors.dcBlogFeedMenu={attach:function(){e(".paragraph--type--dc-blog-feed-component").each((function(){var t=e(this).find(".blog__feed__title"),n=e(this).find(".view--latest-articles-blog-feed-dc-knowledge-centre-article, .view--latest-articles-blog-feed-hero-dc-knowledge-centre-article"),o=e(this).find(".paragraph--type--dc-featured-articles"),i=e(this).find(".dc-blog-feed-menu-latest"),a=e(this).find(".dc-blog-feed-menu-featured");a.click((function(){n.hide(),t.hide(),o.show(),i.addClass("grey"),a.removeClass("grey"),a.addClass("border-active"),i.removeClass("border-active");})),i.click((function(){n.show(),t.show(),o.hide(),a.addClass("grey"),i.removeClass("grey"),i.addClass("border-active"),a.removeClass("border-active");}));}));}};}(jQuery,Drupal);},function(e,t){var n;(n=jQuery)(document).ready((function(){var e=window.location.pathname,t=n("#hiscox-consent-management-consent-management-form"),o=n(".hero--consent-management-form");e.indexOf("/business-insurance/consent")>=0&&(o.addClass("loaded"),o.addClass("container-spinner"),n(t).length>0&&t.submit((function(){"function"==typeof window.unveilLoadingLayer&&window.unveilLoadingLayer();})));}));}]);;
324(function($,Drupal){'use strict';Drupal.behaviors.mobileBurgerMenu={attach:function(context,settings){var $burgerOpen=$('.mobile-menu__burger-trigger-open');var $burgerClose=$('.mobile-menu__burger-trigger-close');var $homepageMenu=$('#js-homepage-menu');var $blockBusinessBlogMenu=$('#block-dcbusinessblog');var $businessNavigationPrimaryDcMenu=$('#block-businessnavigationprimarydc');var $dcEventInsuranceNavigationMenu=$('#block-dceventinsurancenavigation');var $businessSupportHubNavigationMenu=$('#block-businesssupporthubnavigation');var $dcBrokerNavigationMenuBlock=$('#block-hiscox-uk-dc-broker-navigation-menu');var $dcLandlordsMenuBlock=$('#block-hiscox-uk-dc-landlordsmenu');if(!$businessNavigationPrimaryDcMenu.length&&!$homepageMenu.length&&!$blockBusinessBlogMenu.length&&!$dcEventInsuranceNavigationMenu.length&&!$businessSupportHubNavigationMenu.length&&!$dcBrokerNavigationMenuBlock.length&&!$dcLandlordsMenuBlock.length){$burgerOpen.hide();$burgerClose.hide();return;}var menuParentId='';var isHomepage=false;if($('.hero--homepage__nav').length){menuParentId='#js-homepage-menu';isHomepage=true;}else if($blockBusinessBlogMenu.length)menuParentId='#block-dcbusinessblog';else if($dcEventInsuranceNavigationMenu.length)menuParentId='#block-dceventinsurancenavigation';else if($businessSupportHubNavigationMenu.length)menuParentId='#block-businesssupporthubnavigation';else if($dcBrokerNavigationMenuBlock.length)menuParentId='#block-hiscox-uk-dc-broker-navigation-menu';else if($dcLandlordsMenuBlock.length)menuParentId='#block-hiscox-uk-dc-landlordsmenu';else menuParentId='#block-businessnavigationprimarydc';var $sourceMenu=$(menuParentId+' .menu.menu--level-0').first();if(!$sourceMenu.length||$sourceMenu.hasClass('mm-listview')||$sourceMenu.closest('.mm-panels').length){console.warn('Source menu not found');return;}var $mobileContainer=$('.mobile-menu__container');if(!$mobileContainer.length){console.warn('Mobile menu container not found');return;}var $mobileMenu=$('<div/>',{id:'mobile-menu','aria-hidden':'true'});var $cleanList=$('<ul/>',{class:'menu menu--level-0'});$cleanList.append($sourceMenu.children('li').clone(true));$mobileMenu.append($cleanList);$mobileContainer.append($mobileMenu);$('#block-basicblockfullhtml .field__items a,'+'#block-hiscox-uk-dc-eventinsuranceheader .field__items a').each(function(){var href=$(this).attr('href')||'';if(!href.includes('tel'))$cleanList.append($('<li/>',{class:'menu__item'}).append($('<a/>',{href}).text($(this).text())));});var footerHtml='';var elTel=$('#block-basicblockfullhtml .link-tel');var callUsText=elTel.attr('data-button-text')||'Call us now';var telNumber=elTel.attr('href')||$('#block-eventinsuranceheader .link-tel').attr('href')||'tel:+448008402469';
324if(isHomepage)footerHtml+='<a class="btn btn--line btn--contact" href="/contact-us">Contact us</a>';else footerHtml+='<a class="btn btn--line btn--phone" href="'+telNumber+'">'+callUsText+'</a>';$('[mobile_button="on"]').each(function(){footerHtml+='<a class="btn btn--black" href="'+$(this).attr('href')+'">'+$(this).text()+'</a>';});Mmenu.configs.classNames.selected='active';Mmenu.configs.offCanvas.page.selector='.mm-page';var menu=new Mmenu('#mobile-menu',{slidingSubmenus:false,extensions:['position-bottom','fx-panels-slide-up','fullscreen','shadow-page'],navbars:[{content:['prev','close'],height:2},{position:'bottom',content:[footerHtml]}]});function openMenu(){requestAnimationFrame(function(){menu.API.open();$burgerOpen.addClass('hidden-btn').attr('aria-hidden','true');$burgerClose.removeClass('hidden-btn').removeAttr('aria-hidden').attr('aria-expanded','true').focus();});}function closeMenu(){requestAnimationFrame(function(){menu.API.close();$burgerClose.addClass('hidden-btn').attr('aria-hidden','true').attr('aria-expanded','false');$burgerOpen.removeClass('hidden-btn').removeAttr('aria-hidden').focus();});}$burgerOpen.on('click.mobileMenu',openMenu);$burgerClose.on('click.mobileMenu',closeMenu);$(window).on('resize.mobileMenu',function(){if($(window).width()>768&&$('html.mm-wrapper_opened').length)closeMenu();});}};Drupal.behaviors.accordionSubMenus={attach:function(context,settings){setTimeout(function(){$('#mobile-menu').find('.mm-panels.mm-panel.mm-hidden').each(function(){var $parent=$(this);$parent.removeClass('mm-panel mm-hidden').removeAttr('aria-hidden');});},0);$('a.mm-btn.mm-btn_next.mm-listitem__btn').on('click',function(){if($('#block-hiscox-uk-dc-landlordsmenu').length)setTimeout(function(){showHidePannel($(this));},0);else showHidePannel($(this));});function showHidePannel(cross_panel_button){var $parentMenuItem=cross_panel_button.closest('li.mm-listitem.mm-listitem_vertical');var $panel=$parentMenuItem.find('.mm-panel.mm-hidden');if($parentMenuItem.hasClass('mm-listitem_opened')){$parentMenuItem.removeClass('mm-listitem_opened');$panel.addClass('mm-hidden');}else{$parentMenuItem.addClass('mm-listitem_opened');$panel.removeClass('mm-hidden');$panel.removeAttr('aria-hidden');}}}};})(jQuery,Drupal);;
325(function($,window,Drupal,drupalSettings){'use strict';Drupal.behaviors.newRelicUserId={attach:function(){if(typeof drupalSettings.new_relic_user_session_id!=='undefined')if(window.newrelic)window.newrelic.setUserId(drupalSettings.new_relic_user_session_id);}};})(jQuery,window,Drupal,drupalSettings);;
326(function($){$(document).ready(function(){if($('.site-message').length>0){var $message=$('.site-message');$message.on('click',function(){$message.fadeOut();});if($('.site-message div').is('[data-drupal-messages]'))$message.fadeIn();}});})(jQuery);;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.