!function(){var e={585:function(){var e;"function"!=typeof(e=window.Element.prototype).matches&&(e.matches=e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),i=0;n[i]&&n[i]!==t;)++i;return Boolean(n[i])}),"function"!=typeof e.closest&&(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})},473:function(){"undefined"!=typeof window&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)})},3957:function(){String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},4944:function(e,t,n){var i,o,s,r=n(9479);i=r(".definitionsList"),o=i.find("li"),s=Array.from(r(i).first().find("summary").text())[0],r(o).first().addClass("isFirstOfLetter").data("letter",s),o.each((function(){var e=r(this),t=Array.from(r(e).find("summary").text())[0];s!==t&&"string"==typeof t&&(s=t,e.addClass("isFirstOfLetter").data("letter",s))})),i.find("li.isFirstOfLetter").each((function(){var e=r(this).data("letter");r(this).nextUntil(".isFirstOfLetter","li").addBack().wrapAll('<ul class="definitionsSection" data-section="'.concat(e,'"></ul>'))}))},3677:function(e,t,n){var i=n(9479);i(".frame-toggle").each((function(){var e=i(this).clone();e.removeAttr("class").addClass("toggle frame-toggleBox").attr("itemscope","").attr("itemprop","mainEntity").attr("itemtype","https://schema.org/Question").find("header").nextAll().wrapAll('<div class="content" itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer"><div itemprop="text"/></div>'),e.find("header").replaceWith((function(){return i('<summary itemprop="name" />').append(i(this).text())})),e.children().wrapAll("<details />"),i(this).closest(".contentWrapper").length?i(this).closest(".contentWrapper").replaceWith(e):i(this).replaceWith(e)}))},5834:function(e,t,n){n(6992),n(1539),n(8783),n(2165);var i=n(6061);e.exports=i.f("iterator")},9662:function(e,t,n){var i=n(614),o=n(6330),s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not a function")}},6077:function(e,t,n){var i=n(614),o=String,s=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw s("Can't set "+o(e)+" as a prototype")}},1223:function(e,t,n){var i=n(5112),o=n(30),s=n(3070).f,r=i("unscopables"),a=Array.prototype;null==a[r]&&s(a,r,{configurable:!0,value:o(null)}),e.exports=function(e){a[r][e]=!0}},9670:function(e,t,n){var i=n(111),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not an object")}},1318:function(e,t,n){var i=n(5656),o=n(1400),s=n(6244),r=function(e){return function(t,n,r){var a,l=i(t),c=s(l),u=o(r,c);if(e&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:r(!0),indexOf:r(!1)}},4326:function(e,t,n){var i=n(1702),o=i({}.toString),s=i("".slice);e.exports=function(e){return s(o(e),8,-1)}},648:function(e,t,n){var i=n(1694),o=n(614),s=n(4326),r=n(5112)("toStringTag"),a=Object,l="Arguments"==s(function(){return arguments}());e.exports=i?s:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),r))?n:l?s(t):"Object"==(i=s(t))&&o(t.callee)?"Arguments":i}},9920:function(e,t,n){var i=n(2597),o=n(3887),s=n(1236),r=n(3070);e.exports=function(e,t,n){for(var a=o(t),l=r.f,c=s.f,u=0;u<a.length;u++){var h=a[u];i(e,h)||n&&i(n,h)||l(e,h,c(t,h))}}},8544:function(e,t,n){var i=n(7293);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},6178:function(e){e.exports=function(e,t){return{value:e,done:t}}},8880:function(e,t,n){var i=n(9781),o=n(3070),s=n(9114);e.exports=i?function(e,t,n){return o.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,n){var i=n(614),o=n(3070),s=n(6339),r=n(3072);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(i(n)&&s(n,c,a),a.global)l?e[t]=n:r(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},3072:function(e,t,n){var i=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},9781:function(e,t,n){var i=n(7293);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},317:function(e,t,n){var i=n(7854),o=n(111),s=i.document,r=o(s)&&o(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},8324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(e,t,n){var i=n(317)("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8113:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,n){var i,o,s=n(7854),r=n(8113),a=s.process,l=s.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(o=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&r&&(!(i=r.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var i=n(7854),o=n(1236).f,s=n(8880),r=n(8052),a=n(3072),l=n(9920),c=n(4705);e.exports=function(e,t){var n,u,h,d,f,p=e.target,g=e.global,m=e.stat;if(n=g?i:m?i[p]||a(p,{}):(i[p]||{}).prototype)for(u in t){if(d=t[u],h=e.dontCallGetSet?(f=o(n,u))&&f.value:n[u],!c(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(e.sham||h&&h.sham)&&s(d,"sham",!0),r(n,u,d,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},4374:function(e,t,n){var i=n(7293);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var i=n(4374),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(e,t,n){var i=n(9781),o=n(2597),s=Function.prototype,r=i&&Object.getOwnPropertyDescriptor,a=o(s,"name"),l=a&&"something"===function(){}.name,c=a&&(!i||i&&r(s,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},5668:function(e,t,n){var i=n(1702),o=n(9662);e.exports=function(e,t,n){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},1702:function(e,t,n){var i=n(4374),o=Function.prototype,s=o.call,r=i&&o.bind.bind(s,s);e.exports=i?r:function(e){return function(){return s.apply(e,arguments)}}},5005:function(e,t,n){var i=n(7854),o=n(614);e.exports=function(e,t){return arguments.length<2?(n=i[e],o(n)?n:void 0):i[e]&&i[e][t];var n}},8173:function(e,t,n){var i=n(9662),o=n(8554);e.exports=function(e,t){var n=e[t];return o(n)?void 0:i(n)}},7854:function(e,t,n){var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(e,t,n){var i=n(1702),o=n(7908),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},3501:function(e){e.exports={}},490:function(e,t,n){var i=n(5005);e.exports=i("document","documentElement")},4664:function(e,t,n){var i=n(9781),o=n(7293),s=n(317);e.exports=!i&&!o((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var i=n(1702),o=n(7293),s=n(4326),r=Object,a=i("".split);e.exports=o((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?a(e,""):r(e)}:r},2788:function(e,t,n){var i=n(1702),o=n(614),s=n(5465),r=i(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return r(e)}),e.exports=s.inspectSource},9909:function(e,t,n){var i,o,s,r=n(4811),a=n(7854),l=n(111),c=n(8880),u=n(2597),h=n(5465),d=n(6200),f=n(3501),p="Object already initialized",g=a.TypeError,m=a.WeakMap;if(r||h.state){var v=h.state||(h.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,i=function(e,t){if(v.has(e))throw g(p);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},s=function(e){return v.has(e)}}else{var b=d("state");f[b]=!0,i=function(e,t){if(u(e,b))throw g(p);return t.facade=e,c(e,b,t),t},o=function(e){return u(e,b)?e[b]:{}},s=function(e){return u(e,b)}}e.exports={set:i,get:o,has:s,enforce:function(e){return s(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}},614:function(e,t,n){var i=n(4154),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},4705:function(e,t,n){var i=n(7293),o=n(614),s=/#|\.prototype\./,r=function(e,t){var n=l[a(e)];return n==u||n!=c&&(o(t)?i(t):!!t)},a=r.normalize=function(e){return String(e).replace(s,".").toLowerCase()},l=r.data={},c=r.NATIVE="N",u=r.POLYFILL="P";e.exports=r},8554:function(e){e.exports=function(e){return null==e}},111:function(e,t,n){var i=n(614),o=n(4154),s=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===s}:function(e){return"object"==typeof e?null!==e:i(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var i=n(5005),o=n(614),s=n(7976),r=n(3307),a=Object;e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,a(e))}},3061:function(e,t,n){"use strict";var i=n(3383).IteratorPrototype,o=n(30),s=n(9114),r=n(8003),a=n(7497),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=o(i,{next:s(+!c,n)}),r(e,u,!1,!0),a[u]=l,e}},1656:function(e,t,n){"use strict";var i=n(2109),o=n(6916),s=n(1913),r=n(6530),a=n(614),l=n(3061),c=n(9518),u=n(7674),h=n(8003),d=n(8880),f=n(8052),p=n(5112),g=n(7497),m=n(3383),v=r.PROPER,b=r.CONFIGURABLE,y=m.IteratorPrototype,x=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),S="keys",T="values",E="entries",C=function(){return this};e.exports=function(e,t,n,r,p,m,A){l(n,t,r);var O,P,M,L=function(e){if(e===p&&R)return R;if(!x&&e in j)return j[e];switch(e){case S:case T:case E:return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",D=!1,j=e.prototype,N=j[w]||j["@@iterator"]||p&&j[p],R=!x&&N||L(p),I="Array"==t&&j.entries||N;if(I&&(O=c(I.call(new e)))!==Object.prototype&&O.next&&(s||c(O)===y||(u?u(O,y):a(O[w])||f(O,w,C)),h(O,k,!0,!0),s&&(g[k]=C)),v&&p==T&&N&&N.name!==T&&(!s&&b?d(j,"name",T):(D=!0,R=function(){return o(N,this)})),p)if(P={values:L(T),keys:m?R:L(S),entries:L(E)},A)for(M in P)(x||D||!(M in j))&&f(j,M,P[M]);else i({target:t,proto:!0,forced:x||D},P);return s&&!A||j[w]===R||f(j,w,R,{name:p}),g[t]=R,P}},3383:function(e,t,n){"use strict";var i,o,s,r=n(7293),a=n(614),l=n(111),c=n(30),u=n(9518),h=n(8052),d=n(5112),f=n(1913),p=d("iterator"),g=!1;[].keys&&("next"in(s=[].keys())?(o=u(u(s)))!==Object.prototype&&(i=o):g=!0),!l(i)||r((function(){var e={};return i[p].call(e)!==e}))?i={}:f&&(i=c(i)),a(i[p])||h(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},7497:function(e){e.exports={}},6244:function(e,t,n){var i=n(7466);e.exports=function(e){return i(e.length)}},6339:function(e,t,n){var i=n(1702),o=n(7293),s=n(614),r=n(2597),a=n(9781),l=n(6530).CONFIGURABLE,c=n(2788),u=n(9909),h=u.enforce,d=u.get,f=String,p=Object.defineProperty,g=i("".slice),m=i("".replace),v=i([].join),b=a&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),x=e.exports=function(e,t,n){"Symbol("===g(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&n&&r(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return r(i,"source")||(i.source=v(y,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return s(this)&&d(this).source||c(this)}),"toString")},4758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},30:function(e,t,n){var i,o=n(9670),s=n(6048),r=n(748),a=n(3501),l=n(490),c=n(317),u=n(6200),h="prototype",d="script",f=u("IE_PROTO"),p=function(){},g=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&i?m(i):(t=c("iframe"),n="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):m(i);for(var o=r.length;o--;)delete v[h][r[o]];return v()};a[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[h]=o(e),n=new p,p[h]=null,n[f]=e):n=v(),void 0===t?n:s.f(n,t)}},6048:function(e,t,n){var i=n(9781),o=n(3353),s=n(3070),r=n(9670),a=n(5656),l=n(1956);t.f=i&&!o?Object.defineProperties:function(e,t){r(e);for(var n,i=a(t),o=l(t),c=o.length,u=0;c>u;)s.f(e,n=o[u++],i[n]);return e}},3070:function(e,t,n){var i=n(9781),o=n(4664),s=n(3353),r=n(9670),a=n(4948),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";t.f=i?s?function(e,t,n){if(r(e),t=a(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var i=u(e,t);i&&i[f]&&(e[t]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:h in n?n[h]:i[h],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(r(e),t=a(t),r(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var i=n(9781),o=n(6916),s=n(5296),r=n(9114),a=n(5656),l=n(4948),c=n(2597),u=n(4664),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=a(e),t=l(t),u)try{return h(e,t)}catch(e){}if(c(e,t))return r(!o(s.f,e,t),e[t])}},8006:function(e,t,n){var i=n(6324),o=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var i=n(2597),o=n(614),s=n(7908),r=n(6200),a=n(8544),l=r("IE_PROTO"),c=Object,u=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=s(e);if(i(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},7976:function(e,t,n){var i=n(1702);e.exports=i({}.isPrototypeOf)},6324:function(e,t,n){var i=n(1702),o=n(2597),s=n(5656),r=n(1318).indexOf,a=n(3501),l=i([].push);e.exports=function(e,t){var n,i=s(e),c=0,u=[];for(n in i)!o(a,n)&&o(i,n)&&l(u,n);for(;t.length>c;)o(i,n=t[c++])&&(~r(u,n)||l(u,n));return u}},1956:function(e,t,n){var i=n(6324),o=n(748);e.exports=Object.keys||function(e){return i(e,o)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var i=n(5668),o=n(9670),s=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return o(n),s(i),t?e(n,i):n.__proto__=i,n}}():void 0)},288:function(e,t,n){"use strict";var i=n(1694),o=n(648);e.exports=i?{}.toString:function(){return"[object "+o(this)+"]"}},2140:function(e,t,n){var i=n(6916),o=n(614),s=n(111),r=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&o(n=e.toString)&&!s(a=i(n,e)))return a;if(o(n=e.valueOf)&&!s(a=i(n,e)))return a;if("string"!==t&&o(n=e.toString)&&!s(a=i(n,e)))return a;throw r("Can't convert object to primitive value")}},3887:function(e,t,n){var i=n(5005),o=n(1702),s=n(8006),r=n(5181),a=n(9670),l=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(a(e)),n=r.f;return n?l(t,n(e)):t}},857:function(e,t,n){var i=n(7854);e.exports=i},4488:function(e,t,n){var i=n(8554),o=TypeError;e.exports=function(e){if(i(e))throw o("Can't call method on "+e);return e}},8003:function(e,t,n){var i=n(3070).f,o=n(2597),s=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,s)&&i(e,s,{configurable:!0,value:t})}},6200:function(e,t,n){var i=n(2309),o=n(9711),s=i("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},5465:function(e,t,n){var i=n(7854),o=n(3072),s="__core-js_shared__",r=i[s]||o(s,{});e.exports=r},2309:function(e,t,n){var i=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},8710:function(e,t,n){var i=n(1702),o=n(9303),s=n(1340),r=n(4488),a=i("".charAt),l=i("".charCodeAt),c=i("".slice),u=function(e){return function(t,n){var i,u,h=s(r(t)),d=o(n),f=h.length;return d<0||d>=f?e?"":void 0:(i=l(h,d))<55296||i>56319||d+1===f||(u=l(h,d+1))<56320||u>57343?e?a(h,d):i:e?c(h,d,d+2):u-56320+(i-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},6293:function(e,t,n){var i=n(7392),o=n(7293),s=n(7854).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},1400:function(e,t,n){var i=n(9303),o=Math.max,s=Math.min;e.exports=function(e,t){var n=i(e);return n<0?o(n+t,0):s(n,t)}},5656:function(e,t,n){var i=n(8361),o=n(4488);e.exports=function(e){return i(o(e))}},9303:function(e,t,n){var i=n(4758);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},7466:function(e,t,n){var i=n(9303),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},7908:function(e,t,n){var i=n(4488),o=Object;e.exports=function(e){return o(i(e))}},7593:function(e,t,n){var i=n(6916),o=n(111),s=n(2190),r=n(8173),a=n(2140),l=n(5112),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var n,l=r(e,u);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!o(n)||s(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},4948:function(e,t,n){var i=n(7593),o=n(2190);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},1694:function(e,t,n){var i={};i[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(i)},1340:function(e,t,n){var i=n(648),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9711:function(e,t,n){var i=n(1702),o=0,s=Math.random(),r=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++o+s,36)}},3307:function(e,t,n){var i=n(6293);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var i=n(9781),o=n(7293);e.exports=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,n){var i=n(7854),o=n(614),s=i.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},6800:function(e,t,n){var i=n(857),o=n(2597),s=n(6061),r=n(3070).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});o(t,e)||r(t,e,{value:s.f(e)})}},6061:function(e,t,n){var i=n(5112);t.f=i},5112:function(e,t,n){var i=n(7854),o=n(2309),s=n(2597),r=n(9711),a=n(6293),l=n(3307),c=i.Symbol,u=o("wks"),h=l?c.for||c:c&&c.withoutSetter||r;e.exports=function(e){return s(u,e)||(u[e]=a&&s(c,e)?c[e]:h("Symbol."+e)),u[e]}},6992:function(e,t,n){"use strict";var i=n(5656),o=n(1223),s=n(7497),r=n(9909),a=n(3070).f,l=n(1656),c=n(6178),u=n(1913),h=n(9781),d="Array Iterator",f=r.set,p=r.getterFor(d);e.exports=l(Array,"Array",(function(e,t){f(this,{type:d,target:i(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,c(void 0,!0)):c("keys"==n?i:"values"==n?t[i]:[i,t[i]],!1)}),"values");var g=s.Arguments=s.Array;if(o("keys"),o("values"),o("entries"),!u&&h&&"values"!==g.name)try{a(g,"name",{value:"values"})}catch(e){}},1539:function(e,t,n){var i=n(1694),o=n(8052),s=n(288);i||o(Object.prototype,"toString",s,{unsafe:!0})},8783:function(e,t,n){"use strict";var i=n(8710).charAt,o=n(1340),s=n(9909),r=n(1656),a=n(6178),l="String Iterator",c=s.set,u=s.getterFor(l);r(String,"String",(function(e){c(this,{type:l,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?a(void 0,!0):(e=i(n,o),t.index+=e.length,a(e,!1))}))},2165:function(e,t,n){n(6800)("iterator")},3948:function(e,t,n){var i=n(7854),o=n(8324),s=n(8509),r=n(6992),a=n(8880),l=n(5112),c=l("iterator"),u=l("toStringTag"),h=r.values,d=function(e,t){if(e){if(e[c]!==h)try{a(e,c,h)}catch(t){e[c]=h}if(e[u]||a(e,u,t),o[t])for(var n in r)if(e[n]!==r[n])try{a(e,n,r[n])}catch(t){e[n]=r[n]}}};for(var f in o)d(i[f]&&i[f].prototype,f);d(s,"DOMTokenList")},8970:function(e,t,n){var i=n(5834);n(3948),e.exports=i},9479:function(e,t,n){var i=n(9755),o=n(7672);o.$=i,o.jQuery=i,o.jquery=i,e.exports=i},7672:function(e,t,n){"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return e}()},7347:function(e){!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function n(e){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(e)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function i(e,t){e.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function o(e){var t=e.g.offsetWidth,n=t+100;return e.j.style.width=n+"px",e.i.scrollLeft=n,e.h.scrollLeft=e.h.scrollWidth+100,e.l!==t&&(e.l=t,!0)}function s(e,n){function i(){var e=s;o(e)&&null!==e.g.parentNode&&n(e.l)}var s=e;t(e.h,i),t(e.i,i),o(e)}function r(e,t,n){t=t||{},n=n||window,this.family=e,this.style=t.style||"normal",this.weight=t.weight||"normal",this.stretch=t.stretch||"normal",this.context=n}var a=null,l=null,c=null,u=null;function h(e){return null===u&&(u=!!e.document.fonts),u}function d(e,t){var n=e.style,i=e.weight;if(null===c){var o=document.createElement("div");try{o.style.font="condensed 100px sans-serif"}catch(e){}c=""!==o.style.font}return[n,i,c?e.stretch:"","100px",t].join(" ")}r.prototype.load=function(e,t){var o=this,r=e||"BESbswy",c=0,u=t||3e3,f=(new Date).getTime();return new Promise((function(e,t){if(h(o.context)&&!function(e){return null===l&&(h(e)&&/Apple/.test(window.navigator.vendor)?(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),l=!!e&&603>parseInt(e[1],10)):l=!1),l}(o.context)){var p=new Promise((function(e,t){!function n(){(new Date).getTime()-f>=u?t(Error(u+"ms timeout exceeded")):o.context.document.fonts.load(d(o,'"'+o.family+'"'),r).then((function(t){1<=t.length?e():setTimeout(n,25)}),t)}()})),g=new Promise((function(e,t){c=setTimeout((function(){t(Error(u+"ms timeout exceeded"))}),u)}));Promise.race([g,p]).then((function(){clearTimeout(c),e(o)}),t)}else!function(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t),e()})):document.attachEvent("onreadystatechange",(function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())}))}((function(){function l(){var t;(t=-1!=m&&-1!=v||-1!=m&&-1!=b||-1!=v&&-1!=b)&&((t=m!=v&&m!=b&&v!=b)||(null===a&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),a=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=a&&(m==y&&v==y&&b==y||m==x&&v==x&&b==x||m==w&&v==w&&b==w)),t=!t),t&&(null!==S.parentNode&&S.parentNode.removeChild(S),clearTimeout(c),e(o))}var h=new n(r),p=new n(r),g=new n(r),m=-1,v=-1,b=-1,y=-1,x=-1,w=-1,S=document.createElement("div");S.dir="ltr",i(h,d(o,"sans-serif")),i(p,d(o,"serif")),i(g,d(o,"monospace")),S.appendChild(h.g),S.appendChild(p.g),S.appendChild(g.g),o.context.document.body.appendChild(S),y=h.g.offsetWidth,x=p.g.offsetWidth,w=g.g.offsetWidth,function e(){if((new Date).getTime()-f>=u)null!==S.parentNode&&S.parentNode.removeChild(S),t(Error(u+"ms timeout exceeded"));else{var n=o.context.document.hidden;!0!==n&&void 0!==n||(m=h.g.offsetWidth,v=p.g.offsetWidth,b=g.g.offsetWidth,l()),c=setTimeout(e,50)}}(),s(h,(function(e){m=e,l()})),i(h,d(o,'"'+o.family+'",sans-serif')),s(p,(function(e){v=e,l()})),i(p,d(o,'"'+o.family+'",serif')),s(g,(function(e){b=e,l()})),i(g,d(o,'"'+o.family+'",monospace'))}))}))},e.exports=r}()},9755:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,o){"use strict";var s=[],r=Object.getPrototypeOf,a=s.slice,l=s.flat?function(e){return s.flat.call(e)}:function(e){return s.concat.apply([],e)},c=s.push,u=s.indexOf,h={},d=h.toString,f=h.hasOwnProperty,p=f.toString,g=p.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},b=function(e){return null!=e&&e===e.window},y=i.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,o,s=(n=n||y).createElement("script");if(s.text=e,t)for(i in x)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&s.setAttribute(i,o);n.head.appendChild(s).parentNode.removeChild(s)}function S(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[d.call(e)]||"object":typeof e}var T="3.6.4",E=function(e,t){return new E.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!v(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}E.fn=E.prototype={jquery:T,constructor:E,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(e){return this.pushStack(E.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:s.sort,splice:s.splice},E.extend=E.fn.extend=function(){var e,t,n,i,o,s,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||v(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&r!==i&&(c&&i&&(E.isPlainObject(i)||(o=Array.isArray(i)))?(n=r[t],s=o&&!Array.isArray(n)?[]:o||E.isPlainObject(n)?n:{},o=!1,r[t]=E.extend(c,s,i)):void 0!==i&&(r[t]=i));return r},E.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]"!==d.call(e))&&(!(t=r(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(C(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?E.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,s=e.length,r=!n;o<s;o++)!t(e[o],o)!==r&&i.push(e[o]);return i},map:function(e,t,n){var i,o,s=0,r=[];if(C(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&r.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&r.push(o);return l(r)},guid:1,support:m}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=s[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var A=function(e){var t,n,i,o,s,r,a,l,c,u,h,d,f,p,g,m,v,b,y,x="sizzle"+1*new Date,w=e.document,S=0,T=0,E=le(),C=le(),A=le(),O=le(),P=function(e,t){return e===t&&(h=!0),0},M={}.hasOwnProperty,L=[],k=L.pop,D=L.push,j=L.push,N=L.slice,R=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",z="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",H="\\["+z+"*("+F+")(?:"+z+"*([*^$|!~]?=)"+z+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+z+"*\\]",q=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",W=new RegExp(z+"+","g"),B=new RegExp("^"+z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+z+"+$","g"),_=new RegExp("^"+z+"*,"+z+"*"),$=new RegExp("^"+z+"*([>+~]|"+z+")"+z+"*"),X=new RegExp(z+"|>"),V=new RegExp(q),Y=new RegExp("^"+F+"$"),U={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\([^\\r\\n\\f])","g"),ne=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))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},se=function(){d()},re=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(L=N.call(w.childNodes),w.childNodes),L[w.childNodes.length].nodeType}catch(e){j={apply:L.length?function(e,t){D.apply(e,N.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,o){var s,a,c,u,h,p,v,b=t&&t.ownerDocument,w=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return i;if(!o&&(d(t),t=t||f,g)){if(11!==w&&(h=Q.exec(e)))if(s=h[1]){if(9===w){if(!(c=t.getElementById(s)))return i;if(c.id===s)return i.push(c),i}else if(b&&(c=b.getElementById(s))&&y(t,c)&&c.id===s)return i.push(c),i}else{if(h[2])return j.apply(i,t.getElementsByTagName(e)),i;if((s=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return j.apply(i,t.getElementsByClassName(s)),i}if(n.qsa&&!O[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,b=t,1===w&&(X.test(e)||$.test(e))){for((b=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(ie,oe):t.setAttribute("id",u=x)),a=(p=r(e)).length;a--;)p[a]=(u?"#"+u:":scope")+" "+ye(p[a]);v=p.join(",")}try{return j.apply(i,b.querySelectorAll(v)),i}catch(t){O(e,!0)}finally{u===x&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,i,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[x]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(n,i){for(var o,s=e([],n.length,t),r=s.length;r--;)n[o=s[r]]&&(n[o]=!(i[o]=n[o]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},s=ae.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},d=ae.setDocument=function(e){var t,o,r=e?e.ownerDocument||e:w;return r!=f&&9===r.nodeType&&r.documentElement?(p=(f=r).documentElement,g=!s(f),w!=f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",se,!1):o.attachEvent&&o.attachEvent("onunload",se)),n.scope=ue((function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.cssHas=ue((function(){try{return f.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=x,!f.getElementsByName||!f.getElementsByName(x).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,i,o,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(o=t.getElementsByName(e),i=0;s=o[i++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,s=t.getElementsByTagName(e);if("*"===e){for(;n=s[o++];)1===n.nodeType&&i.push(n);return i}return s},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=J.test(f.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+z+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+z+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+z+"*name"+z+"*="+z+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+z+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=J.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),v.push("!=",q)})),n.cssHas||m.push(":has"),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(p.compareDocumentPosition),y=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},P=t?function(e,t){if(e===t)return h=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==f||e.ownerDocument==w&&y(w,e)?-1:t==f||t.ownerDocument==w&&y(w,t)?1:u?R(u,e)-R(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,r=[e],a=[t];if(!o||!s)return e==f?-1:t==f?1:o?-1:s?1:u?R(u,e)-R(u,t):0;if(o===s)return de(e,t);for(n=e;n=n.parentNode;)r.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;r[i]===a[i];)i++;return i?de(r[i],a[i]):r[i]==w?-1:a[i]==w?1:0},f):f},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&g&&!O[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=b.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){O(t,!0)}return ae(t,f,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=f&&d(e),y(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=f&&d(e);var o=i.attrHandle[t.toLowerCase()],s=o&&M.call(i.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==s?s:n.attributes||!g?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},ae.escape=function(e){return(e+"").replace(ie,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],o=0,s=0;if(h=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(P),h){for(;t=e[s++];)t===e[s]&&(o=i.push(s));for(;o--;)e.splice(i[o],1)}return u=null,e},o=ae.getText=function(e){var t,n="",i=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},i=ae.selectors={cacheLength:50,createPseudo:ce,match:U,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=r(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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+z+")"+e+"("+z+"|$)"))&&E(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var o=ae.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(W," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,o){var s="nth"!==e.slice(0,3),r="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,d,f,p,g=s!==r?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),b=!l&&!a,y=!1;if(m){if(s){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[r?m.firstChild:m.lastChild],r&&b){for(y=(f=(c=(u=(h=(d=m)[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===S&&c[1])&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(y=f=0)||p.pop();)if(1===d.nodeType&&++y&&d===t){u[e]=[S,f,y];break}}else if(b&&(y=f=(c=(u=(h=(d=t)[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===S&&c[1]),!1===y)for(;(d=++f&&d&&d[g]||(y=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++y||(b&&((u=(h=d[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]=[S,y]),d!==t)););return(y-=o)===i||y%i==0&&y/i>=0}}},PSEUDO:function(e,t){var n,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var i,s=o(e,t),r=s.length;r--;)e[i=R(e,s[r])]=!(n[i]=s[r])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ce((function(e){var t=[],n=[],i=a(e.replace(B,"$1"));return i[x]?ce((function(e,t,n,o){for(var s,r=i(e,null,o,[]),a=e.length;a--;)(s=r[a])&&(e[a]=!(t[a]=s))})):function(e,o,s){return t[0]=e,i(t,null,s,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return ae(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return Y.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!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!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:me((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=pe(t);function be(){}function ye(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function xe(e,t,n){var i=t.dir,o=t.next,s=o||i,r=n&&"parentNode"===s,a=T++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o);return!1}:function(t,n,l){var c,u,h,d=[S,a];if(l){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||r)if(u=(h=t[x]||(t[x]={}))[t.uniqueID]||(h[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[s])&&c[0]===S&&c[1]===a)return d[2]=c[2];if(u[s]=d,d[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function Se(e,t,n,i,o){for(var s,r=[],a=0,l=e.length,c=null!=t;a<l;a++)(s=e[a])&&(n&&!n(s,i,o)||(r.push(s),c&&t.push(a)));return r}function Te(e,t,n,i,o,s){return i&&!i[x]&&(i=Te(i)),o&&!o[x]&&(o=Te(o,s)),ce((function(s,r,a,l){var c,u,h,d=[],f=[],p=r.length,g=s||function(e,t,n){for(var i=0,o=t.length;i<o;i++)ae(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!s&&t?g:Se(g,d,e,a,l),v=n?o||(s?e:p||i)?[]:r:m;if(n&&n(m,v,a,l),i)for(c=Se(v,f),i(c,[],a,l),u=c.length;u--;)(h=c[u])&&(v[f[u]]=!(m[f[u]]=h));if(s){if(o||e){if(o){for(c=[],u=v.length;u--;)(h=v[u])&&c.push(m[u]=h);o(null,v=[],c,l)}for(u=v.length;u--;)(h=v[u])&&(c=o?R(s,h):d[u])>-1&&(s[c]=!(r[c]=h))}}else v=Se(v===r?v.splice(p,v.length):v),o?o(null,r,v,l):j.apply(r,v)}))}function Ee(e){for(var t,n,o,s=e.length,r=i.relative[e[0].type],a=r||i.relative[" "],l=r?1:0,u=xe((function(e){return e===t}),a,!0),h=xe((function(e){return R(t,e)>-1}),a,!0),d=[function(e,n,i){var o=!r&&(i||n!==c)||((t=n).nodeType?u(e,n,i):h(e,n,i));return t=null,o}];l<s;l++)if(n=i.relative[e[l].type])d=[xe(we(d),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[x]){for(o=++l;o<s&&!i.relative[e[o].type];o++);return Te(l>1&&we(d),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l<o&&Ee(e.slice(l,o)),o<s&&Ee(e=e.slice(o)),o<s&&ye(e))}d.push(n)}return we(d)}return be.prototype=i.filters=i.pseudos,i.setFilters=new be,r=ae.tokenize=function(e,t){var n,o,s,r,a,l,c,u=C[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=i.preFilter;a;){for(r in n&&!(o=_.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(s=[])),n=!1,(o=$.exec(a))&&(n=o.shift(),s.push({value:n,type:o[0].replace(B," ")}),a=a.slice(n.length)),i.filter)!(o=U[r].exec(a))||c[r]&&!(o=c[r](o))||(n=o.shift(),s.push({value:n,type:r,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):C(e,l).slice(0)},a=ae.compile=function(e,t){var n,o=[],s=[],a=A[e+" "];if(!a){for(t||(t=r(e)),n=t.length;n--;)(a=Ee(t[n]))[x]?o.push(a):s.push(a);a=A(e,function(e,t){var n=t.length>0,o=e.length>0,s=function(s,r,a,l,u){var h,p,m,v=0,b="0",y=s&&[],x=[],w=c,T=s||o&&i.find.TAG("*",u),E=S+=null==w?1:Math.random()||.1,C=T.length;for(u&&(c=r==f||r||u);b!==C&&null!=(h=T[b]);b++){if(o&&h){for(p=0,r||h.ownerDocument==f||(d(h),a=!g);m=e[p++];)if(m(h,r||f,a)){l.push(h);break}u&&(S=E)}n&&((h=!m&&h)&&v--,s&&y.push(h))}if(v+=b,n&&b!==v){for(p=0;m=t[p++];)m(y,x,r,a);if(s){if(v>0)for(;b--;)y[b]||x[b]||(x[b]=k.call(l));x=Se(x)}j.apply(l,x),u&&!s&&x.length>0&&v+t.length>1&&ae.uniqueSort(l)}return u&&(S=E,c=w),y};return n?ce(s):s}(s,o)),a.selector=e}return a},l=ae.select=function(e,t,n,o){var s,l,c,u,h,d="function"==typeof e&&e,f=!o&&r(e=d.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&i.relative[l[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(s=U.needsContext.test(e)?0:l.length;s--&&(c=l[s],!i.relative[u=c.type]);)if((h=i.find[u])&&(o=h(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(s,1),!(e=o.length&&ye(l)))return j.apply(n,o),n;break}}return(d||a(e,f))(o,t,!g,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=x.split("").sort(P).join("")===x,n.detectDuplicates=!!h,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||he(I,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),ae}(i);E.find=A,E.expr=A.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=A.uniqueSort,E.text=A.getText,E.isXMLDoc=A.isXML,E.contains=A.contains,E.escapeSelector=A.escape;var O=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&E(e).is(n))break;i.push(e)}return i},P=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},M=E.expr.match.needsContext;function L(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var k=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return v(t)?E.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?E.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?E.grep(e,(function(e){return u.call(t,e)>-1!==n})):E.filter(t,e,n)}E.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?E.find.matchesSelector(i,e)?[i]:[]:E.find.matches(e,E.grep(t,(function(e){return 1===e.nodeType})))},E.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(E(e).filter((function(){for(t=0;t<i;t++)if(E.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)E.find(e,o[t],n);return i>1?E.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&M.test(e)?E(e):e||[],!1).length}});var j,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),k.test(i[1])&&E.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=y.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,j=E(y);var R=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(E.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,o=this.length,s=[],r="string"!=typeof e&&E(e);if(!M.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(r?r.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?E.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?u.call(E(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return O(e,"parentNode")},parentsUntil:function(e,t,n){return O(e,"parentNode",n)},next:function(e){return z(e,"nextSibling")},prev:function(e){return z(e,"previousSibling")},nextAll:function(e){return O(e,"nextSibling")},prevAll:function(e){return O(e,"previousSibling")},nextUntil:function(e,t,n){return O(e,"nextSibling",n)},prevUntil:function(e,t,n){return O(e,"previousSibling",n)},siblings:function(e){return P((e.parentNode||{}).firstChild,e)},children:function(e){return P(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(L(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},(function(e,t){E.fn[e]=function(n,i){var o=E.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=E.filter(i,o)),this.length>1&&(I[e]||E.uniqueSort(o),R.test(e)&&o.reverse()),this.pushStack(o)}}));var F=/[^\x20\t\r\n\f]+/g;function H(e){return e}function q(e){throw e}function W(e,t,n,i){var o;try{e&&v(o=e.promise)?o.call(e).done(t).fail(n):e&&v(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return E.each(e.match(F)||[],(function(e,n){t[n]=!0})),t}(e):E.extend({},e);var t,n,i,o,s=[],r=[],a=-1,l=function(){for(o=o||e.once,i=t=!0;r.length;a=-1)for(n=r.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=s.length,n=!1);e.memory||(n=!1),t=!1,o&&(s=n?[]:"")},c={add:function(){return s&&(n&&!t&&(a=s.length-1,r.push(n)),function t(n){E.each(n,(function(n,i){v(i)?e.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==S(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return E.each(arguments,(function(e,t){for(var n;(n=E.inArray(t,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(e){return e?E.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=r=[],s=n="",this},disabled:function(){return!s},lock:function(){return o=r=[],n||t||(s=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],r.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},E.extend({Deferred:function(e){var t=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return E.Deferred((function(n){E.each(t,(function(t,i){var o=v(e[i[4]])&&e[i[4]];s[i[1]]((function(){var e=o&&o.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,o){var s=0;function r(e,t,n,o){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(e<s)){if((i=n.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?o?c.call(i,r(s,t,H,o),r(s,t,q,o)):(s++,c.call(i,r(s,t,H,o),r(s,t,q,o),r(s,t,H,t.notifyWith))):(n!==H&&(a=void 0,l=[i]),(o||t.resolveWith)(a,l))}},u=o?c:function(){try{c()}catch(i){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(i,u.stackTrace),e+1>=s&&(n!==q&&(a=void 0,l=[i]),t.rejectWith(a,l))}};e?u():(E.Deferred.getStackHook&&(u.stackTrace=E.Deferred.getStackHook()),i.setTimeout(u))}}return E.Deferred((function(i){t[0][3].add(r(0,i,v(o)?o:H,i.notifyWith)),t[1][3].add(r(0,i,v(e)?e:H)),t[2][3].add(r(0,i,v(n)?n:q))})).promise()},promise:function(e){return null!=e?E.extend(e,o):o}},s={};return E.each(t,(function(e,i){var r=i[2],a=i[5];o[i[1]]=r.add,a&&r.add((function(){n=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),r.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"With"](this===s?void 0:this,arguments),this},s[i[0]+"With"]=r.fireWith})),o.promise(s),e&&e.call(s,s),s},when:function(e){var t=arguments.length,n=t,i=Array(n),o=a.call(arguments),s=E.Deferred(),r=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?a.call(arguments):n,--t||s.resolveWith(i,o)}};if(t<=1&&(W(e,s.done(r(n)).resolve,s.reject,!t),"pending"===s.state()||v(o[n]&&o[n].then)))return s.then();for(;n--;)W(o[n],r(n),s.reject);return s.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&B.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){i.setTimeout((function(){throw e}))};var _=E.Deferred();function $(){y.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),E.ready()}E.fn.ready=function(e){return _.then(e).catch((function(e){E.readyException(e)})),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==e&&--E.readyWait>0||_.resolveWith(y,[E]))}}),E.ready.then=_.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?i.setTimeout(E.ready):(y.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var X=function(e,t,n,i,o,s,r){var a=0,l=e.length,c=null==n;if("object"===S(n))for(a in o=!0,n)X(e,t,a,n[a],!0,s,r);else if(void 0!==i&&(o=!0,v(i)||(r=!0),c&&(r?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(E(e),n)})),t))for(;a<l;a++)t(e[a],n,r?i:i.call(e[a],a,t(e[a],n)));return o?e:c?t.call(e):l?t(e[0],n):s},V=/^-ms-/,Y=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function G(e){return e.replace(V,"ms-").replace(Y,U)}var Z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function K(){this.expando=E.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[G(t)]=n;else for(i in t)o[G(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(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,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(G):(t=G(t))in i?[t]:t.match(F)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||E.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var J=new K,Q=new K,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}E.extend({hasData:function(e){return Q.hasData(e)||J.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),E.fn.extend({data:function(e,t){var n,i,o,s=this[0],r=s&&s.attributes;if(void 0===e){if(this.length&&(o=Q.get(s),1===s.nodeType&&!J.get(s,"hasDataAttrs"))){for(n=r.length;n--;)r[n]&&0===(i=r[n].name).indexOf("data-")&&(i=G(i.slice(5)),ne(s,i,o[i]));J.set(s,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){Q.set(this,e)})):X(this,(function(t){var n;if(s&&void 0===t)return void 0!==(n=Q.get(s,e))||void 0!==(n=ne(s,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),E.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=J.get(e,t),n&&(!i||Array.isArray(n)?i=J.access(e,t,E.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),i=n.length,o=n.shift(),s=E._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete s.stop,o.call(e,(function(){E.dequeue(e,t)}),s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:E.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),E.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?E.queue(this[0],e):void 0===t?this:this.each((function(){var n=E.queue(this,e,t);E._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&E.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){E.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=E.Deferred(),s=this,r=this.length,a=function(){--i||o.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(n=J.get(s[r],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oe=new RegExp("^(?:([+-])=|)("+ie+")([a-z%]*)$","i"),se=["Top","Right","Bottom","Left"],re=y.documentElement,ae=function(e){return E.contains(e.ownerDocument,e)},le={composed:!0};re.getRootNode&&(ae=function(e){return E.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===E.css(e,"display")};function ue(e,t,n,i){var o,s,r=20,a=i?function(){return i.cur()}:function(){return E.css(e,t,"")},l=a(),c=n&&n[3]||(E.cssNumber[t]?"":"px"),u=e.nodeType&&(E.cssNumber[t]||"px"!==c&&+l)&&oe.exec(E.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;r--;)E.style(e,t,u+c),(1-s)*(1-(s=a()/l||.5))<=0&&(r=0),u/=s;u*=2,E.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}var he={};function de(e){var t,n=e.ownerDocument,i=e.nodeName,o=he[i];return o||(t=n.body.appendChild(n.createElement(i)),o=E.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),he[i]=o,o)}function fe(e,t){for(var n,i,o=[],s=0,r=e.length;s<r;s++)(i=e[s]).style&&(n=i.style.display,t?("none"===n&&(o[s]=J.get(i,"display")||null,o[s]||(i.style.display="")),""===i.style.display&&ce(i)&&(o[s]=de(i))):"none"!==n&&(o[s]="none",J.set(i,"display",n)));for(s=0;s<r;s++)null!=o[s]&&(e[s].style.display=o[s]);return e}E.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?E(this).show():E(this).hide()}))}});var pe,ge,me=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,be=/^$|^module$|\/(?:java|ecma)script/i;pe=y.createDocumentFragment().appendChild(y.createElement("div")),(ge=y.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),pe.appendChild(ge),m.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",m.option=!!pe.lastChild;var ye={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 xe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&L(e,t)?E.merge([e],n):n}function we(e,t){for(var n=0,i=e.length;n<i;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,m.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var Se=/<|&#?\w+;/;function Te(e,t,n,i,o){for(var s,r,a,l,c,u,h=t.createDocumentFragment(),d=[],f=0,p=e.length;f<p;f++)if((s=e[f])||0===s)if("object"===S(s))E.merge(d,s.nodeType?[s]:s);else if(Se.test(s)){for(r=r||h.appendChild(t.createElement("div")),a=(ve.exec(s)||["",""])[1].toLowerCase(),l=ye[a]||ye._default,r.innerHTML=l[1]+E.htmlPrefilter(s)+l[2],u=l[0];u--;)r=r.lastChild;E.merge(d,r.childNodes),(r=h.firstChild).textContent=""}else d.push(t.createTextNode(s));for(h.textContent="",f=0;s=d[f++];)if(i&&E.inArray(s,i)>-1)o&&o.push(s);else if(c=ae(s),r=xe(h.appendChild(s),"script"),c&&we(r),n)for(u=0;s=r[u++];)be.test(s.type||"")&&n.push(s);return h}var Ee=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ae(){return!1}function Oe(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Pe(e,t,n,i,o,s){var r,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Pe(e,a,n,i,t[a],s);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=Ae;else if(!o)return e;return 1===s&&(r=o,o=function(e){return E().off(e),r.apply(this,arguments)},o.guid=r.guid||(r.guid=E.guid++)),e.each((function(){E.event.add(this,t,o,i,n)}))}function Me(e,t,n){n?(J.set(e,t,!1),E.event.add(e,t,{namespace:!1,handler:function(e){var i,o,s=J.get(this,t);if(1&e.isTrigger&&this[t]){if(s.length)(E.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=a.call(arguments),J.set(this,t,s),i=n(this,t),this[t](),s!==(o=J.get(this,t))||i?J.set(this,t,!1):o={},s!==o)return e.stopImmediatePropagation(),e.preventDefault(),o&&o.value}else s.length&&(J.set(this,t,{value:E.event.trigger(E.extend(s[0],E.Event.prototype),s.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&E.event.add(e,t,Ce)}E.event={global:{},add:function(e,t,n,i,o){var s,r,a,l,c,u,h,d,f,p,g,m=J.get(e);if(Z(e))for(n.handler&&(n=(s=n).handler,o=s.selector),o&&E.find.matchesSelector(re,o),n.guid||(n.guid=E.guid++),(l=m.events)||(l=m.events=Object.create(null)),(r=m.handle)||(r=m.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(F)||[""]).length;c--;)f=g=(a=Ee.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(h=E.event.special[f]||{},f=(o?h.delegateType:h.bindType)||f,h=E.event.special[f]||{},u=E.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&E.expr.match.needsContext.test(o),namespace:p.join(".")},s),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,i,p,r)||e.addEventListener&&e.addEventListener(f,r)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),E.event.global[f]=!0)},remove:function(e,t,n,i,o){var s,r,a,l,c,u,h,d,f,p,g,m=J.hasData(e)&&J.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(F)||[""]).length;c--;)if(f=g=(a=Ee.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=E.event.special[f]||{},d=l[f=(i?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=d.length;s--;)u=d[s],!o&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(s,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));r&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,m.handle)||E.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)E.event.remove(e,f+t[c],n,i,!0);E.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,s,r,a=new Array(arguments.length),l=E.event.fix(e),c=(J.get(this,"events")||Object.create(null))[l.type]||[],u=E.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(r=E.event.handlers.call(this,l,c),t=0;(o=r[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(s=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(i=((E.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,o,s,r,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],r={},n=0;n<l;n++)void 0===r[o=(i=t[n]).selector+" "]&&(r[o]=i.needsContext?E(o,this).index(c)>-1:E.find(o,this,null,[c]).length),r[o]&&s.push(i);s.length&&a.push({elem:c,handlers:s})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[E.expando]?e:new E.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&L(t,"input")&&Me(t,"click",Ce),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&L(t,"input")&&Me(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&L(t,"input")&&J.get(t,"click")||L(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Ae,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&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Ae,isPropagationStopped:Ae,isImmediatePropagationStopped:Ae,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.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},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},(function(e,t){E.event.special[e]={setup:function(){return Me(this,e,Oe),!1},trigger:function(){return Me(this,e),!0},_default:function(t){return J.get(t.target,e)},delegateType:t}})),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){E.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||E.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),E.fn.extend({on:function(e,t,n,i){return Pe(this,e,t,n,i)},one:function(e,t,n,i){return Pe(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,E(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ae),this.each((function(){E.event.remove(this,e,n,t)}))}});var Le=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function je(e,t){return L(e,"table")&&L(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,i,o,s,r,a;if(1===t.nodeType){if(J.hasData(e)&&(a=J.get(e).events))for(o in J.remove(t,"handle events"),a)for(n=0,i=a[o].length;n<i;n++)E.event.add(t,o,a[o][n]);Q.hasData(e)&&(s=Q.access(e),r=E.extend({},s),Q.set(t,r))}}function ze(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Fe(e,t,n,i){t=l(t);var o,s,r,a,c,u,h=0,d=e.length,f=d-1,p=t[0],g=v(p);if(g||d>1&&"string"==typeof p&&!m.checkClone&&ke.test(p))return e.each((function(o){var s=e.eq(o);g&&(t[0]=p.call(this,o,s.html())),Fe(s,t,n,i)}));if(d&&(s=(o=Te(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=s),s||i)){for(a=(r=E.map(xe(o,"script"),Ne)).length;h<d;h++)c=o,h!==f&&(c=E.clone(c,!0,!0),a&&E.merge(r,xe(c,"script"))),n.call(e[h],c,h);if(a)for(u=r[r.length-1].ownerDocument,E.map(r,Re),h=0;h<a;h++)c=r[h],be.test(c.type||"")&&!J.access(c,"globalEval")&&E.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?E._evalUrl&&!c.noModule&&E._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(De,""),c,u))}return e}function He(e,t,n){for(var i,o=t?E.filter(t,e):e,s=0;null!=(i=o[s]);s++)n||1!==i.nodeType||E.cleanData(xe(i)),i.parentNode&&(n&&ae(i)&&we(xe(i,"script")),i.parentNode.removeChild(i));return e}E.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,s,r,a=e.cloneNode(!0),l=ae(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(r=xe(a),i=0,o=(s=xe(e)).length;i<o;i++)ze(s[i],r[i]);if(t)if(n)for(s=s||xe(e),r=r||xe(a),i=0,o=s.length;i<o;i++)Ie(s[i],r[i]);else Ie(e,a);return(r=xe(a,"script")).length>0&&we(r,!l&&xe(e,"script")),a},cleanData:function(e){for(var t,n,i,o=E.event.special,s=0;void 0!==(n=e[s]);s++)if(Z(n)){if(t=n[J.expando]){if(t.events)for(i in t.events)o[i]?E.event.remove(n,i):E.removeEvent(n,i,t.handle);n[J.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),E.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return X(this,(function(e){return void 0===e?E.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 Fe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return Fe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Fe(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&&(E.cleanData(xe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return E.clone(this,e,t)}))},html:function(e){return X(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!ye[(ve.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(xe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,(function(t){var n=this.parentNode;E.inArray(this,e)<0&&(E.cleanData(xe(this)),n&&n.replaceChild(t,this))}),e)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){E.fn[e]=function(e){for(var n,i=[],o=E(e),s=o.length-1,r=0;r<=s;r++)n=r===s?this:this.clone(!0),E(o[r])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var qe=new RegExp("^("+ie+")(?!px)[a-z%]+$","i"),We=/^--/,Be=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},_e=function(e,t,n){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in i=n.call(e),t)e.style[o]=s[o];return i},$e=new RegExp(se.join("|"),"i"),Xe="[\\x20\\t\\r\\n\\f]",Ve=new RegExp("^"+Xe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Xe+"+$","g");function Ye(e,t,n){var i,o,s,r,a=We.test(t),l=e.style;return(n=n||Be(e))&&(r=n.getPropertyValue(t)||n[t],a&&r&&(r=r.replace(Ve,"$1")||void 0),""!==r||ae(e)||(r=E.style(e,t)),!m.pixelBoxStyles()&&qe.test(r)&&$e.test(t)&&(i=l.width,o=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=r,r=n.width,l.width=i,l.minWidth=o,l.maxWidth=s)),void 0!==r?r+"":r}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",r=36===t(e.right),o=36===t(e.width),u.style.position="absolute",s=12===t(u.offsetWidth/3),re.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,o,s,r,a,l,c=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,E.extend(m,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),r},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),s},reliableTrDimensions:function(){var e,t,n,o;return null==a&&(e=y.createElement("table"),t=y.createElement("tr"),n=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),o=i.getComputedStyle(t),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Ge=["Webkit","Moz","ms"],Ze=y.createElement("div").style,Ke={};function Je(e){var t=E.cssProps[e]||Ke[e];return t||(e in Ze?e:Ke[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Ze)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var i=oe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function it(e,t,n,i,o,s){var r="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;r<4;r+=2)"margin"===n&&(l+=E.css(e,n+se[r],!0,o)),i?("content"===n&&(l-=E.css(e,"padding"+se[r],!0,o)),"margin"!==n&&(l-=E.css(e,"border"+se[r]+"Width",!0,o))):(l+=E.css(e,"padding"+se[r],!0,o),"padding"!==n?l+=E.css(e,"border"+se[r]+"Width",!0,o):a+=E.css(e,"border"+se[r]+"Width",!0,o));return!i&&s>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-a-.5))||0),l}function ot(e,t,n){var i=Be(e),o=(!m.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,i),s=o,r=Ye(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(r)){if(!n)return r;r="auto"}return(!m.boxSizingReliable()&&o||!m.reliableTrDimensions()&&L(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===E.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===E.css(e,"boxSizing",!1,i),(s=a in e)&&(r=e[a])),(r=parseFloat(r)||0)+it(e,t,n||(o?"border":"content"),s,i,r)+"px"}function st(e,t,n,i,o){return new st.prototype.init(e,t,n,i,o)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ye(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,s,r,a=G(t),l=We.test(t),c=e.style;if(l||(t=Je(a)),r=E.cssHooks[t]||E.cssHooks[a],void 0===n)return r&&"get"in r&&void 0!==(o=r.get(e,!1,i))?o:c[t];"string"===(s=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=ue(e,t,o),s="number"),null!=n&&n==n&&("number"!==s||l||(n+=o&&o[3]||(E.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(n=r.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var o,s,r,a=G(t);return We.test(t)||(t=Je(a)),(r=E.cssHooks[t]||E.cssHooks[a])&&"get"in r&&(o=r.get(e,!0,n)),void 0===o&&(o=Ye(e,t,i)),"normal"===o&&t in tt&&(o=tt[t]),""===n||n?(s=parseFloat(o),!0===n||isFinite(s)?s||0:o):o}}),E.each(["height","width"],(function(e,t){E.cssHooks[t]={get:function(e,n,i){if(n)return!Qe.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,i):_e(e,et,(function(){return ot(e,t,i)}))},set:function(e,n,i){var o,s=Be(e),r=!m.scrollboxSize()&&"absolute"===s.position,a=(r||i)&&"border-box"===E.css(e,"boxSizing",!1,s),l=i?it(e,t,i,a,s):0;return a&&r&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-it(e,t,"border",!1,s)-.5)),l&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=E.css(e,t)),nt(0,n,l)}}})),E.cssHooks.marginLeft=Ue(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ye(e,"marginLeft"))||e.getBoundingClientRect().left-_e(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(e,t){E.cssHooks[e+t]={expand:function(n){for(var i=0,o={},s="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+se[i]+t]=s[i]||s[i-2]||s[0];return o}},"margin"!==e&&(E.cssHooks[e+t].set=nt)})),E.fn.extend({css:function(e,t){return X(this,(function(e,t,n){var i,o,s={},r=0;if(Array.isArray(t)){for(i=Be(e),o=t.length;r<o;r++)s[t[r]]=E.css(e,t[r],!1,i);return s}return void 0!==n?E.style(e,t,n):E.css(e,t)}),e,t,arguments.length>1)}}),E.Tween=st,st.prototype={constructor:st,init:function(e,t,n,i,o,s){this.elem=e,this.prop=n,this.easing=o||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(E.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=E.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):st.propHooks._default.set(this),this}},st.prototype.init.prototype=st.prototype,st.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=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}},st.propHooks.scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=st.prototype.init,E.fx.step={};var rt,at,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){at&&(!1===y.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ut):i.setTimeout(ut,E.fx.interval),E.fx.tick())}function ht(){return i.setTimeout((function(){rt=void 0})),rt=Date.now()}function dt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=se[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ft(e,t,n){for(var i,o=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),s=0,r=o.length;s<r;s++)if(i=o[s].call(n,t,e))return i}function pt(e,t,n){var i,o,s=0,r=pt.prefilters.length,a=E.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var t=rt||ht(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),s=0,r=c.tweens.length;s<r;s++)c.tweens[s].run(i);return a.notifyWith(e,[c,i,n]),i<1&&r?n:(r||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:t,originalOptions:n,startTime:rt||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var i=E.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,o,s,r;for(n in e)if(o=t[i=G(n)],s=e[n],Array.isArray(s)&&(o=s[1],s=e[n]=s[0]),n!==i&&(e[i]=s,delete e[n]),(r=E.cssHooks[i])&&"expand"in r)for(n in s=r.expand(s),delete e[i],s)n in e||(e[n]=s[n],t[n]=o);else t[i]=o}(u,c.opts.specialEasing);s<r;s++)if(i=pt.prefilters[s].call(c,e,u,c.opts))return v(i.stop)&&(E._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return E.map(u,ft,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),E.fx.timer(E.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}E.Animation=E.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,oe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(F);for(var n,i=0,o=e.length;i<o;i++)n=e[i],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,s,r,a,l,c,u,h="width"in t||"height"in t,d=this,f={},p=e.style,g=e.nodeType&&ce(e),m=J.get(e,"fxshow");for(i in n.queue||(null==(r=E._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,d.always((function(){d.always((function(){r.unqueued--,E.queue(e,"fx").length||r.empty.fire()}))}))),t)if(o=t[i],lt.test(o)){if(delete t[i],s=s||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||E.style(e,i)}if((l=!E.isEmptyObject(t))||!E.isEmptyObject(f))for(i in h&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=J.get(e,"display")),"none"===(u=E.css(e,"display"))&&(c?u=c:(fe([e],!0),c=e.style.display||c,u=E.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===E.css(e,"float")&&(l||(d.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=J.access(e,"fxshow",{display:c}),s&&(m.hidden=!g),g&&fe([e],!0),d.done((function(){for(i in g||fe([e]),J.remove(e,"fxshow"),f)E.style(e,i,f[i])}))),l=ft(g?m[i]:0,i,d),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),E.speed=function(e,t,n){var i=e&&"object"==typeof e?E.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return E.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in E.fx.speeds?i.duration=E.fx.speeds[i.duration]:i.duration=E.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&E.dequeue(this,i.queue)},i},E.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=E.isEmptyObject(e),s=E.speed(t,n,i),r=function(){var t=pt(this,E.extend({},e),s);(o||J.get(this,"finish"))&&t.stop(!0)};return r.finish=r,o||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",s=E.timers,r=J.get(this);if(o)r[o]&&r[o].stop&&i(r[o]);else for(o in r)r[o]&&r[o].stop&&ct.test(o)&&i(r[o]);for(o=s.length;o--;)s[o].elem!==this||null!=e&&s[o].queue!==e||(s[o].anim.stop(n),t=!1,s.splice(o,1));!t&&n||E.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=J.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],s=E.timers,r=i?i.length:0;for(n.finish=!0,E.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<r;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),E.each(["toggle","show","hide"],(function(e,t){var n=E.fn[t];E.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,i,o)}})),E.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){E.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||E.fx.stop(),rt=void 0},E.fx.timer=function(e){E.timers.push(e),E.fx.start()},E.fx.interval=13,E.fx.start=function(){at||(at=!0,ut())},E.fx.stop=function(){at=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(e,t){return e=E.fx&&E.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var o=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(o)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var gt,mt=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return X(this,E.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){E.removeAttr(this,e)}))}}),E.extend({attr:function(e,t,n){var i,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?E.prop(e,t,n):(1===s&&E.isXMLDoc(e)||(o=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=E.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&L(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(F);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||E.find.attr;mt[t]=function(e,t,i){var o,s,r=t.toLowerCase();return i||(s=mt[r],mt[r]=o,o=null!=n(e,t,i)?r:null,mt[r]=s),o}}));var vt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function yt(e){return(e.match(F)||[]).join(" ")}function xt(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(F)||[]}E.fn.extend({prop:function(e,t){return X(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[E.propFix[e]||e]}))}}),E.extend({prop:function(e,t,n){var i,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&E.isXMLDoc(e)||(t=E.propFix[t]||t,o=E.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(E.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)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(e){var t,n,i,o,s,r;return v(e)?this.each((function(t){E(this).addClass(e.call(this,t,xt(this)))})):(t=wt(e)).length?this.each((function(){if(i=xt(this),n=1===this.nodeType&&" "+yt(i)+" "){for(s=0;s<t.length;s++)o=t[s],n.indexOf(" "+o+" ")<0&&(n+=o+" ");r=yt(n),i!==r&&this.setAttribute("class",r)}})):this},removeClass:function(e){var t,n,i,o,s,r;return v(e)?this.each((function(t){E(this).removeClass(e.call(this,t,xt(this)))})):arguments.length?(t=wt(e)).length?this.each((function(){if(i=xt(this),n=1===this.nodeType&&" "+yt(i)+" "){for(s=0;s<t.length;s++)for(o=t[s];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r=yt(n),i!==r&&this.setAttribute("class",r)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,o,s,r=typeof e,a="string"===r||Array.isArray(e);return v(e)?this.each((function(n){E(this).toggleClass(e.call(this,n,xt(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=wt(e),this.each((function(){if(a)for(s=E(this),o=0;o<n.length;o++)i=n[o],s.hasClass(i)?s.removeClass(i):s.addClass(i);else void 0!==e&&"boolean"!==r||((i=xt(this))&&J.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":J.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+yt(xt(n))+" ").indexOf(t)>-1)return!0;return!1}});var St=/\r/g;E.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=v(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,E(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=E.map(o,(function(e){return null==e?"":e+""}))),(t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=E.valHooks[o.type]||E.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(St,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:yt(E.text(e))}},select:{get:function(e){var t,n,i,o=e.options,s=e.selectedIndex,r="select-one"===e.type,a=r?null:[],l=r?s+1:o.length;for(i=s<0?l:r?s:0;i<l;i++)if(((n=o[i]).selected||i===s)&&!n.disabled&&(!n.parentNode.disabled||!L(n.parentNode,"optgroup"))){if(t=E(n).val(),r)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,s=E.makeArray(t),r=o.length;r--;)((i=o[r]).selected=E.inArray(E.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},m.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in i;var Tt=/^(?:focusinfocus|focusoutblur)$/,Et=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,o){var s,r,a,l,c,u,h,d,p=[n||y],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(r=d=a=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!Tt.test(g+E.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[E.expando]?e:new E.Event(g,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),h=E.event.special[g]||{},o||!h.trigger||!1!==h.trigger.apply(n,t))){if(!o&&!h.noBubble&&!b(n)){for(l=h.delegateType||g,Tt.test(l+g)||(r=r.parentNode);r;r=r.parentNode)p.push(r),a=r;a===(n.ownerDocument||y)&&p.push(a.defaultView||a.parentWindow||i)}for(s=0;(r=p[s++])&&!e.isPropagationStopped();)d=r,e.type=s>1?l:h.bindType||g,(u=(J.get(r,"events")||Object.create(null))[e.type]&&J.get(r,"handle"))&&u.apply(r,t),(u=c&&r[c])&&u.apply&&Z(r)&&(e.result=u.apply(r,t),!1===e.result&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),t)||!Z(n)||c&&v(n[g])&&!b(n)&&((a=n[c])&&(n[c]=null),E.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,Et),n[g](),e.isPropagationStopped()&&d.removeEventListener(g,Et),E.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(e,t,n){var i=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(i,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each((function(){E.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),m.focusin||E.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){E.event.simulate(t,e.target,E.event.fix(e))};E.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,o=J.access(i,t);o||i.addEventListener(e,n,!0),J.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=J.access(i,t)-1;o?J.access(i,t,o):(i.removeEventListener(e,n,!0),J.remove(i,t))}}}));var Ct=i.location,At={guid:Date.now()},Ot=/\?/;E.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Pt=/\[\]$/,Mt=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,i){var o;if(Array.isArray(t))E.each(t,(function(t,o){n||Pt.test(e)?i(e,o):Dt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)}));else if(n||"object"!==S(t))i(e,t);else for(o in t)Dt(e+"["+o+"]",t[o],n,i)}E.param=function(e,t){var n,i=[],o=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,(function(){o(this.name,this.value)}));else for(n in e)Dt(n,e[n],t,o);return i.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&kt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}})):{name:t.name,value:n.replace(Mt,"\r\n")}})).get()}});var jt=/%20/g,Nt=/#.*$/,Rt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,zt=/^(?:GET|HEAD)$/,Ft=/^\/\//,Ht={},qt={},Wt="*/".concat("*"),Bt=y.createElement("a");function _t(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,s=t.toLowerCase().match(F)||[];if(v(n))for(;i=s[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function $t(e,t,n,i){var o={},s=e===qt;function r(a){var l;return o[a]=!0,E.each(e[a]||[],(function(e,a){var c=a(t,n,i);return"string"!=typeof c||s||o[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),r(c),!1)})),l}return r(t.dataTypes[0])||!o["*"]&&r("*")}function Xt(e,t){var n,i,o=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&E.extend(!0,e,i),e}Bt.href=Ct.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,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":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,E.ajaxSettings),t):Xt(E.ajaxSettings,e)},ajaxPrefilter:_t(Ht),ajaxTransport:_t(qt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o,s,r,a,l,c,u,h,d,f=E.ajaxSetup({},t),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?E(p):E.event,m=E.Deferred(),v=E.Callbacks("once memory"),b=f.statusCode||{},x={},w={},S="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(c){if(!r)for(r={};t=It.exec(s);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)T.always(e[T.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||S;return n&&n.abort(t),C(0,t),this}};if(m.promise(T),f.url=((e||f.url||Ct.href)+"").replace(Ft,Ct.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(F)||[""],null==f.crossDomain){l=y.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Bt.protocol+"//"+Bt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=E.param(f.data,f.traditional)),$t(Ht,f,t,T),c)return T;for(h in(u=E.event&&f.global)&&0==E.active++&&E.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!zt.test(f.type),o=f.url.replace(Nt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(jt,"+")):(d=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(Ot.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Rt,"$1"),d=(Ot.test(o)?"&":"?")+"_="+At.guid+++d),f.url=o+d),f.ifModified&&(E.lastModified[o]&&T.setRequestHeader("If-Modified-Since",E.lastModified[o]),E.etag[o]&&T.setRequestHeader("If-None-Match",E.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&T.setRequestHeader("Content-Type",f.contentType),T.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Wt+"; q=0.01":""):f.accepts["*"]),f.headers)T.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(p,T,f)||c))return T.abort();if(S="abort",v.add(f.complete),T.done(f.success),T.fail(f.error),n=$t(qt,f,t,T)){if(T.readyState=1,u&&g.trigger("ajaxSend",[T,f]),c)return T;f.async&&f.timeout>0&&(a=i.setTimeout((function(){T.abort("timeout")}),f.timeout));try{c=!1,n.send(x,C)}catch(e){if(c)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,r,l){var h,d,y,x,w,S=t;c||(c=!0,a&&i.clearTimeout(a),n=void 0,s=l||"",T.readyState=e>0?4:0,h=e>=200&&e<300||304===e,r&&(x=function(e,t,n){for(var i,o,s,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)s=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){s=o;break}r||(r=o)}s=s||r}if(s)return s!==l[0]&&l.unshift(s),n[s]}(f,T,r)),!h&&E.inArray("script",f.dataTypes)>-1&&E.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(e,t,n,i){var o,s,r,a,l,c={},u=e.dataTypes.slice();if(u[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(s=u.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(o in c)if((a=o.split(" "))[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[o]:!0!==c[o]&&(s=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(f,x,T,h),h?(f.ifModified&&((w=T.getResponseHeader("Last-Modified"))&&(E.lastModified[o]=w),(w=T.getResponseHeader("etag"))&&(E.etag[o]=w)),204===e||"HEAD"===f.type?S="nocontent":304===e?S="notmodified":(S=x.state,d=x.data,h=!(y=x.error))):(y=S,!e&&S||(S="error",e<0&&(e=0))),T.status=e,T.statusText=(t||S)+"",h?m.resolveWith(p,[d,S,T]):m.rejectWith(p,[T,S,y]),T.statusCode(b),b=void 0,u&&g.trigger(h?"ajaxSuccess":"ajaxError",[T,f,h?d:y]),v.fireWith(p,[T,S]),u&&(g.trigger("ajaxComplete",[T,f]),--E.active||E.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],(function(e,t){E[t]=function(e,n,i,o){return v(n)&&(o=o||i,i=n,n=void 0),E.ajax(E.extend({url:e,type:t,dataType:o,data:n,success:i},E.isPlainObject(e)&&e))}})),E.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){E(this).wrapInner(e.call(this,t))})):this.each((function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){E(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Yt=E.ajaxSettings.xhr();m.cors=!!Yt&&"withCredentials"in Yt,m.ajax=Yt=!!Yt,E.ajaxTransport((function(e){var t,n;if(m.cors||Yt&&!e.crossDomain)return{send:function(o,s){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];for(r in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(r,o[r]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Vt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),E.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),E.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 E.globalEval(e),e}}}),E.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),E.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=E("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Ut,Gt=[],Zt=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||E.expando+"_"+At.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",(function(e,t,n){var o,s,r,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 o=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+o):!1!==e.jsonp&&(e.url+=(Ot.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return r||E.error(o+" was not called"),r[0]},e.dataTypes[0]="json",s=i[o],i[o]=function(){r=arguments},n.always((function(){void 0===s?E(i).removeProp(o):i[o]=s,e[o]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(o)),r&&v(s)&&s(r[0]),r=s=void 0})),"script"})),m.createHTMLDocument=((Ut=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((i=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(i)):t=y),s=!n&&[],(o=k.exec(e))?[t.createElement(o[1])]:(o=Te([e],t,s),s&&s.length&&E(s).remove(),E.merge([],o.childNodes)));var i,o,s},E.fn.load=function(e,t,n){var i,o,s,r=this,a=e.indexOf(" ");return a>-1&&(i=yt(e.slice(a)),e=e.slice(0,a)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),r.length>0&&E.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){s=arguments,r.html(i?E("<div>").append(E.parseHTML(e)).find(i):e)})).always(n&&function(e,t){r.each((function(){n.apply(this,s||[e.responseText,t,e])}))}),this},E.expr.pseudos.animated=function(e){return E.grep(E.timers,(function(t){return e===t.elem})).length},E.offset={setOffset:function(e,t,n){var i,o,s,r,a,l,c=E.css(e,"position"),u=E(e),h={};"static"===c&&(e.style.position="relative"),a=u.offset(),s=E.css(e,"top"),l=E.css(e,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(r=(i=u.position()).top,o=i.left):(r=parseFloat(s)||0,o=parseFloat(l)||0),v(t)&&(t=t.call(e,n,E.extend({},a))),null!=t.top&&(h.top=t.top-a.top+r),null!=t.left&&(h.left=t.left-a.left+o),"using"in t?t.using.call(e,h):u.css(h)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){E.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===E.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),o.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-E.css(i,"marginTop",!0),left:t.left-o.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||re}))}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;E.fn[e]=function(i){return X(this,(function(e,i,o){var s;if(b(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===o)return s?s[t]:e[i];s?s.scrollTo(n?s.pageXOffset:o,n?o:s.pageYOffset):e[i]=o}),e,i,arguments.length)}})),E.each(["top","left"],(function(e,t){E.cssHooks[t]=Ue(m.pixelPosition,(function(e,n){if(n)return n=Ye(e,t),qe.test(n)?E(e).position()[t]+"px":n}))})),E.each({Height:"height",Width:"width"},(function(e,t){E.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){E.fn[i]=function(o,s){var r=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===s?"margin":"border");return X(this,(function(t,n,o){var s;return b(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===o?E.css(t,n,a):E.style(t,n,o,a)}),t,r?o:void 0,r)}}))})),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){E.fn[t]=function(e){return this.on(t,e)}})),E.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,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.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,t){E.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Kt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;E.proxy=function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=a.call(arguments,2),o=function(){return e.apply(t||this,i.concat(a.call(arguments)))},o.guid=e.guid=e.guid||E.guid++,o},E.holdReady=function(e){e?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=L,E.isFunction=v,E.isWindow=b,E.camelCase=G,E.type=S,E.now=Date.now,E.isNumeric=function(e){var t=E.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},E.trim=function(e){return null==e?"":(e+"").replace(Kt,"$1")},void 0===(n=function(){return E}.apply(t,[]))||(e.exports=n);var Jt=i.jQuery,Qt=i.$;return E.noConflict=function(e){return i.$===E&&(i.$=Qt),e&&i.jQuery===E&&(i.jQuery=Jt),E},void 0===o&&(i.jQuery=i.$=E),E}))}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";n(8970),n(585),n(473),n(3957);var e=(e,t,n)=>{let i;return function(){let o=this,s=arguments,r=n&&!i;clearTimeout(i),i=setTimeout((function(){i=null,n||e.apply(o,s)}),t),r&&e.apply(o,s)}};function t(e=".mobileNavigation"){return null!==document.querySelector(e).offsetParent}var i=(e,t)=>{for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},o=n(9479);new class{constructor(e){this.options=i({tabs:".tabs",wrapper:".tabs > .wrapper",content:".tabs > .wrapper > .content",activeClass:"active",tabLinksInnerHTML:!0},e),this.tabLinks=[],this.tabs=document.querySelectorAll(this.options.tabs),this.tabs.length&&window.addEventListener("load",this.init())}init(){for(const e of this.tabs){let t=e.getAttribute("id");t||(t="t"+Math.random().toString(36).substr(2,7),e.setAttribute("id",t));const n=e.querySelectorAll(".links li"),i=e.querySelectorAll(".tab");for(const e of n)e.classList.remove(this.options.activeClass);for(const e of i)e.classList.remove(this.options.activeClass);this.clickHandlers(e,i),this.setFirstActive(e,i)}}clickHandlers(e,t){const n=e.querySelectorAll(".links a");for(const i of n)i.addEventListener("click",(i=>{i.preventDefault(),this.tabHandler(i,e,t,n)}),!1);for(const e of t){(e.querySelector("header")||e.querySelector(".csc-firstHeader")).addEventListener("click",(function(){this.parentNode.parentNode.classList.toggle("isOpen")}),!1)}}tabHandler(e,t,n,i){const o=e.currentTarget;e.preventDefault(),this.clearSelection(),this.updateURL(o.getAttribute("href"));for(const e of i)e.setAttribute("aria-selected","false"),e.parentNode.classList.remove(this.options.activeClass);o.parentNode.classList.add(this.options.activeClass);for(const e of n)e.classList.remove(this.options.activeClass),e.setAttribute("aria-hidden","true");var s=o.getAttribute("href");if(o.setAttribute("aria-selected","true"),s.length>1){var r=t.querySelector(s);r.classList.add(this.options.activeClass),r.setAttribute("aria-hidden","false")}}updateURL(e){window.history.replaceState("",document.title,window.location.href.replace(location.hash,"")+e)}setFirstActive(e,t){let n;window.location.hash?n=window.location.hash:(n=Array.prototype.filter.call(t,(e=>e.classList.contains(this.options.activeClass))),n.length&&(n=`#${n[0].id}`));let i=e.querySelector(".links a");o(n).length&&o(n).hasClass("tab")&&e.querySelector(n)&&(i=e.querySelector(`a[href="${n}"]`));let s=i.getAttribute("href"),r=e.querySelector(s);i.parentNode.classList.add(this.options.activeClass),i.setAttribute("aria-selected","true"),r.setAttribute("aria-hidden","false"),r.classList.add(this.options.activeClass),e.classList.add("loaded")}clearSelection(){document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()}};(()=>{const t=document.querySelectorAll(".box.toggle");let n={"@context":"http://schema.org","@type":"FAQPage",mainEntity:[]};function i(e){const t=("<h1><h2><h3><h4><h5><h6><br><ol><ul><li><a><p><div><b><strong><i><em>".toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join(""),n=e.replace(/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,(function(e,n){return t.indexOf("<"+n.toLowerCase()+">")>-1?e:""}));return e===n&&e}if(t.length){for(let o of t){let t=o.querySelector(".title"),s=o.querySelector(".content"),r=s.querySelector(".csc-firstHeader"),a=s.querySelectorAll("img"),l={"@type":"Question",acceptedAnswer:{"@type":"Answer"}};for(const e of a)e.setAttribute("loading","eager");if(""===s.innerHTML){o.classList.add("isEmpty");continue}if(t&&r&&(t.innerHTML="",t.appendChild(r)),null===t&&r){let e=document.createElement("div");e.setAttribute("class","title"),e.appendChild(r),s.closest(".wrapper").insertBefore(e,s),t=e}let c=document.createElement("div");c.setAttribute("class","toggleContentWrapper"),c.innerHTML=s.innerHTML,s.innerHTML="",s.appendChild(c);let u=o.getAttribute("id");if(u||(u=`box-${Math.random().toString(36).substring(7)}`),o.classList.add("isToggle"),t.classList.add("hasToggleClosed"),t.setAttribute("role","button"),t.setAttribute("id",`${u}-title`),t.setAttribute("aria-controls",`${u}-content`),t.setAttribute("aria-expanded","false"),t.setAttribute("tabindex",0),s.setAttribute("id",`${u}-content`),s.setAttribute("aria-labelledby",`${u}-title`),s.setAttribute("aria-hidden","true"),c.innerHTML){const e=i(c.innerHTML);e&&(l.name=l.text=t.innerText||t.textContent,l.acceptedAnswer.text=e,n.mainEntity.push(l))}let h=function(){const e=document.querySelector(".box.toggle.isOpen");e&&(e.classList.remove("isOpen"),e.querySelector(".content").style.maxHeight=null,e.querySelector(".title").setAttribute("aria-expanded","false"),e.querySelector(".content").setAttribute("aria-hidden","true"))},d=e=>{const n=e.closest(".box.toggle");if(n.classList.contains("isOpen"))return t.classList.add("hasToggleClosed"),n.classList.remove("isOpen"),s.style.maxHeight=null,t.setAttribute("aria-expanded","false"),s.setAttribute("aria-hidden","true"),void s.setAttribute("aria-hidden","true");s.style.maxHeight=s.dataset.height,t.classList.remove("hasToggleClosed"),t.setAttribute("aria-expanded","true"),s.setAttribute("aria-hidden","false"),h(),n.classList.toggle("isOpen")},f=e=>{e.setAttribute("data-height",`${c.offsetHeight}px`)};window.addEventListener("load",(()=>{f(s)})),window.addEventListener("resize",e((e=>f(s)),400)),t.addEventListener("click",(function(){d(this)})),t.addEventListener("keyup",(function(e){e.preventDefault(),13!==event.keyCode&&32!==event.keyCode||d(this)})),document.addEventListener("DOMContentLoaded",(()=>{if(location.hash.length){const e=document.querySelector(location.hash);"undefined"!==e&&null!==e&&e.classList.contains("toggle")&&d(e)}}))}if(n.mainEntity.length){let e=document.createElement("script");e.type="application/ld+json",e.innerHTML=JSON.stringify(n),document.body.appendChild(e)}}})();var s=n(7347),r=n.n(s);var a=n(9479);class l{constructor(n=[],o){this.options=i({dropdownSelector:".hasChildren",desktopDropdownSelector:!1,hasDesktopToggle:!1,hasDropDownLogIn:".hasDropDownLogIn",mainNavigation:".primaryNavigation",mobileNavSelector:".mobileNavigation",mobileNavTargetAttribute:"data-target",navWrapper:".navigationWrapper",subNavDistanceFromTop:65,subNavWrapper:".subNavWrapper",subNavWrapperWithAbstract:!1,searchSelector:"#search",upperNavigation:{selector:".upperNavigation",children:[".headerNavigation",".localisationNavigation"]}},o);const s=[...new Set([...n,this.options.mainNavigation,...this.options.upperNavigation.children])];var r;this.navs=document.querySelectorAll(s),this.upperNav=document.querySelector(this.options.upperNavigation.selector),this.upperNavChildren=document.querySelectorAll(this.options.upperNavigation.children),this.mobileNav=document.querySelector(this.options.mobileNavSelector),this.mobileTrigger=this.mobileNav.querySelector("["+this.options.mobileNavTargetAttribute+"]"),this.navWrapperEl=document.querySelector(this.options.navWrapper),this.hasResized=!1,this.mobileNavIsOpen=!1,this.mobileDrawerPosition=0,r=()=>{this.isMobileView=t(),this.onCreate(),this.init()},"complete"===document.readyState||"interactive"===document.readyState?setTimeout(r,1):document.addEventListener("DOMContentLoaded",r),window.addEventListener("resize",e((()=>this.onResize()),200))}onCreate(){this.createEventsDelegation();for(const e of this.navs){if("string"==typeof this.options.desktopDropdownSelector){const t=e.querySelectorAll(this.options.desktopDropdownSelector);for(const e of t)e.classList.contains("hasChildren")||e.classList.add("hasChildren")}const t=e.querySelectorAll(".hasChildren");for(const e of t)this.createSubNavHeader(e)}}onResize(){let e=t();this.isMobileView!==e&&(this.isMobileView=e,this.hasResized=!0,this.mobileNavIsOpen&&this.mobileTrigger.click(),this.resetDrawerPosition(),this.resetSubNavPosition(),this.closeSubNav(),this.init(!0))}init(e=!1){this.isMobileView&&this.renderMobileNav(e),this.sortNavElements(e),setTimeout((()=>this.openLowerLevelPage()),0)}createSubNavHeader(e){const t=e.querySelector(".subNav");let n=!1;if("string"==typeof this.options.subNavWrapperWithAbstract&&(n=e.querySelector(this.options.subNavWrapperWithAbstract)),!t)return void e.classList.remove("hasChildren");const i=e.querySelector("a").cloneNode(!0);i.classList.remove("active");const o=document.createElement("ul");o.setAttribute("class",this.options.subNavWrapper.replace(".",""));const s=document.createElement("li");s.setAttribute("class","back"),s.innerHTML="Back";const r=document.createElement("li");r.setAttribute("class","subject"),r.appendChild(i),o.appendChild(s),o.appendChild(r),o.appendChild(t),n?n.appendChild(o):e.appendChild(o),this.options.hasDesktopToggle&&1===a(e).parents(".subNav").length&&!this.isMobileView&&a(e).addClass("isToggle"),this.options.hasDesktopToggle&&e.classList.contains("active")&&1===a(e).parents(".subNav").length&&!this.isMobileView&&(a(e).addClass("isOpen"),a(e).find(this.options.subNavWrapper).slideDown())}createEventsDelegation(){this.navWrapperEl.addEventListener("click",(e=>{this.isMobileView?this.m_eventDelegation(e):this.d_eventDelegation(e)})),document.addEventListener("click",(e=>{const t=e.target;this.isMobileView||this.navWrapperEl.contains(t)||(this.closeSubNav(),document.documentElement.classList.remove("multiNavigationIsOpen")),this.isMobileView&&this.mobileNavIsOpen&&t!==this.mobileTrigger&&!this.navWrapperEl.contains(t)&&this.mobileTrigger.click()})),this.mobileTrigger.addEventListener("click",(e=>{e.preventDefault(),this.drawerHandle()}))}d_eventDelegation(e){const t=e.target;let n=this.options.dropdownSelector;"string"==typeof this.options.desktopDropdownSelector&&(n=this.options.desktopDropdownSelector);const i=n.replace(".",""),o=t.closest(n);let s=null;null!==o&&(s=o.closest(".subNav")),a(t).closest("li").hasClass(i)&&o.classList.contains(i)&&null===s&&(e.preventDefault(),this.closeSubNav(o),o.classList.contains("isActive")?document.documentElement.classList.remove("multiNavigationIsOpen"):document.documentElement.classList.add("multiNavigationIsOpen"),o.classList.toggle("isActive")),this.options.hasDesktopToggle&&1===a(t).parents(this.options.subNavWrapper).length&&a(t).closest("li").hasClass(i)&&!a(t).closest("li").hasClass("subject")&&(e.preventDefault(),a(o).hasClass("isOpen")?(a(o).removeClass("isOpen").find(this.options.subNavWrapper).slideUp(),a(o).closest(`${this.options.dropdownSelector}.isActive`).removeClass("subNavIsOpen")):(a(o).siblings().removeClass("isOpen").find(this.options.subNavWrapper).slideUp(),a(o).addClass("isOpen").find(this.options.subNavWrapper).slideDown(),a(o).closest(`${this.options.dropdownSelector}.isActive`).addClass("subNavIsOpen")))}m_eventDelegation(e){const t="SPAN"===e.target.tagName?e.target.parentNode:e.target,n=this.options.dropdownSelector.replace(".",""),i=t.closest(this.options.dropdownSelector),o=t.classList.contains("back");(t.parentNode.classList.contains(n)||o)&&(e.preventDefault(),t!==e.currentTarget&&!o&&t.nextSibling&&(e.preventDefault(),this.updateDrawerPosition("forward",t),i.classList.add("isActive")),o&&(this.updateDrawerPosition("backwards",t),i.classList.remove("isActive")),this.navWrapperEl.scrollTop=0)}renderMobileNav(){for(const e of this.navs)this.updatePositionOfSubNavs(e,`.navigation > ${this.options.desktopDropdownSelector} > ${this.options.subNavWrapper}`)}drawerHandle(){const e=this.mobileTrigger.getAttribute(this.options.mobileNavTargetAttribute),t=document.querySelector(e),n=document.documentElement;this.mobileTrigger.classList.toggle("isActive"),t.classList.toggle("isOpen"),n.classList.toggle("hasMobileMultiNavigationOpen"),this.mobileNavIsOpen=!this.mobileNavIsOpen}updateDrawerPosition(e,t){"backwards"===e?this.mobileDrawerPosition+=100:"forward"===e&&(this.mobileDrawerPosition-=100);for(let e of this.navs)e.style.transform=`translateX(${this.mobileDrawerPosition}%)`;this.updatePositionOfSubNavs(a(t).parent().find(".subNavWrapper").first(),".subNav > .hasChildren",!1)}resetDrawerPosition(){this.mobileDrawerPosition=0;for(let e of this.navs)e.style.transform=""}closeSubNav(e=""){if(a(e).siblings().length)a(e).siblings().each((function(){a(this).removeClass("isActive")}));else for(const e of this.navs){const t=e.querySelectorAll(".isActive");for(const e of t)e.classList.remove("isActive")}}sortNavElements(e=!1){const t=this.navWrapperEl.querySelector(this.options.searchSelector);if(this.navWrapperEl)if(this.isMobileView){this.navWrapperEl.appendChild(t);for(let e of this.navs)this.navWrapperEl.appendChild(e)}else if(e){for(const e of this.upperNavChildren)this.upperNav.appendChild(e);this.upperNav.appendChild(t)}}updatePositionOfSubNavs(e,t,n=!0){this._checkElements(e,t).then((e=>this.setPositionOfSubNavs(e,n)))}setPositionOfSubNavs(e,t){for(const n of e){const e=a(n).find(this.options.subNavWrapper);if(!e.length)return;let i=-1*(n.offsetTop-this.options.subNavDistanceFromTop);t||(i=-1*n.offsetTop),e.css("margin-top",`${i}px`)}}resetSubNavPosition(){const e=document.querySelectorAll(this.options.subNavWrapper);for(const t of e)t.style.marginTop=0}openLowerLevelPage(){for(const e of this.navs){const t=a(e).find(`li.active${this.options.desktopDropdownSelector}`);t.length&&t.each(((e,t)=>{this.isMobileView&&a(t).find("> a > span").trigger("click"),!this.isMobileView&&a(t).hasClass("isToggle isOpen")&&a(t).parents(`li.active${this.options.desktopDropdownSelector}`).addClass("subNavIsOpen")}))}}_checkElements(e,t){return new Promise(((n,i)=>{const o=a(e).find(t);o||i("No SubNav found!"),n(o)}))}}var c,u,h,d=n(9479);c=d(".localisationNavigation"),u=c.find(".hasChildren > a > span"),"English"===(h=c.find("a.active").text())&&(h="ENG"),u.text(h),function(){new l([".mainNavigation"],{upperNavigation:{selector:".upperNavigation",children:[".headerNavigation",".localisationNavigation"]},desktopDropdownSelector:".hasChildren",searchSelector:".searchForm"});t()||setTimeout((function(){d(".mainNavigation .subNavWrapper .subNav").each((function(){var e=d(this);e.closest("ul.subNavWrapper").attr("data-columns",e.find(".spacer").length),e.find(".spacer").each((function(){d(this).nextUntil(".spacer","li").addBack().wrapAll('<li class="col"><ul class="fauxSubNav"></ul></li>')}))}))}),50)}();var f=n(9479);!function(){if(!t()){var e=f("body"),n=f(".searchForm");e.on("click.searchBox",".searchForm button",(function(t){f(".searchForm").hasClass("isActive")||(t.preventDefault(),n.addClass("isActive"),n.find("input").focus(),e.addClass("searchIsOpen"))})),f(document).on("click.searchBox",(function(t){f(t.target).parents().is(n)||(n.removeClass("isActive"),e.removeClass("searchIsOpen"))}))}}();n(4944),n(3677);const p=(e,t=1e4)=>(e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*t)/t),g=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;const t=e.scrollHeight>e.clientHeight,n=window.getComputedStyle(e).overflowY,i=-1!==n.indexOf("hidden"),o=-1!==n.indexOf("visible");return t&&!i&&!o},m=function(e,t){return!(!e||e===document.body||t&&e===t)&&(g(e)?e:m(e.parentElement,t))},v=function(e){var t=(new DOMParser).parseFromString(e,"text/html").body;if(t.childElementCount>1){for(var n=document.createElement("div");t.firstChild;)n.appendChild(t.firstChild);return n}return t.firstChild},b=e=>`${e||""}`.split(" ").filter((e=>!!e)),y=(e,t,n)=>{b(t).forEach((t=>{e&&e.classList.toggle(t,n||!1)}))};class x{constructor(e){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=e,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY,this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.time=Date.now()}}const w={passive:!1};class S{constructor(e,{start:t=(()=>!0),move:n=(()=>{}),end:i=(()=>{})}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=e,this.startCallback=t,this.moveCallback=n,this.endCallback=i;for(const e of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[e]=this[e].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,w),this.element.addEventListener("touchstart",this.onTouchStart,w),this.element.addEventListener("touchmove",this.onMove,w),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||0!==e.button)return;const t=new x(e);this.currentPointers.some((e=>e.id===t.id))||this.triggerPointerStart(t,e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerStart(new x(t),e);window.addEventListener("blur",this.onWindowBlur)}onMove(e){const t=this.currentPointers.slice(),n="changedTouches"in e?Array.from(e.changedTouches||[]).map((e=>new x(e))):[new x(e)],i=[];for(const e of n){const t=this.currentPointers.findIndex((t=>t.id===e.id));t<0||(i.push(e),this.currentPointers[t]=e)}i.length&&this.moveCallback(e,this.currentPointers.slice(),t)}onPointerEnd(e){e.buttons>0&&0!==e.button||(this.triggerPointerEnd(e,new x(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerEnd(e,new x(t))}triggerPointerStart(e,t){return!!this.startCallback(t,e,this.currentPointers.slice())&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}triggerPointerEnd(e,t){const n=this.currentPointers.findIndex((e=>e.id===t.id));n<0||(this.currentPointers.splice(n,1),this.startPointers.splice(n,1),this.endCallback(e,t,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const e=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:e.clientX,clientY:e.clientY}),e,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,w),this.element.removeEventListener("touchstart",this.onTouchStart,w),this.element.removeEventListener("touchmove",this.onMove,w),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function T(e,t){return t?Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2)):0}function E(e,t){return t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e}const C=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e),A=(e,...t)=>{const n=t.length;for(let i=0;i<n;i++){const n=t[i]||{};Object.entries(n).forEach((([t,n])=>{const i=Array.isArray(n)?[]:{};e[t]||Object.assign(e,{[t]:i}),C(n)?Object.assign(e[t],A(i,n)):Array.isArray(n)?Object.assign(e,{[t]:[...n]}):Object.assign(e,{[t]:n})}))}return e},O=function(e,t){return e.split(".").reduce(((e,t)=>"object"==typeof e?e[t]:void 0),t)};class P{constructor(e={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(e);for(const e of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))e.startsWith("on")&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}setOptions(e){this.options=e?A({},this.constructor.defaults,e):{};for(const[e,t]of Object.entries(this.option("on")||{}))this.on(e,t)}option(e,...t){let n=O(e,this.options);return n&&"function"==typeof n&&(n=n.call(this,this,...t)),n}optionFor(e,t,n,...i){let o=O(t,e);var s;"string"!=typeof(s=o)||isNaN(s)||isNaN(parseFloat(s))||(o=parseFloat(o)),"true"===o&&(o=!0),"false"===o&&(o=!1),o&&"function"==typeof o&&(o=o.call(this,this,e,...i));let r=O(t,this.options);return r&&"function"==typeof r?o=r.call(this,this,e,...i,o):void 0===o&&(o=r),void 0===o?n:o}cn(e){const t=this.options.classes;return t&&t[e]||""}localize(e,t=[]){e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,((e,t,n)=>{let i="";return n?i=this.option(`${t[0]+t.toLowerCase().substring(1)}.l10n.${n}`):t&&(i=this.option(`l10n.${t}`)),i||(i=e),i}));for(let n=0;n<t.length;n++)e=e.split(t[n][0]).join(t[n][1]);return e.replace(/\{\{(.*?)\}\}/g,((e,t)=>t))}on(e,t){let n=[];"string"==typeof e?n=e.split(" "):Array.isArray(e)&&(n=e),this.events||(this.events=new Map),n.forEach((e=>{let n=this.events.get(e);n||(this.events.set(e,[]),n=[]),n.includes(t)||n.push(t),this.events.set(e,n)}))}off(e,t){let n=[];"string"==typeof e?n=e.split(" "):Array.isArray(e)&&(n=e),n.forEach((e=>{const n=this.events.get(e);if(Array.isArray(n)){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}))}emit(e,...t){[...this.events.get(e)||[]].forEach((e=>e(this,...t))),"*"!==e&&this.emit("*",e,...t)}}Object.defineProperty(P,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.17"}),Object.defineProperty(P,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class M extends P{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const t=new Map;for(const[n,i]of Object.entries(e)){const e=this.option(n),o=this.plugins[n];o||!1===e?o&&!1===e&&(o.detach(),delete this.plugins[n]):t.set(n,new i(this,e||{}))}for(const[e,n]of t)this.plugins[e]=n,n.attach();this.emit("attachPlugins")}detachPlugins(e){e=e||Object.keys(this.plugins);for(const t of e){const e=this.plugins[t];e&&e.detach(),delete this.plugins[t]}return this.emit("detachPlugins"),this}}var L;!function(e){e[e.Init=0]="Init",e[e.Error=1]="Error",e[e.Ready=2]="Ready",e[e.Panning=3]="Panning",e[e.Mousemove=4]="Mousemove",e[e.Destroy=5]="Destroy"}(L||(L={}));const k=["a","b","c","d","e","f"],D={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},j={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:D},N='<div class="f-spinner"><svg viewBox="0 0 50 50"><circle cx="25" cy="25" r="20"></circle><circle cx="25" cy="25" r="20"></circle></svg></div>',R=e=>e&&null!==e&&e instanceof Element&&"nodeType"in e,I=(e,t)=>{e&&b(t).forEach((t=>{e.classList.remove(t)}))},z=(e,t)=>{e&&b(t).forEach((t=>{e.classList.add(t)}))},F={a:1,b:0,c:0,d:1,e:0,f:0};let H=null,q=null;class W extends M{get isTouchDevice(){return null===q&&(q=window.matchMedia("(hover: none)").matches),q}get isMobile(){return null===H&&(H=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),H}get panMode(){return"mousemove"!==this.options.panMode||this.isTouchDevice?"drag":"mousemove"}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return"auto"===e?this.isTouchDevice:e}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:e,b:t}=this.current;return Math.sqrt(e*e+t*t)||1}get targetScale(){const{a:e,b:t}=this.target;return Math.sqrt(e*e+t*t)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:e}=this;return e.fullWidth/e.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:e,contentRect:t}=this,n=Math.max(e.height/t.fitHeight,e.width/t.fitWidth)||1;return Math.min(this.fullScale,n)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const e of k){const t="e"==e||"f"===e?.001:1e-5;if(Math.abs(this.target[e]-this.current[e])>t)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(e,t={},n={}){var i;if(super(t),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:L.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},F)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},F)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!e)throw new Error("Container Element Not Found");this.container=e,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},W.Plugins),n)),this.emit("init");const o=this.content;if(o.addEventListener("load",this.onLoad),o.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const t=v(N);!e.contains(o)||o.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(t):this.spinner=(null===(i=o.parentElement)||void 0===i?void 0:i.insertBefore(t,o))||null}this.emit("beforeLoad")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:e}=this,t=this.cn("content");let n=this.option("content")||e.querySelector(`.${t}`);if(n||(n=e.querySelector("img,picture")||e.firstElementChild,n&&z(n,t)),n instanceof HTMLPictureElement&&(n=n.querySelector("img")),!n)throw new Error("No content found");this.content=n}onLoad(){this.spinner&&(this.spinner.remove(),this.spinner=null),this.option("spinner")&&this.container.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),this.state===L.Init?this.enable():this.updateMetrics()}onError(){this.state!==L.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=L.Error,this.emit("error"))}attachObserver(){var e;const t=()=>Math.abs(this.containerRect.width-this.container.getBoundingClientRect().width)>.1||Math.abs(this.containerRect.height-this.container.getBoundingClientRect().height)>.1;this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(t()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{t()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container)}detachObserver(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}attachEvents(){const{container:e}=this;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new S(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener("mousemove",this.onMouseMove)}detachEvents(){var e;const{container:t}=this;t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(e=this.pointerTracker)||void 0===e||e.stop(),this.pointerTracker=null,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){const e=this.friction;this.setTargetForce();const t=this.option("maxVelocity");for(const n of k)e?(this.velocity[n]*=1-e,t&&!this.isScaling&&(this.velocity[n]=Math.max(Math.min(this.velocity[n],t),-1*t)),this.current[n]+=this.velocity[n]):this.current[n]=this.target[n];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((()=>this.animate())):this.stop("current")}setTargetForce(){for(const e of k)"e"===e&&this.isBouncingX||"f"===e&&this.isBouncingY||(this.velocity[e]=(1/(1-this.friction)-1)*(this.target[e]-this.current[e]))}checkBounds(e=0,t=0){const{current:n}=this,i=n.e+e,o=n.f+t,s=this.getBounds(),{x:r,y:a}=s,l=r.min,c=r.max,u=a.min,h=a.max;let d=0,f=0;return l!==1/0&&i<l?d=l-i:c!==1/0&&i>c&&(d=c-i),u!==1/0&&o<u?f=u-o:h!==1/0&&o>h&&(f=h-o),Math.abs(d)<.001&&(d=0),Math.abs(f)<.001&&(f=0),Object.assign(Object.assign({},s),{xDiff:d,yDiff:f,inBounds:!d&&!f})}clampTargetBounds(){const{target:e}=this,{x:t,y:n}=this.getBounds();t.min!==1/0&&(e.e=Math.max(e.e,t.min)),t.max!==1/0&&(e.e=Math.min(e.e,t.max)),n.min!==1/0&&(e.f=Math.max(e.f,n.min)),n.max!==1/0&&(e.f=Math.min(e.f,n.max))}calculateContentDim(e=this.current){const{content:t,contentRect:n}=this,{fitWidth:i,fitHeight:o,fullWidth:s,fullHeight:r}=n;let a=s,l=r;if(this.option("zoom")||0!==this.angle){const n=!(t instanceof HTMLImageElement||"none"!==window.getComputedStyle(t).maxWidth&&"none"!==window.getComputedStyle(t).maxHeight),c=n?s:i,u=n?r:o,h=this.getMatrix(e),d=new DOMPoint(0,0).matrixTransform(h),f=new DOMPoint(0+c,0).matrixTransform(h),p=new DOMPoint(0+c,0+u).matrixTransform(h),g=new DOMPoint(0,0+u).matrixTransform(h),m=Math.abs(p.x-d.x),v=Math.abs(p.y-d.y),b=Math.abs(g.x-f.x),y=Math.abs(g.y-f.y);a=Math.max(m,b),l=Math.max(v,y)}return{contentWidth:a,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||"mousemove"===this.panMode||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:t,y:n,xDiff:i,yDiff:o}=this.checkBounds(),s=this.option("maxVelocity");let r=this.velocity.e,a=this.velocity.f;0!==i?(this.isBouncingX=!0,i*r<=0?r+=.14*i:(r=.14*i,t.min!==1/0&&(this.target.e=Math.max(e.e,t.min)),t.max!==1/0&&(this.target.e=Math.min(e.e,t.max))),s&&(r=Math.max(Math.min(r,s),-1*s))):this.isBouncingX=!1,0!==o?(this.isBouncingY=!0,o*a<=0?a+=.14*o:(a=.14*o,n.min!==1/0&&(this.target.f=Math.max(e.f,n.min)),n.max!==1/0&&(this.target.f=Math.min(e.f,n.max))),s&&(a=Math.max(Math.min(a,s),-1*s))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=r),this.isBouncingY&&(this.velocity.f=a)}enable(){const{content:e}=this,t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const e of k)this.current[e]=this.target[e]=t[e];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=L.Ready,this.emit("ready")}onClick(e){var t;this.isDragging&&(null===(t=this.pointerTracker)||void 0===t||t.clear(),this.trackingPoints=[],this.startDecelAnim());const n=e.target;if(!n||e.defaultPrevented)return;if(n&&n.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const e=window.getSelection();return e&&"Range"===e.type})()&&!n.closest("button"))return;const i=n.closest("[data-panzoom-action]"),o=n.closest("[data-panzoom-change]"),s=i||o,r=s&&R(s)?s.dataset:null;if(r){const t=r.panzoomChange,n=r.panzoomAction;if((t||n)&&e.preventDefault(),t){let n={};try{n=JSON.parse(t)}catch(e){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(n)}if(n)return void(this[n]&&this[n]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();const a=this.content.getBoundingClientRect();if(this.dragStart.time&&!this.canZoomOut()&&(Math.abs(a.x-this.dragStart.x)>2||Math.abs(a.y-this.dragStart.y)>2))return;this.dragStart.time=0;const l=t=>{this.option("zoom")&&t&&"string"==typeof t&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(t)&&"function"==typeof this[t]&&(e.preventDefault(),this[t]({event:e}))},c=this.option("click",e),u=this.option("dblClick",e);u?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit("click",e),!e.defaultPrevented&&c&&l(c)):(this.emit("dblClick",e),e.defaultPrevented||l(u)),this.clicks=0,this.clickTimer=null}),350))):(this.emit("click",e),!e.defaultPrevented&&c&&l(c))}addTrackingPoint(e){const t=this.trackingPoints.filter((e=>e.time>Date.now()-100));t.push(e),this.trackingPoints=t}onPointerDown(e,t,n){var i;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if("mousemove"===this.panMode&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;if(!n.length){const t=e.composedPath()[0];if(["A","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(t.nodeName)||t.closest("[contenteditable]")||t.closest("[data-selectable]")||t.closest("[data-panzoom-change]")||t.closest("[data-panzoom-action]"))return!1;null===(i=window.getSelection())||void 0===i||i.removeAllRanges()}if("mousedown"===e.type)e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(t),this.emit("touchStart",e)),!0}onPointerMove(e,t,n){if(!1===this.option("touch",e))return;if(!this.isDragging)return;if(t.length<2&&this.panOnlyZoomed&&p(this.targetScale)<=p(this.minScale))return;if(this.emit("touchMove",e),e.defaultPrevented)return;this.addTrackingPoint(t[0]);const{content:i}=this,o=E(n[0],n[1]),s=E(t[0],t[1]);let r=0,a=0;if(t.length>1){const e=i.getBoundingClientRect();r=o.clientX-e.left-.5*e.width,a=o.clientY-e.top-.5*e.height}const l=T(n[0],n[1]),c=T(t[0],t[1]);let u=l?c/l:1,h=s.clientX-o.clientX,d=s.clientY-o.clientY;this.dragOffset.x+=h,this.dragOffset.y+=d,this.dragOffset.time=Date.now()-this.dragStart.time;let f=p(this.targetScale)===p(this.minScale)&&this.option("lockAxis");if(f&&!this.lockedAxis)if("xy"===f||"y"===f||"touchmove"===e.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const t=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=t>45&&t<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,h=0,d=0}else this.lockedAxis=f;if(m(e.target,this.content)&&(f="x",this.dragOffset.y=0),f&&"xy"!==f&&this.lockedAxis!==f&&p(this.targetScale)===p(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const g=this.checkBounds(h,d);this.option("rubberband")?("x"!==this.isInfinite&&(g.xDiff>0&&h<0||g.xDiff<0&&h>0)&&(h*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*g.xDiff))),"y"!==this.isInfinite&&(g.yDiff>0&&d<0||g.yDiff<0&&d>0)&&(d*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*g.yDiff)))):(g.xDiff&&(h=0),g.yDiff&&(d=0));const v=this.targetScale,b=this.minScale,y=this.maxScale;v<.5*b&&(u=Math.max(u,b)),v>1.5*y&&(u=Math.min(u,y)),"y"===this.lockedAxis&&p(v)===p(b)&&(h=0),"x"===this.lockedAxis&&p(v)===p(b)&&(d=0),this.applyChange({originX:r,originY:a,panX:h,panY:d,scale:u,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(e,t,n){if(n.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(t),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),m(e.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==L.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const t=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of k)this.velocity[e]=0;this.target.e=this.current.e,this.target.f=this.current.f,I(this.container,"is-scaling"),I(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:n}=this,i=n[0],o=n[n.length-1];let s=0,r=0,a=0;o&&i&&(s=o.clientX-i.clientX,r=o.clientY-i.clientY,a=o.time-i.time);const l=(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1;1!==l&&(s*=l,r*=l);let c=0,u=0,h=0,d=0,f=this.option("decelFriction");const g=this.targetScale;if(a>0){h=Math.abs(s)>3?s/(a/30):0,d=Math.abs(r)>3?r/(a/30):0;const e=this.option("maxVelocity");e&&(h=Math.max(Math.min(h,e),-1*e),d=Math.max(Math.min(d,e),-1*e))}h&&(c=h/(1/(1-f)-1)),d&&(u=d/(1/(1-f)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&p(g)===this.minScale)&&(c=h=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&p(g)===this.minScale)&&(u=d=0);const m=this.dragOffset.x,v=this.dragOffset.y,b=this.option("dragMinThreshold")||0;Math.abs(m)<b&&Math.abs(v)<b&&(c=u=0,h=d=0),(g<this.minScale-1e-5||g>this.maxScale+1e-5||t&&!c&&!u)&&(f=.35),this.applyChange({panX:c,panY:u,friction:f}),this.emit("decel",h,d,m,v)}onWheel(e){var t=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e}));const n=Math.max(-1,Math.min(1,t));if(this.emit("wheel",e,n),"mousemove"===this.panMode)return;if(e.defaultPrevented)return;const i=this.option("wheel");"pan"===i?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):"zoom"===i&&!1!==this.option("zoom")&&this.zoomWithWheel(e)}onMouseMove(e){this.panWithMouse(e)}onKeydown(e){"Escape"===e.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:e,target:t,content:n,contentRect:i}=this,o=Object.assign({},F);for(const n of k){const i="e"==n||"f"===n?1e3:1e5;o[n]=p(e[n],i),Math.abs(t[n]-e[n])<("e"==n||"f"===n?.51:.001)&&(e[n]=t[n])}let{a:s,b:r,c:a,d:l,e:c,f:u}=o,h=`matrix(${s}, ${r}, ${a}, ${l}, ${c}, ${u})`,d=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option("transformParent")&&(d=d.parentElement||d),d.style.transform===h)return;d.style.transform=h;const{contentWidth:f,contentHeight:g}=this.calculateContentDim();i.width=f,i.height=g,this.emit("afterTransform")}updateMetrics(e=!1){var t;if(!this||this.state===L.Destroy)return;if(this.isContentLoading)return;const n=Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1),{container:i,content:o}=this,s=o instanceof HTMLImageElement,r=i.getBoundingClientRect(),a=getComputedStyle(this.container);let l=r.width*n,c=r.height*n;const u=parseFloat(a.paddingTop)+parseFloat(a.paddingBottom),h=l-(parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)),d=c-u;this.containerRect={width:l,height:c,innerWidth:h,innerHeight:d};let f=this.option("width")||"auto",g=this.option("height")||"auto";"auto"===f&&(f=parseFloat(o.dataset.width||"")||(e=>{let t=0;return t=e instanceof HTMLImageElement?e.naturalWidth:e instanceof SVGElement?e.width.baseVal.value:Math.max(e.offsetWidth,e.scrollWidth),t||0})(o)),"auto"===g&&(g=parseFloat(o.dataset.height||"")||(e=>{let t=0;return t=e instanceof HTMLImageElement?e.naturalHeight:e instanceof SVGElement?e.height.baseVal.value:Math.max(e.offsetHeight,e.scrollHeight),t||0})(o));let m=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option("transformParent")&&(m=m.parentElement||m);const v=m.getAttribute("style")||"";m.style.setProperty("transform","none","important"),s&&(m.style.width="",m.style.height=""),m.offsetHeight;const b=o.getBoundingClientRect();let y=b.width*n,x=b.height*n,w=0,S=0;s&&(Math.abs(f-y)>1||Math.abs(g-x)>1)&&({width:y,height:x,top:w,left:S}=((e,t,n,i)=>{const o=n/i;return o>e/t?(n=e,i=e/o):(n=t*o,i=t),{width:n,height:i,top:.5*(t-i),left:.5*(e-n)}})(y,x,f,g)),this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:b.top-r.top+w,bottom:r.bottom-b.bottom+w,left:b.left-r.left+S,right:r.right-b.right+S,fitWidth:y,fitHeight:x,width:y,height:x,fullWidth:f,fullHeight:g}),m.style.cssText=v,s&&(m.style.width=`${y}px`,m.style.height=`${x}px`),this.setTransform(),!0!==e&&this.emit("refresh"),this.ignoreBounds||(p(this.targetScale)<p(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===L.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}getBounds(){const e=this.option("bounds");if("auto"!==e)return e;const{contentWidth:t,contentHeight:n}=this.calculateContentDim(this.target);let i=0,o=0,s=0,r=0;const a=this.option("infinite");if(!0===a||this.lockedAxis&&a===this.lockedAxis)i=-1/0,s=1/0,o=-1/0,r=1/0;else{let{containerRect:e,contentRect:a}=this,l=p(this.contentRect.fitWidth*this.targetScale,1e3),c=p(this.contentRect.fitHeight*this.targetScale,1e3),{innerWidth:u,innerHeight:h}=e;if(this.containerRect.width===l&&(u=e.width),this.containerRect.width===c&&(h=e.height),t>u){s=.5*(t-u),i=-1*s;let e=.5*(a.right-a.left);i+=e,s+=e}if(this.contentRect.fitWidth>u&&t<u&&(i-=.5*(this.contentRect.fitWidth-u),s-=.5*(this.contentRect.fitWidth-u)),n>h){r=.5*(n-h),o=-1*r;let e=.5*(a.bottom-a.top);o+=e,r+=e}this.contentRect.fitHeight>h&&n<h&&(i-=.5*(this.contentRect.fitHeight-h),s-=.5*(this.contentRect.fitHeight-h))}return{x:{min:i,max:s},y:{min:o,max:r}}}updateControls(){const e=this,t=e.container,{panMode:n,contentRect:i,fullScale:o,targetScale:s,coverScale:r,maxScale:a,minScale:l}=e;let c={toggleMax:s-l<.5*(a-l)?a:l,toggleCover:s-l<.5*(r-l)?r:l,toggleZoom:s-l<.5*(o-l)?o:l}[e.option("click")||""]||l,u=e.canZoomIn(),h=e.canZoomOut(),d=h&&"drag"===n;p(s)<p(l)&&!this.panOnlyZoomed&&(d=!0),(p(i.width,1)>p(i.fitWidth,1)||p(i.height,1)>p(i.fitHeight,1))&&(d=!0),p(i.width*s,1)<p(i.fitWidth,1)&&(d=!1),"mousemove"===n&&(d=!1);let f=u&&p(c)>p(s),g=!f&&!d&&h&&p(c)<p(s);y(t,this.cn("canZoomIn"),f),y(t,this.cn("canZoomOut"),g),y(t,this.cn("isDraggable"),d);for(const e of t.querySelectorAll('[data-panzoom-action="zoomIn"]'))u?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="zoomOut"]'))h?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){u||h?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));const t=e.querySelector("g");t&&(t.style.display=u?"":"none")}}panTo({x:e=this.target.e,y:t=this.target.f,scale:n=this.targetScale,friction:i=this.option("friction"),angle:o=0,originX:s=0,originY:r=0,flipX:a=!1,flipY:l=!1,ignoreBounds:c=!1}){this.state!==L.Destroy&&this.applyChange({panX:e-this.target.e,panY:t-this.target.f,scale:n/this.targetScale,angle:o,originX:s,originY:r,friction:i,flipX:a,flipY:l,ignoreBounds:c})}applyChange({panX:e=0,panY:t=0,scale:n=1,angle:i=0,originX:o=-this.current.e,originY:s=-this.current.f,friction:r=this.option("friction"),flipX:a=!1,flipY:l=!1,ignoreBounds:c=!1,bounce:u=this.option("bounce")}){if(this.state===L.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=r||0,this.ignoreBounds=c;const{current:h}=this,d=h.e,f=h.f,g=this.getMatrix(this.target);let m=(new DOMMatrix).translate(d,f).translate(o,s).translate(e,t);if(this.option("zoom")){if(!c){const e=this.targetScale,t=this.minScale,i=this.maxScale;e*n<t&&(n=t/e),e*n>i&&(n=i/e)}m=m.scale(n)}m=m.translate(-o,-s).translate(-d,-f).multiply(g),i&&(m=m.rotate(i)),a&&(m=m.scale(-1,1)),l&&(m=m.scale(1,-1));for(const e of k)"e"!==e&&"f"!==e&&(m[e]>this.minScale+1e-5||m[e]<this.minScale-1e-5)?this.target[e]=m[e]:this.target[e]=p(m[e],1e3);(this.targetScale<this.scale||Math.abs(n-1)>.1||"mousemove"===this.panMode||!1===u)&&!c&&this.clampTargetBounds(),this.isResting||(this.state=L.Panning,this.requestTick())}stop(e=!1){if(this.state===L.Init||this.state===L.Destroy)return;const t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of k)this.velocity[t]=0,"current"===e?this.current[t]=this.target[t]:"target"===e&&(this.target[t]=this.current[t]);this.setTransform(),I(this.container,"is-scaling"),I(this.container,"is-animating"),this.isTicking=!1,this.state=L.Ready,t&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),z(this.container,"is-animating"),this.isScaling&&z(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(e,t=this.option("mouseMoveFriction")){if(this.pmme=e,"mousemove"!==this.panMode||!e)return;if(p(this.targetScale)<=p(this.minScale))return;this.emit("mouseMove",e);const{container:n,containerRect:i,contentRect:o}=this,s=i.width,r=i.height,a=n.getBoundingClientRect(),l=(e.clientX||0)-a.left,c=(e.clientY||0)-a.top;let{contentWidth:u,contentHeight:h}=this.calculateContentDim(this.target);const d=this.option("mouseMoveFactor");d>1&&(u!==s&&(u*=d),h!==r&&(h*=d));let f=.5*(u-s)-l/s*100/100*(u-s);f+=.5*(o.right-o.left);let g=.5*(h-r)-c/r*100/100*(h-r);g+=.5*(o.bottom-o.top),this.applyChange({panX:f-this.target.e,panY:g-this.target.f,friction:t})}zoomWithWheel(e){if(this.state===L.Destroy||this.state===L.Init)return;const t=Date.now();if(t-this.pwt<45)return void e.preventDefault();this.pwt=t;var n=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e}));const i=Math.max(-1,Math.min(1,n)),{targetScale:o,maxScale:s,minScale:r}=this;let a=o*(100+45*i)/100;p(a)<p(r)&&p(o)<=p(r)?(this.cwd+=Math.abs(i),a=r):p(a)>p(s)&&p(o)>=p(s)?(this.cwd+=Math.abs(i),a=s):(this.cwd=0,a=Math.max(Math.min(a,s),r)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),p(a)!==p(o)&&this.zoomTo(a,{event:e}))}canZoomIn(){return this.option("zoom")&&(p(this.contentRect.width,1)<p(this.contentRect.fitWidth,1)||p(this.targetScale)<p(this.maxScale))}canZoomOut(){return this.option("zoom")&&p(this.targetScale)>p(this.minScale)}zoomIn(e=1.25,t){this.zoomTo(this.targetScale*e,t)}zoomOut(e=.8,t){this.zoomTo(this.targetScale*e,t)}zoomToFit(e){this.zoomTo("fit",e)}zoomToCover(e){this.zoomTo("cover",e)}zoomToFull(e){this.zoomTo("full",e)}zoomToMax(e){this.zoomTo("max",e)}toggleZoom(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.fullScale-this.minScale)?"full":"fit",e)}toggleMax(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.maxScale-this.minScale)?"max":"fit",e)}toggleCover(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.coverScale-this.minScale)?"cover":"fit",e)}iterateZoom(e){this.zoomTo("next",e)}zoomTo(e=1,{friction:t="auto",originX:n=0,originY:i=0,event:o}={}){if(this.isContentLoading||this.state===L.Destroy)return;const{targetScale:s}=this;this.stop();let r=1;if("mousemove"===this.panMode&&(o=this.pmme||o),o){const e=this.content.getBoundingClientRect(),t=o.clientX||0,s=o.clientY||0;n=t-e.left-.5*e.width,i=s-e.top-.5*e.height}const a=this.fullScale,l=this.maxScale;let c=this.coverScale;"number"==typeof e?r=e/s:("next"===e&&(a-c<.2&&(c=a),e=s<a-1e-5?"full":s<l-1e-5?"max":"fit"),r="full"===e?a/s||1:"cover"===e?c/s||1:"max"===e?l/s||1:1/s||1),t="auto"===t?r>1?.15:.25:t,this.applyChange({scale:r,originX:n,originY:i,friction:t}),o&&"mousemove"===this.panMode&&this.panWithMouse(o,t)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:e,contentRect:t,target:n}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-n.e,panY:.5*e.height-(t.top+.5*t.fitHeight)-n.f,scale:e.width/t.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:e,contentRect:t,target:n}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-n.e,panY:.5*e.innerHeight-(t.top+.5*t.fitHeight)-n.f,scale:e.height/t.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:e}=this,t=this.cn("inFullscreen"),n=this.cn("htmlHasFullscreen");e.classList.toggle(t);const i=e.classList.contains(t);i?(document.documentElement.classList.add(n),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(n),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(i?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:t,b:n,c:i,d:o,e:s,f:r}=e;return new DOMMatrix([t,n,i,o,s,r])}reset(e){if(this.state!==L.Init&&this.state!==L.Destroy){this.stop("current");for(const e of k)this.target[e]=F[e];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===e?this.option("friction"):e,this.state=L.Panning,this.requestTick())}}destroy(){this.stop(),this.state=L.Destroy,this.detachEvents(),this.detachObserver();const{container:e,content:t}=this,n=this.option("classes")||{};for(const t of Object.values(n))e.classList.remove(t+"");t&&(t.removeEventListener("load",this.onLoad),t.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(W,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:j}),Object.defineProperty(W,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const B=function(e,t){let n=!0;return(...i)=>{n&&(n=!1,e(...i),setTimeout((()=>{n=!0}),t))}},_=(e,t)=>{let n=[];return e.childNodes.forEach((e=>{e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||n.push(e)})),n};var $;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Destroy=2]="Destroy"}($||($={}));const X=e=>{if("string"==typeof e&&(e={html:e}),!(e instanceof String||e instanceof HTMLElement)){const t=e.thumb;void 0!==t&&("string"==typeof t&&(e.thumbSrc=t),t instanceof HTMLImageElement&&(e.thumbEl=t,e.thumbElSrc=t.src,e.thumbSrc=t.src),delete e.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",index:-1,dim:0,gap:0,pos:0,transition:!1},e)},V=(e={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},e);class Y extends P{constructor(e,t){super(t),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}}class U extends Y{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let e=this.list;return e||(e=document.createElement("ul"),z(e,this.cn("list")),e.setAttribute("role","tablist"),this.instance.container.appendChild(e),z(this.instance.container,this.cn("hasDots")),this.list=e),e}refresh(){var e;const t=this.instance.pages.length,n=Math.min(2,this.option("minCount")),i=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(t<n||t>i)return void this.cleanup();const s="number"==typeof o&&t>5&&t>=o,r=!this.list||this.isDynamic!==s||this.list.children.length!==t;r&&this.cleanup();const a=this.build();if(y(a,this.cn("isDynamic"),!!s),r)for(let e=0;e<t;e++)a.append(this.createItem(e));let l,c=0;for(const t of[...a.children]){const n=c===this.instance.page;n&&(l=t),y(t,this.cn("isCurrent"),n),null===(e=t.children[0])||void 0===e||e.setAttribute("aria-selected",n?"true":"false");for(const e of["isBeforePrev","isPrev","isNext","isAfterNext"])I(t,this.cn(e));c++}if(l=l||a.firstChild,s&&l){const e=l.previousElementSibling,t=e&&e.previousElementSibling;z(e,this.cn("isPrev")),z(t,this.cn("isBeforePrev"));const n=l.nextElementSibling,i=n&&n.nextElementSibling;z(n,this.cn("isNext")),z(i,this.cn("isAfterNext"))}this.isDynamic=s}createItem(e=0){var t;const n=document.createElement("li");n.setAttribute("role","presentation");const i=v(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return n.appendChild(i),null===(t=n.children[0])||void 0===t||t.setAttribute("role","tab"),n}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,I(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(U,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2}});class G extends Y{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){const e=this.instance,t=e.pages.length,n=e.page;if(t<2)return void this.cleanup();this.build();let i=this.prev,o=this.next;i&&o&&(i.removeAttribute("disabled"),o.removeAttribute("disabled"),e.isInfinite||(n<=0&&i.setAttribute("disabled",""),n>=t-1&&o.setAttribute("disabled","")))}createButton(e){const t=this.instance,n=document.createElement("button");n.setAttribute("tabindex","0"),n.setAttribute("title",t.localize(`{{${e.toUpperCase()}}}`)),z(n,this.cn("button")+" "+this.cn("next"===e?"isNext":"isPrev"));const i=t.isRTL?"next"===e?"prev":"next":e;var o;return n.innerHTML=t.localize(this.option(`${i}Tpl`)),n.dataset[`carousel${o=e,o?o.match("^[a-z]")?o.charAt(0).toUpperCase()+o.substring(1):o:""}`]="true",n}build(){let e=this.container;e||(this.container=e=document.createElement("div"),z(e,this.cn("container")),this.instance.container.appendChild(e)),this.next||(this.next=e.appendChild(this.createButton("next"))),this.prev||(this.prev=e.appendChild(this.createButton("prev")))}cleanup(){this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove(),this.prev=null,this.next=null,this.container=null}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(G,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class Z extends Y{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(e){this.target=this.instance,this.nav=e,this.attachEvents()}addAsNavFor(e){this.nav=this.instance,this.target=e,this.attachEvents()}attachEvents(){this.nav&&this.target&&(this.nav.options.initialSlide=this.target.options.initialPage,this.nav.on("ready",this.onNavReady),this.nav.state===$.Ready&&this.onNavReady(this.nav),this.target.on("ready",this.onTargetReady),this.target.state===$.Ready&&this.onTargetReady(this.target))}onNavReady(e){e.on("createSlide",this.onNavCreateSlide),e.on("Panzoom.click",this.onNavClick),e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(e){e.on("change",this.onTargetChange),e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(e,t,n){n.pointerType||this.onNavTouch(e,e.panzoom,n)}onNavTouch(e,t,n){var i,o;if(Math.abs(t.dragOffset.x)>3||Math.abs(t.dragOffset.y)>3)return;const s=n.target,{nav:r,target:a}=this;if(!r||!a||!s)return;const l=s.closest("[data-index]");if(n.stopPropagation(),n.preventDefault(),!l)return;const c=parseInt(l.dataset.index||"",10)||0,u=a.getPageForSlide(c),h=r.getPageForSlide(c);r.slideTo(h),a.slideTo(u,{friction:null===(o=null===(i=this.nav)||void 0===i?void 0:i.plugins)||void 0===o?void 0:o.Sync.option("friction")}),this.markSelectedSlide(c)}onNavCreateSlide(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}onTargetChange(){const{target:e,nav:t}=this;if(!e||!t)return;if(t.state!==$.Ready||e.state!==$.Ready)return;const n=e.pages[e.page].slides[0].index,i=t.getPageForSlide(n);this.markSelectedSlide(n),t.slideTo(i)}markSelectedSlide(e){const{nav:t}=this;t&&t.state===$.Ready&&(this.selectedIndex=e,[...t.slides].map((t=>{t.el&&t.el.classList[t.index===e?"add":"remove"]("is-nav-selected")})))}attach(){let e=this.options.target,t=this.options.nav;e?this.addAsNavFor(e):t&&this.addAsTargetFor(t)}detach(){const e=this,t=e.nav,n=e.target;t&&(t.off("ready",e.onNavReady),t.off("createSlide",e.onNavCreateSlide),t.off("Panzoom.click",e.onNavClick),t.off("Panzoom.touchEnd",e.onNavTouch)),this.nav=null,n&&(n.off("ready",e.onTargetReady),n.off("refresh",e.onTargetChange),n.off("change",e.onTargetChange)),this.target=null}}Object.defineProperty(Z,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const K={Navigation:G,Dots:U,Sync:Z};class J extends M{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===$.Ready}get isInfinite(){let e=!1;const{contentDim:t,viewportDim:n,pages:i,slides:o}=this;return i.length>=2&&t+o[0].dim>=n&&(e=this.option("infinite")),e}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(e,t={},n={}){if(super(),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:$.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof e&&(e=document.querySelector(e)),!e||!R(e))throw new Error("No Element found");this.container=e,this.slideNext=B(this.slideNext.bind(this),150),this.slidePrev=B(this.slidePrev.bind(this),150),this.userOptions=t,this.userPlugins=n,queueMicrotask((()=>{this.processOptions()}))}processOptions(){const e=A({},J.defaults,this.userOptions);let t="";const n=e.breakpoints;if(n&&C(n))for(const[i,o]of Object.entries(n))window.matchMedia(i).matches&&C(o)&&(t+=i,A(e,o));t===this.bp&&this.state!==$.Init||(this.bp=t,this.state===$.Ready&&(e.initialSlide=this.pages[this.page].slides[0].index),this.state!==$.Init&&this.destroy(),super.setOptions(e),!1===this.option("enabled")?this.attachEvents():setTimeout((()=>{this.init()}),0))}init(){this.state=$.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},J.Plugins),this.userPlugins)),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=$.Ready,this.emit("ready")}initLayout(){const{container:e}=this,t=this.option("classes");z(e,this.cn("container")),y(e,t.isLTR,!this.isRTL),y(e,t.isRTL,this.isRTL),y(e,t.isVertical,!this.isHorizontal),y(e,t.isHorizontal,this.isHorizontal);let n=this.option("viewport")||e.querySelector(`.${t.viewport}`);n||(n=document.createElement("div"),z(n,t.viewport),n.append(..._(e,`.${t.slide}`)),e.prepend(n));let i=this.option("track")||e.querySelector(`.${t.track}`);i||(i=document.createElement("div"),z(i,t.track),i.append(...Array.from(n.childNodes))),i.setAttribute("aria-live","polite"),n.contains(i)||n.prepend(i),this.viewport=n,this.track=i,this.emit("initLayout")}initSlides(){const{track:e}=this;if(e){this.slides=[],[..._(e,`.${this.cn("slide")}`)].forEach((e=>{if(R(e)){const t=X({el:e,isDom:!0,index:this.slides.length});this.slides.push(t),this.emit("initSlide",t,this.slides.length)}}));for(let e of this.option("slides",[])){const t=X(e);t.index=this.slides.length,this.slides.push(t),this.emit("initSlide",t,this.slides.length)}this.emit("initSlides")}}setInitialPage(){let e=0;const t=this.option("initialSlide");e="number"==typeof t?this.getPageForSlide(t):parseInt(this.option("initialPage",0)+"",10)||0,this.page=e}setInitialPosition(){if(!this.track||!this.pages.length)return;const e=this.isHorizontal;let t=this.page;this.pages[t]||(this.page=t=0);const n=this.pages[t].pos*(this.isRTL&&e?1:-1),i=e?`${n}px`:"0",o=e?"0":`${n}px`;this.track.style.transform=`translate3d(${i}, ${o}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const e=this.option("Panzoom")||{};this.panzoom=new W(this.viewport,A({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:e=>!(this.pages.length<2&&!e.options.infinite),bounds:()=>this.getBounds(),maxVelocity:e=>Math.abs(e.target[this.axis]-e.current[this.axis])<2*this.viewportDim?100:0},e)),this.panzoom.on("*",((e,t,...n)=>{this.emit(`Panzoom.${t}`,e,...n)})),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const e=this.container;e&&(e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let e=[];const{contentDim:t,viewportDim:n}=this;let i=this.option("slidesPerPage");("number"!=typeof i||t<=n)&&(i=1/0);let o=0,s=0,r=0;for(const t of this.slides)(!e.length||s+t.dim>n||r===i)&&(e.push(V()),o=e.length-1,s=0,r=0),e[o].slides.push(t),s+=t.dim+t.gap,r++;return e}processPages(){const e=this.pages,{contentDim:t,viewportDim:n}=this,i=this.option("center"),o=this.option("fill"),s=o&&i&&t>n&&!this.isInfinite;if(e.forEach(((e,o)=>{e.index=o,e.pos=e.slides[0].pos,e.dim=0;for(const[t,n]of e.slides.entries())e.dim+=n.dim,t<e.slides.length-1&&(e.dim+=n.gap);s&&e.pos+.5*e.dim<.5*n?e.pos=0:s&&e.pos+.5*e.dim>=t-.5*n?e.pos=t-n:i&&(e.pos+=-.5*(n-e.dim))})),e.forEach(((e,i)=>{o&&!this.isInfinite&&t>n&&(e.pos=Math.max(e.pos,0),e.pos=Math.min(e.pos,t-n)),e.pos=p(e.pos,1e3),e.dim=p(e.dim,1e3),e.pos<.1&&e.pos>-.1&&(e.pos=0)})),this.isInfinite)return e;const r=[];let a;return e.forEach((e=>{const t=Object.assign({},e);a&&t.pos===a.pos?(a.dim+=t.dim,a.slides=[...a.slides,...t.slides]):(t.index=r.length,a=t,r.push(t))})),r}getPageFromIndex(e=0){const t=this.pages.length;let n;return e=parseInt((e||0).toString())||0,n=this.isInfinite?(e%t+t)%t:Math.max(Math.min(e,t-1),0),n}getSlideMetrics(e){var t;const n=this.isHorizontal?"width":"height";let i=0,o=0,s=e.el;if(s?i=parseFloat(s.dataset[n]||"")||0:(s=document.createElement("div"),s.style.visibility="hidden",z(s,this.cn("slide")+" "+e.class),(this.track||document.body).prepend(s)),i)s.style[n]=`${i}px`,s.style["width"===n?"height":"width"]="";else{const e=Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1);i=s.getBoundingClientRect()[n]*e}const r=getComputedStyle(s);return"content-box"===r.boxSizing&&(this.isHorizontal?(i+=parseFloat(r.paddingLeft)||0,i+=parseFloat(r.paddingRight)||0):(i+=parseFloat(r.paddingTop)||0,i+=parseFloat(r.paddingBottom)||0)),o=parseFloat(r[this.isHorizontal?"marginRight":"marginBottom"])||0,e.el||s.remove(),{dim:p(i,1e3),gap:p(o,1e3)}}getBounds(){const{isInfinite:e,isRTL:t,isHorizontal:n,pages:i}=this;let o={min:0,max:0};if(e)o={min:-1/0,max:1/0};else if(i.length){const e=i[0].pos,s=i[i.length-1].pos;o=t&&n?{min:e,max:s}:{min:-1*s,max:-1*e}}return{x:n?o:{min:0,max:0},y:n?{min:0,max:0}:o}}repositionSlides(){let e,{isHorizontal:t,isRTL:n,isInfinite:i,viewport:o,viewportDim:s,contentDim:r,page:a,pages:l,slides:c,panzoom:u}=this,h=0,d=0,f=0,g=0;u?g=-1*u.current[this.axis]:l[a]&&(g=l[a].pos||0),e=t?n?"right":"left":"top",n&&t&&(g*=-1);for(const t of c)t.el?("top"===e?(t.el.style.right="",t.el.style.left=""):t.el.style.top="",t.index!==h?t.el.style[e]=0===d?"":`${p(d,1e3)}px`:t.el.style[e]="",f+=t.dim+t.gap,h++):d+=t.dim+t.gap;if(i&&f&&o){let n=getComputedStyle(o),i="padding",a=t?"Right":"Bottom",l=parseFloat(n[i+(t?"Left":"Top")]);g-=l,s+=l,s+=parseFloat(n[i+a]);for(const t of c)t.el&&(p(t.pos)<p(s)&&p(t.pos+t.dim+t.gap)<p(g)&&p(g)>p(r-s)&&(t.el.style[e]=`${p(d+f,1e3)}px`),p(t.pos+t.gap)>=p(r-s)&&p(t.pos)>p(g+s)&&p(g)<p(s)&&(t.el.style[e]=`-${p(f,1e3)}px`))}let m,v,b=[...this.inTransition];if(b.length>1&&(m=l[b[0]],v=l[b[1]]),m&&v){let t=0;for(const n of c)n.el?this.inTransition.has(n.index)&&m.slides.indexOf(n)<0&&(n.el.style[e]=`${p(t+(m.pos-v.pos),1e3)}px`):t+=n.dim+n.gap}}createSlideEl(e){const{track:t,slides:n}=this;if(!t||!e)return;if(e.el)return;const i=document.createElement("div");z(i,this.cn("slide")),z(i,e.class),z(i,e.customClass),e.html&&(i.innerHTML=e.html);const o=[];n.forEach(((e,t)=>{e.el&&o.push(t)}));const s=e.index;let r=null;o.length&&(r=n[o.reduce(((e,t)=>Math.abs(t-s)<Math.abs(e-s)?t:e))]);const a=r&&r.el?r.index<e.index?r.el.nextSibling:r.el:null;t.insertBefore(i,t.contains(a)?a:null),e.el=i,this.emit("createSlide",e)}removeSlideEl(e,t=!1){const n=e.el;if(!n)return;if(I(n,this.cn("isSelected")),e.isDom&&!t)return n.removeAttribute("aria-hidden"),n.removeAttribute("data-index"),I(n,this.cn("isSelected")),void(n.style.left="");this.emit("removeSlide",e);const i=new CustomEvent("animationend");n.dispatchEvent(i),e.el&&e.el.remove(),e.el=null}transitionTo(e=0,t=this.option("transition")){if(!t)return!1;const{pages:n,panzoom:i}=this;e=parseInt((e||0).toString())||0;const o=this.getPageFromIndex(e);if(!i||!n[o]||n.length<2||Math.abs(n[this.page].slides[0].dim-this.viewportDim)>1)return!1;const s=e>this.page?1:-1,r=this.pages[o].pos*(this.isRTL?1:-1);if(this.page===o&&p(r,1e3)===p(i.target[this.axis],1e3))return!1;this.clearTransitions();const a=i.isResting;z(this.container,this.cn("inTransition"));const l=this.pages[this.page].slides[0],c=this.pages[o].slides[0];this.inTransition.add(c.index),this.createSlideEl(c);let u=l.el,h=c.el;a||"slide"===t||(t="fadeFast",u=null);const d=this.isRTL?"next":"prev",f=this.isRTL?"prev":"next";return u&&(this.inTransition.add(l.index),l.transition=t,u.addEventListener("animationend",this.onAnimationEnd),u.classList.add(`f-${t}Out`,`to-${s>0?f:d}`)),h&&(c.transition=t,h.addEventListener("animationend",this.onAnimationEnd),h.classList.add(`f-${t}In`,`from-${s>0?d:f}`)),i.panTo({x:this.isHorizontal?r:0,y:this.isHorizontal?0:r,friction:0}),this.onChange(o),!0}manageSlideVisiblity(){const e=new Set,t=new Set,n=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const i of this.slides)n.has(i)?e.add(i):t.add(i);for(const t of this.inTransition)e.add(this.slides[t]);for(const t of e)this.createSlideEl(t),this.lazyLoadSlide(t);for(const n of t)e.has(n)||this.removeSlideEl(n);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const e="aria-hidden";let t=this.cn("isSelected");if(t)for(const n of this.slides)n.el&&(n.el.dataset.index=`${n.index}`,this.pages[this.page].slides.includes(n)?(n.el.classList.contains(t)||(z(n.el,t),this.emit("selectSlide",n)),n.el.removeAttribute(e)):(n.el.classList.contains(t)&&(I(n.el,t),this.emit("unselectSlide",n)),n.el.setAttribute(e,"true")))}flipInfiniteTrack(){const e=this.panzoom;if(!e||!this.isInfinite)return;const t="x"===this.option("axis")?"e":"f",{viewportDim:n,contentDim:i}=this;let o=e.current[t],s=e.target[t]-o,r=0,a=.5*n,l=i;this.isRTL&&this.isHorizontal?(o<-a&&(r=-1,o+=l),o>l-a&&(r=1,o-=l)):(o>a&&(r=1,o-=l),o<-l+a&&(r=-1,o+=l)),r&&(e.current[t]=o,e.target[t]=o+s)}lazyLoadSlide(e){const t=this,n=e&&e.el;if(!n)return;const i=new Set,o="f-fadeIn";n.querySelectorAll("[data-lazy-srcset]").forEach((e=>{e instanceof HTMLImageElement&&i.add(e)}));let s=Array.from(n.querySelectorAll("[data-lazy-src]"));n.dataset.lazySrc&&s.push(n),s.map((e=>{e instanceof HTMLImageElement?i.add(e):R(e)&&(e.style.backgroundImage=`url('${e.dataset.lazySrc||""}')`,delete e.dataset.lazySrc)}));const r=(e,n,i)=>{i&&(i.remove(),i=null),n.complete&&(n.classList.add(o),setTimeout((()=>{n.classList.remove(o)}),350),n.style.display=""),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(t.updateMetrics(),t.setViewportHeight()),this.emit("load",e)};for(const t of i){let n=null;t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.style.display="none",t.addEventListener("error",(()=>{r(e,t,n)})),t.addEventListener("load",(()=>{r(e,t,n)})),setTimeout((()=>{t.parentNode&&e.el&&(t.complete?r(e,t,n):(n=v(N),t.parentNode.insertBefore(n,t)))}),300)}}onAnimationEnd(e){var t;const n=e.target,i=n?parseInt(n.dataset.index||"",10)||0:-1,o=this.slides[i],s=e.animationName;if(!n||!o||!s)return;const r=!!this.inTransition.has(i)&&o.transition;r&&s.substring(0,r.length+2)===`f-${r}`&&this.inTransition.delete(i),this.inTransition.size||this.clearTransitions(),i===this.page&&(null===(t=this.panzoom)||void 0===t?void 0:t.isResting)&&this.emit("settle")}onDecel(e,t=0,n=0){const{isRTL:i,isHorizontal:o,axis:s,pages:r}=this,a=r.length,l=Math.abs(Math.atan2(n,t)/(Math.PI/180));let c=0;if(c=l>45&&l<135?o?0:n:o?t:0,!a)return;const u=this.option("dragFree");let h=this.page,d=i&&o?1:-1;const f=e.target[s]*d,p=e.current[s]*d;let{pageIndex:g}=this.getPageFromPosition(f),{pageIndex:m}=this.getPageFromPosition(p);u?this.onChange(g):(Math.abs(c)>5?(r[h].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(h=m),h=i&&o?c<0?h-1:h+1:c<0?h+1:h-1):h=m,this.slideTo(h,{transition:!1,friction:e.option("decelFriction")}))}onClick(e){const t=e.target,n=t&&R(t)?t.dataset:null;let i,o;n&&(void 0!==n.carouselPage?(o="slideTo",i=n.carouselPage):void 0!==n.carouselNext?o="slideNext":void 0!==n.carouselPrev&&(o="slidePrev")),o?(e.preventDefault(),e.stopPropagation(),t&&!t.hasAttribute("disabled")&&this[o](i)):this.emit("click",e)}onSlideTo(e){const t=e.detail||0;this.slideTo(this.getPageForSlide(t),{friction:0})}onChange(e,t=0){const n=this.page;this.prevPage=n,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==n&&(this.markSelectedSlides(),this.emit("change",e,n,t))}onRefresh(){let e=this.contentDim,t=this.viewportDim;this.updateMetrics(),this.contentDim===e&&this.viewportDim===t||this.slideTo(this.page,{friction:0,transition:!1})}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(e){this.lp!==e.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=e.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(e=null,t=null){this.destroy(),this.state=$.Init,this.userOptions=e||this.userOptions,this.userPlugins=t||this.userPlugins,this.processOptions()}slideTo(e=0,{friction:t=this.option("friction"),transition:n=this.option("transition")}={}){if(this.state===$.Destroy)return;const{axis:i,isHorizontal:o,isRTL:s,pages:r,panzoom:a}=this,l=r.length,c=s&&o?1:-1;if(!a||!l)return;if(this.transitionTo(e,n))return;const u=this.getPageFromIndex(e);let h=r[u].pos;if(this.isInfinite){const t=this.contentDim,n=a.target[i]*c;if(2===l)h+=t*Math.floor(parseFloat(e+"")/2);else{const e=n;h=[h,h-t,h+t].reduce((function(t,n){return Math.abs(n-e)<Math.abs(t-e)?n:t}))}}h*=c,Math.abs(a.target[i]-h)<.1||(a.panTo({x:o?h:0,y:o?0:h,friction:t}),this.onChange(u))}slideToClosest(e){if(this.panzoom){const{pageIndex:t}=this.getPageFromPosition(this.panzoom.current[this.isHorizontal?"e":"f"]);this.slideTo(t,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),I(this.container,this.cn("inTransition"));const e=["to-prev","to-next","from-prev","from-next"];for(const t of this.slides){const n=t.el;if(n){n.removeEventListener("animationend",this.onAnimationEnd),n.classList.remove(...e);const i=t.transition;i&&n.classList.remove(`f-${i}Out`,`f-${i}In`)}}this.manageSlideVisiblity()}prependSlide(e){var t,n;let i=Array.isArray(e)?e:[e];for(const e of i.reverse())this.slides.unshift(X(e));for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;const o=(null===(t=this.pages[this.page])||void 0===t?void 0:t.pos)||0;this.page+=i.length,this.updateMetrics();const s=(null===(n=this.pages[this.page])||void 0===n?void 0:n.pos)||0;if(this.panzoom){const e=this.isRTL?o-s:s-o;this.panzoom.target.e-=e,this.panzoom.current.e-=e,this.panzoom.requestTick()}}appendSlide(e){let t=Array.isArray(e)?e:[e];for(const e of t){const t=X(e);t.index=this.slides.length,this.slides.push(t),this.emit("initSlide",e,this.slides.length)}this.updateMetrics()}removeSlide(e){const t=this.slides.length;e=(e%t+t)%t,this.removeSlideEl(this.slides[e],!0),this.slides.splice(e,1);for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1})}updateMetrics(){const{panzoom:e,viewport:t,track:n,isHorizontal:i}=this;if(!n)return;const o=i?"width":"height",s=i?"offsetWidth":"offsetHeight";if(t){let e=Math.max(t[s],p(t.getBoundingClientRect()[o],1e3)),n=getComputedStyle(t),r="padding",a=i?"Right":"Bottom";e-=parseFloat(n[r+(i?"Left":"Top")])+parseFloat(n[r+a]),this.viewportDim=e}let r,a=this.pages.length,l=0;for(const[e,t]of this.slides.entries()){let n=0,i=0;!t.el&&r?(n=r.dim,i=r.gap):(({dim:n,gap:i}=this.getSlideMetrics(t)),r=t),n=p(n,1e3),i=p(i,1e3),t.dim=n,t.gap=i,t.pos=l,l+=n,(this.isInfinite||e<this.slides.length-1)&&(l+=i)}const c=this.contentDim;l=p(l,1e3),this.contentDim=l,e&&(e.contentRect[o]=l,e.contentRect["e"===this.axis?"fullWidth":"fullHeight"]=l),this.pages=this.createPages(),this.pages=this.processPages(),this.state===$.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),e&&a===this.pages.length&&Math.abs(l-c)>.5&&(e.target[this.axis]=-1*this.pages[this.page].pos,e.current[this.axis]=-1*this.pages[this.page].pos,e.stop()),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(e,t=!1){void 0===e&&(e=this.page);const n=this,i=n.panzoom,o=n.pages[e]||0;if(!o||!i)return 0;let s=-1*i.current.e,r=n.contentDim;var a=[p((s-o.pos)/(1*o.dim),1e3),p((s+r-o.pos)/(1*o.dim),1e3),p((s-r-o.pos)/(1*o.dim),1e3)].reduce((function(e,t){return Math.abs(t)<Math.abs(e)?t:e}));return t?a:Math.max(-1,Math.min(1,a))}setViewportHeight(){const{page:e,pages:t,viewport:n,isHorizontal:i}=this;if(!n||!t[e])return;let o=0;i&&this.track&&(this.track.style.height="auto",t[e].slides.forEach((e=>{e.el&&(o=Math.max(o,e.el.offsetHeight))}))),n.style.height=o?`${o}px`:""}getPageForSlide(e){for(const t of this.pages)for(const n of t.slides)if(n.index===e)return t.index;return-1}getVisibleSlides(e=0){var t;const n=new Set;let{contentDim:i,viewportDim:o,pages:s,page:r}=this;i=i+(null===(t=this.slides[this.slides.length-1])||void 0===t?void 0:t.gap)||0;let a=0;a=this.panzoom?-1*this.panzoom.current[this.axis]:s[r]&&s[r].pos||0,this.isInfinite&&(a-=Math.floor(a/i)*i),this.isRTL&&this.isHorizontal&&(a*=-1);const l=a-o*e,c=a+o*(e+1),u=this.isInfinite?[-1,0,1]:[0];for(const e of this.slides)for(const t of u){const o=e.pos+t*i,s=e.pos+e.dim+e.gap+t*i;o<c&&s>l&&n.add(e)}return n}getPageFromPosition(e){const{viewportDim:t,contentDim:n}=this,i=this.pages.length,o=this.slides.length,s=this.slides[o-1];let r=0,a=0,l=0;const c=this.option("center");c&&(e+=.5*t),this.isInfinite||(e=Math.max(this.slides[0].pos,Math.min(e,s.pos)));const u=n+s.gap;l=Math.floor(e/u)||0,e-=l*u;let h=s,d=this.slides.find((t=>{const n=e+(h&&!c?.5*h.dim:0);return h=t,t.pos<=n&&t.pos+t.dim+t.gap>n}));return d||(d=s),a=this.getPageForSlide(d.index),r=a+l*i,{page:r,pageIndex:a}}destroy(){if([$.Destroy].includes(this.state))return;this.state=$.Destroy;const{container:e,viewport:t,track:n,slides:i,panzoom:o}=this,s=this.option("classes");e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),o&&(o.destroy(),this.panzoom=null),i&&i.forEach((e=>{this.removeSlideEl(e)})),this.detachPlugins(),t&&t.offsetParent&&n&&n.offsetParent&&t.replaceWith(...n.childNodes);for(const[t,n]of Object.entries(s))"container"!==t&&n&&e.classList.remove(n);this.track=null,this.viewport=null,this.page=0,this.slides=[];const r=this.events.get("ready");this.events=new Map,r&&this.events.set("ready",r)}}Object.defineProperty(J,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:W}),Object.defineProperty(J,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(J,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:K});const Q=function(e){const t=window.pageYOffset,n=window.pageYOffset+window.innerHeight;if(!R(e))return 0;const i=e.getBoundingClientRect(),o=i.y+window.pageYOffset,s=i.y+i.height+window.pageYOffset;if(t>s||n<o)return 0;if(t<o&&n>s)return 100;if(o<t&&s>n)return 100;let r=i.height;o<t&&(r-=window.pageYOffset-o),s>n&&(r-=s-n);const a=r/window.innerHeight*100;return Math.round(a)},ee=!("undefined"==typeof window||!window.document||!window.document.createElement);let te;const ne=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),ie=e=>{if(e&&ee){void 0===te&&document.createElement("div").focus({get preventScroll(){return te=!0,!1}});try{if(te)e.focus({preventScroll:!0});else{const t=window.pageXOffset||document.body.scrollTop,n=window.pageYOffset||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:n,behavior:"auto"})}}catch(e){}}},oe={dragToClose:!0,hideScrollbar:!0,Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},contentClick:"toggleZoom",contentDblClick:!1,backdropClick:"close",animated:!0,idle:3500,showClass:"f-zoomInUp",hideClass:"f-fadeOut",commonCaption:!1,parentEl:null,startIndex:0,l10n:Object.assign(Object.assign({},D),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n    <div class="fancybox__backdrop"></div>\n    <div class="fancybox__carousel"></div>\n    <div class="fancybox__footer"></div>\n  </div>'},groupAll:!1,groupAttr:"data-fancybox",defaultType:"image",defaultDisplay:"block",autoFocus:!0,trapFocus:!0,placeFocusBack:!0,closeButton:"auto",keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},Fullscreen:{autoStart:!1},compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,wheel:"zoom"};var se,re;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.CustomClosing=3]="CustomClosing",e[e.Destroy=4]="Destroy"}(se||(se={})),function(e){e[e.Loading=0]="Loading",e[e.Opening=1]="Opening",e[e.Ready=2]="Ready",e[e.Closing=3]="Closing"}(re||(re={}));const ae=()=>{queueMicrotask((()=>{(()=>{const{slug:e,index:t}=le.parseURL(),n=ke.getInstance();if(n&&!1!==n.option("Hash")){const i=n.carousel;if(e&&i){for(let t of i.slides)if(t.slug&&t.slug===e)return i.slideTo(t.index);if(e===n.option("slug"))return i.slideTo(t-1);const o=n.getSlide(),s=o&&o.triggerEl&&o.triggerEl.dataset;if(s&&s.fancybox===e)return i.slideTo(t-1)}le.hasSilentClose=!0,n.close()}le.startFromUrl()})()}))};class le extends Y{constructor(){super(...arguments),Object.defineProperty(this,"origHash",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null})}onChange(){const e=this.instance,t=e.carousel;this.timer&&clearTimeout(this.timer);const n=e.getSlide();if(!t||!n)return;const i=e.isOpeningSlide(n),o=new URL(document.URL).hash;let s,r=n.slug||void 0,a=n.triggerEl||void 0;s=r||this.instance.option("slug"),!s&&a&&a.dataset&&(s=a.dataset.fancybox);let l="";s&&"true"!==s&&(l="#"+s+(!r&&t.slides.length>1?"-"+(n.index+1):"")),i&&(this.origHash=o!==l?o:""),l&&o!==l&&(this.timer=setTimeout((()=>{try{e.state===se.Ready&&window.history[i?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+l)}catch(e){}}),300))}onClose(){if(this.timer&&clearTimeout(this.timer),!0!==le.hasSilentClose)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash||""))}catch(e){}}attach(){const e=this.instance;e.on("Carousel.ready",this.onChange),e.on("Carousel.change",this.onChange),e.on("close",this.onClose)}detach(){const e=this.instance;e.off("Carousel.ready",this.onChange),e.off("Carousel.change",this.onChange),e.off("close",this.onClose)}static parseURL(){const e=window.location.hash.slice(1),t=e.split("-"),n=t[t.length-1],i=n&&/^\+?\d+$/.test(n)&&parseInt(t.pop()||"1",10)||1;return{hash:e,slug:t.join("-"),index:i}}static startFromUrl(){if(le.hasSilentClose=!1,ke.getInstance()||!1===ke.defaults.Hash)return;const{hash:e,slug:t,index:n}=le.parseURL();if(!t)return;let i=document.querySelector(`[data-slug="${e}"]`);if(i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),ke.getInstance())return;const o=document.querySelectorAll(`[data-fancybox="${t}"]`);o.length&&(i=o[n-1],i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}static destroy(){window.removeEventListener("hashchange",ae,!1)}}function ce(){window.addEventListener("hashchange",ae,!1),setTimeout((()=>{le.startFromUrl()}),500)}Object.defineProperty(le,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(le,"hasSilentClose",{enumerable:!0,configurable:!0,writable:!0,value:!1}),ee&&(/complete|interactive|loaded/.test(document.readyState)?ce():document.addEventListener("DOMContentLoaded",ce));class ue extends Y{onCreateSlide(e,t,n){const i=this.instance,o=i.optionFor(n,"src")||"",{el:s,type:r}=n;s&&"image"===r&&"string"==typeof o&&this.setContent(n,o).then((e=>{const t=n.contentEl,o=n.imageEl,r=n.thumbElSrc;if(i.isClosing()||!t||!o)return;t.offsetHeight;const a=!!i.isOpeningSlide(n)&&this.getZoomInfo(n);if(this.option("protected")){s.addEventListener("contextmenu",(e=>{e.preventDefault()}));const e=document.createElement("div");z(e,"fancybox-protected"),t.appendChild(e)}if(r&&a){const o=e.contentRect,s=Math.max(o.fullWidth,o.fullHeight);let c=null;!a.opacity&&s>1200&&(c=document.createElement("img"),z(c,"fancybox-ghost"),c.src=r,t.appendChild(c));const u=()=>{c&&(z(c,"f-fadeFastOut"),setTimeout((()=>{c&&(c.remove(),c=null)}),200))};(l=r,new Promise(((e,t)=>{const n=new Image;n.onload=e,n.onerror=t,n.src=l}))).then((()=>{n.state=re.Opening,this.instance.emit("reveal",n),this.zoomIn(n).then((()=>{u(),this.instance.done(n)}),(()=>{i.hideLoading(n)})),c&&setTimeout((()=>{u()}),s>2500?800:200)}),(()=>{i.hideLoading(n),i.revealContent(n)}))}else{const t=this.optionFor(n,"initialSize"),o=this.optionFor(n,"zoom"),s={event:i.prevMouseMoveEvent||i.options.event,friction:o?.12:0};let r=i.optionFor(n,"showClass")||void 0,a=!0;i.isOpeningSlide(n)&&("full"===t?e.zoomToFull(s):"cover"===t?e.zoomToCover(s):"max"===t?e.zoomToMax(s):a=!1,e.stop("current")),a&&r&&(r=e.isDragging?"f-fadeIn":""),i.revealContent(n,r)}var l}),(()=>{i.setError(n,"{{IMAGE_ERROR}}")}))}onRemoveSlide(e,t,n){n.panzoom&&n.panzoom.destroy(),n.panzoom=void 0,n.imageEl=void 0}onChange(e,t,n,i){for(const e of t.slides){const t=e.panzoom;t&&e.index!==n&&t.reset(.35)}}onClose(){var e;const t=this.instance,n=t.container,i=t.getSlide();if(!n||!n.parentElement||!i)return;const{el:o,contentEl:s,panzoom:r}=i,a=i.thumbElSrc;if(!o||!a||!s||!r||r.isContentLoading||r.state===L.Init||r.state===L.Destroy)return;r.updateMetrics();let l=this.getZoomInfo(i);if(!l)return;this.instance.state=se.CustomClosing,n.classList.remove("is-zooming-in"),n.classList.add("is-zooming-out"),s.style.backgroundImage=`url('${a}')`;const c=n.getBoundingClientRect();1===((null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1)&&Object.assign(n.style,{position:"absolute",top:`${window.pageYOffset}px`,left:`${window.pageXOffset}px`,bottom:"auto",right:"auto",width:`${c.width}px`,height:`${c.height}px`,overflow:"hidden"});const{x:u,y:h,scale:d,opacity:f}=l;if(f){const e=((e,t,n,i)=>{const o=t-e;return t=>1+((t-e)/o*-1||0)})(r.scale,d);r.on("afterTransform",(()=>{s.style.opacity=e(r.scale)+""}))}r.on("endAnimation",(()=>{t.destroy()})),r.target.a=d,r.target.b=0,r.target.c=0,r.target.d=d,r.panTo({x:u,y:h,scale:d,friction:f?.2:.33,ignoreBounds:!0}),r.isResting&&t.destroy()}setContent(e,t){return new Promise(((n,i)=>{var o,s;const r=this.instance,a=e.el;if(!a)return void i();r.showLoading(e);let l=this.optionFor(e,"content");"string"==typeof l&&(l=v(l)),l&&R(l)||(l=document.createElement("img"),l instanceof HTMLImageElement&&(l.src=t||"",l.alt=(null===(o=e.caption)||void 0===o?void 0:o.replace(/<[^>]+>/gi,"").substring(0,1e3))||`Image ${e.index+1} of ${null===(s=r.carousel)||void 0===s?void 0:s.pages.length}`,l.draggable=!1,e.srcset&&l.setAttribute("srcset",e.srcset)),e.sizes&&l.setAttribute("sizes",e.sizes)),l.classList.add("fancybox-image"),e.imageEl=l,r.setContent(e,l,!1),e.panzoom=new W(a,A({},this.option("Panzoom")||{},{content:l,width:r.optionFor(e,"width","auto"),height:r.optionFor(e,"height","auto"),wheel:()=>{const e=r.option("wheel");return("zoom"===e||"pan"==e)&&e},click:(t,n)=>{var i,o;if(r.isCompact||r.isClosing())return!1;if(e.index!==(null===(i=r.getSlide())||void 0===i?void 0:i.index))return!1;let s=!n||n.target&&(null===(o=e.contentEl)||void 0===o?void 0:o.contains(n.target));return r.option(s?"contentClick":"backdropClick")||!1},dblClick:()=>r.isCompact?"toggleZoom":r.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,transformParent:!0,on:{ready:e=>{n(e)},error:()=>{i()},destroy:()=>{i()}}}))}))}zoomIn(e){return new Promise(((t,n)=>{const i=this.instance,o=i.container,{panzoom:s,contentEl:r,el:a}=e;s&&s.updateMetrics();const l=this.getZoomInfo(e);if(!(l&&a&&r&&s&&o))return void n();const{x:c,y:u,scale:h,opacity:d}=l,f=()=>{e.state!==re.Closing&&(d&&(r.style.opacity=Math.max(Math.min(1,1-(1-s.scale)/(1-h)),0)+""),s.scale>=1&&s.scale>s.targetScale-.1&&t(s))},p=e=>{I(o,"is-zooming-in"),e.scale<.99||e.scale>1.01||(r.style.opacity="",e.off("endAnimation",p),e.off("touchStart",p),e.off("afterTransform",f),t(e))};s.on("endAnimation",p),s.on("touchStart",p),s.on("afterTransform",f),s.on(["error","destroy"],(()=>{n()})),s.panTo({x:c,y:u,scale:h,friction:0,ignoreBounds:!0}),s.stop("current");const g={event:"mousemove"===s.panMode?i.prevMouseMoveEvent||i.options.event:void 0},m=this.optionFor(e,"initialSize");z(o,"is-zooming-in"),i.hideLoading(e),"full"===m?s.zoomToFull(g):"cover"===m?s.zoomToCover(g):"max"===m?s.zoomToMax(g):s.reset(.172)}))}getZoomInfo(e){var t;const{el:n,imageEl:i,thumbEl:o,panzoom:s}=e;if(!n||!i||!o||!s||Q(o)<3||!this.optionFor(e,"zoom")||this.instance.state===se.Destroy)return!1;if(1!==((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1))return!1;let{top:r,left:a,width:l,height:c}=o.getBoundingClientRect(),{top:u,left:h,fitWidth:d,fitHeight:f}=s.contentRect;if(!(l&&c&&d&&f))return!1;const p=s.container.getBoundingClientRect();h+=p.left,u+=p.top;const g=-1*(h+.5*d-(a+.5*l)),m=-1*(u+.5*f-(r+.5*c)),v=l/d;let b=this.option("zoomOpacity")||!1;return"auto"===b&&(b=Math.abs(l/c-d/f)>.1),{x:g,y:m,scale:v,opacity:b}}attach(){const e=this,t=e.instance;t.on("Carousel.change",e.onChange),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("close",e.onClose)}detach(){const e=this,t=e.instance;t.off("Carousel.change",e.onChange),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("close",e.onClose)}}Object.defineProperty(ue,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}});const he=(e,t={})=>{const n=new URL(e),i=new URLSearchParams(n.search),o=new URLSearchParams;for(const[e,n]of[...i,...Object.entries(t)]){let t=n.toString();"t"===e?o.set("start",parseInt(t).toString()):o.set(e,t)}let s=o.toString(),r=e.match(/#t=((.*)?\d+s)/);return r&&(s+=`#t=${r[1]}`),s},de=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo","video"];class fe extends Y{onInitSlide(e,t,n){this.processType(n)}onCreateSlide(e,t,n){this.setContent(n)}onRemoveSlide(e,t,n){n.closeBtnEl&&(n.closeBtnEl.remove(),n.closeBtnEl=void 0),n.xhr&&(n.xhr.abort(),n.xhr=null);const i=n.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",n.iframeEl=null);const o=n.contentEl,s=n.placeholderEl;if("inline"===n.type&&o&&s)o.classList.remove("fancybox__content"),"none"!==o.style.display&&(o.style.display="none"),s.parentNode&&s.parentNode.insertBefore(o,s),s.remove(),n.placeholderEl=null;else for(;n.el&&n.el.firstChild;)n.el.removeChild(n.el.firstChild)}onSelectSlide(e,t,n){n.state===re.Ready&&this.playVideo()}onUnselectSlide(e,t,n){var i,o;if("html5video"===n.type){try{null===(o=null===(i=n.el)||void 0===i?void 0:i.querySelector("video"))||void 0===o||o.pause()}catch(e){}return}let s;"vimeo"===n.type?s={method:"pause",value:"true"}:"youtube"===n.type&&(s={event:"command",func:"pauseVideo"}),s&&n.iframeEl&&n.iframeEl.contentWindow&&n.iframeEl.contentWindow.postMessage(JSON.stringify(s),"*"),n.poller&&clearTimeout(n.poller)}onDone(e,t){e.isCurrentSlide(t)&&!e.isClosing()&&this.playVideo()}onRefresh(e,t){t.slides.forEach((e=>{e.el&&(this.setAspectRatio(e),this.resizeIframe(e))}))}onMessage(e){try{let t=JSON.parse(e.data);if("https://player.vimeo.com"===e.origin){if("ready"===t.event)for(let t of Array.from(document.getElementsByClassName("fancybox__iframe")))t instanceof HTMLIFrameElement&&t.contentWindow===e.source&&(t.dataset.ready="true")}else if(e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===t.event){const e=document.getElementById(t.id);e&&(e.dataset.ready="true")}}catch(e){}}loadAjaxContent(e){const t=this.instance.optionFor(e,"src")||"";this.instance.showLoading(e);const n=this.instance,i=new XMLHttpRequest;n.showLoading(e),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&n.state===se.Ready&&(n.hideLoading(e),200===i.status?n.setContent(e,i.responseText):n.setError(e,404===i.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const o=e.ajax||null;i.open(o?"POST":"GET",t+""),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(o),e.xhr=i}setInlineContent(e){let t=null;if(R(e.src))t=e.src;else if("string"==typeof e.src){const n=e.src.split("#",2).pop();t=n?document.getElementById(n):null}if(t){if("clone"===e.type||t.closest(".fancybox__slide")){t=t.cloneNode(!0);const n=t.dataset.animationName;n&&(t.classList.remove(n),delete t.dataset.animationName);let i=t.getAttribute("id");i=i?`${i}--clone`:`clone-${this.instance.id}-${e.index}`,t.setAttribute("id",i)}else if(t.parentNode){const n=document.createElement("div");n.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(n,t),e.placeholderEl=n}this.instance.setContent(e,t)}else this.instance.setError(e,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(e){const{src:t,el:n}=e;if(!t||"string"!=typeof t||!n)return;const i=this.instance,o=document.createElement("iframe");o.className="fancybox__iframe",o.setAttribute("id",`fancybox__iframe_${i.id}_${e.index}`);for(const[t,n]of Object.entries(this.optionFor(e,"iframeAttr")||{}))o.setAttribute(t,n);o.onerror=()=>{i.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=o;const s=this.optionFor(e,"preload");if(n.classList.add("is-loading"),"iframe"!==e.type||!1===s)return o.setAttribute("src",e.src+""),this.resizeIframe(e),void i.setContent(e,o);i.showLoading(e),o.onload=()=>{if(!o.src.length)return;const t="true"!==o.dataset.ready;o.dataset.ready="true",this.resizeIframe(e),t?i.revealContent(e):i.hideLoading(e)},o.setAttribute("src",t),i.setContent(e,o,!1)}resizeIframe(e){const t=e.iframeEl,n=null==t?void 0:t.parentElement;if(!t||!n)return;let i=e.autoSize,o=e.width||0,s=e.height||0;o&&s&&(i=!1);const r=n&&n.style;if(!1!==e.preload&&!1!==i&&r)try{const e=window.getComputedStyle(n),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),a=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),l=t.contentWindow;if(l){const e=l.document,t=e.getElementsByTagName("html")[0],n=e.body;r.width="",n.style.overflow="hidden",o=o||t.scrollWidth+i,r.width=`${o}px`,n.style.overflow="",r.flex="0 0 auto",r.height=`${n.scrollHeight}px`,s=t.scrollHeight+a}}catch(e){}if(o||s){const e={flex:"0 1 auto",width:"",height:""};o&&(e.width=`${o}px`),s&&(e.height=`${s}px`),Object.assign(r,e)}}playVideo(){const e=this.instance.getSlide();if(!e)return;const{el:t}=e;if(!t||!t.offsetParent)return;if(!this.optionFor(e,"videoAutoplay"))return;if("html5video"===e.type)try{const e=t.querySelector("video");if(e){const t=e.play();void 0!==t&&t.then((()=>{})).catch((t=>{e.muted=!0,e.play()}))}}catch(e){}if("youtube"!==e.type&&"vimeo"!==e.type)return;const n=()=>{if(e.iframeEl&&e.iframeEl.contentWindow){let t;if("true"===e.iframeEl.dataset.ready)return t="youtube"===e.type?{event:"command",func:"playVideo"}:{method:"play",value:"true"},t&&e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"),void(e.poller=void 0);"youtube"===e.type&&(t={event:"listening",id:e.iframeEl.getAttribute("id")},e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"))}e.poller=setTimeout(n,250)};n()}processType(e){if(e.html)return e.type="html",e.src=e.html,void(e.html="");const t=this.instance.optionFor(e,"src","");if(!t||"string"!=typeof t)return;let n=e.type,i=null;if(i=t.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const o=this.optionFor(e,"youtube"),{nocookie:s}=o,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(o,["nocookie"]),a=`www.youtube${s?"-nocookie":""}.com`,l=he(t,r),c=encodeURIComponent(i[2]);e.videoId=c,e.src=`https://${a}/embed/${c}?${l}`,e.thumbSrc=e.thumbSrc||`https://i.ytimg.com/vi/${c}/mqdefault.jpg`,n="youtube"}else if(i=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const o=he(t,this.optionFor(e,"vimeo")),s=encodeURIComponent(i[1]),r=i[4]||"";e.videoId=s,e.src=`https://player.vimeo.com/video/${s}?${r?`h=${r}${o?"&":""}`:""}${o}`,n="vimeo"}if(!n&&e.triggerEl){const t=e.triggerEl.dataset.type;de.includes(t)&&(n=t)}n||"string"==typeof t&&("#"===t.charAt(0)?n="inline":(i=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n="html5video",e.videoFormat=e.videoFormat||"video/"+("ogv"===i[1]?"ogg":i[1])):t.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n="image":t.match(/\.(pdf)((\?|#).*)?$/i)?n="pdf":(i=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`https://maps.google.${i[1]}/?ll=${(i[2]?i[2]+"&z="+Math.floor(parseFloat(i[3]))+(i[4]?i[4].replace(/^\//,"&"):""):i[4]+"").replace(/\?/,"&")}&output=${i[4]&&i[4].indexOf("layer=c")>0?"svembed":"embed"}`,n="map"):(i=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`https://maps.google.${i[1]}/maps?q=${i[2].replace("query=","q=").replace("api=1","")}&output=embed`,n="map")),n=n||this.instance.option("defaultType"),e.type=n,"image"===n&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case"html":this.instance.setContent(e,t);break;case"html5video":const n=this.option("videoTpl");n&&this.instance.setContent(e,n.replace(/\{\{src\}\}/gi,t+"").replace(/\{\{format\}\}/gi,this.optionFor(e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,e.poster||e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case"map":case"youtube":case"vimeo":e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){var t;const n=e.contentEl,i=this.optionFor(e,"videoRatio"),o=null===(t=e.el)||void 0===t?void 0:t.getBoundingClientRect();if(!(n&&o&&i&&1!==i&&e.type&&["video","youtube","vimeo","html5video"].includes(e.type)))return;const s=o.width,r=o.height;n.style.aspectRatio=i+"",n.style.width=s/r>i?"auto":"",n.style.height=s/r>i?"":"auto"}attach(){const e=this.instance;e.on("Carousel.initSlide",this.onInitSlide),e.on("Carousel.createSlide",this.onCreateSlide),e.on("Carousel.removeSlide",this.onRemoveSlide),e.on("Carousel.selectSlide",this.onSelectSlide),e.on("Carousel.unselectSlide",this.onUnselectSlide),e.on("Carousel.Panzoom.refresh",this.onRefresh),e.on("done",this.onDone),window.addEventListener("message",this.onMessage)}detach(){const e=this.instance;e.off("Carousel.initSlide",this.onInitSlide),e.off("Carousel.createSlide",this.onCreateSlide),e.off("Carousel.removeSlide",this.onRemoveSlide),e.off("Carousel.selectSlide",this.onSelectSlide),e.off("Carousel.unselectSlide",this.onUnselectSlide),e.off("Carousel.Panzoom.refresh",this.onRefresh),e.off("done",this.onDone),window.removeEventListener("message",this.onMessage)}}Object.defineProperty(fe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});class pe extends Y{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:"ready"}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return"ready"!==this.state}onReady(e){this.option("autoStart")&&(e.isInfinite||e.page<e.pages.length-1)&&this.start()}onChange(){var e;(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)||(this.removeProgressBar(),this.pause())}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var e;this.inHover=!1,(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)&&this.resume()}onTimerEnd(){"play"===this.state&&(this.instance.isInfinite||this.instance.page!==this.instance.pages.length-1?this.instance.slideNext():this.instance.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var e;if(!this.option("showProgress"))return null;this.removeProgressBar();const t=this.instance,n=(null===(e=t.pages[t.page])||void 0===e?void 0:e.slides)||[];let i=this.option("progressParentEl");if(i||(i=(1===n.length?n[0].el:null)||t.viewport),!i)return null;const o=document.createElement("div");return z(o,"f-progress"),i.prepend(o),this.progressBar=o,o.offsetHeight,o}set(){if(this.instance.pages.length<2)return;if(this.progressBar)return;const e=this.option("timeout");this.state="play",z(this.instance.container,"has-autoplay");let t=this.createProgressBar();t&&(t.style.transitionDuration=`${e}ms`,t.style.transform="scaleX(1)"),this.timer=setTimeout((()=>{this.timer=null,this.inHover||this.onTimerEnd()}),e),this.emit("set")}clear(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.removeProgressBar()}start(){if(this.set(),this.option("pauseOnHover")){const e=this.instance.container;e.addEventListener("mouseenter",this.onMouseEnter,!1),e.addEventListener("mouseleave",this.onMouseLeave,!1)}document.addEventListener("visibilitychange",this.onVisibilityChange,!1)}stop(){const e=this.instance.container;this.clear(),this.state="ready",e.removeEventListener("mouseenter",this.onMouseEnter,!1),e.removeEventListener("mouseleave",this.onMouseLeave,!1),document.removeEventListener("visibilitychange",this.onVisibilityChange,!1),I(e,"has-autoplay"),this.emit("stop")}pause(){"play"===this.state&&(this.state="pause",this.clear(),this.emit("pause"))}resume(){const e=this.instance;if(e.isInfinite||e.page!==e.pages.length-1)if("play"!==this.state){if("pause"===this.state&&!this.inHover){const e=new Event("resume",{bubbles:!0,cancelable:!0});this.emit("resume",event),e.defaultPrevented||this.set()}}else this.set();else this.stop()}toggle(){"play"===this.state||"pause"===this.state?this.stop():this.set()}attach(){const e=this,t=e.instance;t.on("ready",e.onReady),t.on("Panzoom.startAnimation",e.onChange),t.on("Panzoom.endAnimation",e.onSettle),t.on("Panzoom.touchMove",e.onChange)}detach(){const e=this,t=e.instance;t.off("ready",e.onReady),t.off("Panzoom.startAnimation",e.onChange),t.off("Panzoom.endAnimation",e.onSettle),t.off("Panzoom.touchMove",e.onChange),e.stop()}}Object.defineProperty(pe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class ge extends Y{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(e){const t=e.carousel;if(!t)return;const n=e.container;n&&(t.options.Autoplay=A({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{set:t=>{var i;n.classList.add("has-slideshow"),(null===(i=e.getSlide())||void 0===i?void 0:i.state)!==re.Ready&&t.pause()},stop:()=>{n.classList.remove("has-slideshow"),e.isCompact||e.endIdle()},resume:(t,n)=>{var i,o,s;!n||!n.cancelable||(null===(i=e.getSlide())||void 0===i?void 0:i.state)===re.Ready&&(null===(s=null===(o=e.carousel)||void 0===o?void 0:o.panzoom)||void 0===s?void 0:s.isResting)||n.preventDefault()}}}),t.attachPlugins({Autoplay:pe}),this.ref=t.plugins.Autoplay)}onReady(e){const t=e.carousel,n=this.ref;t&&n&&this.option("playOnStart")&&(t.isInfinite||t.page<t.pages.length-1)&&n.start()}onDone(e,t){const n=this.ref;if(!n)return;const i=t.panzoom;i&&i.on("startAnimation",(()=>{e.isCurrentSlide(t)&&n.stop()})),e.isCurrentSlide(t)&&n.resume()}onKeydown(e,t){var n;const i=this.ref;i&&t===this.option("key")&&"BUTTON"!==(null===(n=document.activeElement)||void 0===n?void 0:n.nodeName)&&i.toggle()}attach(){const e=this,t=e.instance;t.on("Carousel.init",e.onPrepare),t.on("Carousel.ready",e.onReady),t.on("done",e.onDone),t.on("keydown",e.onKeydown)}detach(){const e=this,t=e.instance;t.off("Carousel.init",e.onPrepare),t.off("Carousel.ready",e.onReady),t.off("done",e.onDone),t.off("keydown",e.onKeydown)}}Object.defineProperty(ge,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:e=>{var t;return(null===(t=e.instance.container)||void 0===t?void 0:t.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||e.instance.container},timeout:3e3}});const me={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var ve;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Hidden=2]="Hidden",e[e.Disabled=3]="Disabled"}(ve||(ve={}));let be=class extends Y{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"shouldCenter",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ve.Init})}formatThumb(e,t){return this.instance.localize(t,[["%i",e.index],["%d",e.index+1],["%s",e.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}getSlides(){const e=[],t=this.option("thumbTpl")||"";if(t)for(const n of this.instance.slides||[]){let i="";n.type&&(i=`for-${n.type}`,n.type&&["video","youtube","vimeo","html5video"].includes(n.type)&&(i+=" for-video")),e.push({html:this.formatThumb(n,t),customClass:i})}return e}onInitSlide(e,t){const n=t.el;n&&(t.thumbSrc=n.dataset.thumbSrc||t.thumbSrc||"",t.thumbClipWidth=parseFloat(n.dataset.thumbClipWidth||"")||t.thumbClipWidth||0,t.thumbHeight=parseFloat(n.dataset.thumbHeight||"")||t.thumbHeight||0)}onInitSlides(){this.state===ve.Init&&this.build()}onRefreshM(){this.refreshModern()}onChangeM(){"modern"===this.type&&(this.shouldCenter=!0,this.centerModern())}onClickModern(e){e.preventDefault(),e.stopPropagation();const t=this.instance,n=t.page,i=e=>{if(e){const t=e.closest("[data-carousel-index]");if(t)return parseInt(t.dataset.carouselIndex||"",10)||0}return-1},o=(e,t)=>{const n=document.elementFromPoint(e,t);return n?i(n):-1};let s=i(e.target);s<0&&(s=o(e.clientX+this.thumbGap,e.clientY),s===n&&(s=n-1)),s<0&&(s=o(e.clientX-this.thumbGap,e.clientY),s===n&&(s=n+1)),s<0&&(s=(t=>{let i=o(e.clientX-t,e.clientY),r=o(e.clientX+t,e.clientY);return s<0&&i===n&&(s=n+1),s<0&&r===n&&(s=n-1),s})(this.thumbExtraGap)),s===n?this.centerModern():s>-1&&s<t.pages.length&&t.slideTo(s)}onTransformM(){if("modern"!==this.type)return;const{instance:e,container:t,track:n}=this,i=e.panzoom;if(!(t&&n&&i&&this.panzoom))return;y(t,this.cn("isResting"),i.state!==L.Init&&i.isResting);const o=this.thumbGap,s=this.thumbExtraGap,r=this.thumbClipWidth;let a=0,l=0,c=0;for(const t of e.slides){let n=t.index,i=t.thumbSlideEl;if(!i)continue;y(i,this.cn("isSelected"),n===e.page),l=1-Math.abs(e.getProgress(n)),i.style.setProperty("--progress",l?l+"":"");const u=.5*((t.thumbWidth||0)-r);a+=o,a+=u,l&&(a-=l*(u+s)),i.style.setProperty("--shift",a-o+""),a+=u,l&&(a-=l*(u+s)),a-=o,0===n&&(c=s*l)}n&&(n.style.setProperty("--left",c+""),n.style.setProperty("--width",a+c+o+s*l+"")),this.shouldCenter&&this.centerModern()}buildClassic(){const{container:e,track:t}=this,n=this.getSlides();if(!e||!t||!n)return;const i=new this.instance.constructor(e,A({track:t,infinite:!1,center:!0,fill:!0,dragFree:!0,slidesPerPage:1,transition:!1,Dots:!1,Navigation:!1,Sync:{},classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},this.option("Carousel")||{},{Sync:{target:this.instance},slides:n}));this.carousel=i,this.track=t,i.on("ready",(()=>{this.emit("ready")}))}buildModern(){if("modern"!==this.type)return;const{container:e,track:t,instance:n}=this,i=this.option("thumbTpl")||"";if(!e||!t||!i)return;z(e,"is-horizontal"),this.updateModern();for(const e of n.slides||[]){const n=document.createElement("div");if(z(n,this.cn("slide")),e.type){let t=`for-${e.type}`;["video","youtube","vimeo","html5video"].includes(e.type)&&(t+=" for-video"),z(n,t)}n.appendChild(v(this.formatThumb(e,i))),e.thumbSlideEl=n,t.appendChild(n),this.resizeModernSlide(e)}const o=new n.constructor.Panzoom(e,{content:t,lockAxis:"x",zoom:!1,panOnlyZoomed:!1,bounds:()=>{let e=0,t=0,i=n.slides[0],o=n.slides[n.slides.length-1],s=n.slides[n.page];return i&&o&&s&&(t=-1*this.getModernThumbPos(0),0!==n.page&&(t+=.5*(i.thumbWidth||0)),e=-1*this.getModernThumbPos(n.slides.length-1),n.page!==n.slides.length-1&&(e+=(o.thumbWidth||0)-(s.thumbWidth||0)-.5*(o.thumbWidth||0))),{x:{min:e,max:t},y:{min:0,max:0}}}});o.on("touchStart",((e,t)=>{this.shouldCenter=!1})),o.on("click",((e,t)=>this.onClickModern(t))),o.on("ready",(()=>{this.centerModern(),this.emit("ready")})),o.on(["afterTransform","refresh"],(e=>{this.lazyLoadModern()})),this.panzoom=o,this.refreshModern()}updateModern(){if("modern"!==this.type)return;const{container:e}=this;e&&(this.thumbGap=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-gap"))||0,this.thumbExtraGap=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-extra-gap"))||0,this.thumbWidth=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-width"))||40,this.thumbClipWidth=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-clip-width"))||40,this.thumbHeight=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-height"))||40)}refreshModern(){var e;if("modern"===this.type){this.updateModern();for(const e of this.instance.slides||[])this.resizeModernSlide(e);this.onTransformM(),null===(e=this.panzoom)||void 0===e||e.updateMetrics(!0),this.centerModern(0)}}centerModern(e){const t=this.instance,{container:n,panzoom:i}=this;if(!n||!i||i.state===L.Init)return;const o=t.page;let s=this.getModernThumbPos(o),r=s;for(let e=t.page-3;e<t.page+3;e++){if(e<0||e>t.pages.length-1||e===t.page)continue;const n=1-Math.abs(t.getProgress(e));n>0&&n<1&&(r+=n*(this.getModernThumbPos(e)-s))}let a=100;void 0===e&&(e=.2,t.inTransition.size>0&&(e=.12),Math.abs(-1*i.current.e-r)>i.containerRect.width&&(e=.5,a=0)),i.options.maxVelocity=a,i.applyChange({panX:p(-1*r-i.target.e,1e3),friction:null===t.prevPage?0:e})}lazyLoadModern(){const{instance:e,panzoom:t}=this;if(!t)return;const n=-1*t.current.e||0;let i=this.getModernThumbPos(e.page);if(t.state!==L.Init||0===i)for(const i of e.slides||[]){const e=i.thumbSlideEl;if(!e)continue;const o=e.querySelector("img[data-lazy-src]"),s=i.index,r=this.getModernThumbPos(s),a=n-.5*t.containerRect.innerWidth,l=a+t.containerRect.innerWidth;if(!o||r<a||r>l)continue;let c=o.dataset.lazySrc;if(!c||!c.length)continue;if(delete o.dataset.lazySrc,o.src=c,o.complete)continue;z(e,this.cn("isLoading"));const u=v(N);e.appendChild(u),o.addEventListener("load",(()=>{e.offsetParent&&(e.classList.remove(this.cn("isLoading")),u.remove())}),!1)}}resizeModernSlide(e){if("modern"!==this.type)return;if(!e.thumbSlideEl)return;const t=e.thumbClipWidth&&e.thumbHeight?Math.round(this.thumbHeight*(e.thumbClipWidth/e.thumbHeight)):this.thumbWidth;e.thumbWidth=t}getModernThumbPos(e){const t=this.instance.slides[e],n=this.panzoom;if(!n||!n.contentRect.fitWidth)return 0;let i=n.containerRect.innerWidth,o=n.contentRect.width;2===this.instance.slides.length&&(e-=1,o=2*this.thumbClipWidth);let s=e*(this.thumbClipWidth+this.thumbGap)+this.thumbExtraGap+.5*(t.thumbWidth||0);return s-=o>i?.5*i:.5*o,p(s||0,1)}build(){const e=this.instance,t=e.container,n=this.option("minCount")||0;if(n){let t=0;for(const n of e.slides||[])n.thumbSrc&&t++;if(t<n)return this.cleanup(),void(this.state=ve.Disabled)}const i=this.option("type");if(["modern","classic"].indexOf(i)<0)return void(this.state=ve.Disabled);this.type=i;const o=document.createElement("div");z(o,this.cn("container")),z(o,`is-${i}`);const s=this.option("parentEl");s?s.appendChild(o):t.after(o),this.container=o,z(t,this.cn("hasThumbs"));const r=document.createElement("div");z(r,this.cn("track")),o.appendChild(r),this.track=r,"classic"===i?this.buildClassic():this.buildModern(),this.state=ve.Ready,o.addEventListener("click",(t=>{setTimeout((()=>{var t;null===(t=null==o?void 0:o.querySelector(`[data-carousel-index="${e.page}"]`))||void 0===t||t.focus()}),100)}))}cleanup(){this.carousel&&this.carousel.destroy(),this.carousel=null,this.panzoom&&this.panzoom.destroy(),this.panzoom=null,this.container&&this.container.remove(),this.container=null,this.track=null,this.state=ve.Init,I(this.instance.container,this.cn("hasThumbs"))}attach(){const e=this,t=e.instance;t.on("initSlide",e.onInitSlide),t.state===$.Init?t.on("initSlides",e.onInitSlides):e.onInitSlides(),t.on("Panzoom.afterTransform",e.onTransformM),t.on("Panzoom.refresh",e.onRefreshM),t.on("change",e.onChangeM)}detach(){const e=this,t=e.instance;t.off("initSlide",e.onInitSlide),t.off("initSlides",e.onInitSlides),t.off("Panzoom.afterTransform",e.onTransformM),t.off("Panzoom.refresh",e.onRefreshM),t.off("change",e.onChangeM),e.cleanup()}};Object.defineProperty(be,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:me});const ye=Object.assign(Object.assign({},me),{key:"t",showOnStart:!0,parentEl:null});class xe extends Y{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const e=this.ref;return e&&e.state!==ve.Disabled}get isHidden(){return this.hidden}onInit(){const e=this.instance,t=e.carousel;if(this.ref||!t)return;const n=this.option("parentEl")||e.footer||e.container;n&&(t.options.Thumbs=A({},this.options,{parentEl:n,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:e.option("Carousel.friction")},on:{click:(e,t)=>{t.stopPropagation()}}},on:{ready:e=>{const t=e.container;t&&this.hidden&&(this.refresh(),t.style.transition="none",this.hide(),t.offsetHeight,queueMicrotask((()=>{t.style.transition="",this.show()})))}}}),t.attachPlugins({Thumbs:be}),this.ref=t.plugins.Thumbs,this.option("showOnStart")||(this.ref.state=ve.Hidden,this.hidden=!0))}onResize(){var e;const t=null===(e=this.ref)||void 0===e?void 0:e.container;t&&(t.style.maxHeight="")}onKeydown(e,t){const n=this.option("key");n&&n===t&&this.toggle()}toggle(){const e=this.ref;e&&e.state!==ve.Disabled&&(e.state!==ve.Hidden?this.hidden?this.show():this.hide():e.build())}show(){const e=this.ref,t=e&&e.state!==ve.Disabled&&e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute("aria-hidden"),t.classList.remove("is-hidden"),this.hidden=!1)}hide(){const e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add("is-hidden"),t.setAttribute("aria-hidden","true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||e.state===ve.Disabled)return;const t=e.container,n=(null==t?void 0:t.firstChild)||null;t&&n&&n.childNodes.length&&(t.style.maxHeight=`${n.getBoundingClientRect().height}px`)}attach(){const e=this,t=e.instance;t.state===se.Init?t.on("Carousel.init",e.onInit):e.onInit(),t.on("resize",e.onResize),t.on("keydown",e.onKeydown)}detach(){var e;const t=this,n=t.instance;n.off("Carousel.init",t.onInit),n.off("resize",t.onResize),n.off("keydown",t.onKeydown),null===(e=n.carousel)||void 0===e||e.detachPlugins(["Thumbs"]),t.ref=null}}Object.defineProperty(xe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:ye});const we={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Se;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Disabled=2]="Disabled"}(Se||(Se={}));const Te={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};class Ee extends Y{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Se.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(e){var t;if(!e.carousel)return;let n=this.option("display"),i=this.option("absolute"),o=this.option("enabled");if("auto"===o){const e=this.instance.carousel;let t=0;if(e)for(const n of e.slides)(n.panzoom||"image"===n.type)&&t++;t||(o=!1)}o||(n=void 0);let s=0;const r={left:[],middle:[],right:[]};if(n)for(const e of["left","middle","right"])for(const i of n[e]){const n=this.createEl(i);n&&(null===(t=r[e])||void 0===t||t.push(n),s++)}let a=null;if(s&&(a=this.createContainer()),a){for(const[e,t]of Object.entries(r)){const n=document.createElement("div");z(n,"fancybox__toolbar__column is-"+e);for(const e of t)n.appendChild(e);"auto"!==i||"middle"!==e||t.length||(i=!0),a.appendChild(n)}!0===i&&z(a,"is-absolute"),this.state=Se.Ready,this.onRefresh()}else this.state=Se.Disabled}onClick(e){var t,n;const i=this.instance,o=i.getSlide(),s=null==o?void 0:o.panzoom,r=e.target,a=r&&R(r)?r.dataset:null;if(!a)return;if(void 0!==a.fancyboxToggleThumbs)return e.preventDefault(),e.stopPropagation(),void(null===(t=i.plugins.Thumbs)||void 0===t||t.toggle());if(void 0!==a.fancyboxToggleFullscreen)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==a.fancyboxToggleSlideshow){e.preventDefault(),e.stopPropagation();const t=null===(n=i.carousel)||void 0===n?void 0:n.plugins.Autoplay;let o=t.isActive;return s&&"mousemove"===s.panMode&&!o&&s.reset(),void(o?t.stop():t.start())}const l=a.panzoomAction,c=a.panzoomChange;if((c||l)&&(e.preventDefault(),e.stopPropagation()),c){let t={};try{t=JSON.parse(c)}catch(e){}s&&s.applyChange(t)}else l&&s&&s[l]&&s[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const e=this.container;if(!e)return;const t=this.instance.getSlide();if(!t||t.state!==re.Ready)return;const n=t&&!t.error&&t.panzoom;for(const t of e.querySelectorAll("[data-panzoom-action]"))n?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));let i=n&&n.canZoomIn(),o=n&&n.canZoomOut();for(const t of e.querySelectorAll('[data-panzoom-action="zoomIn"]'))i?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));for(const t of e.querySelectorAll('[data-panzoom-action="zoomOut"]'))o?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));for(const t of e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){o||i?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));const e=t.querySelector("g");e&&(e.style.display=i?"":"none")}}onDone(e,t){var n;null===(n=t.panzoom)||void 0===n||n.on("afterTransform",(()=>{this.instance.isCurrentSlide(t)&&this.onRefresh()})),this.instance.isCurrentSlide(t)&&this.onRefresh()}createContainer(){const e=this.instance.container;if(!e)return null;const t=this.option("parentEl")||e,n=document.createElement("div");return z(n,"fancybox__toolbar"),t.prepend(n),n.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&z(e,"has-toolbar"),this.container=n,n}createEl(e){var t;const n=this.instance.carousel;if(!n)return null;if("toggleFS"===e)return null;if("fullscreen"===e&&!this.instance.fsAPI)return null;let i=null;const o=n.slides.length||0;let s=0,r=0;for(const e of n.slides)(e.panzoom||"image"===e.type)&&s++,("image"===e.type||e.downloadSrc)&&r++;if(o<2&&["infobar","prev","next"].includes(e))return i;if(void 0!==we[e]&&!s)return null;if("download"===e&&!r)return null;if("thumbs"===e){const e=this.instance.plugins.Thumbs;if(!e||!e.isEnabled)return null}if("slideshow"===e&&(!(null===(t=this.instance.carousel)||void 0===t?void 0:t.plugins.Autoplay)||o<2))return null;if(void 0!==we[e]){const t=we[e];i=document.createElement("button"),i.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),z(i,"f-button"),t.action&&(i.dataset.panzoomAction=t.action),t.change&&(i.dataset.panzoomChange=JSON.stringify(t.change)),i.appendChild(v(this.instance.localize(t.icon)))}else{const t=(this.option("items")||[])[e];t&&(i=v(this.instance.localize(t.tpl)),"function"==typeof t.click&&i.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),"function"==typeof t.click&&t.click.call(this,this,e)})))}const a=null==i?void 0:i.querySelector("svg");if(a)for(const[e,t]of Object.entries(Te))a.getAttribute(e)||a.setAttribute(e,String(t));return i}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=Se.Disabled;const t=this.instance.container;t&&I(t,"has-toolbar")}attach(){const e=this,t=e.instance;t.on("Carousel.initSlides",e.onReady),t.on("done",e.onDone),t.on("reveal",e.onChange),t.on("Carousel.change",e.onChange),e.onReady(e.instance)}detach(){const e=this,t=e.instance;t.off("Carousel.initSlides",e.onReady),t.off("done",e.onDone),t.off("reveal",e.onChange),t.off("Carousel.change",e.onChange),e.removeContainer()}}Object.defineProperty(Ee,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null}});const Ce={Hash:le,Html:fe,Images:ue,Slideshow:ge,Thumbs:xe,Toolbar:Ee},Ae=function(){var e=window.getSelection();return e&&"Range"===e.type};let Oe=null,Pe=null;const Me=new Map;let Le=0;class ke extends M{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(e=[],t={},n={}){super(t),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:se.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fsAPI",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fsAPI=(()=>{let e,t="",n="",i="";return document.fullscreenEnabled?(t="requestFullscreen",n="exitFullscreen",i="fullscreenElement"):document.webkitFullscreenEnabled&&(t="webkitRequestFullscreen",n="webkitExitFullscreen",i="webkitFullscreenElement"),t&&(e={request:function(e){return"webkitRequestFullscreen"===t?e[t](Element.ALLOW_KEYBOARD_INPUT):e[t]()},exit:function(){return document[i]&&document[n]()},isFullscreen:function(){return document[i]}}),e})(),this.id=t.id||++Le,Me.set(this.id,this),this.userSlides=e,this.userPlugins=n,queueMicrotask((()=>{this.init()}))}init(){if(this.state===se.Destroy)return;this.state=se.Init,this.attachPlugins(Object.assign(Object.assign({},ke.Plugins),this.userPlugins)),this.emit("init"),!0===this.option("hideScrollbar")&&(()=>{if(!ee)return;const e=document.body;if(e.classList.contains("hide-scrollbar"))return;let t=window.innerWidth-document.documentElement.getBoundingClientRect().width;t<0&&(t=0);const n=e.currentStyle||window.getComputedStyle(e),i=parseFloat(n.marginRight);document.documentElement.style.setProperty("--fancybox-scrollbar-compensate",`${t}px`),i&&e.style.setProperty("--fancybox-body-margin",`${i}px`),e.classList.add("hide-scrollbar")})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=se.Ready,this.attachEvents(),this.emit("ready"),setTimeout((()=>{this.container&&this.container.setAttribute("aria-hidden","false")}),16)},t=this.fsAPI;this.option("Fullscreen.autoStart")&&t&&!t.isFullscreen()?t.request(this.container).then((()=>e())).catch((()=>e())):e()}initLayout(){var e,t;const n=this.option("parentEl")||document.body,i=v(this.localize(this.option("tpl.main")||""));i&&(i.setAttribute("id",`fancybox-${this.id}`),i.setAttribute("aria-label",this.localize("{{MODAL}}")),i.classList.toggle("is-compact",this.isCompact),z(i,this.option("mainClass")||""),this.container=i,this.footer=i.querySelector(".fancybox__footer"),n.appendChild(i),z(document.documentElement,"with-fancybox"),Oe&&Pe||(Oe=document.createElement("span"),z(Oe,"fancybox-focus-guard"),Oe.setAttribute("tabindex","0"),Oe.setAttribute("aria-hidden","true"),Oe.setAttribute("aria-label","Focus guard"),Pe=Oe.cloneNode(),null===(e=i.parentElement)||void 0===e||e.insertBefore(Oe,i),null===(t=i.parentElement)||void 0===t||t.append(Pe)),this.option("animated")&&(z(i,"is-animated"),setTimeout((()=>{this.isClosing()||I(i,"is-animated")}),350)),this.emit("initLayout"))}initCarousel(e){const t=this.container;if(!t)return;const n=t.querySelector(".fancybox__carousel");if(!n)return;const i=this.carousel=new J(n,A({},{slides:e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));i.on("*",((e,t,...n)=>{this.emit(`Carousel.${t}`,e,...n)})),i.on(["ready","change"],(()=>{var e;const t=this.getSlide();t&&(null===(e=t.panzoom)||void 0===e||e.updateControls()),this.manageCaption(t)})),i.on("removeSlide",((e,t)=>{t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0,t.state=void 0})),i.on("Panzoom.touchStart",(()=>{this.isCompact||this.endIdle()})),i.on("settle",(()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&this.checkFocus()})),this.option("dragToClose")&&(i.on("Panzoom.afterTransform",((e,t)=>{const n=this.getSlide();if(n&&g(n.el))return;const i=this.container;if(i){const e=Math.abs(t.current.f),n=e<1?"":Math.max(.5,Math.min(1,1-e/t.contentRect.fitHeight*1.5));i.style.setProperty("--fancybox-ts",n?"0s":""),i.style.setProperty("--fancybox-opacity",n+"")}})),i.on("Panzoom.touchEnd",((e,t,n)=>{var i;const o=this.getSlide();if(o&&g(o.el))return;if(t.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName))return;const s=Math.abs(t.dragOffset.y);"y"===t.lockedAxis&&(s>=200||s>=50&&t.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),this.close(n,"f-throwOut"+(t.current.f<0?"Up":"Down")))}))),i.on(["change"],(e=>{var t;let n=null===(t=this.getSlide())||void 0===t?void 0:t.triggerEl;if(n){const t=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:e.page});n.dispatchEvent(t)}})),i.on(["refresh","change"],(e=>{const t=this.container;if(!t)return;for(const n of t.querySelectorAll("[data-fancybox-current-index]"))n.innerHTML=e.page+1;for(const n of t.querySelectorAll("[data-fancybox-count]"))n.innerHTML=e.pages.length;if(!e.isInfinite){for(const n of t.querySelectorAll("[data-fancybox-next]"))e.page<e.pages.length-1?(n.removeAttribute("disabled"),n.removeAttribute("tabindex")):(n.setAttribute("disabled",""),n.setAttribute("tabindex","-1"));for(const n of t.querySelectorAll("[data-fancybox-prev]"))e.page>0?(n.removeAttribute("disabled"),n.removeAttribute("tabindex")):(n.setAttribute("disabled",""),n.setAttribute("tabindex","-1"))}const n=this.getSlide();if(!n)return;let i=n.downloadSrc||"";i||"image"!==n.type||n.error||"string"!=typeof n.src||(i=n.src);for(const e of t.querySelectorAll("[data-fancybox-download]")){const t=n.downloadFilename;i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex"),e.setAttribute("href",i),e.setAttribute("download",t||i),e.setAttribute("target","_blank")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"),e.removeAttribute("href"),e.removeAttribute("download"))}})),this.emit("initCarousel")}attachEvents(){const e=this.container;if(!e)return;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",this.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",this.onVisibilityChange,!1),document.addEventListener("mousemove",this.onMousemove),this.option("trapFocus")&&document.addEventListener("focus",this.onFocus,!0),window.addEventListener("resize",this.onResize);const t=window.visualViewport;t&&(t.addEventListener("scroll",this.onResize),t.addEventListener("resize",this.onResize))}detachEvents(){const e=this.container;if(!e)return;document.removeEventListener("keydown",this.onKeydown,{passive:!1,capture:!0}),e.removeEventListener("wheel",this.onWheel,{passive:!1,capture:!1}),e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",this.onMousemove),window.removeEventListener("resize",this.onResize);const t=window.visualViewport;t&&(t.removeEventListener("resize",this.onResize),t.removeEventListener("scroll",this.onResize)),document.removeEventListener("visibilitychange",this.onVisibilityChange,!1),document.removeEventListener("focus",this.onFocus,!0)}scale(){const e=this.container;if(!e)return;const t=window.visualViewport,n=Math.max(1,(null==t?void 0:t.scale)||1);let i="",o="",s="";if(t&&n>1){let e=`${t.offsetLeft}px`,r=`${t.offsetTop}px`;i=t.width*n+"px",o=t.height*n+"px",s=`translate3d(${e}, ${r}, 0) scale(${1/n})`}e.style.transform=s,e.style.width=i,e.style.height=o}onClick(e){var t,n;const{container:i,isCompact:o}=this;if(!i||this.isClosing())return;!o&&this.option("idle")&&this.resetIdle();const s=document.activeElement;if(Ae()&&s&&i.contains(s))return;const r=e.composedPath()[0];if(r===(null===(t=this.carousel)||void 0===t?void 0:t.container))return;if(r.closest(".f-spinner")||r.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(r.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(r.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if(o&&"image"===(null===(n=this.getSlide())||void 0===n?void 0:n.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit("click",e),e.defaultPrevented)return;let a=!1;if(r.closest(".fancybox__content")){if(s){if(s.closest("[contenteditable]"))return;r.matches(ne)||s.blur()}if(Ae())return;a=this.option("contentClick")}else r.closest(".fancybox__carousel")&&!r.matches(ne)&&(a=this.option("backdropClick"));"close"===a?(e.preventDefault(),this.close(e)):"next"===a?(e.preventDefault(),this.next()):"prev"===a&&(e.preventDefault(),this.prev())}onWheel(e){const t=this.option("wheel",e),n="slide"===t,i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),o=Math.max(-1,Math.min(1,i)),s=Date.now();this.pwt&&s-this.pwt<300?n&&e.preventDefault():(this.pwt=s,this.emit("wheel",e),e.defaultPrevented||("close"===t?(e.preventDefault(),this.close(e)):"slide"===t&&(e.preventDefault(),this[o>0?"prev":"next"]())))}onKeydown(e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const t=e.key,n=this.option("keyboard");if(!n||e.ctrlKey||e.altKey||e.shiftKey)return;const i=e.composedPath()[0],o=document.activeElement&&document.activeElement.classList,s=o&&o.contains("f-button")||i.dataset.carouselPage||i.dataset.carouselIndex;if("Escape"!==t&&!s&&R(i)&&(i.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(i.nodeName)))return;this.emit("keydown",t,e);const r=n[t];"function"==typeof this[r]&&(e.preventDefault(),this[r]())}onResize(){const e=this.container;if(!e)return;const t=this.isCompact;e.classList.toggle("is-compact",t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit("resize")}onFocus(e){this.isTopmost()&&this.checkFocus(e)}onMousemove(e){this.prevMouseMoveEvent=e,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(e){const t=this.optionFor(e,"closeButton")||!1;if("auto"===t){const e=this.plugins.Toolbar;if(e&&e.state===Se.Ready)return}if(!t)return;if(!e.contentEl||e.closeBtnEl)return;const n=this.option("tpl.closeButton");if(n){const t=v(this.localize(n));e.closeBtnEl=e.contentEl.appendChild(t),e.el&&z(e.el,"has-close-btn")}}manageCaption(e){var t,n;const i="fancybox__caption",o="has-caption",s=this.container;if(!s)return;const r=this.isCompact||this.option("commonCaption"),a=!r;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),r&&!this.caption)for(const e of(null===(t=this.carousel)||void 0===t?void 0:t.slides)||[])e.captionEl&&(e.captionEl.remove(),e.captionEl=void 0,I(e.el,o),null===(n=e.el)||void 0===n||n.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||r&&!this.isCurrentSlide(e))return;const l=e.el;let c=this.optionFor(e,"caption","");if("string"!=typeof c||!c.length)return void(r&&this.caption&&this.animate(this.caption,"f-fadeOut",(()=>{var e;null===(e=this.caption)||void 0===e||e.remove(),this.caption=null})));let u=null;if(a){if(u=e.captionEl||null,l&&!u){const t=`fancybox__caption_${this.id}_${e.index}`;u=document.createElement("div"),z(u,i),u.setAttribute("id",t),e.captionEl=l.appendChild(u),z(l,o),l.setAttribute("aria-labelledby",t)}}else u=this.caption,u||(u=s.querySelector("."+i)),u||(u=document.createElement("div"),u.dataset.fancyboxCaption="",z(u,i),u.innerHTML=c,(this.footer||s).prepend(u)),z(s,o),this.caption=u;u&&(u.innerHTML=c)}checkFocus(e){var t;const n=document.activeElement||null;n&&(null===(t=this.container)||void 0===t?void 0:t.contains(n))||this.focus(e)}focus(e){var t;if(this.ignoreFocusChange)return;const n=document.activeElement||null,i=(null==e?void 0:e.target)||null,o=this.container,s=this.getSlide();if(!o||!(null===(t=this.carousel)||void 0===t?void 0:t.viewport))return;if(!e&&n&&o.contains(n))return;const r=s&&s.state===re.Ready?s.el:null;if(!r||r.contains(n)||o===n)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const a=Array.from(o.querySelectorAll(ne));let l=[],c=null;for(let e of a){const t=!e.offsetParent||e.closest('[aria-hidden="true"]'),n=r&&r.contains(e),i=!this.carousel.viewport.contains(e);e===o||(n||i)&&!t?(l.push(e),void 0!==e.dataset.origTabindex&&(e.tabIndex=parseFloat(e.dataset.origTabindex)),e.removeAttribute("data-orig-tabindex"),!e.hasAttribute("autoFocus")&&c||(c=e)):(e.dataset.origTabindex=void 0===e.dataset.origTabindex?e.getAttribute("tabindex")||void 0:e.dataset.origTabindex,e.tabIndex=-1)}let u=null;e?(!i||l.indexOf(i)<0)&&(u=c||o,l.length&&(n===Pe?u=l[0]:this.lastFocus!==o&&n!==Oe||(u=l[l.length-1]))):u=s&&"image"===s.type?o:c||o,u&&ie(u),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const e=this.carousel;e&&e.pages.length>1&&e.slideNext()}prev(){const e=this.carousel;e&&e.pages.length>1&&e.slidePrev()}jumpTo(...e){this.carousel&&this.carousel.slideTo(...e)}isTopmost(){var e;return(null===(e=ke.getInstance())||void 0===e?void 0:e.id)==this.id}animate(e=null,t="",n){if(!e||!t)return void(n&&n());this.stop(e);const i=o=>{o.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",i),delete e.dataset.animationName,n&&n(),I(e,t))};e.dataset.animationName=t,e.addEventListener("animationend",i),z(e,t)}stop(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))}setContent(e,t="",n=!0){if(this.isClosing())return;const i=e.el;if(!i)return;let o=null;if(R(t)?o=t:(o=v(t+""),R(o)||(o=document.createElement("div"),o.innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(o.nodeName.toLowerCase())){const e=document.createElement("div");e.appendChild(o),o=e}R(o)&&e.filter&&!e.error&&(o=o.querySelector(e.filter)),o&&R(o)?(z(o,"fancybox__content"),e.id&&o.setAttribute("id",e.id),"none"!==o.style.display&&"none"!==getComputedStyle(o).getPropertyValue("display")||(o.style.display=e.display||this.option("defaultDisplay")||"flex"),i.classList.add(`has-${e.error?"error":e.type||"unknown"}`),i.prepend(o),e.contentEl=o,n&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}revealContent(e,t){const n=e.el,i=e.contentEl;n&&i&&(this.emit("reveal",e),this.hideLoading(e),e.state=re.Opening,(t=this.isOpeningSlide(e)?void 0===t?this.optionFor(e,"showClass"):t:"f-fadeIn")?this.animate(i,t,(()=>{this.done(e)})):this.done(e))}done(e){this.isClosing()||(e.state=re.Ready,this.emit("done",e),z(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask((()=>{this.option("autoFocus")&&(this.option("autoFocus")?this.focus():this.checkFocus())})),this.isOpeningSlide(e)&&!this.isCompact&&this.option("idle")&&this.setIdle())}isCurrentSlide(e){const t=this.getSlide();return!(!e||!t)&&t.index===e.index}isOpeningSlide(e){var t,n;return null===(null===(t=this.carousel)||void 0===t?void 0:t.prevPage)&&e.index===(null===(n=this.getSlide())||void 0===n?void 0:n.index)}showLoading(e){e.state=re.Loading;const t=e.el;t&&(z(t,"is-loading"),this.emit("loading",e),e.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===re.Loading){let n=v(N);e.spinnerEl=n,t.prepend(n),this.animate(n,"f-fadeIn")}}),250))}hideLoading(e){const t=e.el;if(!t)return;const n=e.spinnerEl;this.isClosing()?null==n||n.remove():(I(t,"is-loading"),n&&this.animate(n,"f-fadeOut",(()=>{n.remove()})),e.state===re.Loading&&(this.emit("loaded",e),e.state=re.Ready))}setError(e,t){if(this.isClosing())return;this.emit("error"),e.error=t,this.hideLoading(e),this.clearContent(e);const n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(t||"<p>{{ERROR}}</p>"),this.setContent(e,n)}clearContent(e){var t;null===(t=this.carousel)||void 0===t||t.emit("removeSlide",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0),e.closeBtnEl&&(e.closeBtnEl.remove(),e.closeBtnEl=void 0);const n=e.el;n&&(I(n,"is-loading"),I(n,"has-error"),I(n,"has-unknown"),I(n,`has-${e.type||"unknown"}`))}getSlide(){var e;const t=this.carousel;return(null===(e=null==t?void 0:t.pages[null==t?void 0:t.page])||void 0===e?void 0:e.slides[0])||void 0}close(e,t){if(this.isClosing())return;const n=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",n,e),n.defaultPrevented)return;e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());const i=this.fsAPI,o=()=>{this.proceedClose(e,t)};i&&i.isFullscreen()?Promise.resolve(i.exit()).then((()=>o())):o()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const t=()=>{this.clearIdle(),this.idle=!0,z(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)t();else{const e=this.option("idle");e&&(this.idleTimer=setTimeout(t,e))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,I(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){const e=this.fsAPI;e&&(e.isFullscreen()?e.exit():this.container&&e.request(this.container))}isClosing(){return[se.Closing,se.CustomClosing,se.Destroy].includes(this.state)}proceedClose(e,t){var n,i;this.state=se.Closing,this.clearIdle(),this.detachEvents();const o=this.container,s=this.carousel,r=this.getSlide(),a=r&&this.option("placeFocusBack")?r.triggerEl||this.option("trigger"):null;if(a&&(Q(a)?ie(a):a.focus()),o&&(z(o,"is-closing"),o.setAttribute("aria-hidden","true"),this.option("animated")&&z(o,"is-animated"),o.style.pointerEvents="none"),s){s.clearTransitions(),null===(n=s.panzoom)||void 0===n||n.destroy(),null===(i=s.plugins.Navigation)||void 0===i||i.detach();for(const e of s.slides){e.state=re.Closing,this.hideLoading(e);const t=e.contentEl;t&&this.stop(t);const n=null==e?void 0:e.panzoom;n&&(n.stop(),n.detachEvents(),n.detachObserver()),this.isCurrentSlide(e)||s.emit("removeSlide",e)}}this.emit("close",e),this.state!==se.CustomClosing?(void 0===t&&r&&(t=this.optionFor(r,"hideClass")),t&&r?(this.animate(r.contentEl,t,(()=>{s&&s.emit("removeSlide",r)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var e;if(this.state===se.Destroy)return;this.state=se.Destroy,null===(e=this.carousel)||void 0===e||e.destroy();const t=this.container;t&&t.remove(),Me.delete(this.id);const n=ke.getInstance();n?n.focus():(Oe&&(Oe.remove(),Oe=null),Pe&&(Pe.remove(),Pe=null),I(document.documentElement,"with-fancybox"),(()=>{if(!ee)return;const e=document,t=e.body;t.classList.remove("hide-scrollbar"),t.style.setProperty("--fancybox-body-margin",""),e.documentElement.style.setProperty("--fancybox-scrollbar-compensate","")})(),this.emit("destroy"))}static bind(e,t,n){if(!ee)return;let i,o="",s={};if(void 0===e?i=document.body:"string"==typeof e?(i=document.body,o=e,"object"==typeof t&&(s=t||{})):(i=e,"string"==typeof t&&(o=t),"object"==typeof n&&(s=n||{})),!i||!R(i))return;o=o||"[data-fancybox]";const r=ke.openers.get(i)||new Map;r.set(o,s),ke.openers.set(i,r),1===r.size&&i.addEventListener("click",ke.fromEvent)}static unbind(e,t){let n,i="";if("string"==typeof e?(n=document.body,i=e):(n=e,"string"==typeof t&&(i=t)),!n)return;const o=ke.openers.get(n);o&&i&&o.delete(i),i&&o||(ke.openers.delete(n),n.removeEventListener("click",ke.fromEvent))}static destroy(){let e;for(;e=ke.getInstance();)e.destroy();for(const e of ke.openers.keys())e.removeEventListener("click",ke.fromEvent);ke.openers=new Map}static fromEvent(e){if(e.defaultPrevented)return;if(e.button&&0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.composedPath()[0];const n=t.closest("[data-fancybox-trigger]");if(n){const e=n.dataset.fancyboxTrigger||"",i=document.querySelectorAll(`[data-fancybox="${e}"]`),o=parseInt(n.dataset.fancyboxIndex||"",10)||0;t=i[o]||t}if(!(t&&t instanceof Element))return;let i,o,s,r;if([...ke.openers].reverse().find((([e,n])=>!(!e.contains(t)||![...n].reverse().find((([n,a])=>{let l=t.closest(n);return!!l&&(i=e,o=n,s=l,r=a,!0)}))))),!i||!o||!s)return;r=r||{},e.preventDefault(),t=s;let a=[],l=A({},oe,r);l.event=e,l.trigger=t,l.delegate=n;const c=l.groupAll,u=l.groupAttr,h=u&&t?t.getAttribute(`${u}`):"";if((!t||h||c)&&(a=[].slice.call(i.querySelectorAll(o))),t&&!c&&(a=h?a.filter((e=>e.getAttribute(`${u}`)===h)):[t]),!a.length)return;const d=ke.getInstance();return d&&d.options.trigger&&a.indexOf(d.options.trigger)>-1?void 0:(t&&(l.startIndex=a.indexOf(t)),ke.fromNodes(a,l))}static fromSelector(e,t){let n=null,i="";if("string"==typeof e?(n=document.body,i=e):e instanceof HTMLElement&&"string"==typeof t&&(n=e,i=t),!n||!i)return!1;const o=ke.openers.get(n);if(!o)return!1;const s=o.get(i);return!!s&&ke.fromNodes(Array.from(n.querySelectorAll(i)),s)}static fromNodes(e,t){t=A({},oe,t||{});const n=[];for(const i of e){const e=i.dataset||{},o=e.src||i.getAttribute("href")||i.getAttribute("currentSrc")||i.getAttribute("src")||void 0;let s;const r=t.delegate;let a;r&&n.length===t.startIndex&&(s=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),s||(s=i instanceof HTMLImageElement?i:i.querySelector("img:not([aria-hidden])")),s&&(a=s.currentSrc||s.src||void 0,!a&&s.dataset&&(a=s.dataset.lazySrc||s.dataset.src||void 0));const l={src:o,triggerEl:i,thumbEl:s,thumbElSrc:a,thumbSrc:a};for(const t in e)"fancybox"!==t&&(l[t]=e[t]+"");n.push(l)}return new ke(n,t)}static getInstance(e){return e?Me.get(e):Array.from(Me.values()).reverse().find((e=>!e.isClosing()&&e))||null}static getSlide(){var e;return(null===(e=ke.getInstance())||void 0===e?void 0:e.getSlide())||null}static show(e=[],t={}){return new ke(e,t)}static next(){const e=ke.getInstance();e&&e.next()}static prev(){const e=ke.getInstance();e&&e.prev()}static close(e=!0,...t){if(e)for(const e of Me.values())e.close(...t);else{const e=ke.getInstance();e&&e.close(...t)}}}Object.defineProperty(ke,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.17"}),Object.defineProperty(ke,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:oe}),Object.defineProperty(ke,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Ce}),Object.defineProperty(ke,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});var De=n(9479);document.cookie.split(";").some((function(e){return e.includes("downloadAccess=1")}))||(De(".model-downloads.list td a").each((function(){var e=De(this),t=e.attr("href");t.includes(".pdf",".doc",".docx")||e.attr("data-type","ajax").attr("data-src",t).attr("data-filter","#downloadAccessContainer")})),ke.bind(".model-downloads.list td a[data-type=ajax]",{id:"downloadsModal",showClass:"f-slideFromRight",hideClass:"f-slideToRight",defaultType:"html"}));var je=n(9479);new class{constructor(e=[]){localStorage["EXT:CustomFonts"]=!1,e.length&&"Loaded"!==localStorage["EXT:CustomFonts"]&&(localStorage["EXT:CustomFonts"]="Available",this.fonts=e,this.init(e))}init(){this.fonts=this.fonts.map((e=>new(r())(e))),Promise.all([this.fonts.map((e=>e.load()))]).then((function(){document.documentElement.classList.add("fontsLoaded"),localStorage["EXT:CustomFonts"]="Loaded"}))}}(["AFI"]),je("p[class$=button] > a[title]").attr("aria-label",(function(){return je(this).attr("title")}))}()}();