PageSourceSearch

https://www.pierre-fabre.com/sites/pierre-fabre.com/files/js/js_ot…KKC0Ew_ndud5YkSIXw5CpNRjAb8BvwIcLh9sv6B2YdQ

js pierre-fabre.com collected 2026-09-24 09:00:01 UTC 626,709 bytes, 269 lines download raw bytes

1/* @license MIT https://raw.githubusercontent.com/jashkenas/underscore/1.13.8/LICENSE */
vendor: 19,668 bytes, lines 2-7
2!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,function(){var t=n._,e=n._=r();e.noConflict=function(){return n._=t,e}}())}(this,(function(){
3//     Underscore.js 1.13.8
4//     https://underscorejs.org
5//     (c) 2009-2026 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
6//     Underscore may be freely distributed under the MIT license.
7var n="1.13.8",r="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},t=Array.prototype,e=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,i=t.push,o=t.slice,a=e.toString,f=e.hasOwnProperty,c="undefined"!=typeof ArrayBuffer,l="undefined"!=typeof DataView,s=Array.isArray,p=Object.keys,v=Object.create,h=c&&ArrayBuffer.isView,y=isNaN,d=isFinite,g=!{toString:null}.propertyIsEnumerable("toString"),b=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],m=Math.pow(2,53)-1;function j(n,r){return r=null==r?n.length-1:+r,function(){for(var t=Math.max(arguments.length-r,0),e=Array(t),u=0;u<t;u++)e[u]=arguments[u+r];switch(r){case 0:return n.call(this,e);case 1:return n.call(this,arguments[0],e);case 2:return n.call(this,arguments[0],arguments[1],e)}var i=Array(r+1);for(u=0;u<r;u++)i[u]=arguments[u];return i[r]=e,n.apply(this,i)}}function w(n){var r=typeof n;return"function"===r||"object"===r&&!!n}function _(n){return void 0===n}function A(n){return!0===n||!1===n||"[object Boolean]"===a.call(n)}function x(n){var r="[object "+n+"]";return function(n){return a.call(n)===r}}var S=x("String"),O=x("Number"),M=x("Date"),E=x("RegExp"),B=x("Error"),N=x("Symbol"),k=x("ArrayBuffer"),I=x("Function"),T=r.document&&r.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof T&&(I=function(n){return"function"==typeof n||!1});var D=I,R=x("Object"),V=l&&(!/\[native code\]/.test(String(DataView))||R(new DataView(new ArrayBuffer(8)))),F="undefined"!=typeof Map&&R(new Map),P=x("DataView");var q=V?function(n){return null!=n&&D(n.getInt8)&&k(n.buffer)}:P,U=s||x("Array");function W(n,r){return null!=n&&f.call(n,r)}var z=x("Arguments");!function(){z(arguments)||(z=function(n){return W(n,"callee")})}();var L=z;function $(n){return O(n)&&y(n)}function C(n){return function(){return n}}function K(n){return function(r){var t=n(r);return"number"==typeof t&&t>=0&&t<=m}}function J(n){return function(r){return null==r?void 0:r[n]}}var G=J("byteLength"),H=K(G),Q=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var X=c?function(n){return h?h(n)&&!q(n):H(n)&&Q.test(a.call(n))}:C(!1),Y=J("length");function Z(n,r){r=function(n){for(var r={},t=n.length,e=0;e<t;++e)r[n[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(t){return r[t]=!0,n.push(t)}}}(r);var t=b.length,u=n.constructor,i=D(u)&&u.prototype||e,o="constructor";for(W(n,o)&&!r.contains(o)&&r.push(o);t--;)(o=b[t])in n&&n[o]!==i[o]&&!r.contains(o)&&r.push(o)}function nn(n){if(!w(n))return[];if(p)return p(n);var r=[];for(var t in n)W(n,t)&&r.push(t);return g&&Z(n,r),r}function rn(n,r){var t=nn(r),e=t.length;if(null==n)return!e;for(var u=Object(n),i=0;i<e;i++){var o=t[i];if(r[o]!==u[o]||!(o in u))return!1}return!0}function tn(n){return n instanceof tn?n:this instanceof tn?void(this._wrapped=n):new tn(n)}function en(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,G(n))}tn.VERSION=n,tn.prototype.value=function(){return this._wrapped},tn.prototype.valueOf=tn.prototype.toJSON=tn.prototype.value,tn.prototype.toString=function(){return String(this._wrapped)};var un="[object DataView]";function on(n){if(!w(n))return[];var r=[];for(var t in n)r.push(t);return g&&Z(n,r),r}function an(n){var r=Y(n);return function(t){if(null==t)return!1;var e=on(t);if(Y(e))return!1;for(var u=0;u<r;u++)if(!D(t[n[u]]))return!1;return n!==vn||!D(t[fn])}}var fn="forEach",cn="has",ln=["clear","delete"],sn=["get",cn,"set"],pn=ln.concat(fn,sn),vn=ln.concat(sn),hn=["add"].concat(ln,fn,cn),yn=F?an(pn):x("Map"),dn=F?an(vn):x("WeakMap"),gn=F?an(hn):x("Set"),bn=x("WeakSet");function mn(n){for(var r=nn(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=n[r[u]];return e}function jn(n){for(var r={},t=nn(n),e=0,u=t.length;e<u;e++)r[n[t[e]]]=t[e];return r}function wn(n){var r=[];for(var t in n)D(n[t])&&r.push(t);return r.sort()}function _n(n,r){return function(t){var e=arguments.length;if(r&&(t=Object(t)),e<2||null==t)return t;for(var u=1;u<e;u++)for(var i=arguments[u],o=n(i),a=o.length,f=0;f<a;f++){var c=o[f];r&&void 0!==t[c]||(t[c]=i[c])}return t}}var An=_n(on),xn=_n(nn),Sn=_n(on,!0);function On(n){if(!w(n))return{};if(v)return v(n);var r=function(){};r.prototype=n;var t=new r;return r.prototype=null,t}function Mn(n){return U(n)?n:[n]}function En(n){return tn.toPath(n)}function Bn(n,r){for(var t=r.length,e=0;e<t;e++){if(null==n)return;n=n[r[e]]}return t?n:void 0}function Nn(n,r,t){var e=Bn(n,En(r));return _(e)?t:e}function kn(n){return n}function In(n){return n=xn({},n),function(r){return rn(r,n)}}function Tn(n){return n=En(n),function(r){return Bn(r,n)}}function Dn(n,r,t){if(void 0===r)return n;switch(null==t?3:t){case 1:return function(t){return n.call(r,t)};case 3:return function(t,e,u){return n.call(r,t,e,u)};case 4:return function(t,e,u,i){return n.call(r,t,e,u,i)}}return function(){return n.apply(r,arguments)}}function Rn(n,r,t){return null==n?kn:D(n)?Dn(n,r,t):w(n)&&!U(n)?In(n):Tn(n)}function Vn(n,r){return Rn(n,r,1/0)}function Fn(n,r,t){return tn.iteratee!==Vn?tn.iteratee(n,r):Rn(n,r,t)}function Pn(){}function qn(n,r){return null==r&&(r=n,n=0),n+Math.floor(Math.random()*(r-n+1))}tn.toPath=Mn,tn.iteratee=Vn;var Un=Date.now||function(){return(new Date).getTime()};function Wn(n){var r=function(r){return n[r]},t="(?:"+nn(n).join("|")+")",e=RegExp(t),u=RegExp(t,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,r):n}}var zn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ln=Wn(zn),$n=Wn(jn(zn)),Cn=tn.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Kn=/(.)^/,Jn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Gn=/\\|'|\r|\n|\u2028|\u2029/g;function Hn(n){return"\\"+Jn[n]}var Qn=/^\s*(\w|\$)+\s*$/;var Xn=0;function Yn(n,r,t,e,u){if(!(e instanceof r))return n.apply(t,u);var i=On(n.prototype),o=n.apply(i,u);return w(o)?o:i}var Zn=j((function(n,r){var t=Zn.placeholder,e=function(){for(var u=0,i=r.length,o=Array(i),a=0;a<i;a++)o[a]=r[a]===t?arguments[u++]:r[a];for(;u<arguments.length;)o.push(arguments[u++]);return Yn(n,e,this,this,o)};return e}));Zn.placeholder=tn;var nr=j((function(n,r,t){if(!D(n))throw new TypeError("Bind must be called on a function");var e=j((function(u){return Yn(n,e,r,this,t.concat(u))}));return e})),rr=K(Y);function tr(n,r,t){r||0===r||(r=1/0);for(var e=[],u=0,i=0,o=Y(n)||0,a=[];1;)if(i>=o){if(!a.length)break;var f=a.pop();i=f.i,n=f.v,o=Y(n)}else{var c=n[i++];a.length>=r?e[u++]=c:rr(c)&&(U(c)||L(c))?(a.push({i:i,v:n}),i=0,o=Y(n=c)):t||(e[u++]=c)}return e}var er=j((function(n,r){var t=(r=tr(r,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var e=r[t];n[e]=nr(n[e],n)}return n}));var ur=j((function(n,r,t){return setTimeout((function(){return n.apply(null,t)}),r)})),ir=Zn(ur,tn,1);function or(n){return function(){return!n.apply(this,arguments)}}function ar(n,r){var t;return function(){return--n>0&&(t=r.apply(this,arguments)),n<=1&&(r=null),t}}var fr=Zn(ar,2);function cr(n,r,t){r=Fn(r,t);for(var e,u=nn(n),i=0,o=u.length;i<o;i++)if(r(n[e=u[i]],e,n))return e}function lr(n){return function(r,t,e){t=Fn(t,e);for(var u=Y(r),i=n>0?0:u-1;i>=0&&i<u;i+=n)if(t(r[i],i,r))return i;return-1}}var sr=lr(1),pr=lr(-1);function vr(n,r,t,e){for(var u=(t=Fn(t,e,1))(r),i=0,o=Y(n);i<o;){var a=Math.floor((i+o)/2);t(n[a])<u?i=a+1:o=a}return i}function hr(n,r,t){return function(e,u,i){var a=0,f=Y(e);if("number"==typeof i)n>0?a=i>=0?i:Math.max(i+f,a):f=i>=0?Math.min(i+1,f):i+f+1;else if(t&&i&&f)return e[i=t(e,u)]===u?i:-1;if(u!=u)return(i=r(o.call(e,a,f),$))>=0?i+a:-1;for(i=n>0?a:f-1;i>=0&&i<f;i+=n)if(e[i]===u)return i;return-1}}var yr=hr(1,sr,vr),dr=hr(-1,pr);function gr(n,r,t){var e=(rr(n)?sr:cr)(n,r,t);if(void 0!==e&&-1!==e)return n[e]}function br(n,r,t){var e,u;if(r=Dn(r,t),rr(n))for(e=0,u=n.length;e<u;e++)r(n[e],e,n);else{var i=nn(n);for(e=0,u=i.length;e<u;e++)r(n[i[e]],i[e],n)}return n}function mr(n,r,t){r=Fn(r,t);for(var e=!rr(n)&&nn(n),u=(e||n).length,i=Array(u),o=0;o<u;o++){var a=e?e[o]:o;i[o]=r(n[a],a,n)}return i}function jr(n){var r=function(r,t,e,u){var i=!rr(r)&&nn(r),o=(i||r).length,a=n>0?0:o-1;for(u||(e=r[i?i[a]:a],a+=n);a>=0&&a<o;a+=n){var f=i?i[a]:a;e=t(e,r[f],f,r)}return e};return function(n,t,e,u){var i=arguments.length>=3;return r(n,Dn(t,u,4),e,i)}}var wr=jr(1),_r=jr(-1);function Ar(n,r,t){var e=[];return r=Fn(r,t),br(n,(function(n,t,u){r(n,t,u)&&e.push(n)})),e}function xr(n,r,t){r=Fn(r,t);for(var e=!rr(n)&&nn(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(!r(n[o],o,n))return!1}return!0}function Sr(n,r,t){r=Fn(r,t);for(var e=!rr(n)&&nn(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(r(n[o],o,n))return!0}return!1}function Or(n,r,t,e){return rr(n)||(n=mn(n)),("number"!=typeof t||e)&&(t=0),yr(n,r,t)>=0}var Mr=j((function(n,r,t){var e,u;return D(r)?u=r:(r=En(r),e=r.slice(0,-1),r=r[r.length-1]),mr(n,(function(n){var i=u;if(!i){if(e&&e.length&&(n=Bn(n,e)),null==n)return;i=n[r]}return null==i?i:i.apply(n,t)}))}));function Er(n,r){return mr(n,Tn(r))}function Br(n,r,t){var e,u,i=-1/0,o=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=rr(n)?n:mn(n)).length;a<f;a++)null!=(e=n[a])&&e>i&&(i=e);else r=Fn(r,t),br(n,(function(n,t,e){((u=r(n,t,e))>o||u===-1/0&&i===-1/0)&&(i=n,o=u)}));return i}var Nr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function kr(n){return n?U(n)?o.call(n):S(n)?n.match(Nr):rr(n)?mr(n,kn):mn(n):[]}function Ir(n,r,t){if(null==r||t)return rr(n)||(n=mn(n)),n[qn(n.length-1)];var e=kr(n),u=Y(e);r=Math.max(Math.min(r,u),0);for(var i=u-1,o=0;o<r;o++){var a=qn(o,i),f=e[o];e[o]=e[a],e[a]=f}return e.slice(0,r)}function Tr(n,r){return function(t,e,u){var i=r?[[],[]]:{};return e=Fn(e,u),br(t,(function(r,u){var o=e(r,u,t);n(i,r,o)})),i}}var Dr=Tr((function(n,r,t){W(n,t)?n[t].push(r):n[t]=[r]})),Rr=Tr((function(n,r,t){n[t]=r})),Vr=Tr((function(n,r,t){W(n,t)?n[t]++:n[t]=1})),Fr=Tr((function(n,r,t){n[t?0:1].push(r)}),!0);function Pr(n,r,t){return r in t}var qr=j((function(n,r){var t={},e=r[0];if(null==n)return t;D(e)?(r.length>1&&(e=Dn(e,r[1])),r=on(n)):(e=Pr,r=tr(r,!1,!1),n=Object(n));for(var u=0,i=r.length;u<i;u++){var o=r[u],a=n[o];e(a,o,n)&&(t[o]=a)}return t})),Ur=j((function(n,r){var t,e=r[0];return D(e)?(e=or(e),r.length>1&&(t=r[1])):(r=mr(tr(r,!1,!1),String),e=function(n,t){return!Or(r,t)}),qr(n,e,t)}));function Wr(n,r,t){return o.call(n,0,Math.max(0,n.length-(null==r||t?1:r)))}function zr(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[0]:Wr(n,n.length-r)}function Lr(n,r,t){return o.call(n,null==r||t?1:r)}var $r=j((function(n,r){return r=tr(r,!0,!0),Ar(n,(function(n){return!Or(r,n)}))})),Cr=j((function(n,r){return $r(n,r)}));function Kr(n,r,t,e){A(r)||(e=t,t=r,r=!1),null!=t&&(t=Fn(t,e));for(var u=[],i=[],o=0,a=Y(n);o<a;o++){var f=n[o],c=t?t(f,o,n):f;r&&!t?(o&&i===c||u.push(f),i=c):t?Or(i,c)||(i.push(c),u.push(f)):Or(u,f)||u.push(f)}return u}var Jr=j((function(n){return Kr(tr(n,!0,!0))}));function Gr(n){for(var r=n&&Br(n,Y).length||0,t=Array(r),e=0;e<r;e++)t[e]=Er(n,e);return t}var Hr=j(Gr);function Qr(n,r){return n._chain?tn(r).chain():r}function Xr(n){return br(wn(n),(function(r){var t=tn[r]=n[r];tn.prototype[r]=function(){var n=[this._wrapped];return i.apply(n,arguments),Qr(this,t.apply(tn,n))}})),tn}br(["pop","push","reverse","shift","sort","splice","unshift"],(function(n){var r=t[n];tn.prototype[n]=function(){var t=this._wrapped;return null!=t&&(r.apply(t,arguments),"shift"!==n&&"splice"!==n||0!==t.length||delete t[0]),Qr(this,t)}})),br(["concat","join","slice"],(function(n){var r=t[n];tn.prototype[n]=function(){var n=this._wrapped;return null!=n&&(n=r.apply(n,arguments)),Qr(this,n)}}));var Yr=Xr({__proto__:null,VERSION:n,restArguments:j,isObject:w,isNull:function(n){return null===n},isUndefined:_,isBoolean:A,isElement:function(n){return!(!n||1!==n.nodeType)},isString:S,isNumber:O,isDate:M,isRegExp:E,isError:B,isSymbol:N,isArrayBuffer:k,isDataView:q,isArray:U,isFunction:D,isArguments:L,isFinite:function(n){return!N(n)&&d(n)&&!isNaN(parseFloat(n))},isNaN:$,isTypedArray:X,isEmpty:function(n){if(null==n)return!0;var r=Y(n);return"number"==typeof r&&(U(n)||S(n)||L(n))?0===r:0===Y(nn(n))},isMatch:rn,isEqual:function(n,r){for(var t=[{a:n,b:r}],e=[],i=[];t.length;){var o=t.pop();if(!0!==o){if((n=o.a)===(r=o.b)){if(0!==n||1/n==1/r)continue;return!1}if(null==n||null==r)return!1;if(n!=n){if(r!=r)continue;return!1}var f=typeof n;if("function"!==f&&"object"!==f&&"object"!=typeof r)return!1;n instanceof tn&&(n=n._wrapped),r instanceof tn&&(r=r._wrapped);var c=a.call(n);if(c!==a.call(r))return!1;if(V&&"[object Object]"==c&&q(n)){if(!q(r))return!1;c=un}switch(c){case"[object RegExp]":case"[object String]":if(""+n==""+r)continue;return!1;case"[object Number]":t.push({a:+n,b:+r});continue;case"[object Date]":case"[object Boolean]":if(+n==+r)continue;return!1;case"[object Symbol]":if(u.valueOf.call(n)===u.valueOf.call(r))continue;return!1;case"[object ArrayBuffer]":case un:t.push({a:en(n),b:en(r)});continue}var l="[object Array]"===c;if(!l&&X(n)){if(G(n)!==G(r))return!1;if(n.buffer===r.buffer&&n.byteOffset===r.byteOffset)continue;l=!0}if(!l){if("object"!=typeof n||"object"!=typeof r)return!1;var s=n.constructor,p=r.constructor;if(s!==p&&!(D(s)&&s instanceof s&&D(p)&&p instanceof p)&&"constructor"in n&&"constructor"in r)return!1}for(var v=e.length;v--;)if(e[v]===n){if(i[v]===r)break;return!1}if(!(v>=0))if(e.push(n),i.push(r),t.push(!0),l){if((v=n.length)!==r.length)return!1;for(;v--;)t.push({a:n[v],b:r[v]})}else{var h,y=nn(n);if(v=y.length,nn(r).length!==v)return!1;for(;v--;){if(!W(r,h=y[v]))return!1;t.push({a:n[h],b:r[h]})}}}else e.pop(),i.pop()}return!0},isMap:yn,isWeakMap:dn,isSet:gn,isWeakSet:bn,keys:nn,allKeys:on,values:mn,pairs:function(n){for(var r=nn(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=[r[u],n[r[u]]];return e},invert:jn,functions:wn,methods:wn,extend:An,extendOwn:xn,assign:xn,defaults:Sn,create:function(n,r){var t=On(n);return r&&xn(t,r),t},clone:function(n){return w(n)?U(n)?n.slice():An({},n):n},tap:function(n,r){return r(n),n},get:Nn,has:function(n,r){for(var t=(r=En(r)).length,e=0;e<t;e++){var u=r[e];if(!W(n,u))return!1;n=n[u]}return!!t},mapObject:function(n,r,t){r=Fn(r,t);for(var e=nn(n),u=e.length,i={},o=0;o<u;o++){var a=e[o];i[a]=r(n[a],a,n)}return i},identity:kn,constant:C,noop:Pn,toPath:Mn,property:Tn,propertyOf:function(n){return null==n?Pn:function(r){return Nn(n,r)}},matcher:In,matches:In,times:function(n,r,t){var e=Array(Math.max(0,n));r=Dn(r,t,1);for(var u=0;u<n;u++)e[u]=r(u);return e},random:qn,now:Un,escape:Ln,unescape:$n,templateSettings:Cn,template:function(n,r,t){!r&&t&&(r=t),r=Sn({},r,tn.templateSettings);var e=RegExp([(r.escape||Kn).source,(r.interpolate||Kn).source,(r.evaluate||Kn).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,(function(r,t,e,o,a){return i+=n.slice(u,a).replace(Gn,Hn),u=a+r.length,t?i+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),r})),i+="';\n";var o,a=r.variable;if(a){if(!Qn.test(a))throw new Error("variable is not a bare identifier: "+a)}else i="with(obj||{}){\n"+i+"}\n",a="obj";i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{o=new Function(a,"_",i)}catch(n){throw n.source=i,n}var f=function(n){return o.call(this,n,tn)};return f.source="function("+a+"){\n"+i+"}",f},result:function(n,r,t){var e=(r=En(r)).length;if(!e)return D(t)?t.call(n):t;for(var u=0;u<e;u++){var i=null==n?void 0:n[r[u]];void 0===i&&(i=t,u=e),n=D(i)?i.call(n):i}return n},uniqueId:function(n){var r=++Xn+"";return n?n+r:r},chain:function(n){var r=tn(n);return r._chain=!0,r},iteratee:Vn,partial:Zn,bind:nr,bindAll:er,memoize:function(n,r){var t=function(e){var u=t.cache,i=""+(r?r.apply(this,arguments):e);return W(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return t.cache={},t},delay:ur,defer:ir,throttle:function(n,r,t){var e,u,i,o,a=0;t||(t={});var f=function(){a=!1===t.leading?0:Un(),e=null,o=n.apply(u,i),e||(u=i=null)},c=function(){var c=Un();a||!1!==t.leading||(a=c);var l=r-(c-a);return u=this,i=arguments,l<=0||l>r?(e&&(clearTimeout(e),e=null),a=c,o=n.apply(u,i),e||(u=i=null)):e||!1===t.trailing||(e=setTimeout(f,l)),o};return c.cancel=function(){clearTimeout(e),a=0,e=u=i=null},c},debounce:function(n,r,t){var e,u,i,o,a,f=function(){var c=Un()-u;r>c?e=setTimeout(f,r-c):(e=null,t||(o=n.apply(a,i)),e||(i=a=null))},c=j((function(c){return a=this,i=c,u=Un(),e||(e=setTimeout(f,r),t&&(o=n.apply(a,i))),o}));return c.cancel=function(){clearTimeout(e),e=i=a=null},c},wrap:function(n,r){return Zn(r,n)},negate:or,compose:function(){var n=arguments,r=n.length-1;return function(){for(var t=r,e=n[r].apply(this,arguments);t--;)e=n[t].call(this,e);return e}},after:function(n,r){return function(){if(--n<1)return r.apply(this,arguments)}},before:ar,once:fr,findKey:cr,findIndex:sr,findLastIndex:pr,sortedIndex:vr,indexOf:yr,lastIndexOf:dr,find:gr,detect:gr,findWhere:function(n,r){return gr(n,In(r))},each:br,forEach:br,map:mr,collect:mr,reduce:wr,foldl:wr,inject:wr,reduceRight:_r,foldr:_r,filter:Ar,select:Ar,reject:function(n,r,t){return Ar(n,or(Fn(r)),t)},every:xr,all:xr,some:Sr,any:Sr,contains:Or,includes:Or,include:Or,invoke:Mr,pluck:Er,where:function(n,r){return Ar(n,In(r))},max:Br,min:function(n,r,t){var e,u,i=1/0,o=1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=rr(n)?n:mn(n)).length;a<f;a++)null!=(e=n[a])&&e<i&&(i=e);else r=Fn(r,t),br(n,(function(n,t,e){((u=r(n,t,e))<o||u===1/0&&i===1/0)&&(i=n,o=u)}));return i},shuffle:function(n){return Ir(n,1/0)},sample:Ir,sortBy:function(n,r,t){var e=0;return r=Fn(r,t),Er(mr(n,(function(n,t,u){return{value:n,index:e++,criteria:r(n,t,u)}})).sort((function(n,r){var t=n.criteria,e=r.criteria;if(t!==e){if(t>e||void 0===t)return 1;if(t<e||void 0===e)return-1}return n.index-r.index})),"value")},groupBy:Dr,indexBy:Rr,countBy:Vr,partition:Fr,toArray:kr,size:function(n){return null==n?0:rr(n)?n.length:nn(n).length},pick:qr,omit:Ur,first:zr,head:zr,take:zr,initial:Wr,last:function(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[n.length-1]:Lr(n,Math.max(0,n.length-r))},rest:Lr,tail:Lr,drop:Lr,compact:function(n){return Ar(n,Boolean)},flatten:function(n,r){return tr(n,r,!1)},without:Cr,uniq:Kr,unique:Kr,union:Jr,intersection:function(n){for(var r=[],t=arguments.length,e=0,u=Y(n);e<u;e++){var i=n[e];if(!Or(r,i)){var o;for(o=1;o<t&&Or(arguments[o],i);o++);o===t&&r.push(i)}}return r},difference:$r,unzip:Gr,transpose:Gr,zip:Hr,object:function(n,r){for(var t={},e=0,u=Y(n);e<u;e++)r?t[n[e]]=r[e]:t[n[e][0]]=n[e][1];return t},range:function(n,r,t){null==r&&(r=n||0,n=0),t||(t=r<n?-1:1);for(var e=Math.max(Math.ceil((r-n)/t),0),u=Array(e),i=0;i<e;i++,n+=t)u[i]=n;return u},chunk:function(n,r){if(null==r||r<1)return[];for(var t=[],e=0,u=n.length;e<u;)t.push(o.call(n,e,e+=r));return t},mixin:Xr,default:tn});return Yr._=Yr,Yr}));
7;
8/* @license GPL-2.0-or-later https://git.drupalcode.org/project/once/-/raw/v1.0.1/LICENSE.md */
9/*! @drupal/once - v1.0.1 - 2021-06-12 */
10var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}();
11
12;
13/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
14window.drupalTranslations={"strings":{"":{"Edit":"Modifier"}},"pluralFormula":{"0":0,"1":0,"default":1}};;
15window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i<fragments.length;i++)fragments[i]=Drupal.stringReplace(fragments[i],args,keys.slice(0));}return fragments.join(args[key]);};Drupal.t=function(str,args,options){options=options||{};options.context=options.context||'';if(drupalTranslations?.strings?.[options.context]?.[str])str=drupalTranslations.strings[options.context][str];if(args)str=Drupal.formatString(str,args);return str;};Drupal.url=function(path){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+path;};Drupal.url.toAbsolute=function(url){const urlParsingNode=document.createElement('a');try{url=decodeURIComponent(url);}catch(e){}urlParsingNode.setAttribute('href',url);return urlParsingNode.href;};Drupal.url.isLocal=function(url){let absoluteUrl=Drupal.url.toAbsolute(url);let {protocol}=window.location;if(protocol==='http:'&&absoluteUrl.startsWith('https:'))protocol='https:';let baseUrl=`${protocol}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl);}catch(e){}try{baseUrl=decodeURIComponent(baseUrl);}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`);};Drupal.formatPlural=function(count,singular,plural,args,options){args=args||{};args['@count']=count;const pluralDelimiter=drupalSettings.pluralDelimiter;const translations=Drupal.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;
15if(drupalTranslations?.pluralFormula)index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default;else{if(args['@count']!==1)index=1;}return translations[index];};Drupal.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,'/');};Drupal.deprecationError=({message})=>{if(drupalSettings.suppressDeprecationErrors===false&&console?.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(typeof Drupal.theme?.[func]==='function')return Drupal.theme[func](...args);Drupal.throwError(new TypeError(`Drupal.theme.${func} must be function type.`));};Drupal.theme.placeholder=function(str){return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;};Drupal.elementIsVisible=function(elem){return !!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};Drupal.elementIsHidden=function(elem){return !Drupal.elementIsVisible(elem);};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);;
16if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);;
17Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};;
18!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.14.1"});
19
20/*!
21 * jQuery UI :data 1.14.1
22 * https://jqueryui.com
23 *
24 * Copyright OpenJS Foundation and other contributors
25 * Released under the MIT license.
26 * https://jquery.org/license
27 */
28!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo(function(n){return function(t){return!!e.data(t,n)}})})});
29
30/*!
31 * jQuery UI Disable Selection 1.14.1
32 * https://jqueryui.com
33 *
34 * Copyright OpenJS Foundation and other contributors
35 * Released under the MIT license.
36 * https://jquery.org/license
37 */
38!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var n});
39
40/*!
41 * jQuery UI Legacy jQuery Core patches 1.14.1
42 * https://jqueryui.com
43 *
44 * Copyright OpenJS Foundation and other contributors
45 * Released under the MIT license.
46 * https://jquery.org/license
47 *
48 */
49!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";e.escapeSelector||(e.escapeSelector=function(e){return CSS.escape(e+"")}),e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter(function(e){return e%2==0}
vendor: 4,906 bytes, lines 49-101
49)},odd:function(){return this.filter(function(e){return e%2==1})}})});
50
51/*!
52 * jQuery UI Scroll Parent 1.14.1
53 * https://jqueryui.com
54 *
55 * Copyright OpenJS Foundation and other contributors
56 * Released under the MIT license.
57 * https://jquery.org/license
58 */
59!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.scrollParent=function(e){var s=this.css("position"),n="absolute"===s,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==s&&i.length?i:t(this[0].ownerDocument||document)}});
60
61/*!
62 * jQuery UI Unique ID 1.14.1
63 * https://jqueryui.com
64 *
65 * Copyright OpenJS Foundation and other contributors
66 * Released under the MIT license.
67 * https://jquery.org/license
68 */
69!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],i):i(jQuery)}(function(i){"use strict";return i.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&i(this).removeAttr("id")})}});var e});
70
71/*!
72 * jQuery UI Focusable 1.14.1
73 * https://jqueryui.com
74 *
75 * Copyright OpenJS Foundation and other contributors
76 * Released under the MIT license.
77 * https://jquery.org/license
78 */
79!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.focusable=function(t,i){var s,n,u,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=(s=t.parentNode).name,!(!t.href||!n||"map"!==s.nodeName.toLowerCase())&&((u=e("img[usemap='#"+n+"']")).length>0&&u.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(a=!t.disabled)&&(o=e(t).closest("fieldset")[0])&&(a=!o.disabled):a="a"===r&&t.href||i,a&&e(t).is(":visible")&&"visible"===e(t).css("visibility"))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable});
80
81/*!
82 * jQuery UI Keycode 1.14.1
83 * https://jqueryui.com
84 *
85 * Copyright OpenJS Foundation and other contributors
86 * Released under the MIT license.
87 * https://jquery.org/license
88 */
89!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});
90
91!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.plugin={add:function(n,i,t){var u,o=e.ui[n].prototype;for(u in t)o.plugins[u]=o.plugins[u]||[],o.plugins[u].push([i,t[u]])},call:function(e,n,i,t){var u,o=e.plugins[n];if(o&&(t||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(u=0;u<o.length;u++)e.options[o[u][0]]&&o[u][1].apply(e.element,i)}}});
92
93/*!
94 * jQuery UI Widget 1.14.1
95 * https://jqueryui.com
96 *
97 * Copyright OpenJS Foundation and other contributors
98 * Released under the MIT license.
99 * https://jquery.org/license
100 */
101!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";var e,i=0,s=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove");e(i)}),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var u=l+"-"+e;return s||(s=i,i=t.Widget),Array.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr.pseudos[u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,function(t,e){r[t]="function"==typeof e?function(){function s(){return i.prototype[t].apply(this,arguments)}function n(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=s,this._superApply=n,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o}
vendor: 4,414 bytes, line 101
101,t.widget.extend=function(e){for(var i,o,a=n.call(arguments,1),r=0,l=a.length;r<l;r++)for(i in a[r])o=a[r][i],s.call(a[r],i)&&void 0!==o&&(t.isPlainObject(o)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],o):t.widget.extend({},o):e[i]=o);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=n.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,n=t.data(this,s);return"instance"===o?(l=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,r))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,s);e?(e.option(o||{}),e._init&&e._init()):t.data(this,s,new i(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;o<s.length-1;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],s=this;function n(){var i=[];e.element.each(function(e,n){t.map(s.classesElementLookup,function(t){return t}).some(function(t){return t.is(n)})||i.push(n)}),s._on(t(i),{remove:"_untrackClassesElement"})}function o(o,a){var r,l;for(l=0;l<o.length;l++)r=s.classesElementLookup[o[l]]||t(),e.add?(n(),r=t(t.uniqueSort(r.get().concat(e.element.get())))):r=t(r.not(e.element).get()),s.classesElementLookup[o[l]]=r,i.push(o[l]),a&&e.classes[o[l]]&&i.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))}),this._off(t(e.target))}
vendor: 9,887 bytes, lines 101-141
101,_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,h=l[2];h?n.on(u,h,r):i.on(u,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!("function"==typeof a&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){var a;"string"==typeof n&&(n={effect:n});var r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})?n={duration:n}:!0===n&&(n={}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget});
102
103/*!
104 * jQuery UI Labels 1.14.1
105 * https://jqueryui.com
106 *
107 * Copyright OpenJS Foundation and other contributors
108 * Released under the MIT license.
109 * https://jquery.org/license
110 */
111!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.labels=function(){var t,s,e,i,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(e=this.attr("id"))&&(n=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),s="label[for='"+CSS.escape(e)+"']",i=i.add(n.find(s).addBack(s))),this.pushStack(i)):this.pushStack([])}});
112
113/*!
114 * jQuery UI Controlgroup 1.14.1
115 * https://jqueryui.com
116 *
117 * Copyright OpenJS Foundation and other contributors
118 * Released under the MIT license.
119 * https://jquery.org/license
120 */
121!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../widget"],t):t(jQuery)}(function(t){"use strict";var e=/ui-corner-([a-z]){2,6}/g;return t.widget("ui.controlgroup",{version:"1.14.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,function(n,o){var s,l={};if(o)return"controlgroupLabel"===n?((s=e.element.find(o)).each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(s,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(s.get()))):void(t.fn[n]&&(l=e["_"+n+"Options"]?e["_"+n+"Options"]("middle"):{classes:{}},e.element.find(o).each(function(){var o=t(this),s=o[n]("instance"),r=t.widget.extend({},l);if("button"!==n||!o.parent(".ui-spinner").length){s||(s=o[n]()[n]("instance")),s&&(r.classes=e._resolveClassesValues(r.classes,s)),o[n](r);var u=o[n]("widget");t.data(u[0],"ui-controlgroup-data",s||o[n]("instance")),i.push(u[0])}})))}),this.childWidgets=t(t.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this).data("ui-controlgroup-data");i&&i[e]&&i[e]()})},_updateCornerClass:function(t,e){var i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var o={};return t.each(i,function(t){var s=n.options.classes[t]||"";s=String.prototype.trim.call(s.replace(e,"")),o[t]=(s+" "+i[t]).replace(/\s+/g," ")}),o},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,n){var o=e[n]().data("ui-controlgroup-data");if(o&&i["_"+o.widgetName+"Options"]){var s=i["_"+o.widgetName+"Options"](1===e.length?"only":n);s.classes=i._resolveClassesValues(s.classes,o),o.element[o.widgetName](s)}else i._updateCornerClass(e[n](),n)}),this._callChildMethod("refresh"))}})});
122
123/*!
124 * jQuery UI Form Reset Mixin 1.14.1
125 * https://jqueryui.com
126 *
127 * Copyright OpenJS Foundation and other contributors
128 * Released under the MIT license.
129 * https://jquery.org/license
130 */
131!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout(function(){var r=t.data("ui-form-reset-instances");e.each(r,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=e(this.element.prop("form")),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}}});
132
133/*!
134 * jQuery UI Mouse 1.14.1
135 * https://jqueryui.com
136 *
137 * Copyright OpenJS Foundation and other contributors
138 * Released under the MIT license.
139 * https://jquery.org/license
140 */
141!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../widget"],e):e(jQuery)}(function(e){"use strict";var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.14.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(s){if(!0===e.data(s.target,t.widgetName+".preventClickEvent"))return e.removeData(s.target,t.widgetName+".preventClickEvent"),s.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(s){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(s),this._mouseDownEvent=s;var i=this,o=1===s.which,n="string"==typeof this.options.cancel&&e(s.target).closest(this.options.cancel).length;
vendor: 4,148 bytes, lines 141-151
141return!(o&&!n&&this._mouseCapture(s))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(s)&&this._mouseDelayMet(s)&&(this._mouseStarted=!1!==this._mouseStart(s),!this._mouseStarted)?(s.preventDefault(),!0):(!0===e.data(s.target,this.widgetName+".preventClickEvent")&&e.removeData(s.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),s.preventDefault(),t=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved&&!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e);return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(s){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,s.target===this._mouseDownEvent.target&&e.data(s.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(s)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,s.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});
142
143/*!
144 * jQuery UI Checkboxradio 1.14.1
145 * https://jqueryui.com
146 *
147 * Copyright OpenJS Foundation and other contributors
148 * Released under the MIT license.
149 * https://jquery.org/license
150 */
151!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../form-reset-mixin","../labels","../widget"],e):e(jQuery)}(function(e){"use strict";return e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.14.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var i,t,s,n=this._super()||{};return this._readType(),t=this.element.labels(),this.label=e(t[t.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",(s=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=s.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(n.label=this.originalLabel),null!=(i=this.element[0].disabled)&&(n.disabled=i),n},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var i=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===i&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+i+" and element.type="+this.t
vendor: 1,263 bytes, line 151
151ype)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var i=this.element[0].name,t="input[name='"+CSS.escape(i)+"']";return i?(this.form.length?e(this.form[0].elements).filter(t):e(t).filter(function(){return 0===e(e(this).prop("form")).length})).not(this.element):e([])},_toggleClasses:function(){var i=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",i),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",i)._toggleClass(this.icon,null,"ui-icon-blank",!i),"radio"===this.type&&this._getRadioGroup().each(function(){var i=e(this).checkboxradio("instance");i&&i._removeClass(i.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,i){if("label"!==e||i){if(this._super(e,i),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",i),void(this.element[0].disabled=i);this.refresh()}},_updateIcon:function(i){var t="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>
vendor: 6,735 bytes, lines 151-161
151"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(t+=i?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,i?"ui-icon-blank":"ui-icon-check")):t+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",t),i||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,i=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),i!==this.options.disabled&&this._setOptions({disabled:i})}}]),e.ui.checkboxradio});
152
153/*!
154 * jQuery UI Draggable 1.14.1
155 * https://jqueryui.com
156 *
157 * Copyright OpenJS Foundation and other contributors
158 * Released under the MIT license.
159 * https://jquery.org/license
160 */
161!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(t){"use strict";return t.widget("ui.draggable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var s=this.options;return!(this.helper||s.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===s.iframeFix?"iframe":s.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var s=this.document[0].activeElement;t(e.target).closest(s).length||t(s).trigger("blur")},_mouseStart:function(e){var s=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,s){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!s){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var s=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==s._trigger("stop",e)&&s._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var s=this.options,i="function"==typeof s.helper,o=i?t(s.helper.apply(this.element[0],[e])):"clone"===s.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===s.appendTo?this.element[0].parentNode:s.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}
vendor: 4,612 bytes, line 161
161),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),s=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==s&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,s,i,o=this.options,n=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(s=t(o.containment))[0])&&(e=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=o.containment:this.containment=[0,0,t(n).width()-this.helperProportions.width-this.margins.left,(t(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var s="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*s,left:e.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*s}},_generatePosition:function(t,e){var s,i,o,n,r=this.options,l=this._isRootNode(this.scrollParent[0]),a=t.pageX,h=t.pageY;return l&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),s=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):s=this.containment,t.pageX-this.offset.click.left<s[0]&&(a=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(h=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(a=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3]&&(h=s[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=s?o-this.offset.click.top>=s[1]||o-this.offset.click.top>s[3]?o:o-this.offset.click.top>=s[1]?o-r.grid[1]:o+r.grid[1]:o,n=r.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)
vendor: 4,883 bytes, line 161
161/r.grid[0])*r.grid[0]:this.originalPageX,a=s?n-this.offset.click.left>=s[0]||n-this.offset.click.left>s[2]?n:n-this.offset.click.left>=s[0]?n-r.grid[0]:n+r.grid[0]:n),"y"===r.axis&&(a=this.originalPageX),"x"===r.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:l?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,s,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[s,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,s,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,s,i){var o=t.extend({},s,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each(function(){var s=t(this).sortable("instance");s&&!s.options.disabled&&(i.sortables.push(s),s.refreshPositions(),s._trigger("activate",e,o))})},stop:function(e,s,i){var o=t.extend({},s,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,o))})},drag:function(e,s,i){t.each(i.sortables,function(){var o=!1,n=this;n.positionAbs=i.positionAbs,n.helperProportions=i.helperProportions,n.offset.click=i.offset.click,n._intersectsWith(n.containerCache)&&(o=!0,t.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==n&&this._intersectsWith(this.containerCache)&&t.contains(n.element[0],this.element[0])&&(o=!1),o})),o?(n.isOver||(n.isOver=1,i._parent=s.helper.parent(),n.currentItem=s.helper.appendTo(n.element).data("ui-sortable-item",!0),n.options._helper=n.options.helper,n.options.helper=function(){return s.helper[0]},e.target=n.currentItem[0],n._mouseCapture(e,!0),n._mouseStart(e,!0,!0),n.offset.click.top=i.offset.click.top,n.offset.click.left=i.offset.click.left,n.offset.parent.left-=i.offset.parent.left-n.offset.parent.left,n.offset.parent.top-=i.offset.parent.top-n.offset.parent.top,i._trigger("toSortable",e),i.dropped=n.element,t.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,n.fromOutside=i),n.currentItem&&(n._mouseDrag(e),s.position=n.position)):n.isOver&&(n.isOver=0,n.cancelHelperRemoval=!0,n.options._revert=n.options.revert,n.options.revert=!1,n._trigger("out",e,n._uiHash(n)),n._mouseStop(e,!0),n.options.revert=n.options._revert,n.options.helper=n.options._helper,n.placeholder&&n.placeholder.remove(),s.helper.appendTo(i._parent),i._refreshOffsets(e),s.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,s,i){var o=t("body"),n=i.options;o.css("cursor")&&(n._cursor=o.css("cursor")),o.css("cursor",n.cursor)},stop:function(e,s,i){var o=i.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("opacity")&&(n._opacity=o.css("opacity")),o.css("opacity",n.opacity)},stop:function(e,s,i){var o=i.options;o._opacity&&t(s.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(e,s,i){var o=i.options,n=!1,r=i.scrollParentNotHidden[0],l=i.document[0];r!==l&&"HTML"!==r.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+r.offsetHeight-e.pageY<o.scrollSensitivity?r.scrollTop=n=r.scrollTop+o.scrollSpeed:e.pageY-i.overflowOffset.top<o.scrollSensitivity&&(r.scrollTop=n=r.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+r.offsetWidth-e.pageX<o.scrollSensitivity?r.scrollLeft=n=r.scrollLeft+o.scrollSpeed:e.pageX-i.overflowOffset.left<o.scrollSensitivity&&(r.scrollLeft=n=r.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t
vendor: 35,320 bytes, lines 161-191
161(l).scrollTop()<o.scrollSensitivity?n=t(l).scrollTop(t(l).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(l).scrollTop())<o.scrollSensitivity&&(n=t(l).scrollTop(t(l).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(l).scrollLeft()<o.scrollSensitivity?n=t(l).scrollLeft(t(l).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(l).scrollLeft())<o.scrollSensitivity&&(n=t(l).scrollLeft(t(l).scrollLeft()+o.scrollSpeed)))),!1!==n&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,s,i){var o=i.options;i.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var e=t(this),s=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:s.top,left:s.left})})},drag:function(e,s,i){var o,n,r,l,a,h,p,c,f,d,g=i.options,u=g.snapTolerance,m=s.offset.left,v=m+i.helperProportions.width,_=s.offset.top,P=_+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)h=(a=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,c=(p=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<a-u||m>h+u||P<p-u||_>c+u||!t.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==g.snapMode&&(o=Math.abs(p-P)<=u,n=Math.abs(c-_)<=u,r=Math.abs(a-v)<=u,l=Math.abs(h-m)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h}).left)),d=o||n||r||l,"outer"!==g.snapMode&&(o=Math.abs(p-_)<=u,n=Math.abs(c-P)<=u,r=Math.abs(a-m)<=u,l=Math.abs(h-v)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||n||r||l||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||n||r||l||d)}}),t.ui.plugin.add("draggable","stack",{start:function(e,s,i){var o,n=i.options,r=t.makeArray(t(n.stack)).sort(function(e,s){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(s).css("zIndex"),10)||0)});r.length&&(o=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each(function(e){t(this).css("zIndex",o+e)}),this.css("zIndex",o+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("zIndex")&&(n._zIndex=o.css("zIndex")),o.css("zIndex",n.zIndex)},stop:function(e,s,i){var o=i.options;o._zIndex&&t(s.helper).css("zIndex",o._zIndex)}}),t.ui.draggable});
162
163/*!
164 * jQuery UI Resizable 1.14.1
165 * https://jqueryui.com
166 *
167 * Copyright OpenJS Foundation and other contributors
168 * Released under the MIT license.
169 * https://jquery.org/license
170 */
171!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../disable-selection","../plugin","../version","../widget"],t):t(jQuery)}(function(t){"use strict";return t.widget("ui.resizable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){var s,h=!1,n=t(e).css("overflow");if("hidden"===n)return!1;if("scroll"===n)return!0;if(e[s=i&&"left"===i?"scrollLeft":"scrollTop"]>0)return!0;try{e[s]=1,h=e[s]>0,e[s]=0}catch(t){}return h},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,i,s,h,n,o=this.options,a=this;if(this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;i<s.length;i++)h="ui-resizable-"+(e=String.prototype.trim.call(s[i])),n=t("<div>"),this._addClass(n,"ui-resizable-handle "+h),n.css({zIndex:o.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(e){var i,s,h,n;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),n=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),h=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(h,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var i,s,h=!1;for(i in this.handles)((s=t(this.handles[i])[0])===e.target||t.contains(s,e.target))&&(h=!0);return!this.options.disabled&&h},_mouseStart:function(e){var i,s,h,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this._helper||(n=this._calculateAdjustedElementDimensions(a)),this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width,height:n.height},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:n.width,height:n.height},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,h=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===h?this.axis+"-resize":h),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,h=this.originalMousePosition,n=this.axis,o=e.pageX-h.left||0,a=e.pageY-h.top||0,l=this._change[n];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,o,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,s,h,n,o,a,l,r=this.options,p=this;return this._helper&&(h=(s=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:p.sizeDiff.height,n=s?0:p.sizeDiff.width,o={width:p.helper.width()-n,height:p.helper.height()-h},a=parseFloat(p.element.css("left"))+(p.position.left-p.originalPosition.left)||null,l=parseFloat(p.element.css("top"))+(p.position.top-p.originalPosition.top)||null,r.animate||this.element.css(t.extend(o,{top:l,left:a})),p.helper.height(p.size.height),p.helper.width(p.size.width),this._helper&&!r.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.helper.css(t),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px",this.helper.width(t.width)),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px",this.helper.height(t.height)),t},_updateVirtualBoundaries:function(t){var e,i,s,h,n,o=this.options;n={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=n.minHeight*this.aspectRatio,s=n.minWidth/this.aspectRatio,i=n.maxHeight*this.aspectRatio,h=n.maxWidth/this.aspectRatio,e>n.minWidth&&(n.minWidth=e),s>n.minHeight&&(n.minHeight=s),i<n.maxWidth&&(n.maxWidth=i),h<n.maxHeight&&(n.maxHeight=h)),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,h=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,n=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,o=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,r=/sw|nw|w/.test(i),p=/nw|ne|n/.test(i);return n&&(t.width=e.minWidth),o&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),h&&(t.height=e.maxHeight),n&&r&&(t.left=a-e.minWidth),s&&r&&(t.left=a-e.maxWidth),o&&p&&(t.top=l-e.minHeight),h&&p&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],h=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(h[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_calculateAdjustedElementDimensions:function(t){var e,i,s,h=t.get(0);return"content-box"!==t.css("box-sizing")||!this._hasScroll(h)&&!this._hasScroll(h,"left")?{height:parseFloat(t.css("height")),width:parseFloat(t.css("width"))}:(e=parseFloat(h.style.width),i=parseFloat(h.style.height),s=this._getPaddingPlusBorderDimensions(t),e=isNaN(e)?this._getElementTheoreticalSize(t,s,"width"):e,{height:i=isNaN(i)?this._getElementTheoreticalSize(t,s,"height"):i,width:e})},_getElementTheoreticalSize:function(t,e,i){return Math.max(0,Math.ceil(t.get(0)["offset"+i[0].toUpperCase()+i.slice(1)]-e[i]-.5))||0},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,h=i._proportionallyResizeElements,n=h.length&&/textarea/i.test(h[0].nodeName),o=n&&i._hasScroll(h[0],"left")?0:i.sizeDiff.height,a=n?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-o},r=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,p=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,p&&r?{top:p,left:r}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};h&&h.length&&t(h[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,h,n,o,a,l=t(this).resizable("instance"),r=l.options,p=l.element,d=r.containment,g=d instanceof t?d.get(0):/parent/.test(d)?p.parent().get(0):d;g&&(l.containerElement=t(g),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(g),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){i[t]=l._num(e.css("padding"+s))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=l.containerOffset,h=l.containerSize.height,n=l.containerSize.width,o=l._hasScroll(g,"left")?g.scrollWidth:n,a=l._hasScroll(g)?g.scrollHeight:h,l.parentData={element:g,left:s.left,top:s.top,width:o,height:a}))},resize:function(e){var i,s,h,n,o=t(this).resizable("instance"),a=o.options,l=o.containerOffset,r=o.position,p=o._aspectRatio||e.shiftKey,d={top:0,left:0},g=o.containerElement,u=!0;g[0]!==document&&/static/.test(g.css("position"))&&(d=l),r.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-d.left),p&&(o.size.height=o.size.width/o.aspectRatio,u=!1),o.position.left=a.helper?l.left:0),r.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),p&&(o.size.width=o.size.height*o.aspectRatio,u=!1),o.position.top=o._helper?l.top:0),h=o.containerElement.get(0)===o.element.parent().get(0),n=/relative|absolute/.test(o.containerElement.css("position")),h&&n?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),i=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-d.left:o.offset.left-l.left)),s=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-d.top:o.offset.top-l.top)),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,p&&(o.size.height=o.size.width/o.aspectRatio,u=!1)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,p&&(o.size.width=o.size.height*o.aspectRatio,u=!1)),u||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,h=e.containerPosition,n=e.containerElement,o=t(e.helper),a=o.offset(),l=o.outerWidth()-e.sizeDiff.width,r=o.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r}),e._helper&&!i.animate&&/static/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var i=t(this),s=e._calculateAdjustedElementDimensions(i);i.data("ui-resizable-alsoresize",{width:s.width,height:s.height,left:parseFloat(i.css("left")),top:parseFloat(i.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"),h=s.options,n=s.originalSize,o=s.originalPosition,a={height:s.size.height-n.height||0,width:s.size.width-n.width||0,top:s.position.top-o.top||0,left:s.position.left-o.left||0};t(h.alsoResize).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),h={},n=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(n,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&i>=0&&(h[e]=i||null)}),e.css(h)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!0===t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,h=i.size,n=i.originalSize,o=i.originalPosition,a=i.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,r=l[0]||1,p=l[1]||1,d=Math.round((h.width-n.width)/r)*r,g=Math.round((h.height-n.height)/p)*p,u=n.width+d,c=n.height+g,f=s.maxWidth&&s.maxWidth<u,m=s.maxHeight&&s.maxHeight<c,z=s.minWidth&&s.minWidth>u,_=s.minHeight&&s.minHeight>c;s.grid=l,z&&(u+=r),_&&(c+=p),f&&(u-=r),m&&(c-=p),/^(se|s|e)$/.test(a)?(i.size.width=u,i.size.height=c):/^(ne)$/.test(a)?(i.size.width=u,i.size.height=c,i.position.top=o.top-g):/^(sw)$/.test(a)?(i.size.width=u,i.size.height=c,i.position.left=o.left-d):((c-p<=0||u-r<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),c-p>0?(i.size.height=c,i.position.top=o.top-g):(c=p-e.height,i.size.height=c,i.position.top=o.top+n.height-c),u-r>0?(i.size.width=u,i.position.left=o.left-d):(u=r-e.width,i.size.width=u,i.position.left=o.left+n.width-u))}}),t.ui.resizable});
172
173/*!
174 * jQuery UI Button 1.14.1
175 * https://jqueryui.com
176 *
177 * Copyright OpenJS Foundation and other contributors
178 * Released under the MIT license.
179 * https://jquery.org/license
180 */
181!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./controlgroup","./checkboxradio","../keycode","../widget"],t):t(jQuery)}(function(t){"use strict";var i;return t.widget("ui.button",{version:"1.14.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,i=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(i.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(i.label=this.originalLabel),i},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(i){i.keyCode===t.ui.keyCode.SPACE&&(i.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(i,o){var s="iconPosition"!==i,n=s?this.options.iconPosition:o,e="top"===n||"bottom"===n;this.icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,o),this._attachIcon(n),e?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var i=void 0===t.showLabel?this.options.showLabel:t.showLabel,o=void 0===t.icon?this.options.icon:t.icon;i||o||(t.showLabel=!0),this._super(t)},_setOption:function(t,i){"icon"===t&&(i?this._updateIcon(t,i):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,i),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!i),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(i):(this.element.html(i),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,i),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",i),this.element[0].disabled=i,i&&this.element.trigger("blur"))},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!0===t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,i){"text"!==t?("showLabel"===t&&(this.options.text=i),"icon"===t&&(this.options.icons.primary=i),"icons"===t&&(i.primary?(this._super("icon",i.primary),this._super("iconPosition","beginning")):i.secondary&&(this._super("icon",i.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",i)}}),t.fn.button=(i=t.fn.button,function(o){var s="string"==typeof o,n=Array.prototype.slice.call(arguments,1),e=this;return s?this.length||"instance"!==o?this.each(function(){var i,s=t(this).attr("type"),h="checkbox"!==s&&"radio"!==s?"button":"checkboxradio",a=t.data(this,"ui-"+h);return"instance"===o?(e=a,!1):a?"function"!=typeof a[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for button widget instance"):(i=a[o].apply(a,n))!==a&&void 0!==i?(e=i&&i.jquery?e.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on button prior to initialization; attempted to call method '"+o+"'")}):e=void 0:(n.length&&(o=t.widget.extend.apply(null,[o].concat(n))),this.each(function(){var s=t(this).attr("type"),n="checkbox"!==s&&"radio"!==s?"button":"checkboxradio",e=t.data(this,"ui-"+n);if(e)e.option(o||{}),e._init&&e._init();else{if("button"===n)return void i.call(t(this),o);t(this).checkboxradio(t.extend({icon:!1},o))}})),e}),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button});
182
183/*!
184 * jQuery UI Dialog 1.14.1
185 * https://jqueryui.com
186 *
187 * Copyright OpenJS Foundation and other contributors
188 * Released under the MIT license.
189 * https://jquery.org/license
190 */
191!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./button","./draggable","./mouse","./resizable","../focusable","../keycode","../position","../tabbable","../unique-id","../version","../widget"],i):i(jQuery)}(function(i){"use strict";return i.widget("ui.dialog",{version:"1.14.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=i(this).css(t).offset().top;e<0&&i(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,uiDialogTitleHeadingLevel:0,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&i.fn.draggable&&this._makeDraggable(),this.options.resizable&&i.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?i(t):this.document.find(t||"body").eq(0)},_destroy:function(){var i,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(i=t.parent.children().eq(t.index)).length&&i[0]!==this.element[0]?i.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:i.noop,enable:i.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||i(this.document[0].activeElement).trigger("blur"),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var o=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+i(this).css("z-index")}).get(),n=Math.max.apply(null,s);return n>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",n+1),o=!0),o&&!e&&this._trigger("focus",t),o},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=i(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var i=this._focusedElement;i||(i=this.element.find("[autofocus]")),i.length||(i=this.element.find(":tabbable")),i.length||(i=this.uiDialogButtonPane.find(":tabbable")),i.length||(i=this.uiDialogTitlebarClose.filter(":tabbable")),i.length||(i=this.uiDialog),i.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=this.document[0].activeElement;this.uiDialog[0]===t||i.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(i){i.preventDefault(),this._restoreTabbableFocus()},_createWrapper:function(){this.uiDialog=i("<div>").hide().attr({tabIndex:-1,role:"dialog","aria-modal":this.options.modal?"true":null}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===i.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===i.ui.keyCode.TAB&&!t.isDefaultPrevented()){var e=this.uiDialog.find(":tabbable"),o=e.first(),s=e.last();t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==o[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){o.trigger("focus")}),t.preventDefault())}},mousedown:function(i){this._moveToTop(i)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=i("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){i(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=i("<button type='button'></button>").button({label:i("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(i){i.preventDefault(),this.close(i)}});var e=Number.isInteger(this.options.uiDialogTitleHeadingLevel)&&this.options.uiDialogTitleHeadingLevel>0&&this.options.uiDialogTitleHeadingLevel<=6?"h"+this.options.uiDialogTitleHeadingLevel:"span";t=i("<"+e+">").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prepe
vendor: 7,450 bytes, lines 191-198
191ndTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(i){this.options.title?i.text(this.options.title):i.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=i("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=i("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,e=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),i.isEmptyObject(e)||Array.isArray(e)&&!e.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(i.each(e,function(e,o){var s,n;o="function"==typeof o?{click:o,text:e}:o,o=i.extend({type:"button"},o),s=o.click,n={icon:o.icon,iconPosition:o.iconPosition,showLabel:o.showLabel,icons:o.icons,text:o.text},delete o.click,delete o.icon,delete o.iconPosition,delete o.showLabel,delete o.icons,"boolean"==typeof o.text&&delete o.text,i("<button></button>",o).button(n).appendTo(t.uiButtonSet).on("click",function(){s.apply(t.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var t=this,e=this.options;function o(i){return{position:i.position,offset:i.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,s){t._addClass(i(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",e,o(s))},drag:function(i,e){t._trigger("drag",i,o(e))},stop:function(s,n){var a=n.offset.left-t.document.scrollLeft(),l=n.offset.top-t.document.scrollTop();e.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(l>=0?"+":"")+l,of:t.window},t._removeClass(i(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",s,o(n))}})},_makeResizable:function(){var t=this,e=this.options,o=e.resizable,s=this.uiDialog.css("position"),n="string"==typeof o?o:"n,e,s,w,se,sw,ne,nw";function a(i){return{originalPosition:i.originalPosition,originalSize:i.originalSize,position:i.position,size:i.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:this._minHeight(),handles:n,start:function(e,o){t._addClass(i(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",e,a(o))},resize:function(i,e){t._trigger("resize",i,a(e))},stop:function(o,s){var n=t.uiDialog.offset(),l=n.left-t.document.scrollLeft(),h=n.top-t.document.scrollTop();e.height=t.uiDialog.height(),e.width=t.uiDialog.width(),e.position={my:"left top",at:"left"+(l>=0?"+":"")+l+" top"+(h>=0?"+":"")+h,of:t.window},t._removeClass(i(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",o,a(s))}}).css("position",s)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=i(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=i.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var i=this.document.data("ui-dialog-instances");return i||(i=[],this.document.data("ui-dialog-instances",i)),i},_minHeight:function(){var i=this.options;return"auto"===i.height?i.minHeight:Math.min(i.minHeight,i.height)},_position:function(){var i=this.uiDialog.is(":visible");i||this.uiDialog.show(),this.uiDialog.position(this.options.position),i||this.uiDialog.hide()},_setOptions:function(t){var e=this,o=!1,s={};i.each(t,function(i,t){e._setOption(i,t),i in e.sizeRelatedOptions&&(o=!0),i in e.resizableRelatedOptions&&(s[i]=t)}),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var o,s,n=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:i("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((o=n.is(":data(ui-draggable)"))&&!e&&n.draggable("destroy"),!o&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((s=n.is(":data(ui-resizable)"))&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")),"modal"===t&&n.attr("aria-modal",e?"true":null))},_size:function(){var i,t,e,o=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),o.minWidth>o.width&&(o.width=o.minWidth),i=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),t=Math.max(0,o.minHeight-i),e="number"==typeof o.maxHeight?Math.max(0,o.maxHeight-i):"none","auto"===o.height?this.element.css({minHeight:t,maxHeight:e,height:"auto"}):this.element.height(Math.max(0,o.height-i)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=i(this);return i("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!i(t.target).closest(".ui-dialog").length||!!i(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(i){if(!t){var e=this._trackingInstances()[0];e._allowInteraction(i)||(i.preventDefault(),e._focusTabbable())}}.bind(this)),this.overlay=i("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var i=this.document.data("ui-dialog-overlays")-1;i?this.document.data("ui-dialog-overlays",i):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!0===i.uiBackCompat&&i.widget("ui.dialog",i.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(i,t){"dialogClass"===i&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),i.ui.dialog});
192
193/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */
194/*!
195* tabbable 6.3.0
196* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
197*/
198!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not
198(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function(t,e){var n;void 0===e&&(e=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||e&&t&&a(t.parentNode)},l=function(t,e,o){if(a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(var i=[],l=Array.from(t);l.length;){var c=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){var v=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}else l.unshift.apply(l,c.children)}}return i},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){return function(t){return s(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||i(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,o=e.height;return 0===n&&0===o},v=function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;var a=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof o){for(var l=t;t;){var u=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){var e,n,o,r,a=t&&i(t),l=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!u&&l;){var c,d,f;u=!(null===(d=l=null===(c=a=i(l))||void 0===c?void 0:c.host)||void 0===d||null===(f=d.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}
198(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!r.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(p(e)||d(e)<0||!b(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function(t){var e=[],n=[];return t.forEach((function(t,o){var r=!!t.scopeParent,i=r?t.scopeParent:t,a=function(t,e){var n=d(t);return n<0&&e&&!c(t)?0:n}(i,r),l=r?g(t.candidates):i;0===a?r?e.push.apply(e,l):e.push(i):n.push({documentOrder:o,tabIndex:a,item:t,isScope:r,content:l})})),n.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(e)},w=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},t.getTabIndex=d,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,w)&&b(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,n)&&y(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):l(t,e.includeContainer,y.bind(null,e)),g(n)}}));
199
200;
201/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
202/**
203 * tua-body-scroll-lock v1.6.0
204 * (c) 2025 Evinma, BuptStEve
205 * @license MIT
206 */
207!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bodyScrollLock={})}(this,(function(e){"use strict";var t=function(){return"undefined"==typeof window},n=function(e){e=e||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!t&&/(iPhone\sOS)\s([\d_]+)/.test(e)||t,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}};function o(e){if(t())return!1;if(!e)throw new Error("options must be provided");var n=!1,o={get passive(){n=!0}},i=function(){},l="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(l,i,o),window.removeEventListener(l,i,o);var c=e.capture;return n?e:void 0!==c&&c}function i(){return"__BSL_PREVENT_DEFAULT__"in window||(window.__BSL_PREVENT_DEFAULT__=function(e){e.cancelable&&e.preventDefault()}),window.__BSL_PREVENT_DEFAULT__}function l(e){return e?Array.isArray(e)?e:[e]:[]}var c={lockedNum:0,lockedElements:[],unLockCallback:null,documentListenerAdded:!1,initialClientPos:{clientX:0,clientY:0}};function r(e){if(t())return c;if(!(null==e?void 0:e.useGlobalLockState))return r.lockState;var n="__BSL_LOCK_STATE__"in window?Object.assign(Object.assign({},c),window.__BSL_LOCK_STATE__):c;return window.__BSL_LOCK_STATE__=n,n}function d(e){var t=document.documentElement,n=Object.assign({},t.style),o=(void 0,!0);if(t.style.overflow="hidden",t.style.boxSizing="border-box",o){var i=window.innerWidth-t.clientWidth,l=parseInt(window.getComputedStyle(t).paddingRight,10);t.style.paddingRight="".concat(i+l,"px")}return function(){["overflow","boxSizing","paddingRight"].forEach((function(e){t.style[e]=n[e]||""}))}}function s(e){e.documentListenerAdded&&(document.removeEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!1)}r.lockState=c,e.clearBodyLocks=function(e){var o;if(!t()){var i=r(e);if(i.lockedNum=0,null===(o=i.unLockCallback)||void 0===o||o.call(i),n().ios){if(i.lockedElements.length)for(var l=i.lockedElements.pop();l;)l.ontouchmove=null,l.ontouchstart=null,l=i.lockedElements.pop();s(i)}}},e.getLockState=r,e.lock=function(e,c){if(!t()){var s=n(),u=r(c);s.ios?(l(e).filter((function(e){return e&&-1===u.lockedElements.indexOf(e)})).forEach((function(e){e.ontouchstart=function(e){var t=e.targetTouches[0],n=t.clientX,o=t.clientY;u.initialClientPos={clientX:n,clientY:o}},e.ontouchmove=function(t){!function(e,t,n){if(t){var o=t.scrollTop,l=t.scrollLeft,c=t.scrollWidth,r=t.scrollHeight,d=t.clientWidth,s=t.clientHeight,u=e.targetTouches[0].clientX-n.clientX,a=e.targetTouches[0].clientY-n.clientY,f=Math.abs(a)>Math.abs(u);if(f&&(a>0&&0===o||a<0&&o+s+1>=r)||!f&&(u>0&&0===l||u<0&&l+d+1>=c))return i()(e)}e.stopPropagation()}(t,e,u.initialClientPos)},u.lockedElements.push(e)})),function(e){if(!n().ios)return;if(e.documentListenerAdded)return;document.addEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!0}(u),(null==c?void 0:c.setOverflowForIOS)&&(u.unLockCallback=d())):u.lockedNum<=0&&(u.unLockCallback=s.android?function(e){var t=document.documentElement,n=document.body,o=t.scrollTop||n.scrollTop,i=Object.assign({},t.style),l=Object.assign({},n.style);return t.style.height="100%",t.style.overflow="hidden",n.style.top="-".concat(o,"px"),n.style.width="100%",n.style.height="auto",n.style.position="fixed",n.style.overflow=(null==e?void 0:e.overflowType)||"hidden",function(){t.style.height=i.height||"",t.style.overflow=i.overflow||"",["top","width","height","overflow","position"].forEach((function(e){n.style[e]=l[e]||""})),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:o,behavior:"instant"}):window.scrollTo(0,o)}}(c):d()),u.lockedNum+=1}},e.unlock=function(e,o){var i;if(!t()){var c=r(o);c.lockedNum-=1,c.lockedNum>0||(null===(i=c.unLockCallback)||void 0===i||i.call(c),n().ios&&(l(e).forEach((function(e){var t=c.lockedElements.indexOf(e);e&&-1!==t&&(e.ontouchmove=null,e.ontouchstart=null,c.lockedElements.splice(t,1)
207)})),s(c)))}}}));
208;
209(function(Drupal){'use strict';Drupal.behaviors.bootstrapBootstrapPreInit={attach(context,settings){if(jQuery==='undefined')jQuery=$;}};}(Drupal));;
210+function($){'use strict';var Affix=function(element,options){this.options=$.extend({},Affix.DEFAULTS,options);this.$target=$(this.options.target).on('scroll.bs.affix.data-api',$.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',$.proxy(this.checkPositionWithEventLoop,this));this.$element=$(element);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition();};Affix.VERSION='3.3.7';Affix.RESET='affix affix-top affix-bottom';Affix.DEFAULTS={offset:0,target:window};Affix.prototype.getState=function(scrollHeight,height,offsetTop,offsetBottom){var scrollTop=this.$target.scrollTop();var position=this.$element.offset();var targetHeight=this.$target.height();if(offsetTop!=null&&this.affixed=='top')return scrollTop<offsetTop?'top':false;if(this.affixed=='bottom'){if(offsetTop!=null)return (scrollTop+this.unpin<=position.top)?false:'bottom';return (scrollTop+targetHeight<=scrollHeight-offsetBottom)?false:'bottom';}var initializing=this.affixed==null;var colliderTop=initializing?scrollTop:position.top;var colliderHeight=initializing?targetHeight:height;if(offsetTop!=null&&scrollTop<=offsetTop)return 'top';if(offsetBottom!=null&&(colliderTop+colliderHeight>=scrollHeight-offsetBottom))return 'bottom';return false;};Affix.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(Affix.RESET).addClass('affix');var scrollTop=this.$target.scrollTop();var position=this.$element.offset();return (this.pinnedOffset=position.top-scrollTop);};Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1);};Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return;var height=this.$element.height();var offset=this.options.offset;var offsetTop=offset.top;var offsetBottom=offset.bottom;var scrollHeight=Math.max($(document).height(),$(document.body).height());if(typeof offset!='object')offsetBottom=offsetTop=offset;if(typeof offsetTop=='function')offsetTop=offset.top(this.$element);if(typeof offsetBottom=='function')offsetBottom=offset.bottom(this.$element);var affix=this.getState(scrollHeight,height,offsetTop,offsetBottom);if(this.affixed!=affix){if(this.unpin!=null)this.$element.css('top','');var affixType='affix'+(affix?'-'+affix:'');var e=$.Event(affixType+'.bs.affix');this.$element.trigger(e);if(e.isDefaultPrevented())return;this.affixed=affix;this.unpin=affix=='bottom'?this.getPinnedOffset():null;this.$element.removeClass(Affix.RESET).addClass(affixType).trigger(affixType.replace('affix','affixed')+'.bs.affix');}if(affix=='bottom')this.$element.offset({top:scrollHeight-height-offsetBottom});};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.affix');var options=typeof option=='object'&&option;if(!data)$this.data('bs.affix',(data=new Affix(this,options)));if(typeof option=='string')data[option]();});}var old=$.fn.affix;$.fn.affix=Plugin;$.fn.affix.Constructor=Affix;$.fn.affix.noConflict=function(){$.fn.affix=old;return this;};$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this);var data=$spy.data();data.offset=data.offset||{};if(data.offsetBottom!=null)data.offset.bottom=data.offsetBottom;if(data.offsetTop!=null)data.offset.top=data.offsetTop;Plugin.call($spy,data);});});}(jQuery);;
211+function($){'use strict';var dismiss='[data-dismiss="alert"]';var Alert=function(el){$(el).on('click',dismiss,this.close);};Alert.VERSION='3.3.7';Alert.TRANSITION_DURATION=150;Alert.prototype.close=function(e){var $this=$(this);var selector=$this.attr('data-target');if(!selector){selector=$this.attr('href');selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'');}var $parent=$(selector==='#'?[]:selector);if(e)e.preventDefault();if(!$parent.length)$parent=$this.closest('.alert');$parent.trigger(e=$.Event('close.bs.alert'));if(e.isDefaultPrevented())return;$parent.removeClass('in');function removeElement(){$parent.detach().trigger('closed.bs.alert').remove();}$.support.transition&&$parent.hasClass('fade')?$parent.one('bsTransitionEnd',removeElement).emulateTransitionEnd(Alert.TRANSITION_DURATION):removeElement();};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.alert');if(!data)$this.data('bs.alert',(data=new Alert(this)));if(typeof option=='string')data[option].call($this);});}var old=$.fn.alert;$.fn.alert=Plugin;$.fn.alert.Constructor=Alert;$.fn.alert.noConflict=function(){$.fn.alert=old;return this;};$(document).on('click.bs.alert.data-api',dismiss,Alert.prototype.close);}(jQuery);;
212+function($){'use strict';var Button=function(element,options){this.$element=$(element);this.options=$.extend({},Button.DEFAULTS,options);this.isLoading=false;};Button.VERSION='3.3.7';Button.DEFAULTS={loadingText:'loading...'};Button.prototype.setState=function(state){var d='disabled';var $el=this.$element;var val=$el.is('input')?'val':'html';var data=$el.data();state+='Text';if(data.resetText==null)$el.data('resetText',$el[val]());setTimeout($.proxy(function(){$el[val](data[state]==null?this.options[state]:data[state]);if(state=='loadingText'){this.isLoading=true;$el.addClass(d).attr(d,d).prop(d,true);}else{if(this.isLoading){this.isLoading=false;$el.removeClass(d).removeAttr(d).prop(d,false);}}},this),0);};Button.prototype.toggle=function(){var changed=true;var $parent=this.$element.closest('[data-toggle="buttons"]');if($parent.length){var $input=this.$element.find('input');if($input.prop('type')=='radio'){if($input.prop('checked'))changed=false;$parent.find('.active').removeClass('active');this.$element.addClass('active');}else{if($input.prop('type')=='checkbox'){if(($input.prop('checked'))!==this.$element.hasClass('active'))changed=false;this.$element.toggleClass('active');}}$input.prop('checked',this.$element.hasClass('active'));if(changed)$input.trigger('change');}else{this.$element.attr('aria-pressed',!this.$element.hasClass('active'));this.$element.toggleClass('active');}};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.button');var options=typeof option=='object'&&option;if(!data)$this.data('bs.button',(data=new Button(this,options)));if(option=='toggle')data.toggle();else{if(option)data.setState(option);}});}var old=$.fn.button;$.fn.button=Plugin;$.fn.button.Constructor=Button;$.fn.button.noConflict=function(){$.fn.button=old;return this;};$(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var $btn=$(e.target).closest('.btn');Plugin.call($btn,'toggle');
212if(!($(e.target).is('input[type="radio"], input[type="checkbox"]'))){e.preventDefault();if($btn.is('input,button'))$btn.trigger('focus');else $btn.find('input:visible,button:visible').first().trigger('focus');}}).on('focus.bs.button.data-api blur.bs.button.data-api','[data-toggle^="button"]',function(e){$(e.target).closest('.btn').toggleClass('focus',/^focus(in)?$/.test(e.type));});}(jQuery);;
213+function($){'use strict';var Carousel=function(element,options){this.$element=$(element);this.$indicators=this.$element.find('.carousel-indicators');this.options=options;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on('keydown.bs.carousel',$.proxy(this.keydown,this));this.options.pause=='hover'&&!('ontouchstart' in document.documentElement)&&this.$element.on('mouseenter.bs.carousel',$.proxy(this.pause,this)).on('mouseleave.bs.carousel',$.proxy(this.cycle,this));};Carousel.VERSION='3.3.7';Carousel.TRANSITION_DURATION=600;Carousel.DEFAULTS={interval:5000,pause:'hover',wrap:true,keyboard:true};Carousel.prototype.keydown=function(e){if(/input|textarea/i.test(e.target.tagName))return;switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return;}e.preventDefault();};Carousel.prototype.cycle=function(e){e||(this.paused=false);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval));return this;};Carousel.prototype.getItemIndex=function(item){this.$items=item.parent().children('.item');return this.$items.index(item||this.$active);};Carousel.prototype.getItemForDirection=function(direction,active){var activeIndex=this.getItemIndex(active);var willWrap=(direction=='prev'&&activeIndex===0)||(direction=='next'&&activeIndex==(this.$items.length-1));if(willWrap&&!this.options.wrap)return active;var delta=direction=='prev'?-1:1;var itemIndex=(activeIndex+delta)%this.$items.length;return this.$items.eq(itemIndex);};Carousel.prototype.to=function(pos){var that=this;var activeIndex=this.getItemIndex(this.$active=this.$element.find('.item.active'));if(pos>(this.$items.length-1)||pos<0)return;if(this.sliding)return this.$element.one('slid.bs.carousel',function(){that.to(pos);});if(activeIndex==pos)return this.pause().cycle();return this.slide(pos>activeIndex?'next':'prev',this.$items.eq(pos));};Carousel.prototype.pause=function(e){e||(this.paused=true);if(this.$element.find('.next, .prev').length&&$.support.transition){this.$element.trigger($.support.transition.end);this.cycle(true);}this.interval=clearInterval(this.interval);return this;};Carousel.prototype.next=function(){if(this.sliding)return;return this.slide('next');};Carousel.prototype.prev=function(){if(this.sliding)return;return this.slide('prev');};Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active');var $next=next||this.getItemForDirection(type,$active);var isCycling=this.interval;var direction=type=='next'?'left':'right';var that=this;if($next.hasClass('active'))return (this.sliding=false);var relatedTarget=$next[0];var slideEvent=$.Event('slide.bs.carousel',{relatedTarget,direction});this.$element.trigger(slideEvent);if(slideEvent.isDefaultPrevented())return;this.sliding=true;isCycling&&this.pause();if(this.$indicators.length){this.$indicators.find('.active').removeClass('active');var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)]);$nextIndicator&&$nextIndicator.addClass('active');}var slidEvent=$.Event('slid.bs.carousel',{relatedTarget,direction});if($.support.transition&&this.$element.hasClass('slide')){$next.addClass(type);$next[0].offsetWidth;$active.addClass(direction);$next.addClass(direction);$active.one('bsTransitionEnd',function(){$next.removeClass([type,direction].join(' ')).addClass('active');$active.removeClass(['active',direction].join(' '));that.sliding=false;setTimeout(function(){that.$element.trigger(slidEvent);},0);}).emulateTransitionEnd(Carousel.TRANSITION_DURATION);}else{$active.removeClass('active');$next.addClass('active');this.sliding=false;this.$element.trigger(slidEvent);}isCycling&&this.cycle();return this;};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.carousel');var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=='object'&&option);var action=typeof option=='string'?option:options.slide;if(!data)$this.data('bs.carousel',(data=new Carousel(this,options)));if(typeof option=='number')data.to(option);else if(action)data[action]();else{if(options.interval)data.pause().cycle();}});}var old=$.fn.carousel;
213$.fn.carousel=Plugin;$.fn.carousel.Constructor=Carousel;$.fn.carousel.noConflict=function(){$.fn.carousel=old;return this;};var clickHandler=function(e){var href;var $this=$(this);var $target=$($this.attr('data-target')||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,''));if(!$target.hasClass('carousel'))return;var options=$.extend({},$target.data(),$this.data());var slideIndex=$this.attr('data-slide-to');if(slideIndex)options.interval=false;Plugin.call($target,options);if(slideIndex)$target.data('bs.carousel').to(slideIndex);e.preventDefault();};$(document).on('click.bs.carousel.data-api','[data-slide]',clickHandler).on('click.bs.carousel.data-api','[data-slide-to]',clickHandler);$(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this);Plugin.call($carousel,$carousel.data());});});}(jQuery);;
214+function($){'use strict';var Collapse=function(element,options){this.$element=$(element);this.options=$.extend({},Collapse.DEFAULTS,options);this.$trigger=$('[data-toggle="collapse"][href="#'+element.id+'"],'+'[data-toggle="collapse"][data-target="#'+element.id+'"]');this.transitioning=null;if(this.options.parent)this.$parent=this.getParent();else this.addAriaAndCollapsedClass(this.$element,this.$trigger);if(this.options.toggle)this.toggle();};Collapse.VERSION='3.3.7';Collapse.TRANSITION_DURATION=350;Collapse.DEFAULTS={toggle:true};Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass('width');return hasWidth?'width':'height';};Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return;var activesData;var actives=this.$parent&&this.$parent.children('.panel').children('.in, .collapsing');if(actives&&actives.length){activesData=actives.data('bs.collapse');if(activesData&&activesData.transitioning)return;}var startEvent=$.Event('show.bs.collapse');this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;if(actives&&actives.length){Plugin.call(actives,'hide');activesData||actives.data('bs.collapse',null);}var dimension=this.dimension();this.$element.removeClass('collapse').addClass('collapsing')[dimension](0).attr('aria-expanded',true);this.$trigger.removeClass('collapsed').attr('aria-expanded',true);this.transitioning=1;var complete=function(){this.$element.removeClass('collapsing').addClass('collapse in')[dimension]('');this.transitioning=0;this.$element.trigger('shown.bs.collapse');};if(!$.support.transition)return complete.call(this);var scrollSize='scroll'+dimension.charAt(0).toUpperCase()+dimension.slice(1);this.$element.one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize]);};Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return;var startEvent=$.Event('hide.bs.collapse');this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;var dimension=this.dimension();this.$element[dimension](this.$element[dimension]())[0].offsetHeight;this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',false);this.$trigger.addClass('collapsed').attr('aria-expanded',false);this.transitioning=1;var complete=function(){this.transitioning=0;this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse');};if(!$.support.transition)return complete.call(this);this.$element[dimension](0).one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION);};Collapse.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']();};Collapse.prototype.getParent=function(){return $(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element);this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element);},this)).end();};Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass('in');$element.attr('aria-expanded',isOpen);$trigger.toggleClass('collapsed',!isOpen).attr('aria-expanded',isOpen);};function getTargetFromTrigger($trigger){var href;var target=$trigger.attr('data-target')||(href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'');return $(target);}function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.collapse');var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=='object'&&option);if(!data&&options.toggle&&typeof option==='string'&&/show|hide/.test(option))options.toggle=false;if(!data)$this.data('bs.collapse',(data=new Collapse(this,options)));if(typeof option=='string')data[option]();});}var old=$.fn.collapse;$.fn.collapse=Plugin;$.fn.collapse.Constructor=Collapse;$.fn.collapse.noConflict=function(){$.fn.collapse=old;return this;};$(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var $this=$(this);if(!$this.attr('data-target'))e.preventDefault();var $target=getTargetFromTrigger($this);var data=$target.data('bs.collapse');var option=data?'toggle':$this.data();if(option&&typeof option==='object')Plugin.call($target,option);else Plugin.call($target,'toggle');});}(jQuery);;
215+function($){'use strict';var backdrop='.dropdown-backdrop';var toggle='[data-toggle="dropdown"]';var Dropdown=function(element){$(element).on('click.bs.dropdown',this.toggle);};Dropdown.VERSION='3.3.7';function getParent($this){var selector=$this.attr('data-target');if(!selector){selector=$this.attr('href');selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'');}var $parent=selector&&$(selector);return $parent&&$parent.length?$parent:$this.parent();}function clearMenus(e){if(e&&e.which===3)return;$(backdrop).remove();$(toggle).each(function(){var $this=$(this);var $parent=getParent($this);var relatedTarget={relatedTarget:this};if(!$parent.hasClass('open'))return;if(e&&e.type=='click'&&/input|textarea/i.test(e.target.tagName)&&$.contains($parent[0],e.target))return;$parent.trigger(e=$.Event('hide.bs.dropdown',relatedTarget));if(e.isDefaultPrevented())return;$this.attr('aria-expanded','false');$parent.removeClass('open').trigger($.Event('hidden.bs.dropdown',relatedTarget));});}Dropdown.prototype.toggle=function(e){var $this=$(this);if($this.is('.disabled, :disabled'))return;var $parent=getParent($this);var isActive=$parent.hasClass('open');clearMenus();if(!isActive){if('ontouchstart' in document.documentElement&&!$parent.closest('.navbar-nav').length)$(document.createElement('div')).addClass('dropdown-backdrop').insertAfter($(this)).on('click',clearMenus);var relatedTarget={relatedTarget:this};$parent.trigger(e=$.Event('show.bs.dropdown',relatedTarget));if(e.isDefaultPrevented())return;$this.trigger('focus').attr('aria-expanded','true');$parent.toggleClass('open').trigger($.Event('shown.bs.dropdown',relatedTarget));}return false;};Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName))return;var $this=$(this);e.preventDefault();e.stopPropagation();if($this.is('.disabled, :disabled'))return;var $parent=getParent($this);var isActive=$parent.hasClass('open');if(!isActive&&e.which!=27||isActive&&e.which==27){if(e.which==27)$parent.find(toggle).trigger('focus');return $this.trigger('click');}var desc=' li:not(.disabled):visible a';var $items=$parent.find('.dropdown-menu'+desc);if(!$items.length)return;var index=$items.index(e.target);if(e.which==38&&index>0)index--;if(e.which==40&&index<$items.length-1)index++;
215if(!~index)index=0;$items.eq(index).trigger('focus');};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.dropdown');if(!data)$this.data('bs.dropdown',(data=new Dropdown(this)));if(typeof option=='string')data[option].call($this);});}var old=$.fn.dropdown;$.fn.dropdown=Plugin;$.fn.dropdown.Constructor=Dropdown;$.fn.dropdown.noConflict=function(){$.fn.dropdown=old;return this;};$(document).on('click.bs.dropdown.data-api',clearMenus).on('click.bs.dropdown.data-api','.dropdown form',function(e){e.stopPropagation();}).on('click.bs.dropdown.data-api',toggle,Dropdown.prototype.toggle).on('keydown.bs.dropdown.data-api',toggle,Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','.dropdown-menu',Dropdown.prototype.keydown);}(jQuery);;
216+function($){'use strict';var Modal=function(element,options){this.options=options;this.$body=$(document.body);this.$element=$(element);this.$dialog=this.$element.find('.modal-dialog');this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=false;if(this.options.remote)this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal');},this));};Modal.VERSION='3.3.7';Modal.TRANSITION_DURATION=300;Modal.BACKDROP_TRANSITION_DURATION=150;Modal.DEFAULTS={backdrop:true,keyboard:true,show:true};Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget);};Modal.prototype.show=function(_relatedTarget){var that=this;var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget});this.$element.trigger(e);if(this.isShown||e.isDefaultPrevented())return;this.isShown=true;this.checkScrollbar();this.setScrollbar();this.$body.addClass('modal-open');this.escape();this.resize();this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this));this.$dialog.on('mousedown.dismiss.bs.modal',function(){that.$element.one('mouseup.dismiss.bs.modal',function(e){if($(e.target).is(that.$element))that.ignoreBackdropClick=true;});});this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade');if(!that.$element.parent().length)that.$element.appendTo(that.$body);that.$element.show().scrollTop(0);that.adjustDialog();if(transition)that.$element[0].offsetWidth;that.$element.addClass('in');that.enforceFocus();var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget});transition?that.$dialog.one('bsTransitionEnd',function(){that.$element.trigger('focus').trigger(e);}).emulateTransitionEnd(Modal.TRANSITION_DURATION):that.$element.trigger('focus').trigger(e);});};Modal.prototype.hide=function(e){if(e)e.preventDefault();e=$.Event('hide.bs.modal');this.$element.trigger(e);if(!this.isShown||e.isDefaultPrevented())return;this.isShown=false;this.escape();this.resize();$(document).off('focusin.bs.modal');this.$element.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal');this.$dialog.off('mousedown.dismiss.bs.modal');$.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',$.proxy(this.hideModal,this)).emulateTransitionEnd(Modal.TRANSITION_DURATION):this.hideModal();};Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if(document!==e.target&&this.$element[0]!==e.target&&!this.$element.has(e.target).length)this.$element.trigger('focus');},this));};Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on('keydown.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide();},this));else{if(!this.isShown)this.$element.off('keydown.dismiss.bs.modal');}};Modal.prototype.resize=function(){if(this.isShown)$(window).on('resize.bs.modal',$.proxy(this.handleUpdate,this));else $(window).off('resize.bs.modal');};Modal.prototype.hideModal=function(){var that=this;this.$element.hide();this.backdrop(function(){that.$body.removeClass('modal-open');that.resetAdjustments();that.resetScrollbar();that.$element.trigger('hidden.bs.modal');});};Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null;};Modal.prototype.backdrop=function(callback){var that=this;var animate=this.$element.hasClass('fade')?'fade':'';if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate;this.$backdrop=$(document.createElement('div')).addClass('modal-backdrop '+animate).appendTo(this.$body);this.$element.on('click.dismiss.bs.modal',$.proxy(function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=false;return;}if(e.target!==e.currentTarget)return;this.options.backdrop=='static'?this.$element[0].focus():this.hide();},this));if(doAnimate)this.$backdrop[0].offsetWidth;this.$backdrop.addClass('in');if(!callback)return;doAnimate?this.$backdrop.one('bsTransitionEnd',callback).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callback();}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in');var callbackRemove=function(){that.removeBackdrop();callback&&callback();};$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',callbackRemove).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callbackRemove();}else{if(callback)callback();}};Modal.prototype.handleUpdate=function(){this.adjustDialog();};Modal.prototype.adjustDialog=function(){var modalIsOverflowing=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&modalIsOverflowing?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!modalIsOverflowing?this.scrollbarWidth:''});};Modal.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''});};Modal.prototype.checkScrollbar=function(){var fullWindowWidth=window.innerWidth;if(!fullWindowWidth){var documentElementRect=document.documentElement.getBoundingClientRect();fullWindowWidth=documentElementRect.right-Math.abs(documentElementRect.left);}this.bodyIsOverflowing=document.body.clientWidth<fullWindowWidth;this.scrollbarWidth=this.measureScrollbar();};Modal.prototype.setScrollbar=function(){var bodyPad=parseInt((this.$body.css('padding-right')||0),10);this.originalBodyPad=document.body.style.paddingRight||'';if(this.bodyIsOverflowing)this.$body.css('padding-right',bodyPad+this.scrollbarWidth);};Modal.prototype.resetScrollbar=function(){this.$body.css('padding-right',this.originalBodyPad);};Modal.prototype.measureScrollbar=function(){var scrollDiv=document.createElement('div');scrollDiv.className='modal-scrollbar-measure';this.$body.append(scrollDiv);var scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth;this.$body[0].removeChild(scrollDiv);return scrollbarWidth;};function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this);var data=$this.data('bs.modal');var options=$.extend({},Modal.DEFAULTS,$this.data(),typeof option=='object'&&option);if(!data)$this.data('bs.modal',(data=new Modal(this,options)));if(typeof option=='string')data[option](_relatedTarget);else{if(options.show)data.show(_relatedTarget);}});}var old=$.fn.modal;$.fn.modal=Plugin;$.fn.modal.Constructor=Modal;$.fn.modal.noConflict=function(){$.fn.modal=old;return this;};$(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this);var href=$this.attr('href');var $target=$($this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,'')));var option=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data());if($this.is('a'))e.preventDefault();$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return;$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus');});});Plugin.call($target,option,this);});}(jQuery);;
217+function($){'use strict';var Tooltip=function(element,options){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init('tooltip',element,options);};Tooltip.VERSION='3.3.7';Tooltip.TRANSITION_DURATION=150;Tooltip.DEFAULTS={animation:true,placement:'top',selector:false,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:false,container:false,viewport:{selector:'body',padding:0}};Tooltip.prototype.init=function(type,element,options){this.enabled=true;this.type=type;this.$element=$(element);this.options=this.getOptions(options);this.$viewport=this.options.viewport&&$($.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport));this.inState={click:false,hover:false,focus:false};if(this.$element[0] instanceof document.constructor&&!this.options.selector)throw new Error('`selector` option must be specified when initializing '+this.type+' on the window.document object!');var triggers=this.options.trigger.split(' ');for(var i=triggers.length;i--;){var trigger=triggers[i];if(trigger=='click')this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this));else{if(trigger!='manual'){var eventIn=trigger=='hover'?'mouseenter':'focusin';var eventOut=trigger=='hover'?'mouseleave':'focusout';this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this));this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this));}}}this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle();};Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS;};Tooltip.prototype.getOptions=function(options){options=$.extend({},this.getDefaults(),this.$element.data(),options);if(options.delay&&typeof options.delay=='number')options.delay={show:options.delay,hide:options.delay};return options;};Tooltip.prototype.getDelegateOptions=function(){var options={};var defaults=this.getDefaults();this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value;});return options;};Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type);if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions());$(obj.currentTarget).data('bs.'+this.type,self);}if(obj instanceof $.Event)self.inState[obj.type=='focusin'?'focu
217s':'hover']=true;if(self.tip().hasClass('in')||self.hoverState=='in'){self.hoverState='in';return;}clearTimeout(self.timeout);self.hoverState='in';if(!self.options.delay||!self.options.delay.show)return self.show();self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show();},self.options.delay.show);};Tooltip.prototype.isInStateTrue=function(){for(var key in this.inState)if(this.inState[key])return true;return false;};Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type);if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions());$(obj.currentTarget).data('bs.'+this.type,self);}if(obj instanceof $.Event)self.inState[obj.type=='focusout'?'focus':'hover']=false;if(self.isInStateTrue())return;clearTimeout(self.timeout);self.hoverState='out';if(!self.options.delay||!self.options.delay.hide)return self.hide();self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide();},self.options.delay.hide);};Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!inDom)return;var that=this;var $tip=this.tip();var tipId=this.getUID(this.type);this.setContent();$tip.attr('id',tipId);this.$element.attr('aria-describedby',tipId);if(this.options.animation)$tip.addClass('fade');var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement;var autoToken=/\s?auto?\s?/i;var autoPlace=autoToken.test(placement);if(autoPlace)placement=placement.replace(autoToken,'')||'top';$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this);this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element);this.$element.trigger('inserted.bs.'+this.type);var pos=this.getPosition();var actualWidth=$tip[0].offsetWidth;var actualHeight=$tip[0].offsetHeight;if(autoPlace){var orgPlacement=placement;var viewportDim=this.getPosition(this.$viewport);placement=placement=='bottom'&&pos.bottom+actualHeight>viewportDim.bottom?'top':placement=='top'&&pos.top-actualHeight<viewportDim.top?'bottom':placement=='right'&&pos.right+actualWidth>viewportDim.width?'left':placement=='left'&&pos.left-actualWidth<viewportDim.left?'right':placement;$tip.removeClass(orgPlacement).addClass(placement);}var calculatedOffset=this.getCalculatedOffset(placement,pos,actualWidth,actualHeight);this.applyPlacement(calculatedOffset,placement);var complete=function(){var prevHoverState=that.hoverState;that.$element.trigger('shown.bs.'+that.type);that.hoverState=null;if(prevHoverState=='out')that.leave(that);};$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete();}};Tooltip.prototype.applyPlacement=function(offset,placement){var $tip=this.tip();var width=$tip[0].offsetWidth;var height=$tip[0].offsetHeight;var marginTop=parseInt($tip.css('margin-top'),10);var marginLeft=parseInt($tip.css('margin-left'),10);if(isNaN(marginTop))marginTop=0;if(isNaN(marginLeft))marginLeft=0;offset.top+=marginTop;offset.left+=marginLeft;$.offset.setOffset($tip[0],$.extend({using:function(props){$tip.css({top:Math.round(props.top),left:Math.round(props.left)});}},offset),0);$tip.addClass('in');var actualWidth=$tip[0].offsetWidth;var actualHeight=$tip[0].offsetHeight;if(placement=='top'&&actualHeight!=height)offset.top=offset.top+height-actualHeight;var delta=this.getViewportAdjustedDelta(placement,offset,actualWidth,actualHeight);if(delta.left)offset.left+=delta.left;else offset.top+=delta.top;var isVertical=/top|bottom/.test(placement);var arrowDelta=isVertical?delta.left*2-width+actualWidth:delta.top*2-height+actualHeight;var arrowOffsetPosition=isVertical?'offsetWidth':'offsetHeight';$tip.offset(offset);this.replaceArrow(arrowDelta,$tip[0][arrowOffsetPosition],isVertical);};Tooltip.prototype.replaceArrow=function(delta,dimension,isVertical){this.arrow().css(isVertical?'left':'top',50*(1-delta/dimension)+'%').css(isVertical?'top':'left','');};Tooltip.prototype.setContent=function(){var $tip=this.tip();var title=this.getTitle();$tip.find('.tooltip-inner')[this.options.html?'html':'text'](title);$tip.removeClass('fade in top bottom left right');};Tooltip.prototype.hide=function(callback){var that=this;var $tip=$(this.$tip);var e=$.Event('hide.bs.'+this.type);function complete(){if(that.hoverState!='in')$tip.detach();if(that.$element)that.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+that.type);callback&&callback();}this.$element.trigger(e);if(e.isDefaultPrevented())return;$tip.removeClass('in');$.support.transition&&$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete();this.hoverState=null;return this;};Tooltip.prototype.fixTitle=function(){var $e=this.$element;if($e.attr('title')||typeof $e.attr('data-original-title')!='string')$e.attr('data-original-title',$e.attr('title')||'').attr('title','');};Tooltip.prototype.hasContent=function(){return this.getTitle();};Tooltip.prototype.getPosition=function($element){$element=$element||this.$element;var el=$element[0];var isBody=el.tagName=='BODY';var elRect=el.getBoundingClientRect();if(elRect.width==null)elRect=$.extend({},elRect,{width:elRect.right-elRect.left,height:elRect.bottom-elRect.top});
217var isSvg=window.SVGElement&&el instanceof window.SVGElement;var elOffset=isBody?{top:0,left:0}:(isSvg?null:$element.offset());var scroll={scroll:isBody?document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop()};var outerDims=isBody?{width:$(window).width(),height:$(window).height()}:null;return $.extend({},elRect,scroll,outerDims,elOffset);};Tooltip.prototype.getCalculatedOffset=function(placement,pos,actualWidth,actualHeight){return placement=='bottom'?{top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2}:placement=='top'?{top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2}:placement=='left'?{top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth}:{top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width};};Tooltip.prototype.getViewportAdjustedDelta=function(placement,pos,actualWidth,actualHeight){var delta={top:0,left:0};if(!this.$viewport)return delta;var viewportPadding=this.options.viewport&&this.options.viewport.padding||0;var viewportDimensions=this.getPosition(this.$viewport);if(/right|left/.test(placement)){var topEdgeOffset=pos.top-viewportPadding-viewportDimensions.scroll;var bottomEdgeOffset=pos.top+viewportPadding-viewportDimensions.scroll+actualHeight;if(topEdgeOffset<viewportDimensions.top)delta.top=viewportDimensions.top-topEdgeOffset;else{if(bottomEdgeOffset>viewportDimensions.top+viewportDimensions.height)delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset;}}else{var leftEdgeOffset=pos.left-viewportPadding;var rightEdgeOffset=pos.left+viewportPadding+actualWidth;if(leftEdgeOffset<viewportDimensions.left)delta.left=viewportDimensions.left-leftEdgeOffset;else{if(rightEdgeOffset>viewportDimensions.right)delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset;}}return delta;};Tooltip.prototype.getTitle=function(){var title;var $e=this.$element;var o=this.options;title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title);return title;};Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1000000);while(document.getElementById(prefix));return prefix;};Tooltip.prototype.tip=function(){if(!this.$tip){this.$tip=$(this.options.template);if(this.$tip.length!=1)throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!');}return this.$tip;};Tooltip.prototype.arrow=function(){return (this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'));};Tooltip.prototype.enable=function(){this.enabled=true;};Tooltip.prototype.disable=function(){this.enabled=false;};Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled;};Tooltip.prototype.toggle=function(e){var self=this;if(e){self=$(e.currentTarget).data('bs.'+this.type);if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions());$(e.currentTarget).data('bs.'+this.type,self);}}if(e){self.inState.click=!self.inState.click;if(self.isInStateTrue())self.enter(self);else self.leave(self);}else self.tip().hasClass('in')?self.leave(self):self.enter(self);};Tooltip.prototype.destroy=function(){var that=this;clearTimeout(this.timeout);this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type);if(that.$tip)that.$tip.detach();that.$tip=null;that.$arrow=null;that.$viewport=null;that.$element=null;});};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tooltip');var options=typeof option=='object'&&option;if(!data&&/destroy|hide/.test(option))return;if(!data)$this.data('bs.tooltip',(data=new Tooltip(this,options)));if(typeof option=='string')data[option]();});}var old=$.fn.tooltip;$.fn.tooltip=Plugin;$.fn.tooltip.Constructor=Tooltip;$.fn.tooltip.noConflict=function(){$.fn.tooltip=old;return this;};}(jQuery);;
218+function($){'use strict';var Popover=function(element,options){this.init('popover',element,options);};if(!$.fn.tooltip)throw new Error('Popover requires tooltip.js');Popover.VERSION='3.3.7';Popover.DEFAULTS=$.extend({},$.fn.tooltip.Constructor.DEFAULTS,{placement:'right',trigger:'click',content:'',template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'});Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype);Popover.prototype.constructor=Popover;Popover.prototype.getDefaults=function(){return Popover.DEFAULTS;};Popover.prototype.setContent=function(){var $tip=this.tip();var title=this.getTitle();var content=this.getContent();$tip.find('.popover-title')[this.options.html?'html':'text'](title);$tip.find('.popover-content').children().detach().end()[this.options.html?(typeof content=='string'?'html':'append'):'text'](content);$tip.removeClass('fade top bottom left right in');if(!$tip.find('.popover-title').html())$tip.find('.popover-title').hide();};Popover.prototype.hasContent=function(){return this.getTitle()||this.getContent();};Popover.prototype.getContent=function(){var $e=this.$element;var o=this.options;return $e.attr('data-content')||(typeof o.content=='function'?o.content.call($e[0]):o.content);};Popover.prototype.arrow=function(){return (this.$arrow=this.$arrow||this.tip().find('.arrow'));};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.popover');var options=typeof option=='object'&&option;if(!data&&/destroy|hide/.test(option))return;if(!data)$this.data('bs.popover',(data=new Popover(this,options)));if(typeof option=='string')data[option]();});}var old=$.fn.popover;$.fn.popover=Plugin;$.fn.popover.Constructor=Popover;$.fn.popover.noConflict=function(){$.fn.popover=old;return this;};}(jQuery);;
219+function($){'use strict';function ScrollSpy(element,options){this.$body=$(document.body);this.$scrollElement=$(element).is(document.body)?$(window):$(element);this.options=$.extend({},ScrollSpy.DEFAULTS,options);this.selector=(this.options.target||'')+' .nav li > a';this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on('scroll.bs.scrollspy',$.proxy(this.process,this));this.refresh();this.process();}ScrollSpy.VERSION='3.3.7';ScrollSpy.DEFAULTS={offset:10};ScrollSpy.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight);};ScrollSpy.prototype.refresh=function(){var that=this;var offsetMethod='offset';var offsetBase=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();if(!$.isWindow(this.$scrollElement[0])){offsetMethod='position';offsetBase=this.$scrollElement.scrollTop();}this.$body.find(this.selector).map(function(){var $el=$(this);var href=$el.data('target')||$el.attr('href');var $href=/^#./.test(href)&&$(href);return ($href&&$href.length&&$href.is(':visible')&&[[$href[offsetMethod]().top+offsetBase,href]]
219)||null;}).sort(function(a,b){return a[0]-b[0];}).each(function(){that.offsets.push(this[0]);that.targets.push(this[1]);});};ScrollSpy.prototype.process=function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset;var scrollHeight=this.getScrollHeight();var maxScroll=this.options.offset+scrollHeight-this.$scrollElement.height();var offsets=this.offsets;var targets=this.targets;var activeTarget=this.activeTarget;var i;if(this.scrollHeight!=scrollHeight)this.refresh();if(scrollTop>=maxScroll)return activeTarget!=(i=targets[targets.length-1])&&this.activate(i);if(activeTarget&&scrollTop<offsets[0]){this.activeTarget=null;return this.clear();}for(i=offsets.length;i--;)activeTarget!=targets[i]&&scrollTop>=offsets[i]&&(offsets[i+1]===undefined||scrollTop<offsets[i+1])&&this.activate(targets[i]);};ScrollSpy.prototype.activate=function(target){this.activeTarget=target;this.clear();var selector=this.selector+'[data-target="'+target+'"],'+this.selector+'[href="'+target+'"]';var active=$(selector).parents('li').addClass('active');if(active.parent('.dropdown-menu').length)active=active.closest('li.dropdown').addClass('active');active.trigger('activate.bs.scrollspy');};ScrollSpy.prototype.clear=function(){$(this.selector).parentsUntil(this.options.target,'.active').removeClass('active');};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.scrollspy');var options=typeof option=='object'&&option;if(!data)$this.data('bs.scrollspy',(data=new ScrollSpy(this,options)));if(typeof option=='string')data[option]();});}var old=$.fn.scrollspy;$.fn.scrollspy=Plugin;$.fn.scrollspy.Constructor=ScrollSpy;$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old;return this;};$(window).on('load.bs.scrollspy.data-api',function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this);Plugin.call($spy,$spy.data());});});}(jQuery);;
220+function($){'use strict';var Tab=function(element){this.element=$(element);};Tab.VERSION='3.3.7';Tab.TRANSITION_DURATION=150;Tab.prototype.show=function(){var $this=this.element;var $ul=$this.closest('ul:not(.dropdown-menu)');var selector=$this.data('target');if(!selector){selector=$this.attr('href');selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'');}if($this.parent('li').hasClass('active'))return;var $previous=$ul.find('.active:last a');var hideEvent=$.Event('hide.bs.tab',{relatedTarget:$this[0]});var showEvent=$.Event('show.bs.tab',{relatedTarget:$previous[0]});$previous.trigger(hideEvent);$this.trigger(showEvent);if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented())return;var $target=$(selector);this.activate($this.closest('li'),$ul);this.activate($target,$target.parent(),function(){$previous.trigger({type:'hidden.bs.tab',relatedTarget:$this[0]});$this.trigger({type:'shown.bs.tab',relatedTarget:$previous[0]});});};Tab.prototype.activate=function(element,container,callback){var $active=container.find('> .active');var transition=callback&&$.support.transition&&($active.length&&$active.hasClass('fade')||!!container.find('> .fade').length);function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',false);element.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',true);if(transition){element[0].offsetWidth;element.addClass('in');}else element.removeClass('fade');if(element.parent('.dropdown-menu').length)element.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',true);callback&&callback();}$active.length&&transition?$active.one('bsTransitionEnd',next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next();$active.removeClass('in');};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tab');if(!data)$this.data('bs.tab',(data=new Tab(this)));if(typeof option=='string')data[option]();});}var old=$.fn.tab;$.fn.tab=Plugin;$.fn.tab.Constructor=Tab;$.fn.tab.noConflict=function(){$.fn.tab=old;return this;};var clickHandler=function(e){e.preventDefault();Plugin.call($(this),'show');};
220$(document).on('click.bs.tab.data-api','[data-toggle="tab"]',clickHandler).on('click.bs.tab.data-api','[data-toggle="pill"]',clickHandler);}(jQuery);;
221+function($){'use strict';function transitionEnd(){var el=document.createElement('bootstrap');var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'};for(var name in transEndEventNames)if(el.style[name]!==undefined)return {end:transEndEventNames[name]};return false;}$.fn.emulateTransitionEnd=function(duration){var called=false;var $el=this;$(this).one('bsTransitionEnd',function(){called=true;});var callback=function(){if(!called)$($el).trigger($.support.transition.end);};setTimeout(callback,duration);return this;};$(function(){$.support.transition=transitionEnd();if(!$.support.transition)return;$.event.special.bsTransitionEnd={bindType:$.support.transition.end,delegateType:$.support.transition.end,handle:function(e){if($(e.target).is(this))return e.handleObj.handler.apply(this,arguments);}};});}(jQuery);;
222var _get=function get(object,property,receiver){if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null)return undefined;else return get(parent,property,receiver);}else if("value" in desc)return desc.value;else{var getter=desc.get;if(getter===undefined)return undefined;return getter.call(receiver);}};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value" in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}(function(factory){window.cash=factory();})(function(){var doc=document,win=window,ArrayProto=Array.prototype,slice=ArrayProto.slice,filter=ArrayProto.filter,push=ArrayProto.push;var noop=function(){},isFunction=function(item){return typeof item===typeof noop&&item.call;},isString=function(item){return typeof item===typeof "";};var idMatch=/^#[\w-]*$/,classMatch=/^\.[\w-]*$/,htmlMatch=/<.+>/,singlet=/^\w+$/;function find(selector,context){context=context||doc;var elems=classMatch.test(selector)?context.getElementsByClassName(selector.slice(1)):singlet.test(selector)?context.getElementsByTagName(selector):context.querySelectorAll(selector);return elems;}var frag;function parseHTML(str){if(!frag){frag=doc.implementation.createHTMLDocument(null);var base=frag.createElement("base");base.href=doc.location.href;frag.head.appendChild(base);}frag.body.innerHTML=str;return frag.body.childNodes;}function onReady(fn){if(doc.readyState!=="loading")fn();else doc.addEventListener("DOMContentLoaded",fn);}function Init(selector,context){if(!selector)return this;if(selector.cash&&selector!==win)return selector;var elems=selector,i=0,length;if(isString(selector))elems=idMatch.test(selector)?doc.getElementById(selector.slice(1)):htmlMatch.test(selector)?parseHTML(selector):find(selector,context);else{if(isFunction(selector)){onReady(selector);return this;}}if(!elems)return this;if(elems.nodeType||elems===win){this[0]=elems;this.length=1;}else{length=this.length=elems.length;for(;i<length;i++)this[i]=elems[i];}return this;}function cash(selector,context){return new Init(selector,context);}var fn=cash.fn=cash.prototype=Init.prototype={cash:true,length:0,push,splice:ArrayProto.splice,map:ArrayProto.map,init:Init};Object.defineProperty(fn,"constructor",{value:cash});cash.parseHTML=parseHTML;cash.noop=noop;cash.isFunction=isFunction;cash.isString=isString;cash.extend=fn.extend=function(target){target=target||{};var args=slice.call(arguments),length=args.length,i=1;if(args.length===1){target=this;i=0;}for(;i<length;i++){if(!args[i])continue;for(var key in args[i])if(args[i].hasOwnProperty(key))target[key]=args[i][key];}return target;};function each(collection,callback){var l=collection.length,i=0;for(;i<l;i++)if(callback.call(collection[i],collection[i],i,collection)===false)break;}function matches(el,selector){var m=el&&(el.matches||el.webkitMatchesSelector||el.mozMatchesSelector||el.msMatchesSelector||el.oMatchesSelector);return !!m&&m.call(el,selector);}function getCompareFunction(selector){return (isString(selector)?matches:selector.cash?function(el){return selector.is(el);}:function(el,selector){return el===selector;});}function unique(collection){return cash(slice.call(collection).filter(function(item,index,self){return self.indexOf(item)===index;}));}cash.extend({merge:function(first,second){var len=+second.length,i=first.length,j=0;for(;j<len;i++,j++)first[i]=second[j];first.length=i;return first;},each,matches,unique,isArray:Array.isArray,isNumeric:function(n){return !isNaN(parseFloat(n))&&isFinite(n);}});var uid=cash.uid="_cash"+Date.now();function getDataCache(node){return node[uid]=node[uid]||{};}function setData(node,key,value){return getDataCache(node)[key]=value;}function getData(node,key){var c=getDataCache(node);if(c[key]===undefined)c[key]=node.dataset?node.dataset[key]:cash(node).attr("data-"+key);return c[key];}function removeData(node,key){var c=getDataCache(node);if(c)delete c[key];else if(node.dataset)delete node.dataset[key];else cash(node).removeAttr("data-"+name);}fn.extend({data:function(name,value){if(isString(name))return value===undefined?getData(this[0],name):this.each(function(v){return setData(v,name,value);});for(var key in name)this.data(key,name[key]);return this;},removeData:function(key){return this.each(function(v){return removeData(v,key);});}});var notWhiteMatch=/\S+/g;function getClasses(c){return isString(c)&&c.match(notWhiteMatch);}function hasClass(v,c){return v.classList?v.classList.contains(c):new RegExp("(^| )"+c+"( |$)","gi").test(v.className);}function addClass(v,c,spacedName){if(v.classList)v.classList.add(c);else{if(spacedName.indexOf(" "+c+" "))v.className+=" "+c;}}
222function removeClass(v,c){if(v.classList)v.classList.remove(c);else v.className=v.className.replace(c,"");}fn.extend({addClass:function(c){var classes=getClasses(c);return classes?this.each(function(v){var spacedName=" "+v.className+" ";each(classes,function(c){addClass(v,c,spacedName);});}):this;},attr:function(name,value){if(!name)return undefined;if(isString(name)){if(value===undefined)return this[0]?this[0].getAttribute?this[0].getAttribute(name):this[0][name]:undefined;return this.each(function(v){if(v.setAttribute)v.setAttribute(name,value);else v[name]=value;});}for(var key in name)this.attr(key,name[key]);return this;},hasClass:function(c){var check=false,classes=getClasses(c);if(classes&&classes.length)this.each(function(v){check=hasClass(v,classes[0]);return !check;});return check;},prop:function(name,value){if(isString(name))return value===undefined?this[0][name]:this.each(function(v){v[name]=value;});for(var key in name)this.prop(key,name[key]);return this;},removeAttr:function(name){return this.each(function(v){if(v.removeAttribute)v.removeAttribute(name);else delete v[name];});},removeClass:function(c){if(!arguments.length)return this.attr("class","");var classes=getClasses(c);return classes?this.each(function(v){each(classes,function(c){removeClass(v,c);});}):this;},removeProp:function(name){return this.each(function(v){delete v[name];});},toggleClass:function(c,state){if(state!==undefined)return this[state?"addClass":"removeClass"](c);var classes=getClasses(c);return classes?this.each(function(v){var spacedName=" "+v.className+" ";each(classes,function(c){if(hasClass(v,c))removeClass(v,c);else addClass(v,c,spacedName);});}):this;}});fn.extend({add:function(selector,context){return unique(cash.merge(this,cash(selector,context)));},each:function(callback){each(this,callback);return this;},eq:function(index){return cash(this.get(index));},filter:function(selector){if(!selector)return this;var comparator=isFunction(selector)?selector:getCompareFunction(selector);return cash(filter.call(this,function(e){return comparator(e,selector);}));},first:function(){return this.eq(0);},get:function(index){if(index===undefined)return slice.call(this);return index<0?this[index+this.length]:this[index];},index:function(elem){var child=elem?cash(elem)[0]:this[0],collection=elem?this:cash(child).parent().children();return slice.call(collection).indexOf(child);},last:function(){return this.eq(-1);}});var camelCase=function(){var camelRegex=/(?:^\w|[A-Z]|\b\w)/g,whiteSpace=/[\s-_]+/g;return function(str){return str.replace(camelRegex,function(letter,index){return letter[index===0?"toLowerCase":"toUpperCase"]();}).replace(whiteSpace,"");};}();var getPrefixedProp=function(){var cache={},doc=document,div=doc.createElement("div"),style=div.style;return function(prop){prop=camelCase(prop);if(cache[prop])return cache[prop];var ucProp=prop.charAt(0).toUpperCase()+prop.slice(1),prefixes=["webkit","moz","ms","o"],props=(prop+" "+prefixes.join(ucProp+" ")+ucProp).split(" ");each(props,function(p){if(p in style){cache[p]=prop=cache[prop]=p;return false;}});return cache[prop];};}();cash.prefixedProp=getPrefixedProp;cash.camelCase=camelCase;fn.extend({css:function(prop,value){if(isString(prop)){prop=getPrefixedProp(prop);return arguments.length>1?this.each(function(v){return v.style[prop]=value;}):win.getComputedStyle(this[0])[prop];}for(var key in prop)this.css(key,prop[key]);return this;}});function compute(el,prop){return parseInt(win.getComputedStyle(el[0],null)[prop],10)||0;}each(["Width","Height"],function(v){var lower=v.toLowerCase();fn[lower]=function(){return this[0].getBoundingClientRect()[lower];};fn["inner"+v]=function(){return this[0]["client"+v];};fn["outer"+v]=function(margins){return this[0]["offset"+v]+(margins?compute(this,"margin"+(v==="Width"?"Left":"Top"))+compute(this,"margin"+(v==="Width"?"Right":"Bottom")):0);};});function registerEvent(node,eventName,callback){var eventCache=getData(node,"_cashEvents")||setData(node,"_cashEvents",{});eventCache[eventName]=eventCache[eventName]||[];eventCache[eventName].push(callback);node.addEventListener(eventName,callback);}function removeEvent(node,eventName,callback){var events=getData(node,"_cashEvents"),eventCache=events&&events[eventName],index;if(!eventCache)return;if(callback){node.removeEventListener(eventName,callback);index=eventCache.indexOf(callback);if(index>=0)eventCache.splice(index,1);}else{each(eventCache,function(event){node.removeEventListener(eventName,event);});eventCache=[];}}fn.extend({off:function(eventName,callback){return this.each(function(v){return removeEvent(v,eventName,callback);});},on:function(eventName,delegate,callback,runOnce){var originalCallback;if(!isString(eventName)){for(var key in eventName)this.on(key,delegate,eventName[key]);return this;}if(isFunction(delegate)){callback=delegate;delegate=null;}if(eventName==="ready"){onReady(callback);return this;}if(delegate){originalCallback=callback;callback=function(e){var t=e.target;while(!matches(t,delegate)){if(t===this||t===null)return t=false;t=t.parentNode;}if(t)originalCallback.call(t,e);};}return this.each(function(v){var finalCallback=callback;if(runOnce)finalCallback=function(){callback.apply(this,arguments);removeEvent(v,eventName,finalCallback);};registerEvent(v,eventName,finalCallback);});},one:function(eventName,delegate,callback){return this.on(eventName,delegate,callback,true);},ready:onReady,trigger:function(eventName,data){if(document.createEvent){var evt=document.createEvent('HTMLEvents');evt.initEvent(eventName,true,false);evt=this.extend(evt,data);return this.each(function(v){return v.dispatchEvent(evt);});}}});function encode(name,value){return "&"+encodeURIComponent(name)+"="+encodeURIComponent(value).replace(/%20/g,"+");}function getSelectMultiple_(el){var values=[];
222each(el.options,function(o){if(o.selected)values.push(o.value);});return values.length?values:null;}function getSelectSingle_(el){var selectedIndex=el.selectedIndex;return selectedIndex>=0?el.options[selectedIndex].value:null;}function getValue(el){var type=el.type;if(!type)return null;switch(type.toLowerCase()){case "select-one":return getSelectSingle_(el);case "select-multiple":return getSelectMultiple_(el);case "radio":return el.checked?el.value:null;case "checkbox":return el.checked?el.value:null;default:return el.value?el.value:null;}}fn.extend({serialize:function(){var query="";each(this[0].elements||this,function(el){if(el.disabled||el.tagName==="FIELDSET")return;var name=el.name;switch(el.type.toLowerCase()){case "file":case "reset":case "submit":case "button":break;case "select-multiple":var values=getValue(el);if(values!==null)each(values,function(value){query+=encode(name,value);});break;default:var value=getValue(el);if(value!==null)query+=encode(name,value);}});return query.substr(1);},val:function(value){if(value===undefined)return getValue(this[0]);return this.each(function(v){return v.value=value;});}});function insertElement(el,child,prepend){if(prepend){var first=el.childNodes[0];el.insertBefore(child,first);}else el.appendChild(child);}function insertContent(parent,child,prepend){var str=isString(child);if(!str&&child.length){each(child,function(v){return insertContent(parent,v,prepend);});return;}each(parent,str?function(v){return v.insertAdjacentHTML(prepend?"afterbegin":"beforeend",child);}:function(v,i){return insertElement(v,i===0?child:child.cloneNode(true),prepend);});}fn.extend({after:function(selector){cash(selector).insertAfter(this);return this;},append:function(content){insertContent(this,content);return this;},appendTo:function(parent){insertContent(cash(parent),this);return this;},before:function(selector){cash(selector).insertBefore(this);return this;},clone:function(){return cash(this.map(function(v){return v.cloneNode(true);}));},empty:function(){this.html("");return this;},html:function(content){if(content===undefined)return this[0].innerHTML;var source=content.nodeType?content[0].outerHTML:content;return this.each(function(v){return v.innerHTML=source;});},insertAfter:function(selector){var _this=this;cash(selector).each(function(el,i){var parent=el.parentNode,sibling=el.nextSibling;_this.each(function(v){parent.insertBefore(i===0?v:v.cloneNode(true),sibling);});});return this;},insertBefore:function(selector){var _this2=this;cash(selector).each(function(el,i){var parent=el.parentNode;_this2.each(function(v){parent.insertBefore(i===0?v:v.cloneNode(true),el);});});return this;},prepend:function(content){insertContent(this,content,true);return this;},prependTo:function(parent){insertContent(cash(parent),this,true);return this;},remove:function(){return this.each(function(v){if(!!v.parentNode)return v.parentNode.removeChild(v);});},text:function(content){if(content===undefined)return this[0].textContent;return this.each(function(v){return v.textContent=content;});}});var docEl=doc.documentElement;fn.extend({position:function(){var el=this[0];return {left:el.offsetLeft,top:el.offsetTop};},offset:function(){var rect=this[0].getBoundingClientRect();return {top:rect.top+win.pageYOffset-docEl.clientTop,left:rect.left+win.pageXOffset-docEl.clientLeft};},offsetParent:function(){return cash(this[0].offsetParent);}});fn.extend({children:function(selector){var elems=[];this.each(function(el){push.apply(elems,el.children);});elems=unique(elems);return !selector?elems:elems.filter(function(v){return matches(v,selector);});},closest:function(selector){if(!selector||this.length<1)return cash();if(this.is(selector))return this.filter(selector);return this.parent().closest(selector);},is:function(selector){if(!selector)return false;var match=false,comparator=getCompareFunction(selector);this.each(function(el){match=comparator(el,selector);return !match;});return match;},find:function(selector){if(!selector||selector.nodeType)return cash(selector&&this.has(selector).length?selector:null);var elems=[];this.each(function(el){push.apply(elems,find(selector,el));});return unique(elems);},has:function(selector){var comparator=isString(selector)?function(el){return find(selector,el).length!==0;}:function(el){return el.contains(selector);};return this.filter(comparator);},next:function(){return cash(this[0].nextElementSibling);},not:function(selector){if(!selector)return this;var comparator=getCompareFunction(selector);return this.filter(function(el){return !comparator(el,selector);});},parent:function(){var result=[];this.each(function(item){if(item&&item.parentNode)result.push(item.parentNode);});return unique(result);},parents:function(selector){var last,result=[];this.each(function(item){last=item;while(last&&last.parentNode&&last!==doc.body.parentNode){last=last.parentNode;if(!selector||selector&&matches(last,selector))result.push(last);}});return unique(result);},prev:function(){return cash(this[0].previousElementSibling);},siblings:function(selector){var collection=this.parent().children(selector),el=this[0];return collection.filter(function(i){return i!==el;});}});return cash;});;var Component=function(){function Component(classDef,el,options){_classCallCheck(this,Component);if(!(el instanceof Element))console.error(Error(el+' is not an HTML Element'));var ins=classDef.getInstance(el);if(!!ins)ins.destroy();this.el=el;this.$el=cash(el);}_createClass(Component,null,[{key:"init",value:function init(classDef,els,options){var instances=null;if(els instanceof Element)instances=new classDef(els,options);else{if(!!els&&(els.jquery||els.cash||els instanceof NodeList)){var instancesArr=[];for(var i=0;i<els.length;
222i++)instancesArr.push(new classDef(els[i],options));instances=instancesArr;}}return instances;}}]);return Component;}();;(function(window){if(window.Package)M={};else window.M={};M.jQueryLoaded=!!window.jQuery;})(window);if(typeof define==='function'&&define.amd)define('M',[],function(){return M;});else{if(typeof exports!=='undefined'&&!exports.nodeType){if(typeof module!=='undefined'&&!module.nodeType&&module.exports)exports=module.exports=M;exports.default=M;}}M.keys={TAB:9,ENTER:13,ESC:27,ARROW_UP:38,ARROW_DOWN:40};M.tabPressed=false;M.keyDown=false;var docHandleKeydown=function(e){M.keyDown=true;if(e.which===M.keys.TAB||e.which===M.keys.ARROW_DOWN||e.which===M.keys.ARROW_UP)M.tabPressed=true;};var docHandleKeyup=function(e){M.keyDown=false;if(e.which===M.keys.TAB||e.which===M.keys.ARROW_DOWN||e.which===M.keys.ARROW_UP)M.tabPressed=false;};var docHandleFocus=function(e){if(M.keyDown)document.body.classList.add('keyboard-focused');};var docHandleBlur=function(e){document.body.classList.remove('keyboard-focused');};document.addEventListener('keydown',docHandleKeydown,true);document.addEventListener('keyup',docHandleKeyup,true);document.addEventListener('focus',docHandleFocus,true);document.addEventListener('blur',docHandleBlur,true);M.initializeJqueryWrapper=function(plugin,pluginName,classRef){jQuery.fn[pluginName]=function(methodOrOptions){if(plugin.prototype[methodOrOptions]){var params=Array.prototype.slice.call(arguments,1);if(methodOrOptions.slice(0,3)==='get'){var instance=this.first()[0][classRef];return instance[methodOrOptions].apply(instance,params);}return this.each(function(){var instance=this[classRef];instance[methodOrOptions].apply(instance,params);});}else{if(typeof methodOrOptions==='object'||!methodOrOptions){plugin.init(this,arguments[0]);return this;}}jQuery.error("Method "+methodOrOptions+" does not exist on jQuery."+pluginName);};};M.AutoInit=function(context){var root=!!context?context:document.body;var registry={Autocomplete:root.querySelectorAll('.autocomplete:not(.no-autoinit)'),Carousel:root.querySelectorAll('.carousel:not(.no-autoinit)'),Chips:root.querySelectorAll('.chips:not(.no-autoinit)'),Collapsible:root.querySelectorAll('.collapsible:not(.no-autoinit)'),Datepicker:root.querySelectorAll('.datepicker:not(.no-autoinit)'),Dropdown:root.querySelectorAll('.dropdown-trigger:not(.no-autoinit)'),Materialbox:root.querySelectorAll('.materialboxed:not(.no-autoinit)'),Modal:root.querySelectorAll('.modal:not(.no-autoinit)'),Parallax:root.querySelectorAll('.parallax:not(.no-autoinit)'),Pushpin:root.querySelectorAll('.pushpin:not(.no-autoinit)'),ScrollSpy:root.querySelectorAll('.scrollspy:not(.no-autoinit)'),FormSelect:root.querySelectorAll('select:not(.no-autoinit)'),Sidenav:root.querySelectorAll('.sidenav:not(.no-autoinit)'),Tabs:root.querySelectorAll('.tabs:not(.no-autoinit)'),TapTarget:root.querySelectorAll('.tap-target:not(.no-autoinit)'),Timepicker:root.querySelectorAll('.timepicker:not(.no-autoinit)'),Tooltip:root.querySelectorAll('.tooltipped:not(.no-autoinit)'),FloatingActionButton:root.querySelectorAll('.fixed-action-btn:not(.no-autoinit)')};for(var pluginName in registry){var plugin=M[pluginName];plugin.init(registry[pluginName]);}};M.objectSelectorString=function(obj){var tagStr=obj.prop('tagName')||'';var idStr=obj.attr('id')||'';var classStr=obj.attr('class')||'';return (tagStr+idStr+classStr).replace(/\s/g,'');};M.guid=function(){function s4(){return Math.floor((1+Math.random())*0x10000).toString(16).substring(1);}return function(){return s4()+s4()+'-'+s4()+'-'+s4()+'-'+s4()+'-'+s4()+s4()+s4();};}();M.escapeHash=function(hash){return hash.replace(/(:|\.|\[|\]|,|=|\/)/g,'\\$1');};M.elementOrParentIsFixed=function(element){var $element=$(element);var $checkElements=$element.add($element.parents());var isFixed=false;$checkElements.each(function(){if($(this).css('position')==='fixed'){isFixed=true;return false;}});return isFixed;};M.checkWithinContainer=function(container,bounding,offset){var edges={top:false,right:false,bottom:false,left:false};var containerRect=container.getBoundingClientRect();var containerBottom=container===document.body?Math.max(containerRect.bottom,window.innerHeight):containerRect.bottom;var scrollLeft=container.scrollLeft;var scrollTop=container.scrollTop;var scrolledX=bounding.left-scrollLeft;var scrolledY=bounding.top-scrollTop;if(scrolledX<containerRect.left+offset||scrolledX<offset)edges.left=true;if(scrolledX+bounding.width>containerRect.right-offset||scrolledX+bounding.width>window.innerWidth-offset)edges.right=true;if(scrolledY<containerRect.top+offset||scrolledY<offset)edges.top=true;if(scrolledY+bounding.height>containerBottom-offset||scrolledY+bounding.height>window.innerHeight-offset)edges.bottom=true;return edges;};M.checkPossibleAlignments=function(el,container,bounding,offset){var canAlign={top:true,right:true,bottom:true,left:true,spaceOnTop:null,
222spaceOnRight:null,spaceOnBottom:null,spaceOnLeft:null};var containerAllowsOverflow=getComputedStyle(container).overflow==='visible';var containerRect=container.getBoundingClientRect();var containerHeight=Math.min(containerRect.height,window.innerHeight);var containerWidth=Math.min(containerRect.width,window.innerWidth);var elOffsetRect=el.getBoundingClientRect();var scrollLeft=container.scrollLeft;var scrollTop=container.scrollTop;var scrolledX=bounding.left-scrollLeft;var scrolledYTopEdge=bounding.top-scrollTop;var scrolledYBottomEdge=bounding.top+elOffsetRect.height-scrollTop;canAlign.spaceOnRight=!containerAllowsOverflow?containerWidth-(scrolledX+bounding.width):window.innerWidth-(elOffsetRect.left+bounding.width);if(canAlign.spaceOnRight<0)canAlign.left=false;canAlign.spaceOnLeft=!containerAllowsOverflow?scrolledX-bounding.width+elOffsetRect.width:elOffsetRect.right-bounding.width;if(canAlign.spaceOnLeft<0)canAlign.right=false;canAlign.spaceOnBottom=!containerAllowsOverflow?containerHeight-(scrolledYTopEdge+bounding.height+offset):window.innerHeight-(elOffsetRect.top+bounding.height+offset);if(canAlign.spaceOnBottom<0)canAlign.top=false;canAlign.spaceOnTop=!containerAllowsOverflow?scrolledYBottomEdge-(bounding.height-offset):elOffsetRect.bottom-(bounding.height+offset);if(canAlign.spaceOnTop<0)canAlign.bottom=false;return canAlign;};M.getOverflowParent=function(element){if(element==null)return null;if(element===document.body||getComputedStyle(element).overflow!=='visible')return element;return M.getOverflowParent(element.parentElement);};M.getIdFromTrigger=function(trigger){var id=trigger.getAttribute('data-target');if(!id){id=trigger.getAttribute('href');if(id)id=id.slice(1);else id='';}return id;};M.getDocumentScrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;};M.getDocumentScrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;};var getTime=Date.now||function(){return new Date().getTime();};M.throttle=function(func,wait,options){var context=void 0,args=void 0,result=void 0;var timeout=null;var previous=0;options||(options={});var later=function(){previous=options.leading===false?0:getTime();timeout=null;result=func.apply(context,args);context=args=null;};return function(){var now=getTime();if(!previous&&options.leading===false)previous=now;var remaining=wait-(now-previous);context=this;args=arguments;if(remaining<=0){clearTimeout(timeout);timeout=null;previous=now;result=func.apply(context,args);context=args=null;}else{if(!timeout&&options.trailing!==false)timeout=setTimeout(later,remaining);}return result;};};;var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,r,p){if(p.get||p.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[r]=p.value);};$jscomp.getGlobal=function(e){return "undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e;};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol);};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++;};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this);}});$jscomp.initSymbolIterator=function(){};};$jscomp.arrayIterator=function(e){var r=0;return $jscomp.iteratorPrototype(function(){return r<e.length?{done:!1,value:e[r++]}:{done:!0};});};$jscomp.iteratorPrototype=function(e){$jscomp.initSymbolIterator();e={next:e};e[$jscomp.global.Symbol.iterator]=function(){return this;};return e;};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(e,r){$jscomp.initSymbolIterator();e instanceof String&&(e+="");var p=0,m={next:function(){if(p<e.length){var u=p++;return {value:r(u,e[u]),done:!1};}m.next=function(){return {done:!0,value:void 0};};return m.next();}};m[Symbol.iterator]=function(){return m;};return m;};$jscomp.polyfill=function(e,r,p,m){if(r){p=$jscomp.global;e=e.split(".");for(m=0;m<e.length-1;m++){var u=e[m];u in p||(p[u]={});p=p[u];}e=e[e.length-1];m=p[e];r=r(m);r!=m&&null!=r&&$jscomp.defineProperty(p,e,{configurable:!0,writable:!0,value:r});}};$jscomp.polyfill("Array.prototype.keys",function(e){return e?e:function(){return $jscomp.iteratorFromArray(this,function(e){return e;});};},"es6-impl","es3");var $jscomp$this=this;(function(r){M.anime=r();})(function(){function e(a){if(!h.col(a))try{return document.querySelectorAll(a);}catch(c){}}function r(a,c){for(var d=a.length,b=2<=arguments.length?arguments[1]:void 0,f=[],n=0;n<d;n++)if(n in a){var k=a[n];c.call(b,k,n,a)&&f.push(k);}return f;}function p(a){return a.reduce(function(a,d){return a.concat(h.arr(d)?p(d):d);},[]);}function m(a){if(h.arr(a))return a;h.str(a)&&(a=e(a)||a);return a instanceof NodeList||a instanceof HTMLCollection?[].slice.call(a):[a];}function u(a,c){return a.some(function(a){return a===c;});}function C(a){var c={},d;for(d in a)c[d]=a[d];return c;}function D(a,c){var d=C(a),b;for(b in a)d[b]=c.hasOwnProperty(b)?c[b]:a[b];return d;}function z(a,c){var d=C(a),b;for(b in c)d[b]=h.und(a[b])?c[b]:a[b];return d;}function T(a){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,c,d,k){return c+c+d+d+k+k;});var c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);a=parseInt(c[1],16);var d=parseInt(c[2],16),c=parseInt(c[3],16);return "rgba("+a+","+d+","+c+",1)";}function U(a){function c(a,c,b){0>b&&(b+=1);1<b&&--b;return b<1/6?a+6*(c-a)*b:.5>b?c:b<2/3?a+(c-a)*(2/3-b)*6:a;}var d=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(a)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(a);a=parseInt(d[1])/360;var b=parseInt(d[2])/100,f=parseInt(d[3])/100,d=d[4]||1;if(0==b)f=b=a=f;else{var n=.5>f?f*(1+b):f+b-f*b,k=2*f-n,f=c(k,n,a+1/3),b=c(k,n,a);a=c(k,n,a-1/3);}return "rgba("+255*f+","+255*b+","+255*a+","+d+")";}function y(a){if(a=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(a))return a[2];}function V(a){if(-1<a.indexOf("translate")||"perspective"===a)return "px";if(-1<a.indexOf("rotate")||-1<a.indexOf("skew"))return "deg";}function I(a,c){return h.fnc(a)?a(c.target,c.id,c.total):a;}function E(a,c){if(c in a.style)return getComputedStyle(a).getPropertyValue(c.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0";}
222function J(a,c){if(h.dom(a)&&u(W,c))return "transform";if(h.dom(a)&&(a.getAttribute(c)||h.svg(a)&&a[c]))return "attribute";if(h.dom(a)&&"transform"!==c&&E(a,c))return "css";if(null!=a[c])return "object";}function X(a,c){var d=V(c),d=-1<c.indexOf("scale")?1:0+d;a=a.style.transform;if(!a)return d;for(var b=[],f=[],n=[],k=/(\w+)\((.+?)\)/g;b=k.exec(a);)f.push(b[1]),n.push(b[2]);a=r(n,function(a,b){return f[b]===c;});return a.length?a[0]:d;}function K(a,c){switch(J(a,c)){case "transform":return X(a,c);case "css":return E(a,c);case "attribute":return a.getAttribute(c);}return a[c]||0;}function L(a,c){var d=/^(\*=|\+=|-=)/.exec(a);if(!d)return a;var b=y(a)||0;c=parseFloat(c);a=parseFloat(a.replace(d[0],""));switch(d[0][0]){case "+":return c+a+b;case "-":return c-a+b;case "*":return c*a+b;}}function F(a,c){return Math.sqrt(Math.pow(c.x-a.x,2)+Math.pow(c.y-a.y,2));}function M(a){a=a.points;for(var c=0,d,b=0;b<a.numberOfItems;b++){var f=a.getItem(b);0<b&&(c+=F(d,f));d=f;}return c;}function N(a){if(a.getTotalLength)return a.getTotalLength();switch(a.tagName.toLowerCase()){case "circle":return 2*Math.PI*a.getAttribute("r");case "rect":return 2*a.getAttribute("width")+2*a.getAttribute("height");case "line":return F({x:a.getAttribute("x1"),y:a.getAttribute("y1")},{x:a.getAttribute("x2"),y:a.getAttribute("y2")});case "polyline":return M(a);case "polygon":var c=a.points;return M(a)+F(c.getItem(c.numberOfItems-1),c.getItem(0));}}function Y(a,c){function d(b){b=void 0===b?0:b;return a.el.getPointAtLength(1<=c+b?c+b:0);}var b=d(),f=d(-1),n=d(1);switch(a.property){case "x":return b.x;case "y":return b.y;case "angle":return 180*Math.atan2(n.y-f.y,n.x-f.x)/Math.PI;}}function O(a,c){var d=/-?\d*\.?\d+/g,b;b=h.pth(a)?a.totalLength:a;if(h.col(b))if(h.rgb(b)){var f=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(b);b=f?"rgba("+f[1]+",1)":b;}else b=h.hex(b)?T(b):h.hsl(b)?U(b):void 0;else f=(f=y(b))?b.substr(0,b.length-f.length):b,b=c&&!/\s/g.test(b)?f+c:f;b+="";return {original:b,numbers:b.match(d)?b.match(d).map(Number):[0],strings:h.str(a)||c?b.split(d):[]};}function P(a){a=a?p(h.arr(a)?a.map(m):m(a)):[];return r(a,function(a,d,b){return b.indexOf(a)===d;});}function Z(a){var c=P(a);return c.map(function(a,b){return {target:a,id:b,total:c.length};});}function aa(a,c){var d=C(c);if(h.arr(a)){var b=a.length;2!==b||h.obj(a[0])?h.fnc(c.duration)||(d.duration=c.duration/b):a={value:a};}return m(a).map(function(a,b){b=b?0:c.delay;a=h.obj(a)&&!h.pth(a)?a:{value:a};h.und(a.delay)&&(a.delay=b);return a;}).map(function(a){return z(a,d);});}function ba(a,c){var d={},b;for(b in a){var f=I(a[b],c);h.arr(f)&&(f=f.map(function(a){return I(a,c);}),1===f.length&&(f=f[0]));d[b]=f;}d.duration=parseFloat(d.duration);d.delay=parseFloat(d.delay);return d;}function ca(a){return h.arr(a)?A.apply(this,a):Q[a];}function da(a,c){var d;return a.tweens.map(function(b){b=ba(b,c);var f=b.value,e=K(c.target,a.name),k=d?d.to.original:e,k=h.arr(f)?f[0]:k,w=L(h.arr(f)?f[1]:f,k),e=y(w)||y(k)||y(e);b.from=O(k,e);b.to=O(w,e);b.start=d?d.end:a.offset;b.end=b.start+b.delay+b.duration;b.easing=ca(b.easing);b.elasticity=(1E3-Math.min(Math.max(b.elasticity,1),999))/1E3;b.isPath=h.pth(f);b.isColor=h.col(b.from.original);b.isColor&&(b.round=1);return d=b;});}function ea(a,c){return r(p(a.map(function(a){return c.map(function(b){var c=J(a.target,b.name);if(c){var d=da(b,a);b={type:c,property:b.name,animatable:a,tweens:d,duration:d[d.length-1].end,delay:d[0].delay};}else b=void 0;return b;});})),function(a){return !h.und(a);});}function R(a,c,d,b){var f="delay"===a;return c.length?(f?Math.min:Math.max).apply(Math,c.map(function(b){return b[a];})):f?b.delay:d.offset+b.delay+b.duration;}function fa(a){var c=D(ga,a),d=D(S,a),b=Z(a.targets),f=[],e=z(c,d),k;for(k in a)e.hasOwnProperty(k)||"targets"===k||f.push({name:k,offset:e.offset,tweens:aa(a[k],d)});a=ea(b,f);return z(c,{children:[],animatables:b,animations:a,duration:R("duration",a,c,d),delay:R("delay",a,c,d)});}function q(a){function c(){return window.Promise&&new Promise(function(a){return p=a;});}function d(a){return g.reversed?g.duration-a:a;}function b(a){for(var b=0,c={},d=g.animations,f=d.length;b<f;){var e=d[b],k=e.animatable,h=e.tweens,n=h.length-1,l=h[n];n&&(l=r(h,function(b){return a<b.end;})[0]||l);for(var h=Math.min(Math.max(a-l.start-l.delay,0),l.duration)/l.duration,w=isNaN(h)?1:l.easing(h,l.elasticity),h=l.to.strings,p=l.round,n=[],m=void 0,m=l.to.numbers.length,t=0;t<m;t++){var x=void 0,x=l.to.numbers[t],q=l.from.numbers[t],x=l.isPath?Y(l.value,w*x):q+w*(x-q);p&&(l.isColor&&2<t||(x=Math.round(x*p)/p));n.push(x);}if(l=h.length)for(m=h[0],w=0;w<l;w++)p=h[w+1],t=n[w],isNaN(t)||(m=p?m+(t+p):m+(t+" "));else m=n[0];ha[e.type](k.target,e.property,m,c,k.id);e.currentValue=m;b++;}if(b=Object.keys(c).length)for(d=0;d<b;d++)H||(H=E(document.body,"transform")?"transform":"-webkit-transform"),g.animatables[d].target.style[H]=c[d].join(" ");g.currentTime=a;g.progress=a/g.duration*100;}function f(a){if(g[a])g[a](g);}function e(){g.remaining&&!0!==g.remaining&&g.remaining--;}function k(a){var k=g.duration,n=g.offset,w=n+g.delay,r=g.currentTime,x=g.reversed,q=d(a);if(g.children.length){var u=g.children,v=u.length;if(q>=g.currentTime)for(var G=0;G<v;G++)u[G].seek(q);else for(;v--;)u[v].seek(q);}if(q>=w||!k)g.began||(g.began=!0,f("begin")),f("run");if(q>n&&q<k)b(q);else{if(q<=n&&0!==r&&(b(0),x&&e()),q>=k&&r!==k||!k)b(k),x||e();}f("update");a>=k&&(g.remaining?(t=h,"alternate"===g.direction&&(g.reversed=!g.reversed)):(g.pause(),g.completed||(g.completed=!0,f("complete"),"Promise" in window&&(p(),m=c()))),l=0);}a=void 0===a?{}:a;var h,t,l=0,p=null,m=c(),g=fa(a);g.reset=function(){var a=g.direction,c=g.loop;g.currentTime=0;g.progress=0;g.paused=!0;g.began=!1;g.completed=!1;g.reversed="reverse"===a;g.remaining="alternate"===a&&1===c?2:c;b(0);for(a=g.children.length;a--;)g.children[a].reset();};g.tick=function(a){h=a;t||(t=h);k((l+h-t)*q.speed);};g.seek=function(a){k(d(a));};g.pause=function(){var a=v.indexOf(g);-1<a&&v.splice(a,1);g.paused=!0;};g.play=function(){g.paused&&(g.paused=!1,t=0,l=d(g.currentTime),v.push(g),B||ia());};g.reverse=function(){g.reversed=!g.reversed;t=0;l=d(g.currentTime);};g.restart=function(){g.pause();g.reset();g.play();};g.finished=m;g.reset();g.autoplay&&g.play();return g;}var ga={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},S={duration:1E3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},W="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX 
222skewY perspective".split(" "),H,h={arr:function(a){return Array.isArray(a);},obj:function(a){return -1<Object.prototype.toString.call(a).indexOf("Object");},pth:function(a){return h.obj(a)&&a.hasOwnProperty("totalLength");},svg:function(a){return a instanceof SVGElement;},dom:function(a){return a.nodeType||h.svg(a);},str:function(a){return "string"===typeof a;},fnc:function(a){return "function"===typeof a;},und:function(a){return "undefined"===typeof a;},hex:function(a){return (/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a));},rgb:function(a){return (/^rgb/.test(a));},hsl:function(a){return (/^hsl/.test(a));},col:function(a){return h.hex(a)||h.rgb(a)||h.hsl(a);}},A=function(){function a(a,d,b){return (((1-3*b+3*d)*a+(3*b-6*d))*a+3*d)*a;}return function(c,d,b,f){if(0<=c&&1>=c&&0<=b&&1>=b){var e=new Float32Array(11);if(c!==d||b!==f)for(var k=0;11>k;++k)e[k]=a(.1*k,c,b);return function(k){if(c===d&&b===f)return k;if(0===k)return 0;if(1===k)return 1;for(var h=0,l=1;10!==l&&e[l]<=k;++l)h+=.1;--l;var l=h+(k-e[l])/(e[l+1]-e[l])*.1,n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(.001<=n){for(h=0;4>h;++h){n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(0===n)break;var m=a(l,c,b)-k,l=l-m/n;}k=l;}else if(0===n)k=l;else{var l=h,h=h+.1,g=0;do m=l+(h-l)/2,n=a(m,c,b)-k,0<n?h=m:l=m;while(1e-7<Math.abs(n)&&10>++g);k=m;}return a(k,d,f);};}};}(),Q=function(){function a(a,b){return 0===a||1===a?a:-Math.pow(2,10*(a-1))*Math.sin(2*(a-1-b/(2*Math.PI)*Math.asin(1))*Math.PI/b);}var c="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),d={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],a],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(b,c){return 1-a(1-b,c);}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(b,c){return .5>b?a(2*b,c)/2:1-a(-2*b+2,c)/2;}]},b={linear:A(.25,.25,.75,.75)},f={},e;for(e in d)f.type=e,d[f.type].forEach(function(a){return function(d,f){b["ease"+a.type+c[f]]=h.fnc(d)?d:A.apply($jscomp$this,d);};}(f)),f={type:f.type};return b;}(),ha={css:function(a,c,d){return a.style[c]=d;},attribute:function(a,c,d){return a.setAttribute(c,d);},object:function(a,c,d){return a[c]=d;},transform:function(a,c,d,b,f){b[f]||(b[f]=[]);b[f].push(c+"("+d+")");}},v=[],B=0,ia=function(){function a(){B=requestAnimationFrame(c);}function c(c){var b=v.length;if(b){for(var d=0;d<b;)v[d]&&v[d].tick(c),d++;a();}else cancelAnimationFrame(B),B=0;}return a;}();q.version="2.2.0";q.speed=1;q.running=v;q.remove=function(a){a=P(a);for(var c=v.length;c--;)for(var d=v[c],b=d.animations,f=b.length;f--;)u(a,b[f].animatable.target)&&(b.splice(f,1),b.length||d.pause());};q.getValue=K;q.path=function(a,c){var d=h.str(a)?e(a)[0]:a,b=c||100;return function(a){return {el:d,property:a,totalLength:N(d)*(b/100)};};};q.setDashoffset=function(a){var c=N(a);a.setAttribute("stroke-dasharray",c);return c;};q.bezier=A;q.easings=Q;q.timeline=function(a){var c=q(a);c.pause();c.duration=0;c.add=function(d){c.children.forEach(function(a){a.began=!0;a.completed=!0;});m(d).forEach(function(b){var d=z(b,D(S,a||{}));d.targets=d.targets||a.targets;b=c.duration;var e=d.offset;d.autoplay=!1;d.direction=c.direction;d.offset=h.und(e)?b:L(e,b);c.began=!0;c.completed=!0;c.seek(d.offset);d=q(d);d.began=!0;d.completed=!0;d.duration>b&&(c.duration=d.duration);c.children.push(d);});c.seek(0);c.reset();c.autoplay&&c.restart();return c;};return c;};q.random=function(a,c){return Math.floor(Math.random()*(c-a+1))+a;};return q;});;(function($,anim){'use strict';var _defaults={accordion:true,onOpenStart:undefined,onOpenEnd:undefined,onCloseStart:undefined,onCloseEnd:undefined,inDuration:300,outDuration:300};var Collapsible=function(_Component){_inherits(Collapsible,_Component);function Collapsible(el,options){_classCallCheck(this,Collapsible);var _this3=_possibleConstructorReturn(this,(Collapsible.__proto__||Object.getPrototypeOf(Collapsible)).call(this,Collapsible,el,options));_this3.el.M_Collapsible=_this3;_this3.options=$.extend({},Collapsible.defaults,options);_this3.$headers=_this3.$el.children('li').children('.collapsible-header');_this3.$headers.attr('tabindex',0);_this3._setupEventHandlers();var $activeBodies=_this3.$el.children('li.active').children('.collapsible-body');if(_this3.options.accordion)$activeBodies.first().css('display','block');else $activeBodies.css('display','block');return _this3;}_createClass(Collapsible,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this.el.M_Collapsible=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){var _this4=this;this._handleCollapsibleClickBound=this._handleCollapsibleClick.bind(this);this._handleCollapsibleKeydownBound=this._handleCollapsibleKeydown.bind(this);this.el.addEventListener('click',this._handleCollapsibleClickBound);this.$headers.each(function(header){header.addEventListener('keydown',_this4._handleCollapsibleKeydownBound);});}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){var _this5=this;this.el.removeEventListener('click',this._handleCollapsibleClickBound);this.$headers.each(function(header){header.removeEventListener('keydown',_this5._handleCollapsibleKeydownBound);});}},{key:"_handleCollapsibleClick",value:function _handleCollapsibleClick(e){var $header=$(e.target).closest('.collapsible-header');if(e.target&&$header.length){var $collapsible=$header.closest('.collapsible');if($collapsible[0]===this.el){var $collapsibleLi=$header.closest('li');var $collapsibleLis=$collapsible.children('li');var isActive=$collapsibleLi[0].classList.contains('active');var index=$collapsibleLis.index($collapsibleLi);if(isActive)this.close(index);else this.open(index);}}}},{key:"_handleCollapsibleKeydown",value:function _handleCollapsibleKeydown(e){if(e.keyCode===13)this._handleCollapsibleClickBound(e);}},{key:"_animateIn",value:function _animateIn(index){var _this6=this;var $collapsibleLi=this.$el.children('li').eq(index);if($collapsibleLi.length){var $body=$collapsibleLi.children('.collapsible-body');anim.remove($body[0]);$body.css({display:'block',overflow:'hidden',height:0,paddingTop:'',paddingBottom:''});var pTop=$body.css('padding-top');var pBottom=$body.css('padding-bottom');var finalHeight=$body[0].scrollHeight;$body.css({paddingTop:0,paddingBottom:0});anim({targets:$body[0],height:finalHeight,paddingTop:pTop,paddingBottom:pBottom,duration:this.options.inDuration,easing:'easeInOutCubic',complete:function(anim){$body.css({overflow:'',paddingTop:'',paddingBottom:'',height:''});if(typeof _this6.options.onOpenEnd==='function')_this6.options.onOpenEnd.call(_this6,$collapsibleLi[0]);}});}}},{key:"_animateOut",value:function _animateOut(index){var _this7=this;var $collapsibleLi=this.$el.children('li').eq(index);if($collapsibleLi.length){var $body=$collapsibleLi.children('.collapsible-body');anim.remove($body[0]);$body.css('overflow','hidden');anim({targets:$body[0],height:0,paddingTop:0,paddingBottom:0,duration:this.options.outDuration,easing:'easeInOutCubic',complete:function(){$body.css({height:'',overflow:'',padding:'',display:''});if(typeof _this7.options.onCloseEnd==='function')_this7.options.onCloseEnd.call(_this7,$collapsibleLi[0]);}});}}},{key:"open",value:function open(index){var _this8=this;var $collapsibleLi=this.$el.children('li').eq(index);if($collapsibleLi.length&&!$collapsibleLi[0].classList.contains('active')){if(typeof this.options.onOpenStart==='function')this.options.onOpenStart.call(this,$collapsibleLi[0]);if(this.options.accordion){var $collapsibleLis=this.$el.children('li');var $activeLis=this.$el.children('li.active');$activeLis.each(function(el){var index=$collapsibleLis.index($(el));_this8.close(index);});}$collapsibleLi[0].classList.add('active');this._animateIn(index);}}},{key:"close",value:function close(index){var $collapsibleLi=this.$el.children('li').eq(index);if($collapsibleLi.length&&$collapsibleLi[0].classList.contains('active')){if(typeof this.options.onCloseStart==='function')this.options.onCloseStart.call(this,$collapsibleLi[0]);$collapsibleLi[0].classList.remove('active');this._animateOut(index);}}}],[{key:"init",value:function init(els,options){return _get(Collapsible.__proto__||Object.getPrototypeOf(Collapsible),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Collapsible;}},{key:"defaults",get:function(){return _defaults;}}]);return Collapsible;}(Component);M.Collapsible=Collapsible;if(M.jQueryLoaded)M.initializeJqueryWrapper(Collapsible,'collapsible','M_Collapsible');})(cash,M.anime);;(function($,anim){'use strict';var _defaults={alignment:'left',autoFocus:true,constrainWidth:true,container:null,coverTrigger:true,closeOnClick:true,hover:false,inDuration:150,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onItemClick:null};var Dropdown=function(_Component2){_inherits(Dropdown,_Component2);function Dropdown(el,options){_classCallCheck(this,Dropdown);var _this9=_possibleConstructorReturn(this,(Dropdown.__proto__||Object.getPrototypeOf(Dropdown)).call(this,Dropdown,el,options));_this9.el.M_Dropdown=_this9;Dropdown._dropdowns.push(_this9);_this9.id=M.getIdFromTrigger(el);_this9.dropdownEl=document.getElementById(_this9.id);_this9.$dropdownEl=$(_this9.dropdownEl);_this9.options=$.extend({},Dropdown.defaults,options);_this9.isOpen=false;_this9.isScrollable=false;_this9.isTouchMoving=false;_this9.focusedIndex=-1;_this9.filterQuery=[];if(!!_this9.options.container)$(_this9.options.container).append(_this9.dropdownEl);else _this9.$el.after(_this9.dropdownEl);_this9._makeDropdownFocusable();_this9._resetFilterQueryBound=_this9._resetFilterQuery.bind(_this9);_this9._handleDocumentClickBound=_this9._handleDocumentClick.bind(_this9);_this9._handleDocumentTouchmoveBound=_this9._handleDocumentTouchmove.bind(_this9);_this9._handleDropdownClickBound=_this9._handleDropdownClick.bind(_this9);_this9._handleDropdownKeydownBound=_this9._handleDropdownKeydown.bind(_this9);_this9._handleTriggerKeydownBound=_this9._handleTriggerKeydown.bind(_this9);_this9._setupEventHandlers();return _this9;}_createClass(Dropdown,[{key:"destroy",value:function destroy(){this._resetDropdownStyles();this._removeEventHandlers();Dropdown._dropdowns.splice(Dropdown._dropdowns.indexOf(this),1);this.el.M_Dropdown=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this.el.addEventListener('keydown',this._handleTriggerKeydownBound);this.dropdownEl.addEventListener('click',this._handleDropdownClickBound);if(this.options.hover){this._handleMouseEnterBound=this._handleMouseEnter.bind(this);this.el.addEventListener('mouseenter',this._handleMouseEnterBound);this._handleMouseLeaveBound=this._handleMouseLeave.bind(this);this.el.addEventListener('mouseleave',this._handleMouseLeaveBound);this.dropdownEl.addEventListener('mouseleave',this._handleMouseLeaveBound);}else{this._handleClickBound=this._handleClick.bind(this);this.el.addEventListener('click',this._handleClickBound);}}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){this.el.removeEventListener('keydown',this._handleTriggerKeydownBound);this.dropdownEl.removeEventListener('click',this._handleDropdownClickBound);if(this.options.hover){this.el.removeEventListener('mouseenter',this._handleMouseEnterBound);this.el.removeEventListener('mouseleave',this._handleMouseLeaveBound);this.dropdownEl.removeEventListener('mouseleave',this._handleMouseLeaveBound);}else this.el.removeEventListener('click',this._handleClickBound);}},{key:"_setupTemporaryEventHandlers",value:function _setupTemporaryEventHandlers(){document.body.addEventListener('click',this._handleDocumentClickBound,true);document.body.addEventListener('touchend',this._handleDocumentClickBound);document.body.addEventListener('touchmove',this._handleDocumentTouchmoveBound);this.dropdownEl.addEventListener('keydown',this._handleDropdownKeydownBound);}},{key:"_removeTemporaryEventHandlers",value:function _removeTemporaryEventHandlers(){document.body.removeEventListener('click',this._handleDocumentClickBound,true);document.body.removeEventListener('touchend',this._handleDocumentClickBound);document.body.removeEventListener('touchmove',this._handleDocumentTouchmoveBound);this.dropdownEl.removeEventListener('keydown',this._handleDropdownKeydownBound);}},{key:"_handleClick",value:function _handleClick(e){e.preventDefault();this.open();}},{key:"_handleMouseEnter",value:function _handleMouseEnter(){this.open();}},{key:"_handleMouseLeave",value:function _handleMouseLeave(e){var toEl=e.toElement||e.relatedTarget;var leaveToDropdownContent=!!$(toEl).closest('.dropdown-content').length;var leaveToActiveDropdownTrigger=false;var $closestTrigger=$(toEl).closest('.dropdown-trigger');if($closestTrigger.length&&!!$closestTrigger[0].M_Dropdown&&$closestTrigger[0].M_Dropdown.isOpen)leaveToActiveDropdownTrigger=true;if(!leaveToActiveDropdownTrigger&&!leaveToDropdownContent)this.close();}},{key:"_handleDocumentClick",value:function _handleDocumentClick(e){var _this10=this;var $target=$(e.target);if(this.options.closeOnClick&&$target.closest('.dropdown-content').length&&!this.isTouchMoving)setTimeout(function(){_this10.close();},0);else{if($target.closest('.dropdown-trigger').length||!$target.closest('.dropdown-content').length)setTimeout(function(){_this10.close();},0);}this.isTouchMoving=false;}},{key:"_handleTriggerKeydown",value:function _handleTriggerKeydown(e){if((e.which===M.keys.ARROW_DOWN||e.which===M.keys.ENTER)&&!this.isOpen){e.preventDefault();this.open();}}},{key:"_handleDocumentTouchmove",value:function _handleDocumentTouchmove(e){var $target=$(e.target);if($target.closest('.dropdown-content').length)this.isTouchMoving=true;}},{key:"_handleDropdownClick",value:function _handleDropdownClick(e){if(typeof this.options.onItemClick==='function'){var itemEl=$(e.target).closest('li')[0];this.options.onItemClick.call(this,itemEl);}}},{key:"_handleDropdownKeydown",value:function _handleDropdownKeydown(e){if(e.which===M.keys.TAB){e.preventDefault();this.close();}else if((e.which===M.keys.ARROW_DOWN||e.which===M.keys.ARROW_UP)&&this.isOpen){e.preventDefault();var direction=e.which===M.keys.ARROW_DOWN?1:-1;var newFocusedIndex=this.focusedIndex;var foundNewIndex=false;do{newFocusedIndex=newFocusedIndex+direction;if(!!this.dropdownEl.children[newFocusedIndex]&&this.dropdownEl.children[newFocusedIndex].tabIndex!==-1){foundNewIndex=true;break;}}while(newFocusedIndex<this.dropdownEl.children.length&&newFocusedIndex>=0);if(foundNewIndex){this.focusedIndex=newFocusedIndex;this._focusFocusedItem();}}else if(e.which===M.keys.ENTER&&this.isOpen){var focusedElement=this.dropdownEl.children[this.focusedIndex];var $activatableElement=$(focusedElement).find('a, button').first();!!$activatableElement.length?$activatableElement[0].click():focusedElement.click();}else{if(e.which===M.keys.ESC&&this.isOpen){e.preventDefault();this.close();}}var letter=String.fromCharCode(e.which).toLowerCase(),nonLetters=[9,13,27,38,40];if(letter&&nonLetters.indexOf(e.which)===-1){this.filterQuery.push(letter);var string=this.filterQuery.join(''),newOptionEl=$(this.dropdownEl).find('li').filter(function(el){return $(el).text().toLowerCase().indexOf(string)===0;})[0];if(newOptionEl){this.focusedIndex=$(newOptionEl).index();this._focusFocusedItem();}}this.filterTimeout=setTimeout(this._resetFilterQueryBound,1000);}},{key:"_resetFilterQuery",value:function _resetFilterQuery(){this.filterQuery=[];}},{key:"_resetDropdownStyles",value:function _resetDropdownStyles(){this.$dropdownEl.css({display:'',width:'',height:'',left:'',top:'','transform-origin':'',transform:'',opacity:''});}},{key:"_makeDropdownFocusable",value:function _makeDropdownFocusable(){this.dropdownEl.tabIndex=0;$(this.dropdownEl).children().each(function(el){if(!el.getAttribute('tabindex'))el.setAttribute('tabindex',0);});}},{key:"_focusFocusedItem",value:function _focusFocusedItem(){if(this.focusedIndex>=0&&this.focusedIndex<this.dropdownEl.children.length&&this.options.autoFocus)this.dropdownEl.children[this.focusedIndex].focus();}},{key:"_getDropdownPosition",va
222lue:function _getDropdownPosition(){var offsetParentBRect=this.el.offsetParent.getBoundingClientRect();var triggerBRect=this.el.getBoundingClientRect();var dropdownBRect=this.dropdownEl.getBoundingClientRect();var idealHeight=dropdownBRect.height;var idealWidth=dropdownBRect.width;var idealXPos=triggerBRect.left-dropdownBRect.left;var idealYPos=triggerBRect.top-dropdownBRect.top;var dropdownBounds={left:idealXPos,top:idealYPos,height:idealHeight,width:idealWidth};var closestOverflowParent=!!this.dropdownEl.offsetParent?this.dropdownEl.offsetParent:this.dropdownEl.parentNode;var alignments=M.checkPossibleAlignments(this.el,closestOverflowParent,dropdownBounds,this.options.coverTrigger?0:triggerBRect.height);var verticalAlignment='top';var horizontalAlignment=this.options.alignment;idealYPos+=this.options.coverTrigger?0:triggerBRect.height;this.isScrollable=false;if(!alignments.top)if(alignments.bottom)verticalAlignment='bottom';else{this.isScrollable=true;if(alignments.spaceOnTop>alignments.spaceOnBottom){verticalAlignment='bottom';idealHeight+=alignments.spaceOnTop;idealYPos-=alignments.spaceOnTop;}else idealHeight+=alignments.spaceOnBottom;}if(!alignments[horizontalAlignment]){var oppositeAlignment=horizontalAlignment==='left'?'right':'left';if(alignments[oppositeAlignment])horizontalAlignment=oppositeAlignment;else if(alignments.spaceOnLeft>alignments.spaceOnRight){horizontalAlignment='right';idealWidth+=alignments.spaceOnLeft;idealXPos-=alignments.spaceOnLeft;}else{horizontalAlignment='left';idealWidth+=alignments.spaceOnRight;}}if(verticalAlignment==='bottom')idealYPos=idealYPos-dropdownBRect.height+(this.options.coverTrigger?triggerBRect.height:0);if(horizontalAlignment==='right')idealXPos=idealXPos-dropdownBRect.width+triggerBRect.width;return {x:idealXPos,y:idealYPos,verticalAlignment,horizontalAlignment,height:idealHeight,width:idealWidth};}},{key:"_animateIn",value:function _animateIn(){var _this11=this;anim.remove(this.dropdownEl);anim({targets:this.dropdownEl,opacity:{value:[0,1],easing:'easeOutQuad'},scaleX:[0.3,1],scaleY:[0.3,1],duration:this.options.inDuration,easing:'easeOutQuint',complete:function(anim){if(_this11.options.autoFocus)_this11.dropdownEl.focus();if(typeof _this11.options.onOpenEnd==='function'){var elem=anim.animatables[0].target;_this11.options.onOpenEnd.call(elem,_this11.el);}}});}},{key:"_animateOut",value:function _animateOut(){var _this12=this;anim.remove(this.dropdownEl);anim({targets:this.dropdownEl,opacity:{value:0,easing:'easeOutQuint'},scaleX:0.3,scaleY:0.3,duration:this.options.outDuration,easing:'easeOutQuint',complete:function(anim){_this12._resetDropdownStyles();if(typeof _this12.options.onCloseEnd==='function'){var elem=anim.animatables[0].target;_this12.options.onCloseEnd.call(_this12,_this12.el);}}});}},{key:"_placeDropdown",value:function _placeDropdown(){var idealWidth=this.options.constrainWidth?this.el.getBoundingClientRect().width:this.dropdownEl.getBoundingClientRect().width;this.dropdownEl.style.width=idealWidth+'px';var positionInfo=this._getDropdownPosition();this.dropdownEl.style.left=positionInfo.x+'px';this.dropdownEl.style.top=positionInfo.y+'px';this.dropdownEl.style.height=positionInfo.height+'px';this.dropdownEl.style.width=positionInfo.width+'px';this.dropdownEl.style.transformOrigin=(positionInfo.horizontalAlignment==='left'?'0':'100%')+" "+(positionInfo.verticalAlignment==='top'?'0':'100%');}},{key:"open",value:function open(){if(this.isOpen)return;this.isOpen=true;if(typeof this.options.onOpenStart==='function')this.options.onOpenStart.call(this,this.el);this._resetDropdownStyles();this.dropdownEl.style.display='block';this._placeDropdown();this._animateIn();this._setupTemporaryEventHandlers();}},{key:"close",value:function close(){if(!this.isOpen)return;this.isOpen=false;this.focusedIndex=-1;if(typeof this.options.onCloseStart==='function')this.options.onCloseStart.call(this,this.el);this._animateOut();this._removeTemporaryEventHandlers();if(this.options.autoFocus)this.el.focus();}},{key:"recalculateDimensions",value:function recalculateDimensions(){if(this.isOpen){this.$dropdownEl.css({width:'',height:'',left:'',top:'','transform-origin':''});this._placeDropdown();}}}],[{key:"init",value:function init(els,options){return _get(Dropdown.__proto__||Object.getPrototypeOf(Dropdown),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Dropdown;}},{key:"defaults",get:function(){return _defaults;}}]);return Dropdown;}(Component);Dropdown._dropdowns=[];window.M.Dropdown=Dropdown;if(M.jQueryLoaded)M.initializeJqueryWrapper(Dropdown,'dropdown','M_Dropdown');})(cash,M.anime);;(function($,anim){'use strict';var _defaults={opacity:0.5,inDuration:250,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:true,dismissible:true,startingTop:'4%',endingTop:'10%'};var Modal=function(_Component3){_inherits(Modal,_Component3);function Modal(el,options){_classCallCheck(this,Modal);var _this13=_possibleConstructorReturn(this,(Modal.__proto__||Object.getPrototypeOf(Modal)).call(this,Modal,el,options));_this13.el.M_Modal=_this13;_this13.options=$.extend({},Modal.defaults,options);_this13.isOpen=false;_this13.id=_this13.$el.attr('id');_this13._openingTrigger=undefined;_this13.$overlay=$('<div class="modal-overlay"></div>');_this13.el.tabIndex=0;_this13._nthModalOpened=0;Modal._count++;_this13._setupEventHandlers();return _this13;}_createClass(Modal,[{key:"destroy",value:function destroy(){Modal._count--;this._removeEventHandlers();this.el.removeAttribute('style');this.$overlay.remove();this.el.M_Modal=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleOverlayClickBound=this._handleOverlayClick.bind(this);this._handleModalCloseClickBound=this._handleModalCloseClick.bind(this);if(Modal._count===1)document.body.addEventListener('click',this._handleTriggerClick);this.$overlay[0].addEventListener('click',this._handleOverlayClickBound);this.el.addEventListener('click',this._handleModalCloseClickBound);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){if(Modal._count===0)document.body.removeEventListener('click',this._handleTriggerClick);this.$overlay[0].removeEventListener('click',this._handleOverlayClickBound);this.el.removeEventListener('click',this._handleModalCloseClickBound);}},{key:"_handleTriggerClick",value:function _handleTriggerClick(e){var $trigger=$(e.target).closest('.modal-trigger');if($trigger.length){var modalId=M.getIdFromTrigger($trigger[0]);var modalInstance=document.getElementById(modalId).M_Modal;if(modalInstance)modalInstance.open($trigger);e.preventDefault();}}},{key:"_handleOverlayClick",value:function _handleOverlayClick(){if(this.options.dismissible)this.close();}},{key:"_handleModalCloseClick",value:function _handleModalCloseClick(e){var $closeTrigger=$(e.target).closest('.modal-close');if($closeTrigger.length)this.close();}},{key:"_handleKeydown",value:function _handleKeydown(e){if(e.keyCode===27&&this.options.dismissible)this.close();}},{key:"_handleFocus",value:function _handleFocus(e){if(!this.el.contains(e.target)&&this._nthModalOpened===Modal._modalsOpen)this.el.focus();}},{key:"_animateIn",value:function _animateIn(){var _this14=this;$.extend(this.el.style,{display:'block',opacity:0}
222);$.extend(this.$overlay[0].style,{display:'block',opacity:0});anim({targets:this.$overlay[0],opacity:this.options.opacity,duration:this.options.inDuration,easing:'easeOutQuad'});var enterAnimOptions={targets:this.el,duration:this.options.inDuration,easing:'easeOutCubic',complete:function(){if(typeof _this14.options.onOpenEnd==='function')_this14.options.onOpenEnd.call(_this14,_this14.el,_this14._openingTrigger);}};if(this.el.classList.contains('bottom-sheet')){$.extend(enterAnimOptions,{bottom:0,opacity:1});anim(enterAnimOptions);}else{$.extend(enterAnimOptions,{top:[this.options.startingTop,this.options.endingTop],opacity:1,scaleX:[0.8,1],scaleY:[0.8,1]});anim(enterAnimOptions);}}},{key:"_animateOut",value:function _animateOut(){var _this15=this;anim({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:'easeOutQuart'});var exitAnimOptions={targets:this.el,duration:this.options.outDuration,easing:'easeOutCubic',complete:function(){_this15.el.style.display='none';_this15.$overlay.remove();if(typeof _this15.options.onCloseEnd==='function')_this15.options.onCloseEnd.call(_this15,_this15.el);}};if(this.el.classList.contains('bottom-sheet')){$.extend(exitAnimOptions,{bottom:'-100%',opacity:0}
222);anim(exitAnimOptions);}else{$.extend(exitAnimOptions,{top:[this.options.endingTop,this.options.startingTop],opacity:0,scaleX:0.8,scaleY:0.8});anim(exitAnimOptions);}}},{key:"open",value:function open($trigger){if(this.isOpen)return;this.isOpen=true;Modal._modalsOpen++;this._nthModalOpened=Modal._modalsOpen;this.$overlay[0].style.zIndex=1000+Modal._modalsOpen*2;this.el.style.zIndex=1000+Modal._modalsOpen*2+1;this._openingTrigger=!!$trigger?$trigger[0]:undefined;if(typeof this.options.onOpenStart==='function')this.options.onOpenStart.call(this,this.el,this._openingTrigger);if(this.options.preventScrolling)document.body.style.overflow='hidden';this.el.classList.add('open');this.el.insertAdjacentElement('afterend',this.$overlay[0]);if(this.options.dismissible){this._handleKeydownBound=this._handleKeydown.bind(this);this._handleFocusBound=this._handleFocus.bind(this);document.addEventListener('keydown',this._handleKeydownBound);document.addEventListener('focus',this._handleFocusBound,true);}anim.remove(this.el);anim.remove(this.$overlay[0]);this._animateIn();this.el.focus();return this;}},{key:"close",value:function close(){if(!this.isOpen)return;this.isOpen=false;Modal._modalsOpen--;this._nthModalOpened=0;if(typeof this.options.onCloseStart==='function')this.options.onCloseStart.call(this,this.el);this.el.classList.remove('open');if(Modal._modalsOpen===0)document.body.style.overflow='';if(this.options.dismissible){document.removeEventListener('keydown',this._handleKeydownBound);document.removeEventListener('focus',this._handleFocusBound,true);}anim.remove(this.el);anim.remove(this.$overlay[0]);this._animateOut();return this;}}],[{key:"init",value:function init(els,options){return _get(Modal.__proto__||Object.getPrototypeOf(Modal),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Modal;}},{key:"defaults",get:function(){return _defaults;}}]);return Modal;}(Component);Modal._modalsOpen=0;Modal._count=0;M.Modal=Modal;if(M.jQueryLoaded)M.initializeJqueryWrapper(Modal,'modal','M_Modal');})(cash,M.anime);;(function($,anim){'use strict';var _defaults={inDuration:275,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null};var Materialbox=function(_Component4){_inherits(Materialbox,_Component4);function Materialbox(el,options){_classCallCheck(this,Materialbox);var _this16=_possibleConstructorReturn(this,(Materialbox.__proto__||Object.getPrototypeOf(Materialbox)).call(this,Materialbox,el,options));_this16.el.M_Materialbox=_this16;_this16.options=$.extend({},Materialbox.defaults,options);_this16.overlayActive=false;_this16.doneAnimating=true;_this16.placeholder=$('<div></div>').addClass('material-placeholder');_this16.originalWidth=0;_this16.originalHeight=0;_this16.originInlineStyles=_this16.$el.attr('style');_this16.caption=_this16.el.getAttribute('data-caption')||'';_this16.$el.before(_this16.placeholder);_this16.placeholder.append(_this16.$el);_this16._setupEventHandlers();return _this16;}_createClass(Materialbox,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this.el.M_Materialbox=undefined;$(this.placeholder).after(this.el).remove();this.$el.removeAttr('style');}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleMaterialboxClickBound=this._handleMaterialboxClick.bind(this);this.el.addEventListener('click',this._handleMaterialboxClickBound);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){this.el.removeEventListener('click',this._handleMaterialboxClickBound);}},{key:"_handleMaterialboxClick",value:function _handleMaterialboxClick(e){if(this.doneAnimating===false||this.overlayActive&&this.doneAnimating)this.close();else this.open();}},{key:"_handleWindowScroll",value:function _handleWindowScroll(){if(this.overlayActive)this.close();}},{key:"_handleWindowResize",value:function _handleWindowResize(){if(this.overlayActive)this.close();}},{key:"_handleWindowEscape",value:function _handleWindowEscape(e){if(e.keyCode===27&&this.doneAnimating&&this.overlayActive)this.close();}},{key:"_makeAncestorsOverflowVisible",value:function _makeAncestorsOverflowVisible(){this.ancestorsChanged=$();var ancestor=this.placeholder[0].parentNode;while(ancestor!==null&&!$(ancestor).is(document)){var curr=$(ancestor);if(curr.css('overflow')!=='visible'){curr.css('overflow','visible');if(this.ancestorsChanged===undefined)this.ancestorsChanged=curr;else this.ancestorsChanged=this.ancestorsChanged.add(curr);}ancestor=ancestor.parentNode;}}},{key:"_animateImageIn",value:function _animateImageIn(){var _this17=this;var animOptions={targets:this.el,height:[this.originalHeight,this.newHeight],width:[this.originalWidth,this.newWidth],left
222:M.getDocumentScrollLeft()+this.windowWidth/2-this.placeholder.offset().left-this.newWidth/2,top:M.getDocumentScrollTop()+this.windowHeight/2-this.placeholder.offset().top-this.newHeight/2,duration:this.options.inDuration,easing:'easeOutQuad',complete:function(){_this17.doneAnimating=true;if(typeof _this17.options.onOpenEnd==='function')_this17.options.onOpenEnd.call(_this17,_this17.el);}};this.maxWidth=this.$el.css('max-width');this.maxHeight=this.$el.css('max-height');if(this.maxWidth!=='none')animOptions.maxWidth=this.newWidth;if(this.maxHeight!=='none')animOptions.maxHeight=this.newHeight;anim(animOptions);}},{key:"_animateImageOut",value:function _animateImageOut(){var _this18=this;var animOptions={targets:this.el,width:this.originalWidth,height:this.originalHeight,left:0,top:0,duration:this.options.outDuration,easing:'easeOutQuad',complete:function(){_this18.placeholder.css({height:'',width:'',position:'',top:'',left:''});if(_this18.attrWidth)_this18.$el.attr('width',_this18.attrWidth);if(_this18.attrHeight)_this18.$el.attr('height',_this18.attrHeight);_this18.$el.removeAttr('style');_this18.originInlineStyles&&_this18.$el.attr('style',_this18.originInlineStyles);_this18.$el.removeClass('active');_this18.doneAnimating=true;if(_this18.ancestorsChanged.length)_this18.ancestorsChanged.css('overflow','');if(typeof _this18.options.onCloseEnd==='function')_this18.options.onCloseEnd.call(_this18,_this18.el);}};anim(animOptions);}},{key:"_updateVars",value:function _updateVars(){this.windowWidth=window.innerWidth;this.windowHeight=window.innerHeight;this.caption=this.el.getAttribute('data-caption')||'';}},{key:"open",value:function open(){var _this19=this;this._updateVars();this.originalWidth=this.el.getBoundingClientRect().width;this.originalHeight=this.el.getBoundingClientRect().height;this.doneAnimating=false;this.$el.addClass('active');this.overlayActive=true;if(typeof this.options.onOpenStart==='function')this.options.onOpenStart.call(this,this.el);this.placeholder.css({width:this.placeholder[0].getBoundingClientRect().width+'px',height:this.placeholder[0].getBoundingClientRect().height+'px',position:'relative',top:0,left:0});this._makeAncestorsOverflowVisible();this.$el.css({position:'absolute','z-index':1000,'will-change':'left, top, width, height'});this.attrWidth=this.$el.attr('width');this.attrHeight=this.$el.attr('height');if(this.attrWidth){this.$el.css('width',this.attrWidth+'px');this.$el.removeAttr('width');}if(this.attrHeight){this.$el.css('width',this.attrHeight+'px');this.$el.removeAttr('height');}this.$overlay=$('<div id="materialbox-overlay"></div>').css({opacity:0}).one('click',function(){if(_this19.doneAnimating)_this19.close();});this.$el.before(this.$overlay);var overlayOffset=this.$overlay[0].getBoundingClientRect();this.$overlay.css({width:this.windowWidth+'px',height:this.windowHeight+'px',left:-1*overlayOffset.left+'px',top:-1*overlayOffset.top+'px'});anim.remove(this.el);anim.remove(this.$overlay[0]);anim({targets:this.$overlay[0],opacity:1,duration:this.options.inDuration,easing:'easeOutQuad'});if(this.caption!==''){if(this.$photocaption)anim.remove(this.$photoCaption[0]);this.$photoCaption=$('<div class="materialbox-caption"></div>');this.$photoCaption.text(this.caption);$('body').append(this.$photoCaption);this.$photoCaption.css({display:'inline'});anim({targets:this.$photoCaption[0],opacity:1,duration:this.options.inDuration,easing:'easeOutQuad'});}var ratio=0;var widthPercent=this.originalWidth/this.windowWidth;var heightPercent=this.originalHeight/this.windowHeight;this.newWidth=0;this.newHeight=0;if(widthPercent>heightPercent){ratio=this.originalHeight/this.originalWidth;this.newWidth=this.windowWidth*0.9;this.newHeight=this.windowWidth*0.9*ratio;}else{ratio=this.originalWidth/this.originalHeight;this.newWidth=this.windowHeight*0.9*ratio;this.newHeight=this.windowHeight*0.9;}this._animateImageIn();this._handleWindowScrollBound=this._handleWindowScroll.bind(this);this._handleWindowResizeBound=this._handleWindowResize.bind(this);this._handleWindowEscapeBound=this._handleWindowEscape.bind(this);window.addEventListener('scroll',this._handleWindowScrollBound);window.addEventListener('resize',this._handleWindowResizeBound);window.addEventListener('keyup',this._handleWindowEscapeBound);}},{key:"close",value:function close(){var _this20=this;
222this._updateVars();this.doneAnimating=false;if(typeof this.options.onCloseStart==='function')this.options.onCloseStart.call(this,this.el);anim.remove(this.el);anim.remove(this.$overlay[0]);if(this.caption!=='')anim.remove(this.$photoCaption[0]);window.removeEventListener('scroll',this._handleWindowScrollBound);window.removeEventListener('resize',this._handleWindowResizeBound);window.removeEventListener('keyup',this._handleWindowEscapeBound);anim({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:'easeOutQuad',complete:function(){_this20.overlayActive=false;_this20.$overlay.remove();}});this._animateImageOut();if(this.caption!=='')anim({targets:this.$photoCaption[0],opacity:0,duration:this.options.outDuration,easing:'easeOutQuad',complete:function(){_this20.$photoCaption.remove();}});}}],[{key:"init",value:function init(els,options){return _get(Materialbox.__proto__||Object.getPrototypeOf(Materialbox),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Materialbox;}},{key:"defaults",get:function(){return _defaults;}}]);return Materialbox;}(Component);M.Materialbox=Materialbox;if(M.jQueryLoaded)M.initializeJqueryWrapper(Materialbox,'materialbox','M_Materialbox');})(cash,M.anime);;(function($){'use strict';var _defaults={responsiveThreshold:0};var Parallax=function(_Component5){_inherits(Parallax,_Component5);function Parallax(el,options){_classCallCheck(this,Parallax);var _this21=_possibleConstructorReturn(this,(Parallax.__proto__||Object.getPrototypeOf(Parallax)).call(this,Parallax,el,options));_this21.el.M_Parallax=_this21;_this21.options=$.extend({},Parallax.defaults,options);_this21._enabled=window.innerWidth>_this21.options.responsiveThreshold;_this21.$img=_this21.$el.find('img').first();_this21.$img.each(function(){var el=this;if(el.complete)$(el).trigger('load');});_this21._updateParallax();_this21._setupEventHandlers();_this21._setupStyles();Parallax._parallaxes.push(_this21);return _this21;}_createClass(Parallax,[{key:"destroy",value:function destroy(){Parallax._parallaxes.splice(Parallax._parallaxes.indexOf(this),1);this.$img[0].style.transform='';this._removeEventHandlers();this.$el[0].M_Parallax=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleImageLoadBound=this._handleImageLoad.bind(this);this.$img[0].addEventListener('load',this._handleImageLoadBound);if(Parallax._parallaxes.length===0){Parallax._handleScrollThrottled=M.throttle(Parallax._handleScroll,5);window.addEventListener('scroll',Parallax._handleScrollThrottled);Parallax._handleWindowResizeThrottled=M.throttle(Parallax._handleWindowResize,5);window.addEventListener('resize',Parallax._handleWindowResizeThrottled);}}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){this.$img[0].removeEventListener('load',this._handleImageLoadBound);if(Parallax._parallaxes.length===0){window.removeEventListener('scroll',Parallax._handleScrollThrottled);window.removeEventListener('resize',Parallax._handleWindowResizeThrottled);}}},{key:"_setupStyles",value:function _setupStyles(){this.$img[0].style.opacity=1;}},{key:"_handleImageLoad",value:function _handleImageLoad(){this._updateParallax();}},{key:"_updateParallax",value:function _updateParallax(){var containerHeight=this.$el.height()>0?this.el.parentNode.offsetHeight:500;var imgHeight=this.$img[0].offsetHeight;var parallaxDist=imgHeight-containerHeight;var bottom=this.$el.offset().top+containerHeight;var top=this.$el.offset().top;var scrollTop=M.getDocumentScrollTop();var windowHeight=window.innerHeight;var windowBottom=scrollTop+windowHeight;var percentScrolled=(windowBottom-top)/(containerHeight+windowHeight);var parallax=parallaxDist*percentScrolled;if(!this._enabled)this.$img[0].style.transform='';else{if(bottom>scrollTop&&top<scrollTop+windowHeight)this.$img[0].style.transform="translate3D(-50%, "+parallax+"px, 0)";}}}],[{key:"init",value:function init(els,options){return _get(Parallax.__proto__||Object.getPrototypeOf(Parallax),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Parallax;}},{key:"_handleScroll",value:function _handleScroll(){for(var i=0;i<Parallax._parallaxes.length;i++){var parallaxInstance=Parallax._parallaxes[i];parallaxInstance._updateParallax.call(parallaxInstance);}}},{key:"_handleWindowResize",value:function _handleWindowResize(){for(var i=0;i<Parallax._parallaxes.length;i++){var parallaxInstance=Parallax._parallaxes[i];parallaxInstance._enabled=window.innerWidth>parallaxInstance.options.responsiveThreshold;}}},{key:"defaults",get:function(){return _defaults;}}]);return Parallax;}(Component);Parallax._parallaxes=[];M.Parallax=Parallax;if(M.jQueryLoaded)M.initializeJqueryWrapper(Parallax,'parallax','M_Parallax');})(cash);;(function($,anim){'use strict';var _defaults={duration:300,onShow:null,swipeable:false,responsiveThreshold:Infinity};var Tabs=function(_Component6){_inherits(Tabs,_Component6);function Tabs(el,options){_classCallCheck(this,Tabs);var _this22=_possibleConstructorReturn(this,(Tabs.__proto__||Object.getPrototypeOf(Tabs)).call(this,Tabs,el,options));_this22.el.M_Tabs=_this22;_this22.options=$.extend({},Tabs.defaults,options);_this22.$tabLinks=_this22.$el.children('li.tab').children('a');_this22.index=0;_this22._setupActiveTabLink();if(_this22.options.swipeable)_this22._setupSwipeableTabs();else _this22._setupNormalTabs();_this22._setTabsAndTabWidth();_this22._createIndicator();_this22._setupEventHandlers();return _this22;}_createClass(Tabs,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this._indicator.parentNode.removeChild(this._indicator);if(this.options.swipeable)this._teardownSwipeableTabs();else this._teardownNormalTabs();this.$el[0].M_Tabs=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleWindowResizeBound=this._handleWindowResize.bind(this);window.addEventListener('resize',this._handleWindowResizeBound);this._handleTabClickBound=this._handleTabClick.bind(this);this.el.addEventListener('click',this._handleTabClickBound);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){window.removeEventListener('resize',this._handleWindowResizeBound);this.el.removeEventListener('click',this._handleTabClickBound);}},{key:"_handleWindowResize",value:function _handleWindowResize(){this._setTabsAndTabWidth();if(this.tabWidth!==0&&this.tabsWidth!==0){this._indicator.style.left=this._calcLeftPos(this.$activeTabLink)+'px';this._indicator.style.right=this._calcRightPos(this.$activeTabLink)+'px';}}},{key:"_handleTabClick",value:function _handleTabClick(e){var _this23=this;var tab=$(e.target).closest('li.tab');var tabLink=$(e.target).closest('a');if(!tabLink.length||!tabLink.parent().hasClass('tab'))return;if(tab.hasClass('disabled')){e.preventDefault();return;}if(!!tabLink.attr('target'))return;this.$activeTabLink.removeClass('active');var $oldContent=this.$content;this.$activeTabLink=tabLink;this.$content=$(M.escapeHash(tabLink[0].hash));this.$tabLinks=this.$el.children('li.tab').children('a');this.$activeTabLink.addClass('active');var prevIndex=this.index;this.index=Math.max(this.$tabLinks.index(tabLink),0);if(this.options.swipeable){if(this._tabsCarousel)this._tabsCarousel.set(this.index,function(){if(typeof _this23.options.onShow==='function')_this23.options.onShow.call(_this23,_this23.$content[0]);});}else{if(this.$content.length){this.$content[0].style.display='block';this.$content.addClass('active');if(typeof this.options.onShow==='function')this.options.onShow.call(this,this.$content[0]);if($oldContent.length&&!$oldContent.is(this.$content)){$oldContent[0].style.display='none';$oldContent.removeClass('active');}}}this._setTabsAndTabWidth();this._animateIndicator(prevIndex);e.preventDefault();}},{key:"_createIndicator",value:function _createIndicator(){var _this24=this;var indicator=document.createElement('li');indicator.classList.add('indicator');this.el.appendChild(indicator);this._indicator=indicator;setTimeout(function(){_this24._indicator.style.left=_this24._calcLeftPos(_this24.$activeTabLink)+'px';_this24._indicator.style.right=_this24._calcRightPos(_this24.$activeTabLink)+'px';},0);}},{key:"_setupActiveTabLink",value:function _setupActiveTabLink(){this.$activeTabLink=$(this.$tabLinks.filter('[href="'+location.hash+'"]'));if(this.$activeTabLink.length===0)this.$activeTabLink=this.$el.children('li.tab').children('a.active').first();if(this.$activeTabLink.length===0)this.$activeTabLink=this.$el.children('li.tab').children('a').first();this.$tabLinks.removeClass('active');this.$activeTabLink[0].classList.add('active');this.index=Math.max(this.$tabLinks.index(this.$activeTabLink),0);if(this.$activeTabLink.length){this.$content=$(M.escapeHash(this.$activeTabLink[0].hash));this.$content.addClass('active');}}},{key:"_setupSwipeableTabs",value:function _setupSwipeableTabs(){var _this25=this;if(window.innerWidth>this.options.responsiveThreshold)this.options.swipeable=false;var $tabsContent=$();this.$tabLinks.each(function(link){var $currContent=$(M.escapeHash(link.hash));$currContent.addClass('carousel-item');$tabsContent=$tabsContent.add($currContent);});var $tabsWrapper=$('<div class="tabs-content carousel carousel-slider"></div>');$tabsContent.first().before($tabsWrapper);$tabsWrapper.append($tabsContent);$tabsContent[0].style.display='';var activeTabIndex=this.$activeTabLink.closest('.tab').index();this._tabsCarousel=M.Carousel.init($tabsWrapper[0],{fullWidth:true,noWrap:true,onCycleTo:function(item){var prevIndex=_this25.index;_this25.index=$(item).index();_this25.$activeTabLink.removeClass('active');_this25.$activeTabLink=_this25.$tabLinks.eq(_this25.index);_this25.$activeTabLink.addClass('active');_this25._animateIndicator(prevIndex);if(typeof _this25.options.onShow==='function')_this25.options.onShow.call(_this25,_this25.$content[0]);}}
222);this._tabsCarousel.set(activeTabIndex);}},{key:"_teardownSwipeableTabs",value:function _teardownSwipeableTabs(){var $tabsWrapper=this._tabsCarousel.$el;this._tabsCarousel.destroy();$tabsWrapper.after($tabsWrapper.children());$tabsWrapper.remove();}},{key:"_setupNormalTabs",value:function _setupNormalTabs(){this.$tabLinks.not(this.$activeTabLink).each(function(link){if(!!link.hash){var $currContent=$(M.escapeHash(link.hash));if($currContent.length)$currContent[0].style.display='none';}});}},{key:"_teardownNormalTabs",value:function _teardownNormalTabs(){this.$tabLinks.each(function(link){if(!!link.hash){var $currContent=$(M.escapeHash(link.hash));if($currContent.length)$currContent[0].style.display='';}});}},{key:"_setTabsAndTabWidth",value:function _setTabsAndTabWidth(){this.tabsWidth=this.$el.width();this.tabWidth=Math.max(this.tabsWidth,this.el.scrollWidth)/this.$tabLinks.length;}},{key:"_calcRightPos",value:function _calcRightPos(el){return Math.ceil(this.tabsWidth-el.position().left-el[0].getBoundingClientRect().width);}},{key:"_calcLeftPos",value:function _calcLeftPos(el){return Math.floor(el.position().left);}},{key:"updateTabIndicator",value:function updateTabIndicator(){this._setTabsAndTabWidth();this._animateIndicator(this.index);}},{key:"_animateIndicator",value:function _animateIndicator(prevIndex){var leftDelay=0,rightDelay=0;if(this.index-prevIndex>=0)leftDelay=90;else rightDelay=90;var animOptions={targets:this._indicator,left:{value:this._calcLeftPos(this.$activeTabLink),delay:leftDelay},right:{value:this._calcRightPos(this.$activeTabLink),delay:rightDelay},duration:this.options.duration,easing:'easeOutQuad'};anim.remove(this._indicator);anim(animOptions);}},{key:"select",value:function select(tabId){var tab=this.$tabLinks.filter('[href="#'+tabId+'"]');if(tab.length)tab.trigger('click');}}],[{key:"init",value:function init(els,options){return _get(Tabs.__proto__||Object.getPrototypeOf(Tabs),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Tabs;}},{key:"defaults",get:function(){return _defaults;}}]);return Tabs;}(Component);window.M.Tabs=Tabs;if(M.jQueryLoaded)M.initializeJqueryWrapper(Tabs,'tabs','M_Tabs');})(cash,M.anime);;(function($,anim){'use strict';var _defaults={exitDelay:200,enterDelay:0,html:null,margin:5,inDuration:250,outDuration:200,position:'bottom',transitionMovement:10};var Tooltip=function(_Component7){_inherits(Tooltip,_Component7);function Tooltip(el,options){_classCallCheck(this,Tooltip);var _this26=_possibleConstructorReturn(this,(Tooltip.__proto__||Object.getPrototypeOf(Tooltip)).call(this,Tooltip,el,options));_this26.el.M_Tooltip=_this26;_this26.options=$.extend({},Tooltip.defaults,options);_this26.isOpen=false;_this26.isHovered=false;_this26.isFocused=false;_this26._appendTooltipEl();_this26._setupEventHandlers();return _this26;}_createClass(Tooltip,[{key:"destroy",value:function destroy(){$(this.tooltipEl).remove();this._removeEventHandlers();this.el.M_Tooltip=undefined;}},{key:"_appendTooltipEl",value:function _appendTooltipEl(){var tooltipEl=document.createElement('div');tooltipEl.classList.add('material-tooltip');this.tooltipEl=tooltipEl;var tooltipContentEl=document.createElement('div');tooltipContentEl.classList.add('tooltip-content');tooltipContentEl.innerHTML=this.options.html;tooltipEl.appendChild(tooltipContentEl);document.body.appendChild(tooltipEl);}},{key:"_updateTooltipContent",value:function _updateTooltipContent(){this.tooltipEl.querySelector('.tooltip-content').innerHTML=this.options.html;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleMouseEnterBound=this._handleMouseEnter.bind(this);this._handleMouseLeaveBound=this._handleMouseLeave.bind(this);this._handleFocusBound=this._handleFocus.bind(this);this._handleBlurBound=this._handleBlur.bind(this);this.el.addEventListener('mouseenter',this._handleMouseEnterBound);this.el.addEventListener('mouseleave',this._handleMouseLeaveBound);this.el.addEventListener('focus',this._handleFocusBound,true);this.el.addEventListener('blur',this._handleBlurBound,true);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){this.el.removeEventListener('mouseenter',this._handleMouseEnterBound);this.el.removeEventListener('mouseleave',this._handleMouseLeaveBound);this.el.removeEventListener('focus',this._handleFocusBound,true);this.el.removeEventListener('blur',this._handleBlurBound,true);}},{key:"open",value:function open(isManual){if(this.isOpen)return;isManual=isManual===undefined?true:undefined;this.isOpen=true;this.options=$.extend({},this.options,this._getAttributeOptions());this._updateTooltipContent();this._setEnterDelayTimeout(isManual);}},{key:"close",value:function close(){if(!this.isOpen)return;this.isHovered=false;this.isFocused=false;this.isOpen=false;this._setExitDelayTimeout();}},{key:"_setExitDelayTimeout",value:function _setExitDelayTimeout(){var _this27=this;clearTimeout(this._exitDelayTimeout);this._exitDelayTimeout=setTimeout(function(){if(_this27.isHovered||_this27.isFocused)return;_this27._animateOut();},this.options.exitDelay);}},{key:"_setEnterDelayTimeout",value:function _setEnterDelayTimeout(isManual){var _this28=this;clearTimeout(this._enterDelayTimeout);this._enterDelayTimeout=setTimeout(function(){if(!_this28.isHovered&&!_this28.isFocused&&!isManual)return;_this28._animateIn();},this.options.enterDelay);}},{key:"_positionTooltip",value:function _positionTooltip(){var origin=this.el,tooltip=this.tooltipEl,originHeight=origin.offsetHeight,originWidth=origin.offsetWidth,tooltipHeight=tooltip.offsetHeight,tooltipWidth=tooltip.offsetWidth,newCoordinates=void 0,margin=this.options.margin,targetTop=void 0,targetLeft=void 0;this.xMovement=0,this.yMovement=0;targetTop=origin.getBoundingClientRect().top+M.getDocumentScrollTop();targetLeft=origin.getBoundingClientRect().left+M.getDocumentScrollLeft();if(this.options.position==='top'){targetTop+=-tooltipHeight-margin;targetLeft+=originWidth/2-tooltipWidth/2;this.yMovement=-this.options.transitionMovement;}else if(this.options.position==='right'){targetTop+=originHeight/2-tooltipHeight/2;targetLeft+=originWidth+margin;this.xMovement=this.options.transitionMovement;}else if(this.options.position==='left'){targetTop+=originHeight/2-tooltipHeight/2;targetLeft+=-tooltipWidth-margin;this.xMovement=-this.options.transitionMovement;}else{targetTop+=originHeight+margin;targetLeft+=originWidth/2-tooltipWidth/2;this.yMovement=this.options.transitionMovement;}newCoordinates=this._repositionWithinScreen(targetLeft,targetTop,tooltipWidth,tooltipHeight);$(tooltip).css({top:newCoordinates.y+'px',left:newCoordinates.x+'px'});}},{key:"_repositionWithinScreen",value:function _repositionWithinScreen(x,y,width,height){var scrollLeft=M.getDocumentScrollLeft();var scrollTop=M.getDocumentScrollTop();var newX=x-scrollLeft;var newY=y-scrollTop;var bounding={left:newX,top:newY,width,height};var offset=this.options.margin+this.options.transitionMovement;var edges=M.checkWithinContainer(document.body,bounding,offset);if(edges.left)newX=offset;else{if(edges.right)newX-=newX+width-window.innerWidth;}if(edges.top)newY=offset;else{if(edges.bottom)newY-=newY+height-window.innerHeight;}return {x:newX+scrollLeft,y:newY+scrollTop};}},{key:"_animateIn",value:function _animateIn(){this._positionTooltip();this.tooltipEl.style.visibility='visible';anim.remove(this.tooltipEl);anim({targets:this.tooltipEl,opacity:1,translateX:this.xMovement,translateY:this.yMovement,duration:this.options.inDuration,easing:'easeOutCubic'});}},{key:"_animateOut",value:function _animateOut(){anim.remove(this.tooltipEl);anim({targets:this.tooltipEl,opacity:0,translateX:0,translateY:0,duration:this.options.outDuration,easing:'easeOutCubic'});}},{key:"_handleMouseEnter",value:function _handleMouseEnter(){this.isHovered=true;this.isFocused=false;this.open(false);}},{key:"_handleMouseLeave",value:function _handleMouseLeave(){this.isHovered=false;this.isFocused=false;this.close();}},{key:"_handleFocus",value:function _handleFocus(){if(M.tabPressed){this.isFocused=true;this.open(false);}}},{key:"_handleBlur",value:function _handleBlur(){this.isFocused=false;this.close();}},{key:"_getAttributeOptions",value:function _getAttributeOptions(){var attributeOptions={};var tooltipTextOption=this.el.getAttribute('data-tooltip');var positionOption=this.el.getAttribute('data-position');if(tooltipTextOption)attributeOptions.html=tooltipTextOption;if(positionOption)attributeOptions.position=positionOption;return attributeOptions;}}],[{key:"init",value:function init(els,options){return _get(Tooltip.__proto__||Object.getPrototypeOf(Tooltip),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Tooltip;}},{key:"defaults",get:function(){return _defaults;}}]);return Tooltip;}(Component);M.Tooltip=Tooltip;if(M.jQueryLoaded)M.initializeJqueryWrapper(Tooltip,'tooltip','M_Tooltip');})(cash,M.anime);;;(function(window){'use strict';var Waves=Waves||{};var $$=document.querySelectorAll.bind(document);function isWindow(obj){return obj!==null&&obj===obj.window;}function getWindow(elem){return isWindow(elem)?elem:elem.nodeType===9&&elem.defaultView;}function offset(elem){var docElem,win,box={top:0,left:0},doc=elem&&elem.ownerDocument;docElem=doc.documentElement;if(typeof elem.getBoundingClientRect!==typeof undefined)box=elem.getBoundingClientRect();win=getWindow(doc);return {top:box.top+win.pageYOffset-docElem.clientTop,left:box.left+win.pageXOffset-docElem.clientLeft};}function convertStyle(obj){var style='';for(var a in obj)if(obj.hasOwnProperty(a))style+=a+':'+obj[a]+';';return style;}var Effect={duration:750,show:function(e,element){if(e.button===2)return false;var el=element||this;var ripple=document.createElement('div');ripple.className='waves-ripple';el.appendChild(ripple);var pos=offset(el);var relativeY=e.pageY-pos.top;var relativeX=e.pageX-pos.left;var scale='scale('+el.clientWidth/100*10+')';if('touches' in e){relativeY=e.touches[0].pageY-pos.top;relativeX=e.touches[0].pageX-pos.left;}ripple.setAttribute('data-hold',Date.now());ripple.setAttribute('data-scale',scale);ripple.setAttribute('data-x',relativeX);ripple.setAttribute('data-y',relativeY);var rippleStyle={'top':relativeY+'px','left':relativeX+'px'};ripple.className=ripple.className+' waves-notransition';ripple.setAttribute('style',convertStyle(rippleStyle));ripple.className=ripple.className.replace('waves-notransition','');rippleStyle['-webkit-transform']=scale;rippleStyle['-moz-transform']=scale;rippleStyle['-ms-transform']=scale;
222rippleStyle['-o-transform']=scale;rippleStyle.transform=scale;rippleStyle.opacity='1';rippleStyle['-webkit-transition-duration']=Effect.duration+'ms';rippleStyle['-moz-transition-duration']=Effect.duration+'ms';rippleStyle['-o-transition-duration']=Effect.duration+'ms';rippleStyle['transition-duration']=Effect.duration+'ms';rippleStyle['-webkit-transition-timing-function']='cubic-bezier(0.250, 0.460, 0.450, 0.940)';rippleStyle['-moz-transition-timing-function']='cubic-bezier(0.250, 0.460, 0.450, 0.940)';rippleStyle['-o-transition-timing-function']='cubic-bezier(0.250, 0.460, 0.450, 0.940)';rippleStyle['transition-timing-function']='cubic-bezier(0.250, 0.460, 0.450, 0.940)';ripple.setAttribute('style',convertStyle(rippleStyle));},hide:function(e){TouchHandler.touchup(e);var el=this;var width=el.clientWidth*1.4;var ripple=null;var ripples=el.getElementsByClassName('waves-ripple');if(ripples.length>0)ripple=ripples[ripples.length-1];else return false;var relativeX=ripple.getAttribute('data-x');var relativeY=ripple.getAttribute('data-y');var scale=ripple.getAttribute('data-scale');var diff=Date.now()-Number(ripple.getAttribute('data-hold'));var delay=350-diff;if(delay<0)delay=0;setTimeout(function(){var style={'top':relativeY+'px','left':relativeX+'px','opacity':'0','-webkit-transition-duration':Effect.duration+'ms','-moz-transition-duration':Effect.duration+'ms','-o-transition-duration':Effect.duration+'ms','transition-duration':Effect.duration+'ms','-webkit-transform':scale,'-moz-transform':scale,'-ms-transform':scale,'-o-transform':scale,'transform':scale};ripple.setAttribute('style',convertStyle(style));setTimeout(function(){try{el.removeChild(ripple);}catch(e){return false;}},Effect.duration);},delay);},wrapInput:function(elements){for(var a=0;a<elements.length;a++){var el=elements[a];if(el.tagName.toLowerCase()==='input'){var parent=el.parentNode;if(parent.tagName.toLowerCase()==='i'&&parent.className.indexOf('waves-effect')!==-1)continue;var wrapper=document.createElement('i');wrapper.className=el.className+' waves-input-wrapper';var elementStyle=el.getAttribute('style');if(!elementStyle)elementStyle='';wrapper.setAttribute('style',elementStyle);el.className='waves-button-input';el.removeAttribute('style');parent.replaceChild(wrapper,el);wrapper.appendChild(el);}}}};var TouchHandler={touches:0,allowEvent:function(e){var allow=true;if(e.type==='touchstart')TouchHandler.touches+=1;else if(e.type==='touchend'||e.type==='touchcancel')setTimeout(function(){if(TouchHandler.touches>0)TouchHandler.touches-=1;},500);else{if(e.type==='mousedown'&&TouchHandler.touches>0)allow=false;}return allow;},touchup:function(e){TouchHandler.allowEvent(e);}};function getWavesEffectElement(e){if(TouchHandler.allowEvent(e)===false)return null;var element=null;var target=e.target||e.srcElement;while(target.parentNode!==null){if(!(target instanceof SVGElement)&&target.className.indexOf('waves-effect')!==-1){element=target;break;}target=target.parentNode;}return element;}function showEffect(e){var element=getWavesEffectElement(e);if(element!==null){Effect.show(e,element);if('ontouchstart' in window){element.addEventListener('touchend',Effect.hide,false);element.addEventListener('touchcancel',Effect.hide,false);}element.addEventListener('mouseup',Effect.hide,false);element.addEventListener('mouseleave',Effect.hide,false);element.addEventListener('dragend',Effect.hide,false);}}Waves.displayEffect=function(options){options=options||{};if('duration' in options)Effect.duration=options.duration;Effect.wrapInput($$('.waves-effect'));if('ontouchstart' in window)document.body.addEventListener('touchstart',showEffect,false);document.body.addEventListener('mousedown',showEffect,false);};Waves.attach=function(element){if(element.tagName.toLowerCase()==='input'){Effect.wrapInput([element]);element=element.parentNode;}if('ontouchstart' in window)element.addEventListener('touchstart',showEffect,false);element.addEventListener('mousedown',showEffect,false);};window.Waves=Waves;document.addEventListener('DOMContentLoaded',function(){Waves.displayEffect();},false);})(window);;(function($,anim){'use strict';var _defaults={html:'',displayLength:4000,inDuration:300,outDuration:375,classes:'',completeCallback:null,activationPercent:0.8};
222var Toast=function(){function Toast(options){_classCallCheck(this,Toast);this.options=$.extend({},Toast.defaults,options);this.message=this.options.html;this.panning=false;this.timeRemaining=this.options.displayLength;if(Toast._toasts.length===0)Toast._createContainer();Toast._toasts.push(this);var toastElement=this._createToast();toastElement.M_Toast=this;this.el=toastElement;this.$el=$(toastElement);this._animateIn();this._setTimer();}_createClass(Toast,[{key:"_createToast",value:function _createToast(){var toast=document.createElement('div');toast.classList.add('toast');if(!!this.options.classes.length)$(toast).addClass(this.options.classes);if(typeof HTMLElement==='object'?this.message instanceof HTMLElement:this.message&&typeof this.message==='object'&&this.message!==null&&this.message.nodeType===1&&typeof this.message.nodeName==='string')toast.appendChild(this.message);else if(!!this.message.jquery)$(toast).append(this.message[0]);else toast.innerHTML=this.message;Toast._container.appendChild(toast);return toast;}},{key:"_animateIn",value:function _animateIn(){anim({targets:this.el,top:0,opacity:1,duration:this.options.inDuration,easing:'easeOutCubic'});}},{key:"_setTimer",value:function _setTimer(){var _this29=this;if(this.timeRemaining!==Infinity)this.counterInterval=setInterval(function(){if(!_this29.panning)_this29.timeRemaining-=20;if(_this29.timeRemaining<=0)_this29.dismiss();},20);}},{key:"dismiss",value:function dismiss(){var _this30=this;window.clearInterval(this.counterInterval);var activationDistance=this.el.offsetWidth*this.options.activationPercent;if(this.wasSwiped){this.el.style.transition='transform .05s, opacity .05s';this.el.style.transform="translateX("+activationDistance+"px)";this.el.style.opacity=0;}anim({targets:this.el,opacity:0,marginTop:-40,duration:this.options.outDuration,easing:'easeOutExpo',complete:function(){if(typeof _this30.options.completeCallback==='function')_this30.options.completeCallback();_this30.$el.remove();Toast._toasts.splice(Toast._toasts.indexOf(_this30),1);if(Toast._toasts.length===0)Toast._removeContainer();}});}}],[{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Toast;}},{key:"_createContainer",value:function _createContainer(){var container=document.createElement('div');container.setAttribute('id','toast-container');container.addEventListener('touchstart',Toast._onDragStart);container.addEventListener('touchmove',Toast._onDragMove);container.addEventListener('touchend',Toast._onDragEnd);container.addEventListener('mousedown',Toast._onDragStart);document.addEventListener('mousemove',Toast._onDragMove);document.addEventListener('mouseup',Toast._onDragEnd);document.body.appendChild(container);Toast._container=container;}},{key:"_removeContainer",value:function _removeContainer(){document.removeEventListener('mousemove',Toast._onDragMove);document.removeEventListener('mouseup',Toast._onDragEnd);$(Toast._container).remove();Toast._container=null;}},{key:"_onDragStart",value:function _onDragStart(e){if(e.target&&$(e.target).closest('.toast').length){var $toast=$(e.target).closest('.toast');var toast=$toast[0].M_Toast;toast.panning=true;Toast._draggedToast=toast;toast.el.classList.add('panning');toast.el.style.transition='';toast.startingXPos=Toast._xPos(e);toast.time=Date.now();toast.xPos=Toast._xPos(e);}}},{key:"_onDragMove",value:function _onDragMove(e){if(!!Toast._draggedToast){e.preventDefault();var toast=Toast._draggedToast;toast.deltaX=Math.abs(toast.xPos-Toast._xPos(e));toast.xPos=Toast._xPos(e);
222toast.velocityX=toast.deltaX/(Date.now()-toast.time);toast.time=Date.now();var totalDeltaX=toast.xPos-toast.startingXPos;var activationDistance=toast.el.offsetWidth*toast.options.activationPercent;toast.el.style.transform="translateX("+totalDeltaX+"px)";toast.el.style.opacity=1-Math.abs(totalDeltaX/activationDistance);}}},{key:"_onDragEnd",value:function _onDragEnd(){if(!!Toast._draggedToast){var toast=Toast._draggedToast;toast.panning=false;toast.el.classList.remove('panning');var totalDeltaX=toast.xPos-toast.startingXPos;var activationDistance=toast.el.offsetWidth*toast.options.activationPercent;var shouldBeDismissed=Math.abs(totalDeltaX)>activationDistance||toast.velocityX>1;if(shouldBeDismissed){toast.wasSwiped=true;toast.dismiss();}else{toast.el.style.transition='transform .2s, opacity .2s';toast.el.style.transform='';toast.el.style.opacity='';}Toast._draggedToast=null;}}},{key:"_xPos",value:function _xPos(e){if(e.targetTouches&&e.targetTouches.length>=1)return e.targetTouches[0].clientX;return e.clientX;}},{key:"dismissAll",value:function dismissAll(){for(var toastIndex in Toast._toasts)Toast._toasts[toastIndex].dismiss();}},{key:"defaults",get:function(){return _defaults;}}]);return Toast;}();Toast._toasts=[];Toast._container=null;Toast._draggedToast=null;M.Toast=Toast;M.toast=function(options){return new Toast(options);};})(cash,M.anime);;(function($,anim){'use strict';var _defaults={edge:'left',draggable:true,inDuration:250,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:true};var Sidenav=function(_Component8){_inherits(Sidenav,_Component8);function Sidenav(el,options){_classCallCheck(this,Sidenav);var _this31=_possibleConstructorReturn(this,(Sidenav.__proto__||Object.getPrototypeOf(Sidenav)).call(this,Sidenav,el,options));_this31.el.M_Sidenav=_this31;_this31.id=_this31.$el.attr('id');_this31.options=$.extend({},Sidenav.defaults,options);_this31.isOpen=false;_this31.isFixed=_this31.el.classList.contains('sidenav-fixed');_this31.isDragged=false;_this31.lastWindowWidth=window.innerWidth;_this31.lastWindowHeight=window.innerHeight;_this31._createOverlay();_this31._createDragTarget();_this31._setupEventHandlers();_this31._setupClasses();_this31._setupFixed();Sidenav._sidenavs.push(_this31);return _this31;}_createClass(Sidenav,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this._enableBodyScrolling();this._overlay.parentNode.removeChild(this._overlay);this.dragTarget.parentNode.removeChild(this.dragTarget);this.el.M_Sidenav=undefined;this.el.style.transform='';var index=Sidenav._sidenavs.indexOf(this);if(index>=0)Sidenav._sidenavs.splice(index,1);}},{key:"_createOverlay",value:function _createOverlay(){var overlay=document.createElement('div');this._closeBound=this.close.bind(this);overlay.classList.add('sidenav-overlay');overlay.addEventListener('click',this._closeBound);document.body.appendChild(overlay);this._overlay=overlay;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){if(Sidenav._sidenavs.length===0)document.body.addEventListener('click',this._handleTriggerClick);this._handleDragTargetDragBound=this._handleDragTargetDrag.bind(this);this._handleDragTargetReleaseBound=this._handleDragTargetRelease.bind(this);this._handleCloseDragBound=this._handleCloseDrag.bind(this);this._handleCloseReleaseBound=this._handleCloseRelease.bind(this);this._handleCloseTriggerClickBound=this._handleCloseTriggerClick.bind(this);this.dragTarget.addEventListener('touchmove',this._handleDragTargetDragBound);this.dragTarget.addEventListener('touchend',this._handleDragTargetReleaseBound);this._overlay.addEventListener('touchmove',this._handleCloseDragBound);this._overlay.addEventListener('touchend',this._handleCloseReleaseBound);this.el.addEventListener('touchmove',this._handleCloseDragBound);this.el.addEventListener('touchend',this._handleCloseReleaseBound);this.el.addEventListener('click',this._handleCloseTriggerClickBound);if(this.isFixed){this._handleWindowResizeBound=this._handleWindowResize.bind(this);window.addEventListener('resize',this._handleWindowResizeBound);}}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){if(Sidenav._sidenavs.length===1)document.body.removeEventListener('click',this._handleTriggerClick);this.dragTarget.removeEventListener('touchmove',this._handleDragTargetDragBound);this.dragTarget.removeEventListener('touchend',this._handleDragTargetReleaseBound);this._overlay.removeEventListener('touchmove',this._handleCloseDragBound);this._overlay.removeEventListener('touchend',this._handleCloseReleaseBound);this.el.removeEventListener('touchmove',this._handleCloseDragBound);this.el.removeEventListener('touchend',this._handleCloseReleaseBound);this.el.removeEventListener('click',this._handleCloseTriggerClickBound);if(this.isFixed)window.removeEventListener('resize',this._handleWindowResizeBound);}},{key:"_handleTriggerClick",value:function _handleTriggerClick(e){var $trigger=$(e.target).closest('.sidenav-trigger');if(e.target&&$trigger.length){var sidenavId=M.getIdFromTrigger($trigger[0]);var sidenavInstance=document.getElementById(sidenavId).M_Sidenav;if(sidenavInstance)sidenavInstance.open($trigger);e.preventDefault();}}},{key:"_startDrag",value:function _startDrag(e){var clientX=e.targetTouches[0].clientX;this.isDragged=true;this._startingXpos=clientX;this._xPos=this._startingXpos;this._time=Date.now();this._width=this.el.getBoundingClientRect().width;this._overlay.style.display='block';this._initialScrollTop=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop();this._verticallyScrolling=false;anim.remove(this.el);anim.remove(this._overlay);}},{key:"_dragMoveUpdate",value:function _dragMoveUpdate(e){var clientX=e.targetTouches[0].clientX;var currentScrollTop=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop();this.deltaX=Math.abs(this._xPos-clientX);this._xPos=clientX;this.velocityX=this.deltaX/(Date.now()-this._time);this._time=Date.now();if(this._initialScrollTop!==currentScrollTop)this._verticallyScrolling=true;}},{key:"_handleDragTargetDrag",value:function _handleDragTargetDrag(e){if(!this.options.draggable||this._isCurrentlyFixed()||this._verticallyScrolling)return;if(!this.isDragged)this._startDrag(e);this._dragMoveUpdate(e);var totalDeltaX=this._xPos-this._startingXpos;var dragDirection=totalDeltaX>0?'right':'left';totalDeltaX=Math.min(this._width,Math.abs(totalDeltaX));if(this.options.edge===dragDirection)totalDeltaX=0;var transformX=totalDeltaX;var transformPrefix='translateX(-100%)';if(this.options.edge==='right'){transformPrefix='translateX(100%)';transformX=-transformX;}this.percentOpen=Math.min(1,totalDeltaX/this._width);this.el.style.transform=transformPrefix+" translateX("+transformX+"px)";this._overlay.style.opacity=this.percentOpen;}},{key:"_handleDragTargetRelease",value:function _handleDragTargetRelease(){if(this.isDragged){if(this.percentOpen>0.2)this.open();else this._animateOut();this.isDragged=false;this._verticallyScrolling=false;}}},{key:"_handleCloseDrag",value:function _handleCloseDrag(e){if(this.isOpen){if(!this.options.draggable||this._isCurrentlyFixed()||this._verticallyScrolling)return;if(!this.isDragged)this._startDrag(e);this._dragMoveUpdate(e);var totalDeltaX=this._xPos-this._startingXpos;var dragDirection=totalDeltaX>0?'right':'left';totalDeltaX=Math.min(this._width,Math.abs(totalDeltaX));if(this.options.edge!==dragDirection)totalDeltaX=0;var transformX=-totalDeltaX;if(this.options.edge==='right')transformX=-transformX;this.percentOpen=Math.min(1,1-totalDeltaX/this._width);this.el.style.transform="translateX("+transformX+"px)";this._overlay.style.opacity=this.percentOpen;}}},{key:"_handleCloseRelease",value:function _handleCloseRelease(){if(this.isOpen&&this.isDragged){if(this.percentOpen>0.8)this._animateIn();else this.close();this.isDragged=false;this._verticallyScrolling=false;}}},{key:"_handleCloseTriggerClick",value:function _handleCloseTriggerClick(e){var $closeTrigger=$(e.target).closest('.sidenav-close');if($closeTrigger.length&&!this._isCurrentlyFixed())this.close();}},{key:"_handleWindowResize",value:function _handleWindowResize(){if(this.lastWindowWidth!==window.innerWidth)if(window.innerWidth>992)this.open();else this.close();this.lastWindowWidth=window.innerWidth;this.lastWindowHeight=window.innerHeight;}}
222,{key:"_setupClasses",value:function _setupClasses(){if(this.options.edge==='right'){this.el.classList.add('right-aligned');this.dragTarget.classList.add('right-aligned');}}},{key:"_removeClasses",value:function _removeClasses(){this.el.classList.remove('right-aligned');this.dragTarget.classList.remove('right-aligned');}},{key:"_setupFixed",value:function _setupFixed(){if(this._isCurrentlyFixed())this.open();}},{key:"_isCurrentlyFixed",value:function _isCurrentlyFixed(){return this.isFixed&&window.innerWidth>992;}},{key:"_createDragTarget",value:function _createDragTarget(){var dragTarget=document.createElement('div');dragTarget.classList.add('drag-target');document.body.appendChild(dragTarget);this.dragTarget=dragTarget;}},{key:"_preventBodyScrolling",value:function _preventBodyScrolling(){var body=document.body;body.style.overflow='hidden';}},{key:"_enableBodyScrolling",value:function _enableBodyScrolling(){var body=document.body;body.style.overflow='';}},{key:"open",value:function open(){if(this.isOpen===true)return;this.isOpen=true;if(typeof this.options.onOpenStart==='function')this.options.onOpenStart.call(this,this.el);if(this._isCurrentlyFixed()){anim.remove(this.el);anim({targets:this.el,translateX:0,duration:0,easing:'easeOutQuad'});this._enableBodyScrolling();this._overlay.style.display='none';}else{if(this.options.preventScrolling)this._preventBodyScrolling();if(!this.isDragged||this.percentOpen!=1)this._animateIn();}}},{key:"close",value:function close(){if(this.isOpen===false)return;this.isOpen=false;if(typeof this.options.onCloseStart==='function')this.options.onCloseStart.call(this,this.el);if(this._isCurrentlyFixed()){var transformX=this.options.edge==='left'?'-105%':'105%';this.el.style.transform="translateX("+transformX+")";}else{this._enableBodyScrolling();if(!this.isDragged||this.percentOpen!=0)this._animateOut();else this._overlay.style.display='none';}}},{key:"_animateIn",value:function _animateIn(){this._animateSidenavIn();this._animateOverlayIn();}},{key:"_animateSidenavIn",value:function _animateSidenavIn(){var _this32=this;var slideOutPercent=this.options.edge==='left'?-1:1;if(this.isDragged)slideOutPercent=this.options.edge==='left'?slideOutPercent+this.percentOpen:slideOutPercent-this.percentOpen;anim.remove(this.el);anim({targets:this.el,translateX:[slideOutPercent*100+"%",0],duration:this.options.inDuration,easing:'easeOutQuad',complete:function(){if(typeof _this32.options.onOpenEnd==='function')_this32.options.onOpenEnd.call(_this32,_this32.el);}});}},{key:"_animateOverlayIn",value:function _animateOverlayIn(){var start=0;if(this.isDragged)start=this.percentOpen;else $(this._overlay).css({display:'block'});anim.remove(this._overlay);anim({targets:this._overlay,opacity:[start,1],duration:this.options.inDuration,easing:'easeOutQuad'});}},{key:"_animateOut",value:function _animateOut(){this._animateSidenavOut();this._animateOverlayOut();}},{key:"_animateSidenavOut",value:function _animateSidenavOut(){var _this33=this;var endPercent=this.options.edge==='left'?-1:1;var slideOutPercent=0;if(this.isDragged)slideOutPercent=this.options.edge==='left'?endPercent+this.percentOpen:endPercent-this.percentOpen;anim.remove(this.el);anim({targets:this.el,translateX:[slideOutPercent*100+"%",endPercent*105+"%"],duration:this.options.outDuration,easing:'easeOutQuad',complete:function(){if(typeof _this33.options.onCloseEnd==='function')_this33.options.onCloseEnd.call(_this33,_this33.el);}});}},{key:"_animateOverlayOut",value:function _animateOverlayOut(){var _this34=this;anim.remove(this._overlay);anim({targets:this._overlay,opacity:0,duration:this.options.outDuration,easing:'easeOutQuad',complete:function(){$(_this34._overlay).css('display','none');}});}}],[{key:"init",value:function init(els,options){return _get(Sidenav.__proto__||Object.getPrototypeOf(Sidenav),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Sidenav;}},{key:"defaults",get:function(){return _defaults;}}]);return Sidenav;}(Component);Sidenav._sidenavs=[];window.M.Sidenav=Sidenav;if(M.jQueryLoaded)M.initializeJqueryWrapper(Sidenav,'sidenav','M_Sidenav');})(cash,M.anime);;(function($,anim){'use strict';var _defaults={throttle:100,scrollOffset:200,activeClass:'active',getActiveElement:function(id){return 'a[href="#'+id+'"]';}};var ScrollSpy=function(_Component9){_inherits(ScrollSpy,_Component9);function ScrollSpy(el,options){_classCallCheck(this,ScrollSpy);var _this35=_possibleConstructorReturn(this,(ScrollSpy.__proto__||Object.getPrototypeOf(ScrollSpy)).call(this,ScrollSpy,el,options));_this35.el.M_ScrollSpy=_this35;_this35.options=$.extend({},ScrollSpy.defaults,options);ScrollSpy._elements.push(_this35);ScrollSpy._count++;ScrollSpy._increment++;_this35.tickId=-1;_this35.id=ScrollSpy._increment;_this35._setupEventHandlers();_this35._handleWindowScroll();return _this35;}_createClass(ScrollSpy,[{key:"destroy",value:function destroy(){ScrollSpy._elements.splice(ScrollSpy._elements.indexOf(this),1);ScrollSpy._elementsInView.splice(ScrollSpy._elementsInView.indexOf(this),1);ScrollSpy._visibleElements.splice(ScrollSpy._visibleElements.indexOf(this.$el),1);ScrollSpy._count--;this._removeEventHandlers();$(this.options.getActiveElement(this.$el.attr('id'))).removeClass(this.options.activeClass);this.el.M_ScrollSpy=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){var throttledResize=M.throttle(this._handleWindowScroll,200);this._handleThrottledResizeBound=throttledResize.bind(this);this._handleWindowScrollBound=this._handleWindowScroll.bind(this);if(ScrollSpy._count===1){window.addEventListener('scroll',this._handleWindowScrollBound);window.addEventListener('resize',this._handleThrottledResizeBound);document.body.addEventListener('click',this._handleTriggerClick);}}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){if(ScrollSpy._count===0){window.removeEventListener('scroll',this._handleWindowScrollBound);window.removeEventListener('resize',this._handleThrottledResizeBound);document.body.removeEventListener('click',this._handleTriggerClick);}}},{key:"_handleTriggerClick",value:function _handleTriggerClick(e){var $trigger=$(e.target);for(var i=ScrollSpy._elements.length-1;i>=0;i--){var scrollspy=ScrollSpy._elements[i];if($trigger.is('a[href="#'+scrollspy.$el.attr('id')+'"]')){e.preventDefault();var offset=scrollspy.$el.offset().top+1;anim({targets:[document.documentElement,document.body],scrollTop:offset-scrollspy.options.scrollOffset,duration:400,easing:'easeOutCubic'});break;}}}},{key:"_handleWindowScroll",value:function _handleWindowScroll(){ScrollSpy._ticks++;var top=M.getDocumentScrollTop(),left=M.getDocumentScrollLeft(),right=left+window.innerWidth,bottom=top+window.innerHeight;var intersections=ScrollSpy._findElements(top,right,bottom,left);for(var i=0;i<intersections.length;i++){var scrollspy=intersections[i];var lastTick=scrollspy.tickId;if(lastTick<0)scrollspy._enter();scrollspy.tickId=ScrollSpy._ticks;}for(var _i=0;_i<ScrollSpy._elementsInView.length;_i++){var _scrollspy=ScrollSpy._elementsInView[_i];var _lastTick=_scrollspy.tickId;if(_lastTick>=0&&_lastTick!==ScrollSpy._ticks){_scrollspy._exit();_scrollspy.tickId=-1;}}ScrollSpy._elementsInView=intersections;}},{key:"_enter",value:function _enter(){ScrollSpy._visibleElements=ScrollSpy._visibleElements.filter(function(value){return value.height()!=0;});if(ScrollSpy._visibleElements[0]){$(this.options.getActiveElement(ScrollSpy._visibleElements[0].attr('id'))).removeClass(this.options.activeClass);if(ScrollSpy._visibleElements[0][0].M_ScrollSpy&&this.id<ScrollSpy._visibleElements[0][0].M_ScrollSpy.id)ScrollSpy._visibleElements.unshift(this.$el);else ScrollSpy._visibleElements.push(this.$el);}else ScrollSpy._visibleElements.push(this.$el);$(this.options.getActiveElement(ScrollSpy._visibleElements[0].attr('id'))).addClass(this.options.activeClass);}},{key:"_exit",value:function _exit(){var _this36=this;ScrollSpy._visibleElements=ScrollSpy._visibleElements.filter(function(value){return value.height()!=0;});if(ScrollSpy._visibleElements[0]){$(this.options.getActiveElement(ScrollSpy._visibleElements[0].attr('id'))).removeClass(this.options.activeClass);ScrollSpy._visibleElements=ScrollSpy._visibleElements.filter(function(el){return el.attr('id')!=_this36.$el.attr('id');});if(ScrollSpy._visibleElements[0])$(this.options.getActiveElement(ScrollSpy._visibleElements[0].attr('id'))).addClass(this.options.activeClass);}}}],[{key:"init",value:function init(els,options){return _get(ScrollSpy.__proto__||Object.getPrototypeOf(ScrollSpy),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_ScrollSpy;}},{key:"_findElements",value:function _findElements(top,right,bottom,left){var hits=[];for(var i=0;i<ScrollSpy._elements.length;i++){var scrollspy=ScrollSpy._elements[i];var currTop=top+scrollspy.options.scrollOffset||200;
222if(scrollspy.$el.height()>0){var elTop=scrollspy.$el.offset().top,elLeft=scrollspy.$el.offset().left,elRight=elLeft+scrollspy.$el.width(),elBottom=elTop+scrollspy.$el.height();var isIntersect=!(elLeft>right||elRight<left||elTop>bottom||elBottom<currTop);if(isIntersect)hits.push(scrollspy);}}return hits;}},{key:"defaults",get:function(){return _defaults;}}]);return ScrollSpy;}(Component);ScrollSpy._elements=[];ScrollSpy._elementsInView=[];ScrollSpy._visibleElements=[];ScrollSpy._count=0;ScrollSpy._increment=0;ScrollSpy._ticks=0;M.ScrollSpy=ScrollSpy;if(M.jQueryLoaded)M.initializeJqueryWrapper(ScrollSpy,'scrollSpy','M_ScrollSpy');})(cash,M.anime);;(function($){'use strict';var _defaults={data:{},limit:Infinity,onAutocomplete:null,minLength:1,sortFunction:function(a,b,inputString){return a.indexOf(inputString)-b.indexOf(inputString);}};var Autocomplete=function(_Component10){_inherits(Autocomplete,_Component10);function Autocomplete(el,options){_classCallCheck(this,Autocomplete);var _this37=_possibleConstructorReturn(this,(Autocomplete.__proto__||Object.getPrototypeOf(Autocomplete)).call(this,Autocomplete,el,options));_this37.el.M_Autocomplete=_this37;_this37.options=$.extend({},Autocomplete.defaults,options);_this37.isOpen=false;_this37.count=0;_this37.activeIndex=-1;_this37.oldVal;_this37.$inputField=_this37.$el.closest('.input-field');_this37.$active=$();_this37._mousedown=false;_this37._setupDropdown();_this37._setupEventHandlers();return _this37;}_createClass(Autocomplete,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this._removeDropdown();this.el.M_Autocomplete=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleInputBlurBound=this._handleInputBlur.bind(this);this._handleInputKeyupAndFocusBound=this._handleInputKeyupAndFocus.bind(this);this._handleInputKeydownBound=this._handleInputKeydown.bind(this);this._handleInputClickBound=this._handleInputClick.bind(this);this._handleContainerMousedownAndTouchstartBound=this._handleContainerMousedownAndTouchstart.bind(this);this._handleContainerMouseupAndTouchendBound=this._handleContainerMouseupAndTouchend.bind(this);this.el.addEventListener('blur',this._handleInputBlurBound);this.el.addEventListener('keyup',this._handleInputKeyupAndFocusBound);this.el.addEventListener('focus',this._handleInputKeyupAndFocusBound);this.el.addEventListener('keydown',this._handleInputKeydownBound);this.el.addEventListener('click',this._handleInputClickBound);this.container.addEventListener('mousedown',this._handleContainerMousedownAndTouchstartBound);this.container.addEventListener('mouseup',this._handleContainerMouseupAndTouchendBound);if(typeof window.ontouchstart!=='undefined'){this.container.addEventListener('touchstart',this._handleContainerMousedownAndTouchstartBound);this.container.addEventListener('touchend',this._handleContainerMouseupAndTouchendBound);}}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){this.el.removeEventListener('blur',this._handleInputBlurBound);this.el.removeEventListener('keyup',this._handleInputKeyupAndFocusBound);this.el.removeEventListener('focus',this._handleInputKeyupAndFocusBound);this.el.removeEventListener('keydown',this._handleInputKeydownBound);this.el.removeEventListener('click',this._handleInputClickBound);this.container.removeEventListener('mousedown',this._handleContainerMousedownAndTouchstartBound);this.container.removeEventListener('mouseup',this._handleContainerMouseupAndTouchendBound);if(typeof window.ontouchstart!=='undefined'){this.container.removeEventListener('touchstart',this._handleContainerMousedownAndTouchstartBound);this.container.removeEventListener('touchend',this._handleContainerMouseupAndTouchendBound);}}},{key:"_setupDropdown",value:function _setupDropdown(){var _this38=this;this.container=document.createElement('ul');this.container.id="autocomplete-options-"+M.guid();$(this.container).addClass('autocomplete-content dropdown-content');this.$inputField.append(this.container);this.el.setAttribute('data-target',this.container.id);this.dropdown=M.Dropdown.init(this.el,{autoFocus:false,closeOnClick:false,coverTrigger:false,onItemClick:function(itemEl){_this38.selectOption($(itemEl));}});this.el.removeEventListener('click',this.dropdown._handleClickBound);}},{key:"_removeDropdown",value:function _removeDropdown(){this.container.parentNode.removeChild(this.container);}},{key:"_handleInputBlur",value:function _handleInputBlur(){if(!this._mousedown){this.close();this._resetAutocomplete();}}},{key:"_handleInputKeyupAndFocus",value:function _handleInputKeyupAndFocus(e){if(e.type==='keyup')Autocomplete._keydown=false;this.count=0;var val=this.el.value.toLowerCase();if(e.keyCode===13||e.keyCode===38||e.keyCode===40)return;if(this.oldVal!==val&&(M.tabPressed||e.type!=='focus'))this.open();this.oldVal=val;}},{key:"_handleInputKeydown",value:function _handleInputKeydown(e){Autocomplete._keydown=true;var keyCode=e.keyCode,liElement=void 0,numItems=$(this.container).children('li').length;if(keyCode===M.keys.ENTER&&this.activeIndex>=0){liElement=$(this.container).children('li').eq(this.activeIndex);if(liElement.length){this.selectOption(liElement);e.preventDefault();}return;}if(keyCode===M.keys.ARROW_UP||keyCode===M.keys.ARROW_DOWN){e.preventDefault();if(keyCode===M.keys.ARROW_UP&&this.activeIndex>0)this.activeIndex--;if(keyCode===M.keys.ARROW_DOWN&&this.activeIndex<numItems-1)this.activeIndex++;this.$active.removeClass('active');if(this.activeIndex>=0){this.$active=$(this.container).children('li').eq(this.activeIndex);this.$active.addClass('active');}}}},{key:"_handleInputClick",value:function _handleInputClick(e){this.open();}},{key:"_handleContainerMousedownAndTouchstart",value:function _handleContainerMousedownAndTouchstart(e){this._mousedown=true;}},{key:"_handleContainerMouseupAndTouchend",value:function _handleContainerMouseupAndTouchend(e){this._mousedown=false;}},{key:"_highlight",value:function _highlight(string,$el){var img=$el.find('img');var matchStart=$el.text().toLowerCase().indexOf(''+string.toLowerCase()+''),matchEnd=matchStart+string.length-1,beforeMatch=$el.text().slice(0,matchStart),matchText=$el.text().slice(matchStart,matchEnd+1),afterMatch=$el.text().slice(matchEnd+1);$el.html("<span>
222"+beforeMatch+"<span class='highlight'>"+matchText+"</span>"+afterMatch+"</span>");if(img.length)$el.prepend(img);}},{key:"_resetCurrentElement",value:function _resetCurrentElement(){this.activeIndex=-1;this.$active.removeClass('active');}},{key:"_resetAutocomplete",value:function _resetAutocomplete(){$(this.container).empty();this._resetCurrentElement();this.oldVal=null;this.isOpen=false;this._mousedown=false;}},{key:"selectOption",value:function selectOption(el){var text=el.text().trim();this.el.value=text;this.$el.trigger('change');this._resetAutocomplete();this.close();if(typeof this.options.onAutocomplete==='function')this.options.onAutocomplete.call(this,text);}},{key:"_renderDropdown",value:function _renderDropdown(data,val){var _this39=this;this._resetAutocomplete();var matchingData=[];for(var key in data)if(data.hasOwnProperty(key)&&key.toLowerCase().indexOf(val)!==-1){if(this.count>=this.options.limit)break;var entry={data:data[key],key};matchingData.push(entry);this.count++;}if(this.options.sortFunction){var sortFunctionBound=function(a,b){return _this39.options.sortFunction(a.key.toLowerCase(),b.key.toLowerCase(),val.toLowerCase());};matchingData.sort(sortFunctionBound);}for(var i=0;i<matchingData.length;i++){var _entry=matchingData[i];var $autocompleteOption=$('<li></li>');if(!!_entry.data)$autocompleteOption.append("<img src=\""+_entry.data+"\" class=\"right circle\"><span>"+_entry.key+"</span>");else $autocompleteOption.append('<span>'+_entry.key+'</span>');$(this.container).append($autocompleteOption);this._highlight(val,$autocompleteOption);}}},{key:"open",value:function open(){var val=this.el.value.toLowerCase();this._resetAutocomplete();if(val.length>=this.options.minLength){this.isOpen=true;this._renderDropdown(this.options.data,val);}if(!this.dropdown.isOpen)this.dropdown.open();else this.dropdown.recalculateDimensions();}},{key:"close",value:function close(){this.dropdown.close();}},{key:"updateData",value:function updateData(data){var val=this.el.value.toLowerCase();this.options.data=data;if(this.isOpen)this._renderDropdown(data,val);}}],[{key:"init",value:function init(els,options){return _get(Autocomplete.__proto__||Object.getPrototypeOf(Autocomplete),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Autocomplete;}},{key:"defaults",get:function(){return _defaults;}}]);return Autocomplete;}(Component);Autocomplete._keydown=false;M.Autocomplete=Autocomplete;if(M.jQueryLoaded)M.initializeJqueryWrapper(Autocomplete,'autocomplete','M_Autocomplete');})(cash);;(function($){M.updateTextFields=function(){var input_selector='input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea';$(input_selector).each(function(element,index){var $this=$(this);if(element.value.length>0||$(element).is(':focus')||element.autofocus||$this.attr('placeholder')!==null)$this.siblings('label').addClass('active');else if(element.validity)$this.siblings('label').toggleClass('active',element.validity.badInput===true);else $this.siblings('label').removeClass('active');});};M.validate_field=function(object){var hasLength=object.attr('data-length')!==null;var lenAttr=parseInt(object.attr('data-length'));var len=object[0].value.length;if(len===0&&object[0].validity.badInput===false&&!object.is(':required')){if(object.hasClass('validate')){object.removeClass('valid');object.removeClass('invalid');}}else{if(object.hasClass('validate'))if(object.is(':valid')&&hasLength&&len<=lenAttr||object.is(':valid')&&!hasLength){object.removeClass('invalid');object.addClass('valid');}else{object.removeClass('valid');object.addClass('invalid');}}};M.textareaAutoResize=function($textarea){if($textarea instanceof Element)$textarea=$($textarea);if(!$textarea.length){console.error('No textarea element found');return;}var hiddenDiv=$('.hiddendiv').first();if(!hiddenDiv.length){hiddenDiv=$('<div class="hiddendiv common"></div>');$('body').append(hiddenDiv);}var fontFamily=$textarea.css('font-family');var fontSize=$textarea.css('font-size');var lineHeight=$textarea.css('line-height');var paddingTop=$textarea.css('padding-top');var paddingRight=$textarea.css('padding-right');var paddingBottom=$textarea.css('padding-bottom');var paddingLeft=$textarea.css('padding-left');if(fontSize)hiddenDiv.css('font-size',fontSize);if(fontFamily)hiddenDiv.css('font-family',fontFamily);if(lineHeight)hiddenDiv.css('line-height',lineHeight);if(paddingTop)hiddenDiv.css('padding-top',paddingTop);
222if(paddingRight)hiddenDiv.css('padding-right',paddingRight);if(paddingBottom)hiddenDiv.css('padding-bottom',paddingBottom);if(paddingLeft)hiddenDiv.css('padding-left',paddingLeft);if(!$textarea.data('original-height'))$textarea.data('original-height',$textarea.height());if($textarea.attr('wrap')==='off')hiddenDiv.css('overflow-wrap','normal').css('white-space','pre');hiddenDiv.text($textarea[0].value+'\n');var content=hiddenDiv.html().replace(/\n/g,'<br>');hiddenDiv.html(content);if($textarea[0].offsetWidth>0&&$textarea[0].offsetHeight>0)hiddenDiv.css('width',$textarea.width()+'px');else hiddenDiv.css('width',window.innerWidth/2+'px');if($textarea.data('original-height')<=hiddenDiv.innerHeight())$textarea.css('height',hiddenDiv.innerHeight()+'px');else{if($textarea[0].value.length<$textarea.data('previous-length'))$textarea.css('height',$textarea.data('original-height')+'px');}$textarea.data('previous-length',$textarea[0].value.length);};$(document).ready(function(){var input_selector='input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea';$(document).on('change',input_selector,function(){if(this.value.length!==0||$(this).attr('placeholder')!==null)$(this).siblings('label').addClass('active');M.validate_field($(this));});$(document).ready(function(){M.updateTextFields();});$(document).on('reset',function(e){var formReset=$(e.target);if(formReset.is('form')){formReset.find(input_selector).removeClass('valid').removeClass('invalid');formReset.find(input_selector).each(function(e){if(this.value.length)$(this).siblings('label').removeClass('active');});setTimeout(function(){formReset.find('select').each(function(){if(this.M_FormSelect)$(this).trigger('change');});},0);}});document.addEventListener('focus',function(e){if($(e.target).is(input_selector))$(e.target).siblings('label, .prefix').addClass('active');},true);document.addEventListener('blur',function(e){var $inputElement=$(e.target);if($inputElement.is(input_selector)){var selector='.prefix';if($inputElement[0].value.length===0&&$inputElement[0].validity.badInput!==true&&$inputElement.attr('placeholder')===null)selector+=', label';$inputElement.siblings(selector).removeClass('active');M.validate_field($inputElement);}},true);var radio_checkbox='input[type=radio], input[type=checkbox]';$(document).on('keyup',radio_checkbox,function(e){if(e.which===M.keys.TAB){$(this).addClass('tabbed');var $this=$(this);$this.one('blur',function(e){$(this).removeClass('tabbed');});return;}});var text_area_selector='.materialize-textarea';$(text_area_selector).each(function(){var $textarea=$(this);$textarea.data('original-height',$textarea.height());$textarea.data('previous-length',this.value.length);M.textareaAutoResize($textarea);});$(document).on('keyup',text_area_selector,function(){M.textareaAutoResize($(this));});$(document).on('keydown',text_area_selector,function(){M.textareaAutoResize($(this));});$(document).on('change','.file-field input[type="file"]',function(){var file_field=$(this).closest('.file-field');var path_input=file_field.find('input.file-path');var files=$(this)[0].files;var file_names=[];for(var i=0;i<files.length;i++)file_names.push(files[i].name);path_input[0].value=file_names.join(', ');path_input.trigger('change');});});})(cash);;(function($,anim){'use strict';var _defaults={indicators:true,height:400,duration:500,interval:6000};var Slider=function(_Component11){_inherits(Slider,_Component11);function Slider(el,options){_classCallCheck(this,Slider);var _this40=_possibleConstructorReturn(this,(Slider.__proto__||Object.getPrototypeOf(Slider)).call(this,Slider,el,options));_this40.el.M_Slider=_this40;_this40.options=$.extend({},Slider.defaults,options);_this40.$slider=_this40.$el.find('.slides');_this40.$slides=_this40.$slider.children('li');_this40.activeIndex=_this40.$slides.filter(function(item){return $(item).hasClass('active');}).first().index();if(_this40.activeIndex!=-1)_this40.$active=_this40.$slides.eq(_this40.activeIndex);_this40._setSliderHeight();_this40.$slides.find('.caption').each(function(el){_this40._animateCaptionIn(el,0);});_this40.$slides.find('img').each(function(el){var placeholderBase64='data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';if($(el).attr('src')!==placeholderBase64){$(el).css('background-image','url("'+$(el).attr('src')+'")');$(el).attr('src',placeholderBase64);}});_this40._setupIndicators();if(_this40.$active)_this40.$active.css('display','block');else{_this40.$slides.first().addClass('active');anim({targets:_this40.$slides.first()[0],opacity:1,duration:_this40.options.duration,easing:'easeOutQuad'});_this40.activeIndex=0;_this40.$active=_this40.$slides.eq(_this40.activeIndex);if(_this40.options.indicators)_this40.$indicators.eq(_this40.activeIndex).addClass('active');}_this40.$active.find('img').each(function(el){anim({targets:_this40.$active.find('.caption')[0],opacity:1,translateX:0,translateY:0,duration:_this40.options.duration,easing:'easeOutQuad'});});_this40._setupEventHandlers();_this40.start();return _this40;}_createClass(Slider,[{key:"destroy",value:function destroy(){this.pause();this._removeIndicators();this._removeEventHandlers();this.el.M_Slider=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){var _this41=this;this._handleIntervalBound=this._handleInterval.bind(this);this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this);if(this.options.indicators)this.$indicators.each(function(el){el.addEventListener('click',_this41._handleIndicatorClickBound);});}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){var _this42=this;if(this.options.indicators)this.$indicators.each(function(el){el.removeEventListener('click',_this42._handleIndicatorClickBound);});}},{key:"_handleIndicatorClick",value:function _handleIndicatorClick(e){var currIndex=$(e.target).index();this.set(currIndex);}},{key:"_handleInterval",value:function _handleInterval(){var newActiveIndex=this.$slider.find('.active').index();if(this.$slides.length===newActiveIndex+1)newActiveIndex=0;else newActiveIndex+=1;this.set(newActiveIndex);}},{key:"_animateCaptionIn",value:function _animateCaptionIn(caption,duration){var animOptions={targets:caption,opacity:0,duration,easing:'easeOutQuad'};if($(caption).hasClass('center-align'))animOptions.translateY=-100;else if($(caption).hasClass('right-align'))animOptions.translateX=100;else{if($(caption).hasClass('left-align'))animOptions.translateX=-100;}anim(animOptions);}},{key:"_setSliderHeight",value:function _setSliderHeight(){if(!this.$el.hasClass('fullscreen')){if(this.options.indicators)this.$el.css('height',this.options.height+40+'px');else this.$el.css('height',this.options.height+'px');this.$slider.css('height',this.options.height+'px');}}},{key:"_setupIndicators",value:function _setupIndicators(){var _this43=this;if(this.options.indicators){this.$indicators=$('<ul class="indicators"></ul>');this.$slides.each(function(el,index){var $indicator=$('<li class="indicator-item"></li>');_this43.$indicators.append($indicator[0]);});this.$el.append(this.$indicators[0]);this.$indicators=this.$indicators.children('li.indicator-item');}}},{key:"_removeIndicators",value:function _removeIndicators(){this.$el.find('ul.indicators').remove();}},{key:"set",value:function set(index){var _this44=this;if(index>=this.$slides.length)index=0;else{if(index<0)index=this.$slides.length-1;}if(this.activeIndex!=index){this.$active=this.$slides.eq(this.activeIndex);var $caption=this.$active.find('.caption');this.$active.removeClass('active');anim({targets:this.$active[0],opacity:0,duration:this.options.duration,easing:'easeOutQuad',complete:function(){_this44.$slides.not('.active').each(function(el){anim({targets:el,opacity:0,translateX:0,translateY:0,duration:0,easing:'easeOutQuad'});});}});this._animateCaptionIn($caption[0],this.options.duration);if(this.options.indicators){this.$indicators.eq(this.activeIndex).removeClass('active');this.$indicators.eq(index).addClass('active');}anim({targets:this.$slides.eq(index)[0],opacity:1,duration:this.options.duration,easing:'easeOutQuad'});anim({targets:this.$slides.eq(index).find('.caption')[0],opacity:1,translateX:0,translateY:0,duration:this.options.duration,delay:this.options.duration,easing:'easeOutQuad'});this.$slides.eq(index).addClass('active');this.activeIndex=index;this.start();}}},{key:"pause",value:function pause(){clearInterval(this.interval);}},{key:"start",value:function start(){clearInterval(this.interval);this.interval=setInterval(this._handleIntervalBound,this.options.duration+this.options.interval);}},{key:"next",value:function next(){var newIndex=this.activeIndex+1;if(newIndex>
222=this.$slides.length)newIndex=0;else{if(newIndex<0)newIndex=this.$slides.length-1;}this.set(newIndex);}},{key:"prev",value:function prev(){var newIndex=this.activeIndex-1;if(newIndex>=this.$slides.length)newIndex=0;else{if(newIndex<0)newIndex=this.$slides.length-1;}this.set(newIndex);}}],[{key:"init",value:function init(els,options){return _get(Slider.__proto__||Object.getPrototypeOf(Slider),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Slider;}},{key:"defaults",get:function(){return _defaults;}}]);return Slider;}(Component);M.Slider=Slider;if(M.jQueryLoaded)M.initializeJqueryWrapper(Slider,'slider','M_Slider');})(cash,M.anime);;(function($,anim){$(document).on('click','.card',function(e){if($(this).children('.card-reveal').length){var $card=$(e.target).closest('.card');if($card.data('initialOverflow')===undefined)$card.data('initialOverflow',$card.css('overflow')===undefined?'':$card.css('overflow'));var $cardReveal=$(this).find('.card-reveal');if($(e.target).is($('.card-reveal .card-title'))||$(e.target).is($('.card-reveal .card-title i')))anim({targets:$cardReveal[0],translateY:0,duration:225,easing:'easeInOutQuad',complete:function(anim){var el=anim.animatables[0].target;$(el).css({display:'none'});$card.css('overflow',$card.data('initialOverflow'));}});else{if($(e.target).is($('.card .activator'))||$(e.target).is($('.card .activator i'))){$card.css('overflow','hidden');$cardReveal.css({display:'block'});anim({targets:$cardReveal[0],translateY:'-100%',duration:300,easing:'easeInOutQuad'});}}}});})(cash,M.anime);;(function($){'use strict';var _defaults={data:[],placeholder:'',secondaryPlaceholder:'',autocompleteOptions:{},limit:Infinity,onChipAdd:null,onChipSelect:null,onChipDelete:null};var Chips=function(_Component12){_inherits(Chips,_Component12);function Chips(el,options){_classCallCheck(this,Chips);var _this45=_possibleConstructorReturn(this,(Chips.__proto__||Object.getPrototypeOf(Chips)).call(this,Chips,el,options));_this45.el.M_Chips=_this45;_this45.options=$.extend({},Chips.defaults,options);_this45.$el.addClass('chips input-field');_this45.chipsData=[];_this45.$chips=$();_this45._setupInput();_this45.hasAutocomplete=Object.keys(_this45.options.autocompleteOptions).length>0;if(!_this45.$input.attr('id'))_this45.$input.attr('id',M.guid());if(_this45.options.data.length){_this45.chipsData=_this45.options.data;_this45._renderChips(_this45.chipsData);}if(_this45.hasAutocomplete)_this45._setupAutocomplete();_this45._setPlaceholder();_this45._setupLabel();_this45._setupEventHandlers();return _this45;}_createClass(Chips,[{key:"getData",value:function getData(){return this.chipsData;}},{key:"destroy",value:function destroy(){this._removeEventHandlers();this.$chips.remove();this.el.M_Chips=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleChipClickBound=this._handleChipClick.bind(this);this._handleInputKeydownBound=this._handleInputKeydown.bind(this);this._handleInputFocusBound=this._handleInputFocus.bind(this);this._handleInputBlurBound=this._handleInputBlur.bind(this);this.el.addEventListener('click',this._handleChipClickBound);document.addEventListener('keydown',Chips._handleChipsKeydown);document.addEventListener('keyup',Chips._handleChipsKeyup);this.el.addEventListener('blur',Chips._handleChipsBlur,true);this.$input[0].addEventListener('focus',this._handleInputFocusBound);this.$input[0].addEventListener('blur',this._handleInputBlurBound);this.$input[0].addEventListener('keydown',this._handleInputKeydownBound);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){this.el.removeEventListener('click',this._handleChipClickBound);document.removeEventListener('keydown',Chips._handleChipsKeydown);document.removeEventListener('keyup',Chips._handleChipsKeyup);this.el.removeEventListener('blur',Chips._handleChipsBlur,true);this.$input[0].removeEventListener('focus',this._handleInputFocusBound);this.$input[0].removeEventListener('blur',this._handleInputBlurBound);this.$input[0].removeEventListener('keydown',this._handleInputKeydownBound);}},{key:"_handleChipClick",value:function _handleChipClick(e){var $chip=$(e.target).closest('.chip');var clickedClose=$(e.target).is('.close');if($chip.length){var index=$chip.index();if(clickedClose){this.deleteChip(index);this.$input[0].focus();}else this.selectChip(index);}else this.$input[0].focus();}},{key:"_handleInputFocus",value:function _handleInputFocus(){this.$el.addClass('focus');}},{key:"_handleInputBlur",value:function _handleInputBlur(){this.$el.removeClass('focus');}},{key:"_handleInputKeydown",value:function _handleInputKeydown(e){Chips._keydown=true;if(e.keyCode===13){if(this.hasAutocomplete&&this.autocomplete&&this.autocomplete.isOpen)return;e.preventDefault();this.addChip({tag:this.$input[0].value});this.$input[0].value='';}
222else{if((e.keyCode===8||e.keyCode===37)&&this.$input[0].value===''&&this.chipsData.length){e.preventDefault();this.selectChip(this.chipsData.length-1);}}}},{key:"_renderChip",value:function _renderChip(chip){if(!chip.tag)return;var renderedChip=document.createElement('div');var closeIcon=document.createElement('i');renderedChip.classList.add('chip');renderedChip.textContent=chip.tag;renderedChip.setAttribute('tabindex',0);$(closeIcon).addClass('material-icons close');closeIcon.textContent='close';if(chip.image){var img=document.createElement('img');img.setAttribute('src',chip.image);renderedChip.insertBefore(img,renderedChip.firstChild);}renderedChip.appendChild(closeIcon);return renderedChip;}},{key:"_renderChips",value:function _renderChips(){this.$chips.remove();for(var i=0;i<this.chipsData.length;i++){var chipEl=this._renderChip(this.chipsData[i]);this.$el.append(chipEl);this.$chips.add(chipEl);}this.$el.append(this.$input[0]);}},{key:"_setupAutocomplete",value:function _setupAutocomplete(){var _this46=this;this.options.autocompleteOptions.onAutocomplete=function(val){_this46.addChip({tag:val});_this46.$input[0].value='';_this46.$input[0].focus();};this.autocomplete=M.Autocomplete.init(this.$input[0],this.options.autocompleteOptions);}},{key:"_setupInput",value:function _setupInput(){this.$input=this.$el.find('input');if(!this.$input.length){this.$input=$('<input></input>');this.$el.append(this.$input);}this.$input.addClass('input');}},{key:"_setupLabel",value:function _setupLabel(){this.$label=this.$el.find('label');if(this.$label.length)this.$label.setAttribute('for',this.$input.attr('id'));}},{key:"_setPlaceholder",value:function _setPlaceholder(){if(this.chipsData!==un
222defined&&!this.chipsData.length&&this.options.placeholder)$(this.$input).prop('placeholder',this.options.placeholder);else{if((this.chipsData===undefined||!!this.chipsData.length)&&this.options.secondaryPlaceholder)$(this.$input).prop('placeholder',this.options.secondaryPlaceholder);}}},{key:"_isValid",value:function _isValid(chip){if(chip.hasOwnProperty('tag')&&chip.tag!==''){var exists=false;for(var i=0;i<this.chipsData.length;i++)if(this.chipsData[i].tag===chip.tag){exists=true;break;}return !exists;}return false;}},{key:"addChip",value:function addChip(chip){if(!this._isValid(chip)||this.chipsData.length>=this.options.limit)return;var renderedChip=this._renderChip(chip);this.$chips.add(renderedChip);this.chipsData.push(chip);$(this.$input).before(renderedChip);this._setPlaceholder();if(typeof this.options.onChipAdd==='function')this.options.onChipAdd.call(this,this.$el,renderedChip);}},{key:"deleteChip",value:function deleteChip(chipIndex){var $chip=this.$chips.eq(chipIndex);this.$chips.eq(chipIndex).remove();this.$chips=this.$chips.filter(function(el){return $(el).index()>=0;});this.chipsData.splice(chipIndex,1);this._setPlaceholder();if(typeof this.options.onChipDelete==='function')this.options.onChipDelete.call(this,this.$el,$chip[0]);}},{key:"selectChip",value:function selectChip(chipIndex){var $chip=this.$chips.eq(chipIndex);this._selectedChip=$chip;$chip[0].focus();if(typeof this.options.onChipSelect==='function')this.options.onChipSelect.call(this,this.$el,$chip[0]);}}],[{key:"init",value:function init(els,options){return _get(Chips.__proto__||Object.getPrototypeOf(Chips),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Chips;}},{key:"_handleChipsKeydown",value:function _handleChipsKeydown(e){Chips._keydown=true;var $chips=$(e.target).closest('.chips');var chipsKeydown=e.target&&$chips.length;if($(e.target).is('input, textarea')||!chipsKeydown)return;var currChips=$chips[0].M_Chips;if(e.keyCode===8||e.keyCode===46){e.preventDefault();var selectIndex=currChips.chipsData.length;if(currChips._selectedChip){var index=currChips._selectedChip.index();currChips.deleteChip(index);currChips._selectedChip=null;selectIndex=Math.max(index-1,0);}if(currChips.chipsData.length)currChips.selectChip(selectIndex);}else if(e.keyCode===37){if(currChips._selectedChip){var _selectIndex=currChips._selectedChip.index()-1;if(_selectIndex<0)return;currChips.selectChip(_selectIndex);}}else{if(e.keyCode===39)if(currChips._selectedChip){var _selectIndex2=currChips._selectedChip.index()+1;if(_selectIndex2>=currChips.chipsData.length)currChips.$input[0].focus();else currChips.selectChip(_selectIndex2);}}}},{key:"_handleChipsKeyup",value:function _handleChipsKeyup(e){Chips._keydown=false;}},{key:"_handleChipsBlur",value:function _handleChipsBlur(e){if(!Chips._keydown){var $chips=$(e.target).closest('.chips');var currChips=$chips[0].M_Chips;currChips._selectedChip=null;}}},{key:"defaults",get:function(){return _defaults;}}]);return Chips;}(Component);Chips._keydown=false;M.Chips=Chips;if(M.jQueryLoaded)M.initializeJqueryWrapper(Chips,'chips','M_Chips');$(document).ready(function(){$(document.body).on('click','.chip .close',function(){var $chips=$(this).closest('.chips');if($chips.length&&$chips[0].M_Chips)return;$(this).closest('.chip').remove();});});})(cash);;(function($){'use strict';var _defaults={top:0,bottom:Infinity,offset:0,onPositionChange:null};var Pushpin=function(_Component13){_inherits(Pushpin,_Component13);function Pushpin(el,options){_classCallCheck(this,Pushpin);var _this47=_possibleConstructorReturn(this,(Pushpin.__proto__||Object.getPrototypeOf(Pushpin)).call(this,Pushpin,el,options));_this47.el.M_Pushpin=_this47;_this47.options=$.extend({},Pushpin.defaults,options);_this47.originalOffset=_this47.el.offsetTop;Pushpin._pushpins.push(_this47);_this47._setupEventHandlers();_this47._updatePosition();return _this47;}_createClass(Pushpin,[{key:"destroy",value:function destroy(){this.el.style.top=null;this._removePinClasses();this._removeEventHandlers();var index=Pushpin._pushpins.indexOf(this);Pushpin._pushpins.splice(index,1);}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){document.addEventListener('scroll',Pushpin._updateElements);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){document.removeEventListener('scroll',Pushpin._updateElements);}},{key:"_updatePosition",value:function _updatePosition(){var scrolled=M.getDocumentScrollTop()+this.options.offset;if(this.options.top<=scrolled&&this.options.bottom>=scrolled&&!this.el.classList.contains('pinned')){this._removePinClasses();this.el.style.top=this.options.offset+"px";this.el.classList.add('pinned');if(typeof this.options.onPositionChange==='function')this.options.onPositionChange.call(this,'pinned');}if(scrolled<this.options.top&&!this.el.classList.contains('pin-top')){this._removePinClasses();this.el.style.top=0;this.el.classList.add('pin-top');if(typeof this.options.onPositionChange==='function')this.options.onPositionChange.call(this,'pin-top');}if(scrolled>this.options.bottom&&!this.el.classList.contains('pin-bottom')){this._removePinClasses();this.el.classList.add('pin-bottom');this.el.style.top=this.options.bottom-this.originalOffset+"px";if(typeof this.options.onPositionChange==='function')this.options.onPositionChange.call(this,'pin-bottom');}}},{key:"_removePinClasses",value:function _removePinClasses(){this.el.classList.remove('pin-top');this.el.classList.remove('pinned');this.el.classList.remove('pin-bottom');}}],[{key:"init",value:function init(els,options){return _get(Pushpin.__proto__||Object.getPrototypeOf(Pushpin),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Pushpin;}},{key:"_updateElements",value:function _updateElements(){for(var elIndex in Pushpin._pushpins){var pInstance=Pushpin._pushpins[elIndex];pInstance._updatePosition();}}},{key:"defaults",get:function(){return _defaults;}}]);return Pushpin;}(Component);Pushpin._pushpins=[];M.Pushpin=Pushpin;if(M.jQueryLoaded)M.initializeJqueryWrapper(Pushpin,'pushpin','M_Pushpin');})(cash);;(function($,anim){'use strict';var _defaults={direction:'top',hoverEnabled:true,toolbarEnabled:false};$.fn.reverse=[].reverse;var FloatingActionButton=function(_Component14){_inherits(FloatingActionButton,_Component14);
222function FloatingActionButton(el,options){_classCallCheck(this,FloatingActionButton);var _this48=_possibleConstructorReturn(this,(FloatingActionButton.__proto__||Object.getPrototypeOf(FloatingActionButton)).call(this,FloatingActionButton,el,options));_this48.el.M_FloatingActionButton=_this48;_this48.options=$.extend({},FloatingActionButton.defaults,options);_this48.isOpen=false;_this48.$anchor=_this48.$el.children('a').first();_this48.$menu=_this48.$el.children('ul').first();_this48.$floatingBtns=_this48.$el.find('ul .btn-floating');_this48.$floatingBtnsReverse=_this48.$el.find('ul .btn-floating').reverse();_this48.offsetY=0;_this48.offsetX=0;_this48.$el.addClass("direction-"+_this48.options.direction);if(_this48.options.direction==='top')_this48.offsetY=40;else if(_this48.options.direction==='right')_this48.offsetX=-40;else if(_this48.options.direction==='bottom')_this48.offsetY=-40;else _this48.offsetX=40;_this48._setupEventHandlers();return _this48;}_createClass(FloatingActionButton,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this.el.M_FloatingActionButton=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleFABClickBound=this._handleFABClick.bind(this);this._handleOpenBound=this.open.bind(this);this._handleCloseBound=this.close.bind(this);if(this.options.hoverEnabled&&!this.options.toolbarEnabled){this.el.addEventListener('mouseenter',this._handleOpenBound);this.el.addEventListener('mouseleave',this._handleCloseBound);}else this.el.addEventListener('click',this._handleFABClickBound);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){if(this.options.hoverEnabled&&!this.options.toolbarEnabled){this.el.removeEventListener('mouseenter',this._handleOpenBound);this.el.removeEventListener('mouseleave',this._handleCloseBound);}else this.el.removeEventListener('click',this._handleFABClickBound);}},{key:"_handleFABClick",value:function _handleFABClick(){if(this.isOpen)this.close();else this.open();}},{key:"_handleDocumentClick",value:function _handleDocumentClick(e){if(!$(e.target).closest(this.$menu).length)this.close();}},{key:"open",value:function open(){if(this.isOpen)return;if(this.options.toolbarEnabled)this._animateInToolbar();else this._animateInFAB();this.isOpen=true;}},{key:"close",value:function close(){if(!this.isOpen)return;if(this.options.toolbarEnabled){window.removeEventListener('scroll',this._handleCloseBound,true);document.body.removeEventListener('click',this._handleDocumentClickBound,true);this._animateOutToolbar();}else this._animateOutFAB();this.isOpen=false;}},{key:"_animateInFAB",value:function _animateInFAB(){var _this49=this;this.$el.addClass('active');var time=0;this.$floatingBtnsReverse.each(function(el){anim({targets:el,opacity:1,scale:[0.4,1],translateY:[_this49.offsetY,0],translateX:[_this49.offsetX,0],duration:275,delay:time,easing:'easeInOutQuad'});time+=40;});}},{key:"_animateOutFAB",value:function _animateOutFAB(){var _this50=this;this.$floatingBtnsReverse.each(function(el){anim.remove(el);anim({targets:el,opacity:0,scale:0.4,translateY:_this50.offsetY,translateX:_this50.offsetX,duration:175,easing:'easeOutQuad',complete:function(){_this50.$el.removeClass('active');}});});}},{key:"_animateInToolbar",value:function _animateInToolbar(){var _this51=this;var scaleFactor=void 0;var windowWidth=window.innerWidth;var windowHeight=window.innerHeight;var btnRect=this.el.getBoundingClientRect();var backdrop=$('<div class="fab-backdrop"></div>');var fabColor=this.$anchor.css('background-color');this.$anchor.append(backdrop);this.offsetX=btnRect.left-windowWidth/2+btnRect.width/2;this.offsetY=windowHeight-btnRect.bottom;scaleFactor=windowWidth/backdrop[0].clientWidth;this.btnBottom=btnRect.bottom;this.btnLeft=btnRect.left;this.btnWidth=btnRect.width;this.$el.addClass('active');this.$el.css({'text-align':'center',width:'100%',bottom:0,left:0,transform:'translateX('+this.offsetX+'px)',transition:'none'});this.$anchor.css({transform:'translateY('+-this.offsetY+'px)',transition:'none'});backdrop.css({'background-color':fabColor});setTimeout(function(){_this51.$el.css({transform:'',transition:'transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s'});_this51.$anchor.css({overflow:'visible',transform:'',transition:'transform .2s'});setTimeout(function(){_this51.$el.css({overflow:'hidden','background-color':fabColor});backdrop.css({transform:'scale('+scaleFactor+')',transition:'transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)'});_this51.$menu.children('li').children('a').css({opacity:1});_this51._handleDocumentClickBound=_this51._handleDocumentClick.bind(_this51);window.addEventListener('scroll',_this51._handleCloseBound,true);document.body.addEventListener('click',_this51._handleDocumentClickBound,true);},100);},0);}},{key:"_animateOutToolbar",value:function _animateOutToolbar(){var _this52=this;var windowWidth=window.innerWidth;var windowHeight=window.innerHeight;var backdrop=this.$el.find('.fab-backdrop');var fabColor=this.$anchor.css('background-color');this.offsetX=this.btnLeft-windowWidth/2+this.btnWidth/2;this.offsetY=windowHeight-this.btnBottom;this.$el.removeClass('active');this.$el.css({'background-color':'transparent',transition:'none'});this.$anchor.css({transition:'none'});backdrop.css({transform:'scale(0)','background-color':fabColor});this.$menu.children('li').children('a').css({opacity:''});setTimeout(function(){backdrop.remove();_this52.$el.css({'text-align':'',width:'',bottom:'',left:'',overflow:'','background-color':'',transform:'translate3d('+-_this52.offsetX+'px,0,0)'});_this52.$anchor.css({overflow:'',transform:'translate3d(0,'+_this52.offsetY+'px,0)'});setTimeout(function(){_this52.$el.css({transform:'translate3d(0,
2220,0)',transition:'transform .2s'});_this52.$anchor.css({transform:'translate3d(0,0,0)',transition:'transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)'});},20);},200);}}],[{key:"init",value:function init(els,options){return _get(FloatingActionButton.__proto__||Object.getPrototypeOf(FloatingActionButton),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_FloatingActionButton;}},{key:"defaults",get:function(){return _defaults;}}]);return FloatingActionButton;}(Component);M.FloatingActionButton=FloatingActionButton;if(M.jQueryLoaded)M.initializeJqueryWrapper(FloatingActionButton,'floatingActionButton','M_FloatingActionButton');})(cash,M.anime);;(function($){'use strict';var _defaults={autoClose:false,format:'mmm dd, yyyy',parse:null,defaultDate:null,setDefaultDate:false,disableWeekends:false,disableDayFn:null,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:undefined,maxMonth:undefined,startRange:null,endRange:null,isRTL:false,showMonthAfterYear:false,showDaysInNextAndPreviousMonths:false,container:null,showClearBtn:false,i18n:{cancel:'Cancel',clear:'Clear',done:'Ok',previousMonth:'‹',nextMonth:'›',months:['January','February','March','April','May','June','July','August','September','October','November','December'],monthsShort:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],weekdays:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],weekdaysShort:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],weekdaysAbbrev:['S','M','T','W','T','F','S']},events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null};var Datepicker=function(_Component15){_inherits(Datepicker,_Component15);function Datepicker(el,options){_classCallCheck(this,Datepicker);var _this53=_possibleConstructorReturn(this,(Datepicker.__proto__||Object.getPrototypeOf(Datepicker)).call(this,Datepicker,el,options));_this53.el.M_Datepicker=_this53;_this53.options=$.extend({},Datepicker.defaults,options);if(!!options&&options.hasOwnProperty('i18n')&&typeof options.i18n==='object')_this53.options.i18n=$.extend({},Datepicker.defaults.i18n,options.i18n);if(_this53.options.minDate)_this53.options.minDate.setHours(0,0,0,0);if(_this53.options.maxDate)_this53.options.maxDate.setHours(0,0,0,0);_this53.id=M.guid();_this53._setupVariables();_this53._insertHTMLIntoDOM();_this53._setupModal();_this53._setupEventHandlers();if(!_this53.options.defaultDate)_this53.options.defaultDate=new Date(Date.parse(_this53.el.value));var defDate=_this53.options.defaultDate;if(Datepicker._isDate(defDate))if(_this53.options.setDefaultDate){_this53.setDate(defDate,true);_this53.setInputValue();}else _this53.gotoDate(defDate);else _this53.gotoDate(new Date());_this53.isOpen=false;return _this53;}_createClass(Datepicker,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this.modal.destroy();$(this.modalEl).remove();this.destroySelects();this.el.M_Datepicker=undefined;}},{key:"destroySelects",value:function destroySelects(){var oldYearSelect=this.calendarEl.querySelector('.orig-select-year');if(oldYearSelect)M.FormSelect.getInstance(oldYearSelect).destroy();var oldMonthSelect=this.calendarEl.querySelector('.orig-select-month');if(oldMonthSelect)M.FormSelect.getInstance(oldMonthSelect).destroy();}},{key:"_insertHTMLIntoDOM",value:function _insertHTMLIntoDOM(){if(this.options.showClearBtn){$(this.clearBtn).css({visibility:''});this.clearBtn.innerHTML=this.options.i18n.clear;}this.doneBtn.innerHTML=this.options.i18n.done;this.cancelBtn.innerHTML=this.options.i18n.cancel;if(this.options.container)this.$modalEl.appendTo(this.options.container);else this.$modalEl.insertBefore(this.el);}},{key:"_setupModal",value:function _setupModal(){var _this54=this;this.modalEl.id='modal-'+this.id;this.modal=M.Modal.init(this.modalEl,{onCloseEnd:function(){_this54.isOpen=false;}});}},{key:"toString",value:function toString(format){var _this55=this;format=format||this.options.format;if(!Datepicker._isDate(this.date))return '';var formatArray=format.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g);var formattedDate=formatArray.map(function(label){if(_this55.formats[label])return _this55.formats[label]();return label;}).join('');return formattedDate;}},{key:"setDate",value:function setDate(date,preventOnSelect){if(!date){this.date=null;this._renderDateDisplay();return this.draw();}if(typeof date==='string')date=new Date(Date.parse(date));if(!Datepicker._isDate(date))return;var min=this.options.minDate,max=this.options.maxDate;if(Datepicker._isDate(min)&&date<min)date=min;else{if(Datepicker._isDate(max)&&date>max)date=max;}this.date=new Date(date.getTime());this._renderDateDisplay();Datepicker._setToStartOfDay(this.date);this.gotoDate(this.date);if(!preventOnSelect&&typeof this.options.onSelect==='function')this.options.onSelect.call(this,this.date);}},{key:"setInputValue",value:function setInputValue(){this.el.value=this.toString();this.$el.trigger('change',{firedBy:this});}},{key:"_renderDateDisplay",value:function _renderDateDisplay(){var displayDate=Datepicker._isDate(this.date)?this.date:new Date();var i18n=this.options.i18n;var day=i18n.weekdaysShort[displayDate.getDay()];var month=i18n.monthsShort[displayDate.getMonth()];var date=displayDate.getDate();this.yearTextEl.innerHTML=displayDate.getFullYear();this.dateTextEl.innerHTML=day+", "+month+" "+date;}},{key:"gotoDate",value:function gotoDate(date){var newCalendar=true;if(!Datepicker._isDate(date))return;if(this.calendars){var firstVisibleDate=new Date(this.calendars[0].year,this.calendars[0].month,1),lastVisibleDate=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),visibleDate=date.getTime();lastVisibleDate.setMonth(lastVisibleDate.getMonth()+1);lastVisibleDate.setDate(lastVisibleDate.getDate()-1);newCalendar=visibleDate<firstVisibleDate.getTime()||lastVisibleDate.getTime()<visibleDate;}if(newCalendar)this.calendars=[{month:date.getMonth(),year:date.getFullYear()}];this.adjustCalendars();}}
222,{key:"adjustCalendars",value:function adjustCalendars(){this.calendars[0]=this.adjustCalendar(this.calendars[0]);this.draw();}},{key:"adjustCalendar",value:function adjustCalendar(calendar){if(calendar.month<0){calendar.year-=Math.ceil(Math.abs(calendar.month)/12);calendar.month+=12;}if(calendar.month>11){calendar.year+=Math.floor(Math.abs(calendar.month)/12);calendar.month-=12;}return calendar;}},{key:"nextMonth",value:function nextMonth(){this.calendars[0].month++;this.adjustCalendars();}},{key:"prevMonth",value:function prevMonth(){this.calendars[0].month--;this.adjustCalendars();}},{key:"render",value:function render(year,month,randId){var opts=this.options,now=new Date(),days=Datepicker._getDaysInMonth(year,month),before=new Date(year,month,1).getDay(),data=[],row=[];Datepicker._setToStartOfDay(now);if(opts.firstDay>0){before-=opts.firstDay;if(before<0)before+=7;}var previousMonth=month===0?11:month-1,nextMonth=month===11?0:month+1,yearOfPreviousMonth=month===0?year-1:year,yearOfNextMonth=month===11?year+1:year,daysInPreviousMonth=Datepicker._getDaysInMonth(yearOfPreviousMonth,previousMonth);var cells=days+before,after=cells;while(after>7)after-=7;cells+=7-after;var isWeekSelected=false;for(var i=0,r=0;i<cells;i++){var day=new Date(year,month,1+(i-before)),isSelected=Datepicker._isDate(this.date)?Datepicker._compareDates(day,this.date):false,isToday=Datepicker._compareDates(day,now),hasEvent=opts.events.indexOf(day.toDateString())!==-1?true:false,isEmpty=i<before||i>=days+before,dayNumber=1+(i-before),monthNumber=month,yearNumber=year,isStartRange=opts.startRange&&Datepicker._compareDates(opts.startRange,day),isEndRange=opts.endRange&&Datepicker._compareDates(opts.endRange,day),isInRange=opts.startRange&&opts.endRange&&opts.startRange<day&&day<opts.endRange,isDisabled=opts.minDate&&day<opts.minDate||opts.maxDate&&day>opts.maxDate||opts.disableWeekends&&Datepicker._isWeekend(day)||opts.disableDayFn&&opts.disableDayFn(day);if(isEmpty)if(i<before){dayNumber=daysInPreviousMonth+dayNumber;monthNumber=previousMonth;yearNumber=yearOfPreviousMonth;}else{dayNumber=dayNumber-days;monthNumber=nextMonth;yearNumber=yearOfNextMonth;}var dayConfig={day:dayNumber,month:monthNumber,year:yearNumber,hasEvent,isSelected,isToday,isDisabled,isEmpty,isStartRange,isEndRange,isInRange,showDaysInNextAndPreviousMonths:opts.showDaysInNextAndPreviousMonths};row.push(this.renderDay(dayConfig));if(++r===7){data.push(this.renderRow(row,opts.isRTL,isWeekSelected));row=[];r=0;isWeekSelected=false;}}return this.renderTable(opts,data,randId);}},{key:"renderDay",value:function renderDay(opts){var arr=[];var ariaSelected='false';if(opts.isEmpty)if(opts.showDaysInNextAndPreviousMonths){arr.push('is-outside-current-month');arr.push('is-selection-disabled');}else return '<td class="is-empty"></td>';if(opts.isDisabled)arr.push('is-disabled');if(opts.isToday)arr.push('is-today');if(opts.isSelected){arr.push('is-selected');ariaSelected='true';}if(opts.hasEvent)arr.push('has-event');if(opts.isInRange)arr.push('is-inrange');if(opts.isStartRange)arr.push('is-startrange');if(opts.isEndRange)arr.push('is-endrange');return "<td data-day=\""+opts.day+"\" class=\""+arr.join(' ')+"\" aria-selected=\""+ariaSelected+"\">"+("<button class=\"datepicker-day-button\" type=\"button\" data-year=\""+opts.year+"\" data-month=\""+opts.month+"\" data-day=\""+opts.day+"\">"+opts.day+"</button>")+'</td>';}},{key:"renderRow",value:function renderRow(days,isRTL,isRowSelected){return '<tr class="datepicker-row'+(isRowSelected?' is-selected':'')+'">'+(isRTL?days.reverse():days).join('')+'</tr>';}},{key:"renderTable",value:function renderTable(opts,data,randId){return '<div class="datepicker-table-wrapper"><table cellpadding="0" cellspacing="0" class="datepicker-table" role="grid" aria-labelledby="'+randId+'">'+this.renderHead(opts)+this.renderBody(data)+'</table></div>';}},{key:"renderHead",value:function renderHead(opts){var i=void 0,arr=[];for(i=0;i<7;i++)arr.push("<th scope=\"col\"><abbr title=\""+this.renderDayName(opts,i)+"\">"+this.renderDayName(opts,i,true)+"</abbr></th>");return '<thead><tr>'+(opts.isRTL?arr.reverse():arr).join('')+'</tr></thead>';}},{key:"renderBody",value:function renderBody(rows){return '<tbody>'+rows.join('')+'</tbody>';}},{key:"renderTitle",value:function renderTitle(instance,c,year,month,refYear,randId){var i=void 0,j=void 0,arr=void 0,opts=this.options,isMinYear=year===opts.minYear,isMaxYear=year===opts.maxYear,html='<div id="'+randId+'" class="datepicker-control
222s" role="heading" aria-live="assertive">',monthHtml=void 0,yearHtml=void 0,prev=true,next=true;for(arr=[],i=0;i<12;i++)arr.push('<option value="'+(year===refYear?i-c:12+i-c)+'"'+(i===month?' selected="selected"':'')+(isMinYear&&i<opts.minMonth||isMaxYear&&i>opts.maxMonth?'disabled="disabled"':'')+'>'+opts.i18n.months[i]+'</option>');monthHtml='<select class="datepicker-select orig-select-month" tabindex="-1">'+arr.join('')+'</select>';if($.isArray(opts.yearRange)){i=opts.yearRange[0];j=opts.yearRange[1]+1;}else{i=year-opts.yearRange;j=1+year+opts.yearRange;}for(arr=[];i<j&&i<=opts.maxYear;i++)if(i>=opts.minYear)arr.push("<option value=\""+i+"\" "+(i===year?'selected="selected"':'')+">"+i+"</option>");yearHtml="<select class=\"datepicker-select orig-select-year\" tabindex=\"-1\">"+arr.join('')+"</select>";var leftArrow='<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/><path d="M0-.5h24v24H0z" fill="none"/></svg>';html+="<button class=\"month-prev"+(prev?'':' is-disabled')+"\" type=\"button\">"+leftArrow+"</button>";html+='<div class="selects-container">';if(opts.showMonthAfterYear)html+=yearHtml+monthHtml;else html+=monthHtml+yearHtml;html+='</div>';if(isMinYear&&(month===0||opts.minMonth>=month))prev=false;if(isMaxYear&&(month===11||opts.maxMonth<=month))next=false;var rightArrow='<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/><path d="M0-.25h24v24H0z" fill="none"/></svg>';html+="<button class=\"month-next"+(next?'':' is-disabled')+"\" type=\"button\">"+rightArrow+"</button>";return html+='</div>';}},{key:"draw",value:function draw(force){if(!this.isOpen&&!force)return;var opts=this.options,minYear=opts.minYear,maxYear=opts.maxYear,minMonth=opts.minMonth,maxMonth=opts.maxMonth,html='',randId=void 0;if(this._y<=minYear){this._y=minYear;if(!isNaN(minMonth)&&this._m<minMonth)this._m=minMonth;}if(this._y>=maxYear){this._y=maxYear;if(!isNaN(maxMonth)&&this._m>maxMonth)this._m=maxMonth;}randId='datepicker-title-'+Math.random().toString(36).replace(/[^a-z]+/g,'').substr(0,2);for(var c=0;c<1;c++){this._renderDateDisplay();html+=this.renderTitle(this,c,this.calendars[c].year,this.calendars[c].month,this.calendars[0].year,randId)+this.render(this.calendars[c].year,this.calendars[c].month,randId);}this.destroySelects();this.calendarEl.innerHTML=html;var yearSelect=this.calendarEl.querySelector('.orig-select-year');var monthSelect=this.calendarEl.querySelector('.orig-select-month');M.FormSelect.init(yearSelect,{classes:'select-year',dropdownOptions:{container:document.body,constrainWidth:false}});M.FormSelect.init(monthSelect,{classes:'select-month',dropdownOptions:{container:document.body,constrainWidth:false}});yearSelect.addEventListener('change',this._handleYearChange.bind(this));monthSelect.addEventListener('change',this._handleMonthChange.bind(this));if(typeof this.options.onDraw==='function')this.options.onDraw(this);}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this);this._handleInputClickBound=this._handleInputClick.bind(this);this._handleInputChangeBound=this._handleInputChange.bind(this);this._handleCalendarClickBound=this._handleCalendarClick.bind(this);this._finishSelectionBound=this._finishSelection.bind(this);this._handleMonthChange=this._handleMonthChange.bind(this);this._closeBound=this.close.bind(this);this.el.addEventListener('click',this._handleInputClickBound);this.el.addEventListener('keydown',this._handleInputKeydownBound);this.el.addEventListener('change',this._handleInputChangeBound);this.calendarEl.addEventListener('click',this._handleCalendarClickBound);this.doneBtn.addEventListener('click',this._finishSelectionBound);this.cancelBtn.addEventListener('click',this._closeBound);if(this.options.showClearBtn){this._handleClearClickBound=this._handleClearClick.bind(this);this.clearBtn.addEventListener('click',this._handleClearClickBound);}}},{key:"_setupVariables",value:function _setupVariables(){var _this56=this;this.$modalEl=$(Datepicker._template);this.modalEl=this.$modalEl[0];this.calendarEl=this.modalEl.querySelector('.datepicker-calendar');this.yearTextEl=this.modalEl.querySelector('.year-text');this.dateTextEl=this.modalEl.querySelector('.date-text');if(this.options.showClearBtn)this.clearBtn=this.modalEl.querySelector('.datepicker-clear');this.doneBtn=this.modalEl.querySelector('.datepicker-done');this.cancelBtn=this.modalEl.querySelector('.datepicker-cancel');this.formats={d:function(){return _this56.date.getDate();},dd:function(){var d=_this56.date.getDate();return (d<10?'0':'')+d;},ddd:function(){return _this56.options.i18n.weekdaysShort[_this56.date.getDay()];},dddd:function(){return _this56.options.i18n.weekdays[_this56.date.getDay()];},m:function(){return _this56.date.getMonth()+1;},mm:function(){var m=_this56.date.getMonth()+1;return (m<10?'0':'')+m;},mmm:function(){return _this56.options.i18n.monthsShort[_this56.date.getMonth()];},mmmm:function(){return _this56.options.i18n.months[_this56.date.getMonth()];},yy:function(){return (''+_this56.date.getFullYear()).slice(2);},yyyy:function(){return _this56.date.getFullYear();}};}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){this.el.removeEventListener('click',this._handleInputClickBound);this.el.removeEventListener('keydown',this._handleInputKeydownBound);this.el.removeEventListener('change',this._handleInputChangeBound);this.calendarEl.removeEventListener('click',this._handleCalendarClickBound);}},{key:"_handleInputClick",value:function _handleInputClick(){this.open();}},{key:"_handleInputKeydown",value:function _handleInputKeydown(e){if(e.which===M.keys.ENTER){e.preventDefault();this.open();}}},{key:"_handleCalendarClick",value:function _handleCalendarClick(e){if(!this.isOpen)return;var $target=$(e.target);if(!$target.hasClass('is-disabled'))if($target.hasClass('datepicker-day-button')&&!$target.hasClass('is-empty')&&!$target.parent().hasClass('is-disabled')){this.setDate(new Date(e.target.getAttribute('data-year'),e.target.getAttribute('data-month'),e.target.getAttribute('data-day')));if(this.options.autoClose)this._finishSelection();}else if($target.closest('.month-prev').length)this.prevMonth();else{if($target.closest('.month-next').length)this.nextMonth();}}},{key:"_handleClearClick",value:function _handleClearClick(){this.date=null;this.setInputValue();this.close();}},{key:"_handleMonthChange",value:function _handleMonthChange(e){this.gotoMonth(e.target.value);}},{key:"_handleYearChange",value:function _handleYearChange(e){this.gotoYear(e.target.value);}},{key:"gotoMonth",value:function gotoMonth(month){if(!isNaN(month)){this.calendars[0].month=parseInt(month,10);this.adjustCalendars();}}},{key:"gotoYear",value:function gotoYear(year){if(!isNaN(year)){this.calendars[0].year=parseInt(year,10);this.adjustCalendars();}}},{key:"_handleInputChange",value:function _handleInputChange(e){var date=void 0;if(e.firedBy===this)return;if(this.options.parse)date=this.options.parse(this.el.value,this.options.format);else date=new Date(Date.parse(this.el.value));if(Datepicker._isDate(date))this.setDate(date);}},{key:"renderDayName",value:function renderDayName(opts,day,abbr){day+=opts.firstDay;while(day>=7)day-=7;return abbr?opts.i18n.weekdaysAbbrev[day]:opts.i18n.weekdays[day];}},{key:"_finishSelection",value:function _finishSelection(){this.setInputValue();this.close();}},{key:"open",value:function open(){if(this.isOpen)return;this.isOpen=true;if(typeof this.options.onOpen==='function')this.options.onOpen.call(this);this.draw();this.modal.open();return this;}},{key:"close",value:function close(){if(!this.isOpen)return;this.isOpen=false;if(typeof this.options.onClose==='function')this.options.onClose.call(this);this.modal.close();return this;}}],[{key:"init",value:function init(els,options){return _get(Datepicker.__proto__||Object.getPrototypeOf(Datepicker),"init",this).call(this,this,els,options);}},{key:"_isDate",value:function _isDate(obj){return (/Date/.test(Object.prototype.toString.call(obj))&&!isNaN(obj.getTime()));}},{key:"_isWeekend",value:function _isWeekend(date){var day=date.getDay();return day===0||day===6;}},{key:"_setToStartOfDay",value:function _setToStartOfDay(date){if(Datepicker._isDate(date))d
222ate.setHours(0,0,0,0);}},{key:"_getDaysInMonth",value:function _getDaysInMonth(year,month){return [31,Datepicker._isLeapYear(year)?29:28,31,30,31,30,31,31,30,31,30,31][month];}},{key:"_isLeapYear",value:function _isLeapYear(year){return year%4===0&&year%100!==0||year%400===0;}},{key:"_compareDates",value:function _compareDates(a,b){return a.getTime()===b.getTime();}},{key:"_setToStartOfDay",value:function _setToStartOfDay(date){if(Datepicker._isDate(date))date.setHours(0,0,0,0);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Datepicker;}},{key:"defaults",get:function(){return _defaults;}}]);return Datepicker;}(Component);Datepicker._template=['<div class= "modal datepicker-modal">','<div class="modal-content datepicker-container">','<div class="datepicker-date-display">','<span class="year-text"></span>','<span class="date-text"></span>','</div>','<div class="datepicker-calendar-container">','<div class="datepicker-calendar"></div>','<div class="datepicker-footer">','<button class="btn-flat datepicker-clear waves-effect" style="visibility: hidden;" type="button"></button>','<div class="confirmation-btns">','<button class="btn-flat datepicker-cancel waves-effect" type="button"></button>','<button class="btn-flat datepicker-done waves-effect" type="button"></button>','</div>','</div>','</div>','</div>','</div>'].join('');M.Datepicker=Datepicker;if(M.jQueryLoaded)M.initializeJqueryWrapper(Datepicker,'datepicker','M_Datepicker');})(cash);;(function($){'use strict';var _defaults={dialRadius:135,outerRadius:105,innerRadius:70,tickRadius:20,duration:350,container:null,defaultTime:'now',fromNow:0,showClearBtn:false,i18n:{cancel:'Cancel',clear:'Clear',done:'Ok'},autoClose:false,twelveHour:true,vibrate:true,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onSelect:null};var Timepicker=function(_Component16){_inherits(Timepicker,_Component16);function Timepicker(el,options){_classCallCheck(this,Timepicker);var _this57=_possibleConstructorReturn(this,(Timepicker.__proto__||Object.getPrototypeOf(Timepicker)).call(this,Timepicker,el,options));_this57.el.M_Timepicker=_this57;_this57.options=$.extend({},Timepicker.defaults,options);_this57.id=M.guid();_this57._insertHTMLIntoDOM();_this57._setupModal();_this57._setupVariables();_this57._setupEventHandlers();_this57._clockSetup();_this57._pickerSetup();return _this57;}_createClass(Timepicker,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this.modal.destroy();$(this.modalEl).remove();this.el.M_Timepicker=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this);this._handleInputClickBound=this._handleInputClick.bind(this);this._handleClockClickStartBound=this._handleClockClickStart.bind(this);this._handleDocumentClickMoveBound=this._handleDocumentClickMove.bind(this);this._handleDocumentClickEndBound=this._handleDocumentClickEnd.bind(this);this.el.addEventListener('click',this._handleInputClickBound);this.el.addEventListener('keydown',this._handleInputKeydownBound);this.plate.addEventListener('mousedown',this._handleClockClickStartBound);this.plate.addEventListener('touchstart',this._handleClockClickStartBound);$(this.spanHours).on('click',this.showView.bind(this,'hours'));$(this.spanMinutes).on('click',this.showView.bind(this,'minutes'));}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){this.el.removeEventListener('click',this._handleInputClickBound);this.el.removeEventListener('keydown',this._handleInputKeydownBound);}},{key:"_handleInputClick",value:function _handleInputClick(){this.open();}},{key:"_handleInputKeydown",value:function _handleInputKeydown(e){if(e.which===M.keys.ENTER){e.preventDefault();this.open();}}},{key:"_handleClockClickStart",value:function _handleClockClickStart(e){e.preventDefault();var clockPlateBR=this.plate.getBoundingClientRect();var offset={x:clockPlateBR.left,y:clockPlateBR.top};this.x0=offset.x+this.options.dialRadius;this.y0=offset.y+this.options.dialRadius;this.moved=false;var clickPos=Timepicker._Pos(e);this.dx=clickPos.x-this.x0;this.dy=clickPos.y-this.y0;this.setHand(this.dx,this.dy,false);document.addEventListener('mousemove',this._handleDocumentClickMoveBound);document.addEventListener('touchmove',this._handleDocumentClickMoveBound);document.addEventListener('mouseup',this._handleDocumentClickEndBound);document.addEventListener('touchend',this._handleDocumentClickEndBound);}},{key:"_handleDocumentClickMove",value:function _handleDocumentClickMove(e){e.preventDefault();var clickPos=Timepicker._Pos(e);var x=clickPos.x-this.x0;var y=clickPos.y-this.y0;this.moved=true;this.setHand(x,y,false,true);}},{key:"_handleDocumentClickEnd",value:function _handleDocumentClickEnd(e){var _this58=this;e.preventDefault();document.removeEventListener('mouseup',this._handleDocumentClickEndBound);document.removeEventListener('touchend',this._handleDocumentClickEndBound);var clickPos=Timepicker._Pos(e);var x=clickPos.x-this.x0;var y=clickPos.y-this.y0;if(this.moved&&x===this.dx&&y===this.dy)this.setHand(x,y);if(this.currentView==='hours')this.showView('minutes',this.options.duration/2);else{if(this.options.autoClose){$(this.minutesView).addClass('timepicker-dial-out');setTimeout(function(){_this58.done();},this.options.duration/2);}}if(typeof this.options.onSelect==='function')this.options.onSelect.call(this,this.hours,this.minutes);document.removeEventListener('mousemove',this._handleDocumentClickMoveBound);document.removeEventListener('touchmove',this._handleDocumentClickMoveBound);}},{key:"_insertHTMLIntoDOM",value:function _insertHTMLIntoDOM(){this.$modalEl=$(Timepicker._template);this.modalEl=this.$modalEl[0];this.modalEl.id='modal-'+this.id;var containerEl=document.querySelector(this.options.container);if(this.options.container&&!!containerEl)this.$modalEl.appendTo(containerEl);else this.$modalEl.insertBefore(this.el);}},{key:"_setupModal",value:function _setupModal(){var _this59=this;this.modal=M.Modal.init(this.modalEl,{onOpenStart:this.options.onOpenStart,onOpenEnd:this.options.onOpenEnd,onCloseStart:this.options.onCloseStart,onCloseEnd:function(){if(typeof _this59.options.onCloseEnd==='function')_this59.options.onCloseEnd.call(_this59);_this59.isOpen=false;}});}},{key:"_setupVariables",value:function _setupVariables(){this.currentView='hours';this.vibrate=navigator.vibrate?'vibrate':navigator.webkitVibrate?'webkitVibrate':null;this._canvas=this.modalEl.querySelector('.timepicker-canvas');this.plate=this.modalEl.querySelector('.timepicker-plate');this.hoursView=this.modalEl.querySelector('.timepicker-hours');this.minutesView=this.modalEl.querySelector('.timepicker-minutes');this.spanHours=this.modalEl.querySelector('.timepicker-span-hours');this.spanMinutes=this.modalEl.querySelector('.timepicker-span-minutes');this.spanAmPm=this.modalEl.querySelector('.timepicker-span-am-pm');this.footer=this.modalEl.querySelector('.timepicker-footer');this.amOrPm='PM';}},{key:"_pickerSetup",value:function _pickerSetup(){var $clearBtn=$("<button class=\"btn-flat timepicker-clear waves-effect\" style=\"visibility: hidden;\" type=\"button\" tabindex=\""+(this.options.twelveHour?'3':'1')+"\">"+this.options.i18n.clear+"</button>").appendTo(this.footer).on('click',this.clear.bind(this));if(this.options.showClearBtn)$clearBtn.css({visibility:''});var confirmationBtnsContainer=$('<div class="confirmation-btns"></div>');$('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?'3':'1')+'">
222'+this.options.i18n.cancel+'</button>').appendTo(confirmationBtnsContainer).on('click',this.close.bind(this));$('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?'3':'1')+'">'+this.options.i18n.done+'</button>').appendTo(confirmationBtnsContainer).on('click',this.done.bind(this));confirmationBtnsContainer.appendTo(this.footer);}},{key:"_clockSetup",value:function _clockSetup(){if(this.options.twelveHour){this.$amBtn=$('<div class="am-btn">AM</div>');this.$pmBtn=$('<div class="pm-btn">PM</div>');this.$amBtn.on('click',this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm);this.$pmBtn.on('click',this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm);}this._buildHoursView();this._buildMinutesView();this._buildSVGClock();}},{key:"_buildSVGClock",value:function _buildSVGClock(){var dialRadius=this.options.dialRadius;var tickRadius=this.options.tickRadius;var diameter=dialRadius*2;var svg=Timepicker._createSVGEl('svg');svg.setAttribute('class','timepicker-svg');svg.setAttribute('width',diameter);svg.setAttribute('height',diameter);var g=Timepicker._createSVGEl('g');g.setAttribute('transform','translate('+dialRadius+','+dialRadius+')');var bearing=Timepicker._createSVGEl('circle');bearing.setAttribute('class','timepicker-canvas-bearing');bearing.setAttribute('cx',0);bearing.setAttribute('cy',0);bearing.setAttribute('r',4);var hand=Timepicker._createSVGEl('line');hand.setAttribute('x1',0);hand.setAttribute('y1',0);var bg=Timepicker._createSVGEl('circle');bg.setAttribute('class','timepicker-canvas-bg');bg.setAttribute('r',tickRadius);g.appendChild(hand);g.appendChild(bg);g.appendChild(bearing);svg.appendChild(g);this._canvas.appendChild(svg);this.hand=hand;this.bg=bg;this.bearing=bearing;this.g=g;}},{key:"_buildHoursView",value:function _buildHoursView(){var $tick=$('<div class="timepicker-tick"></div>');if(this.options.twelveHour)for(var i=1;i<13;i+=1){var tick=$tick.clone();var radian=i/6*Math.PI;var radius=this.options.outerRadius;tick.css({left:this.options.dialRadius+Math.sin(radian)*radius-this.options.tickRadius+'px',top:this.options.dialRadius-Math.cos(radian)*radius-this.options.tickRadius+'px'});tick.html(i===0?'00':i);this.hoursView.appendChild(tick[0]);}else for(var _i2=0;_i2<24;_i2+=1){var _tick=$tick.clone();var _radian=_i2/6*Math.PI;var inner=_i2>0&&_i2<13;var _radius=inner?this.options.innerRadius:this.options.outerRadius;_tick.css({left:this.options.dialRadius+Math.sin(_radian)*_radius-this.options.tickRadius+'px',top:this.options.dialRadius-Math.cos(_radian)*_radius-this.options.tickRadius+'px'});_tick.html(_i2===0?'00':_i2);this.hoursView.appendChild(_tick[0]);}}},{key:"_buildMinutesView",value:function _buildMinutesView(){var $tick=$('<div class="timepicker-tick"></div>');for(var i=0;i<60;i+=5){var tick=$tick.clone();var radian=i/30*Math.PI;tick.css({left:this.options.dialRadius+Math.sin(radian)*this.options.outerRadius-this.options.tickRadius+'px',top:this.options.dialRadius-Math.cos(radian)*this.options.outerRadius-this.options.tickRadius+'px'});tick.html(Timepicker._addLeadingZero(i));this.minutesView.appendChild(tick[0]);}}},{key:"_handleAmPmClick",value:function _handleAmPmClick(e){var $btnClicked=$(e.target);this.amOrPm=$btnClicked.hasClass('am-btn')?'AM':'PM';this._updateAmPmView();}},{key:"_updateAmPmView",value:function _updateAmPmView(){if(this.options.twelveHour){this.$amBtn.toggleClass('text-primary',this.amOrPm==='AM');this.$pmBtn.toggleClass('text-primary',this.amOrPm==='PM');}}},{key:"_updateTimeFromInput",value:function _updateTimeFromInput(){var value=((this.el.value||this.options.defaultTime||'')+'').split(':');if(this.options.twelveHour&&!(typeof value[1]==='undefined')){if(value[1].toUpperCase().indexOf('AM')>0)this.amOrPm='AM';else this.amOrPm='PM';value[1]=value[1].replace('AM','').replace('PM','');}if(value[0]==='now'){var now=new Date(+new Date()+this.options.fromNow);value=[now.getHours(),now.getMinutes()];if(this.options.twelveHour)this.amOrPm=value[0]>=12&&value[0]<24?'PM':'AM';}this.hours=+value[0]||0;this.minutes=+value[1]||0;this.spanHours.innerHTML=this.hours;this.spanMinutes.innerHTML=Timepicker._addLeadingZero(this.minutes);this._updateAmPmView();}},{key:"showView",value:function showView(view,delay){if(view==='minutes'&&$(this.hoursView).css('visibility')==='visible'){}var isHours=view==='hours',nextView=isHours?this.hoursView:this.minutesView,hideView=isHours?this.minutesView:this.hoursView;this.currentView=view;$(this.spanHours).toggleClass('text-primary',isHours);$(this.spanMinutes).toggleClass('text-primary',!isHours);hideView.classList.add('timepicker-dial-out');$(nextView).css('visibility','visible').removeClass('timepicker-dial-out');this.resetClock(delay);clearTimeout(this.toggleViewTimer);this.toggleViewTimer=setTimeout(function(){$(hideView).css('visibility','hidden');},this.options.duration);}},{key:"resetClock",value:function resetClock(delay){var view=this.currentView,value=this[view],isHours=view==='hours',unit=Math.PI/(isHours?6:30),radian=value*unit,radius=isHours&&value>0&&value<13?this.options.innerRadius:this.options.outerRadius,x=Math.sin(radian)*radius,y=-Math.cos(radian)*radius,self=this;if(delay){$(this.canvas).addClass('timepicker-canvas-out');setTimeout(function(){$(self.canvas).removeClass('timepicker-canvas-out');self.setHand(x,y);},delay);}else this.setHand(x,y);}},{key:"setHand",value:function setHand(x,y,roundBy5){var _this60=this;var radian=Math.atan2(x,-y),isHours=this.currentView==='hours',unit=Math.PI/(isHours||roundBy5?6:30),z=Math.sqrt(x*x+y*y),inner=isHours&&z<(this.options.outerRadius+this.options.innerRadius)/2,radius=inner?this.options.innerRadius:this.options.outerRadius;if(this.options.twelveHour)radius=this.options.outerRadius;if(radian<0)radian=Math.PI*2+radian;var value=Math.round(radian/unit);radian=value*unit;if(this.options.twelveHour)if(isHours){if(value===0)value=12;}else{if(roundBy5)value*=5;if(value===60)value=0;}else if(isHours){if(value===12)value=0;value=inner?value===0?12:value:value===0?0:value+12;}else{if(roundBy5)value*=5;if(value===60)value=0;}if(this[this.currentView]!==value)if(this.vibrate&&this.options.vibrate)if(!this.vibrateTimer){navigator[this.vibrate](10);this.vibrateTimer=setTimeout(function(){_this60.vibrateTimer=null;},100);}this[this.currentView]=value;if(isHours)this['spanHours'].innerHTML=value;else this['spanMinutes'].innerHTML=Timepicker._addLeadingZero(value);var cx1=Math.sin(radian)*(radius-this.options.tickRadius),cy1=-Math.cos(radian)*(radius-this.options.tickRadius),cx2=Math.sin(radian)*radius,cy2=-Math.cos(radian)*radius;this.hand.setAttribute('x2',cx1);this.hand.setAttribute('y2',cy1);this.bg.setAttribute('cx',cx2);this.bg.setAttribute('cy',cy2);}},{key:"open",value:function open(){if(this.isOpen)return;this.isOpen=true;this._updateTimeFromInput();this.showView('hours');this.modal.open();}},{key:"close",value:function close(){if(!this.isOpen)return;this.isOpen=false;this.modal.close();}},{key:"done",value:function done(e,clearValue){var last=this.el.value;
222var value=clearValue?'':Timepicker._addLeadingZero(this.hours)+':'+Timepicker._addLeadingZero(this.minutes);this.time=value;if(!clearValue&&this.options.twelveHour)value=value+" "+this.amOrPm;this.el.value=value;if(value!==last)this.$el.trigger('change');this.close();this.el.focus();}},{key:"clear",value:function clear(){this.done(null,true);}}],[{key:"init",value:function init(els,options){return _get(Timepicker.__proto__||Object.getPrototypeOf(Timepicker),"init",this).call(this,this,els,options);}},{key:"_addLeadingZero",value:function _addLeadingZero(num){return (num<10?'0':'')+num;}},{key:"_createSVGEl",value:function _createSVGEl(name){var svgNS='http://www.w3.org/2000/svg';return document.createElementNS(svgNS,name);}},{key:"_Pos",value:function _Pos(e){if(e.targetTouches&&e.targetTouches.length>=1)return {x:e.targetTouches[0].clientX,y:e.targetTouches[0].clientY};return {x:e.clientX,y:e.clientY};}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Timepicker;}},{key:"defaults",get:function(){return _defaults;}}]);return Timepicker;}(Component);Timepicker._template=['<div class= "modal timepicker-modal">','<div class="modal-content timepicker-container">','<div class="timepicker-digital-display">','<div class="timepicker-text-container">','<div class="timepicker-display-column">','<span class="timepicker-span-hours text-primary"></span>',':','<span class="timepicker-span-minutes"></span>','</div>','<div class="timepicker-display-column timepicker-display-am-pm">','<div class="timepicker-span-am-pm"></div>','</div>','</div>','</div>','<div class="timepicker-analog-display">','<div class="timepicker-plate">','<div class="timepicker-canvas"></div>','<div class="timepicker-dial timepicker-hours"></div>','<div class="timepicker-dial timepicker-minutes timepicker-dial-out"></div>','</div>','<div class="timepicker-footer"></div>','</div>','</div>','</div>'].join('');M.Timepicker=Timepicker;if(M.jQueryLoaded)M.initializeJqueryWrapper(Timepicker,'timepicker','M_Timepicker');})(cash);;(function($){'use strict';var _defaults={};var CharacterCounter=function(_Component17){_inherits(CharacterCounter,_Component17);function CharacterCounter(el,options){_classCallCheck(this,CharacterCounter);var _this61=_possibleConstructorReturn(this,(CharacterCounter.__proto__||Object.getPrototypeOf(CharacterCounter)).call(this,CharacterCounter,el,options));_this61.el.M_CharacterCounter=_this61;_this61.options=$.extend({},CharacterCounter.defaults,options);_this61.isInvalid=false;_this61.isValidLength=false;_this61._setupCounter();_this61._setupEventHandlers();return _this61;}_createClass(CharacterCounter,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this.el.CharacterCounter=undefined;this._removeCounter();}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleUpdateCounterBound=this.updateCounter.bind(this);this.el.addEventListener('focus',this._handleUpdateCounterBound,true);this.el.addEventListener('input',this._handleUpdateCounterBound,true);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){this.el.removeEventListener('focus',this._handleUpdateCounterBound,true);this.el.removeEventListener('input',this._handleUpdateCounterBound,true);}},{key:"_setupCounter",value:function _setupCounter(){this.counterEl=document.createElement('span');$(this.counterEl).addClass('character-counter').css({float:'right','font-size':'12px',height:1});this.$el.parent().append(this.counterEl);}},{key:"_removeCounter",value:function _removeCounter(){$(this.counterEl).remove();}},{key:"updateCounter",value:function updateCounter(){var maxLength=+this.$el.attr('data-length'),actualLength=this.el.value.length;this.isValidLength=actualLength<=maxLength;var counterString=actualLength;if(maxLength){counterString+='/'+maxLength;this._validateInput();}$(this.counterEl).html(counterString);}},{key:"_validateInput",value:function _validateInput(){if(this.isValidLength&&this.isInvalid){this.isInvalid=false;this.$el.removeClass('invalid');}else{if(!this.isValidLength&&!this.isInvalid){this.isInvalid=true;this.$el.removeClass('valid');this.$el.addClass('invalid');}}}}],[{key:"init",value:function init(els,options){return _get(CharacterCounter.__proto__||Object.getPrototypeOf(CharacterCounter),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_CharacterCounter;}},{key:"defaults",get:function(){return _defaults;}}]);return CharacterCounter;}(Component);M.CharacterCounter=CharacterCounter;if(M.jQueryLoaded)M.initializeJqueryWrapper(CharacterCounter,'characterCounter','M_CharacterCounter');})(cash);;(function($){'use strict';var _defaults={duration:200,dist:-100,shift:0,padding:0,numVisible:5,fullWidth:false,indicators:false,noWrap:false,onCycleTo:null};var Carousel=function(_Component18){_inherits(Carousel,_Component18);function Carousel(el,options){_classCallCheck(this,Carousel);var _this62=_possibleConstructorReturn(this,(Carousel.__proto__||Object.getPrototypeOf(Carousel)).call(this,Carousel,el,options));_this62.el.M_Carousel=_this62;_this62.options=$.extend({},Carousel.defaults,options);_this62.hasMultipleSlides=_this62.$el.find('.carousel-item').length>1;_this62.showIndicators=_this62.options.indicators&&_this62.hasMultipleSlides;_this62.noWrap=_this62.options.noWrap||!_this62.hasMultipleSlides;_this62.pressed=false;_this62.dragged=false;_this62.offset=_this62.target=0;_this62.images=[];_this62.itemWidth=_this62.$el.find('.carousel-item').first().innerWidth();_this62.itemHeight=_this62.$el.find('.carousel-item').first().innerHeight();_this62.dim=_this62.itemWidth*2+_this62.options.padding||1;_this62._autoScrollBound=_this62._autoScroll.bind(_this62);_this62._trackBound=_this62._track.bind(_this62);
222if(_this62.options.fullWidth){_this62.options.dist=0;_this62._setCarouselHeight();if(_this62.showIndicators)_this62.$el.find('.carousel-fixed-item').addClass('with-indicators');}_this62.$indicators=$('<ul class="indicators"></ul>');_this62.$el.find('.carousel-item').each(function(el,i){_this62.images.push(el);if(_this62.showIndicators){var $indicator=$('<li class="indicator-item"></li>');if(i===0)$indicator[0].classList.add('active');_this62.$indicators.append($indicator);}});if(_this62.showIndicators)_this62.$el.append(_this62.$indicators);_this62.count=_this62.images.length;_this62.options.numVisible=Math.min(_this62.count,_this62.options.numVisible);_this62.xform='transform';['webkit','Moz','O','ms'].every(function(prefix){var e=prefix+'Transform';if(typeof document.body.style[e]!=='undefined'){_this62.xform=e;return false;}return true;});_this62._setupEventHandlers();_this62._scroll(_this62.offset);return _this62;}_createClass(Carousel,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this.el.M_Carousel=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){var _this63=this;this._handleCarouselTapBound=this._handleCarouselTap.bind(this);this._handleCarouselDragBound=this._handleCarouselDrag.bind(this);this._handleCarouselReleaseBound=this._handleCarouselRelease.bind(this);this._handleCarouselClickBound=this._handleCarouselClick.bind(this);if(typeof window.ontouchstart!=='undefined'){this.el.addEventListener('touchstart',this._handleCarouselTapBound);this.el.addEventListener('touchmove',this._handleCarouselDragBound);this.el.addEventListener('touchend',this._handleCarouselReleaseBound);}this.el.addEventListener('mousedown',this._handleCarouselTapBound);this.el.addEventListener('mousemove',this._handleCarouselDragBound);this.el.addEventListener('mouseup',this._handleCarouselReleaseBound);this.el.addEventListener('mouseleave',this._handleCarouselReleaseBound);this.el.addEventListener('click',this._handleCarouselClickBound);if(this.showIndicators&&this.$indicators){this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this);this.$indicators.find('.indicator-item').each(function(el,i){el.addEventListener('click',_this63._handleIndicatorClickBound);});}var throttledResize=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=throttledResize.bind(this);window.addEventListener('resize',this._handleThrottledResizeBound);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){var _this64=this;if(typeof window.ontouchstart!=='undefined'){this.el.removeEventListener('touchstart',this._handleCarouselTapBound);this.el.removeEventListener('touchmove',this._handleCarouselDragBound);this.el.removeEventListener('touchend',this._handleCarouselReleaseBound);}this.el.removeEventListener('mousedown',this._handleCarouselTapBound);this.el.removeEventListener('mousemove',this._handleCarouselDragBound);this.el.removeEventListener('mouseup',this._handleCarouselReleaseBound);this.el.removeEventListener('mouseleave',this._handleCarouselReleaseBound);this.el.removeEventListener('click',this._handleCarouselClickBound);if(this.showIndicators&&this.$indicators)this.$indicators.find('.indicator-item').each(function(el,i){el.removeEventListener('click',_this64._handleIndicatorClickBound);});window.removeEventListener('resize',this._handleThrottledResizeBound);}},{key:"_handleCarouselTap",value:function _handleCarouselTap(e){if(e.type==='mousedown'&&$(e.target).is('img'))e.preventDefault();this.pressed=true;this.dragged=false;this.verticalDragged=false;this.reference=this._xpos(e);this.referenceY=this._ypos(e);this.velocity=this.amplitude=0;this.frame=this.offset;this.timestamp=Date.now();clearInterval(this.ticker);this.ticker=setInterval(this._trackBound,100);}},{key:"_handleCarouselDrag",value:function _handleCarouselDrag(e){var x=void 0,y=void 0,delta=void 0,deltaY=void 0;if(this.pressed){x=this._xpos(e);y=this._ypos(e);delta=this.reference-x;deltaY=Math.abs(this.referenceY-y);if(deltaY<30&&!this.verticalDragged){if(delta>2||delta<-2){this.dragged=true;this.reference=x;this._scroll(this.offset+delta);}}else if(this.dragged){e.preventDefault();e.stopPropagation();return false;}else this.verticalDragged=true;}if(this.dragged){e.preventDefault();e.stopPropagation();return false;}}},{key:"_handleCarouselRelease",value:function _handleCarouselRelease(e){if(this.pressed)this.pressed=false;else return;clearInterval(this.ticker);this.target=this.offset;if(this.velocity>10||this.velocity<-10){this.amplitude=0.9*this.velocity;this.target=this.offset+this.amplitude;}this.target=Math.round(this.target/this.dim)*this.dim;if(this.noWrap)if(this.target>=this.dim*(this.count-1))this.target=this.dim*(this.count-1);else{if(this.target<0)this.target=0;}this.amplitude=this.target-this.offset;this.timestamp=Date.now();requestAnimationFrame(this._autoScrollBound);if(this.dragged){e.preventDefault();e.stopPropagation();}return false;}},{key:"_handleCarouselClick",value:function _handleCarouselClick(e){if(this.dragged){e.preventDefault();e.stopPropagation();return false;}else{if(!this.options.fullWidth){var clickedIndex=$(e.target).closest('.carousel-item').index();var diff=this._wrap(this.center)-clickedIndex;if(diff!==0){e.preventDefault();e.stopPropagation();}this._cycleTo(clickedIndex);}}}},{key:"_handleIndicatorClick",value:function _handleIndicatorClick(e){e.stopPropagation();var indicator=$(e.target).closest('.indicator-item');
222if(indicator.length)this._cycleTo(indicator.index());}},{key:"_handleResize",value:function _handleResize(e){if(this.options.fullWidth){this.itemWidth=this.$el.find('.carousel-item').first().innerWidth();this.imageHeight=this.$el.find('.carousel-item.active').height();this.dim=this.itemWidth*2+this.options.padding;this.offset=this.center*2*this.itemWidth;this.target=this.offset;this._setCarouselHeight(true);}else this._scroll();}},{key:"_setCarouselHeight",value:function _setCarouselHeight(imageOnly){var _this65=this;var firstSlide=this.$el.find('.carousel-item.active').length?this.$el.find('.carousel-item.active').first():this.$el.find('.carousel-item').first();var firstImage=firstSlide.find('img').first();if(firstImage.length)if(firstImage[0].complete){var imageHeight=firstImage.height();if(imageHeight>0)this.$el.css('height',imageHeight+'px');else{var naturalWidth=firstImage[0].naturalWidth;var naturalHeight=firstImage[0].naturalHeight;var adjustedHeight=this.$el.width()/naturalWidth*naturalHeight;this.$el.css('height',adjustedHeight+'px');}}else firstImage.one('load',function(el,i){_this65.$el.css('height',el.offsetHeight+'px');});else{if(!imageOnly){var slideHeight=firstSlide.height();this.$el.css('height',slideHeight+'px');}}}},{key:"_xpos",value:function _xpos(e){if(e.targetTouches&&e.targetTouches.length>=1)return e.targetTouches[0].clientX;return e.clientX;}},{key:"_ypos",value:function _ypos(e){if(e.targetTouches&&e.targetTouches.length>=1)return e.targetTouches[0].clientY;return e.clientY;}},{key:"_wrap",value:function _wrap(x){return x>=this.count?x%this.count:x<0?this._wrap(this.count+x%this.count):x;}},{key:"_track",value:function _track(){var now=void 0,elapsed=void 0,delta=void 0,v=void 0;now=Date.now();elapsed=now-this.timestamp;this.timestamp=now;delta=this.offset-this.frame;this.frame=this.offset;v=1000*delta/(1+elapsed);this.velocity=0.8*v+0.2*this.velocity;}},{key:"_autoScroll",value:function _autoScroll(){var elapsed=void 0,delta=void 0;if(this.amplitude){elapsed=Date.now()-this.timestamp;delta=this.amplitude*Math.exp(-elapsed/this.options.duration);if(delta>2||delta<-2){this._scroll(this.target-delta);requestAnimationFrame(this._autoScrollBound);}else this._scroll(this.target);}}},{key:"_scroll",value:function _scroll(x){var _this66=this;if(!this.$el.hasClass('scrolling'))this.el.classList.add('scrolling');if(this.scrollingTimeout!=null)window.clearTimeout(this.scrollingTimeout);this.scrollingTimeout=window.setTimeout(function(){_this66.$el.removeClass('scrolling');},this.options.duration);var i=void 0,half=void 0,delta=void 0,dir=void 0,tween=void 0,el=void 0,alignment=void 0,zTranslation=void 0,tweenedOpacity=void 0,centerTweenedOpacity=void 0;var lastCenter=this.center;var numVisibleOffset=1/this.options.numVisible;this.offset=typeof x==='number'?x:this.offset;this.center=Math.floor((this.offset+this.dim/2)/this.dim);delta=this.offset-this.center*this.dim;dir=delta<0?1:-1;tween=-dir*delta*2/this.dim;half=this.count>>1;if(this.options.fullWidth){alignment='translateX(0)';centerTweenedOpacity=1;}else{alignment='translateX('+(this.el.clientWidth-this.itemWidth)/2+'px) ';alignment+='translateY('+(this.el.clientHeight-this.itemHeight)/2+'px)';centerTweenedOpacity=1-numVisibleOffset*tween;}if(this.showIndicators){var diff=this.center%this.count;var activeIndicator=this.$indicators.find('.indicator-item.active');if(activeIndicator.index()!==diff){activeIndicator.removeClass('active');this.$indicators.find('.indicator-item').eq(diff)[0].classList.add('active');}}if(!this.noWrap||this.center>=0&&this.center<this.count){el=this.images[this._wrap(this.center)];if(!$(el).hasClass('active')){this.$el.find('.carousel-item').removeClass('active');el.classList.add('active');}var transformString=alignment+" translateX("+-delta/2+"px) translateX("+dir*this.options.shift*tween*i+"px) translateZ("+this.options.dist*tween+"px)";this._updateItemStyle(el,centerTweenedOpacity,0,transformString);}for(i=1;i<=half;++i){if(this.options.fullWidth){zTranslation=this.options.dist;tweenedOpacity=i===half&&delta<0?1-tween:1;}else{zTranslation=this.options.dist*(i*2+tween*dir);tweenedOpacity=1-numVisibleOffset*(i*2+tween*dir);}if(!this.noWrap||this.center+i<this.count){el=this.images[this._wrap(this.center+i)];var _transformString=alignment+" translateX("+(this.options.shift+(this.dim*i-delta)/2)+"px) translateZ("+zTranslation+"px)";this._updateItemStyle(el,tweenedOpacity,-i,_transformString);}if(this.options.fullWidth){zTranslation=this.options.dist;tweenedOpacity=i===half&&delta>0?1-tween:1;}else{zTranslation=this.options.dist*(i*2-tween*dir);tweenedOpacity=1-numVisibleOffset*(i*2-tween*dir);}if(!this.noWrap||this.center-i>=0){el=this.images[this._wrap(this.center-i)];var _transformString2=alignment+" translateX("+(-this.options.shift+(-this.dim*i-delta)/2)+"px) translateZ("+zTranslation+"px)";this._updateItemStyle(el,tweenedOpacity,-i,_transformString2);}}if(!this.noWrap||this.center>=0&&this.center<this.count){el=this.images[this._wrap(this.center)];var _transformString3=alignment+" translateX("+-delta/2+"px) translateX("+dir*this.options.shift*tween+"px) translateZ("+this.options.dist*tween+"px)";this._updateItemStyle(el,centerTweenedOpacity,0,_transformString3);}var $currItem=this.$el.find('.carousel-item').eq(this._wrap(this.center));if(lastCenter!==this.center&&typeof this.options.onCycleTo==='function')this.options.onCycleTo.call(this,$currItem[0],this.dragged);if(typeof this.oneTimeCallback==='function'){this.oneTimeCallback.call(this,$currItem[0],this.dragged);this.oneTimeCallback=null;}}},{key:"_updateItemStyle",value:function _updateItemStyle(el,opacity,zIndex,transform){el.style[this.xform]=transform;el.style.zIndex=zIndex;el.style.opacity=opacity;el.style.visibility='visible';}},{key:"_cycleTo",value:function _cycleTo(n,callback){var diff=this.center%this.count-n;if(!this.noWrap)if(diff<0){if(Math.abs(diff+this.count)<Math.abs(diff))diff+=this.count;}else{if(diff>0)if(Math.abs(diff-this.count)<diff)diff-=this.count;}this.target=this.dim*Math.round(this.offset/this.dim);if(diff<0)this.target+=this.dim*Math.abs(diff);else{if(diff>0)this.target-=this.dim*diff;}if(typeof callback==='function')this.oneTimeCallback=callback;if(this.offset!==this.target){this.amplitude=this.target-this.offset;this.timestamp=Date.now();requestAnimationFrame(this._autoScrollBound);}}},{key:"next",value:function next(n){if(n===undefined||isNaN(n))n=1;var index=this.center+n;if(index>=this.count||index<0){if(this.noWrap)return;index=this._wrap(index);}this._cycleTo(index);}},{key:"prev",value:function prev(n){if(n===undefined||isNaN(n))n=1;var index=this.center-n;if(index>=this.count||index<0){if(this.noWrap)return;index=this._wrap(index);}this._cycleTo(index);}},{key:"set",value:function set(n,callback){if(n===undefined||isNaN(n))n=0;if(n>this.count||n<0){if(this.noWrap)return;n=this._wrap(n);}this._cycleTo(n,callback);}}],[{key:"init",value:function init(els,options){return _get(Carousel.__proto__||Object.getPrototypeOf(Carousel),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Carousel;}},{key:"defaults",get:function(){return _defaults;}}]);return Carousel;}(Component);M.Carousel=Carousel;if(M.jQueryLoaded)M.initializeJqueryWrapper(Carousel,'carousel','M_Carousel');})(cash);;(function($){'use strict';var _defaults={onOpen:undefined,onClose:undefined};var TapTarget=function(_Component19){_inherits(TapTarget,_Component19);function TapTarget(el,options){_classCallCheck(this,TapTarget);var _this67=_possibleConstructorReturn(this,(TapTarget.__proto__||Object.getPrototypeOf(TapTarget)).call(this,TapTarget,el,options));_this67.el.M_TapTarget=_this67;_this67.options=$.extend({},TapTarget.defaults,options);_this67.isOpen=false;_this67.$origin=$('#'+_this67.$el.attr('data-target'));_this67._setup();_this67._calculatePositioning();_this67._setupEventHandlers();return _this67;}_createClass(TapTarget,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this.el.TapTarget=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleDocumentClickBound=this._handleDocumentClick.bind(this);this._handleTargetClickBound=this._handleTargetClick.bind(this);this._handleOriginClickBound=this._handleOriginClick.bind(this);this.el.addEventListener('click',this._handleTargetClickBound);this.originEl.addEventListener('click',this._handleOriginClickBound);var throttledResize=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=throttledResize.bind(this);window.addEventListener('resize',this._handleThrottledResizeBound);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){this.el.removeEventListener('click',this._handleTargetClickBound);this.originEl.removeEventListener('click',this._handleOriginClickBound);window.removeEventListener('resize',this._handleThrottledResizeBound);}},{key:"_handleTargetClick",value:function _handleTargetClick(e){this.open();}},{key:"_handleOriginClick",value:function _handleOriginClick(e){this.close();}},{key:"_handleResize",value:function _handleResize(e){this._calculatePositioning();}},{key:"_handleDocumentClick",value:function _handleDocumentClick(e){if(!$(e.target).closest('.tap-target-wrapper').length){this.close();e.preventDefault();e.stopPropagation();}}},{key:"_setup",value:function _setup(){this.wrapper=this.$el.parent()[0];this.waveEl=$(this.wrapper).find('.tap-target-wave')[0];this.originEl=$(this.wrapper).find('.tap-target-origin')[0];this.contentEl=this.$el.find('.tap-target-content')[0];if(!$(this.wrapper).hasClass('.tap-target-wrapper')){this.wrapper=document.createElement('div');this.wrapper.classList.add('tap-target-wrapper');this.$el.before($(this.wrapper));this.wrapper.append(this.el);}if(!this.contentEl){this.contentEl=document.createElement('div');this.contentEl.classList.add('tap-target-content');this.$el.append(this.contentEl);}if(!this.waveEl){this.waveEl=document.createElement('div');this.waveEl.classList.add('tap-target-wave');if(!this.originEl){this.originEl=this.$origin.clone(true,true);this.originEl.addClass('tap-target-origin');this.originEl.removeAttr('id');this.originEl.removeAttr('style');this.originEl=this.originEl[0];this.waveEl.append(this.originEl);}this.wrapper.append(this.waveEl);}}},{key:"_calculatePositioning",value:function _calculatePositioning(){var isFixed=this.$origin.css('position')==='fixed';if(!isFixed){var parents=this.$origin.parents();for(var i=0;i<parents.length;i++){isFixed=$(parents[i]).css('position')=='fixed';if(isFixed)break;}}var originWidth=this.$origin.outerWidth();var originHeight=this.$origin.outerHeight();var originTop=isFixed?this.$origin.offset().top-M.getDocumentScrollTop():this.$origin.offset().top;var originLeft=isFixed?this.$origin.offset().left-M.getDocumentScrollLeft():this.$origin.offset().left;var windowWidth=window.innerWidth;var windowHeight=window.innerHeight;var centerX=windowWidth/2;var centerY=windowHeight/2;var isLeft=originLeft<=centerX;var isRight=originLeft>centerX;var isTop=originTop<=centerY;var isBottom=originTop>centerY;var isCenterX=originLeft>=windowWidth*0.25&&originLeft<=windowWidth*0.75;var tapTargetWidth=this.$el.outerWidth();var tapTargetHeight=this.$el.outerHeight();var tapTargetTop=originTop+originHeight/2-tapTargetHeight/2;var tapTargetLeft=originLeft+originWidth/2-tapTargetWidth/2;var tapTargetPosition=isFixed?'fixed':'absolute';var tapTargetTextWidth=isCenterX?tapTargetWidth:tapTargetWidth/2+originWidth;var tapTargetTextHeight=tapTargetHeight/2;var tapTargetTextTop=isTop?tapTargetHeight/2:0;var tapTargetTextBottom=0;var tapTargetTextLeft=isLeft&&!isCenterX?tapTargetWidth/2-originWidth:0;var tapTargetTextRight=0;var tapTargetTextPadding=originWidth;var tapTargetTextAlign=isBottom?'bottom':'top';var tapTargetWaveWidth=originWidth>originHeight?originWidth*2:originWidth*2;var tapTargetWaveHeight=tapTargetWaveWidth;var tapTargetWaveTop=tapTargetHeight/2-tapTargetWaveHeight/2;var tapTargetWaveLeft=tapTargetWidth/2-tapTargetWaveWidth/2;var tapTargetWrapperCssObj={};tapTargetWrapperCssObj.top=isTop?tapTargetTop+'px':'';tapTargetWrapperCssObj.right=isRight?windowWidth-tapTargetLeft-tapTargetWidth+'px':'';tapTargetWrapperCssObj.bottom=isBottom?windowHeight-tapTargetTop-tapTargetHeight+'px':'';tapTargetWrapperCssObj.left=isLeft?tapTargetLeft+'px':'';tapTargetWrapperCssObj.position=tapTargetPosition;$(this.wrapper).css(tapTargetWrapperCssObj);$(this.contentEl).css({width:tapTargetTextWidth+'px',height:tapTargetTextHeight+'px',top:tapTargetTextTop+'px',right:tapTargetTextRight+'px',bottom:tapTargetTextBottom+'px',left:tapTargetTextLeft+'px',padding:tapTargetTextPadding+'px',verticalAlign:tapTargetTextAlign});$(this.waveEl).css({top:tapTargetWaveTop+'px',left:tapTargetWaveLeft+'px',width:tapTargetWaveWidth+'px',height:tapTargetWaveHeight+'px'});}},{key:"open",value:function open(){if(this.isOpen)return;if(typeof this.options.onOpen==='function')this.options.onOpen.call(this,this.$origin[0]);this.isOpen=true;this.wrapper.classList.add('open');document.body.addEventListener('click',this._handleDocumentClickBound,true);document.body.addEventListener('touchend',this._handleDocumentClickBound);}},{key:"close",value:function close(){if(!this.isOpen)return;if(typeof this.options.onClose==='function')this.options.onClose.call(this,this.$origin[0]);this.isOpen=false;this.wrapper.classList.remove('open');document.body.removeEventListener('click',this._handleDocumentClickBound,true);document.body.removeEventListener('touchend',this._handleDocumentClickBound);}}],[{key:"init",value:function init(els,options){return _get(TapTarget.__proto__||Object.getPrototypeOf(TapTarget),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_TapTarget;}},{key:"defaults",get:function(){return _defaults;}}]);return TapTarget;}(Component);M.TapTarget=TapTarget;if(M.jQueryLoaded)M.initializeJqueryWrapper(TapTarget,'tapTarget','M_TapTarget');})(cash);;(function($){'use strict';var _defaults={classes:'',dropdownOptions:{}};var FormSelect=function(_Component20){_inherits(FormSelect,_Component20);function FormSelect(el,options){_classCallCheck(this,FormSelect);var _this68=_possibleConstructorReturn(this,(FormSelect.__proto__||Object.getPrototypeOf(FormSelect)).call(this,FormSelect,el,options));if(_this68.$el.hasClass('browser-default'))return _possibleConstructorReturn(_this68);_this68.el.M_FormSelect=_this68;_this68.options=$.extend({},FormSelect.defaults,options);_this68.isMultiple=_this68.$el.prop('multiple');_this68.el.tabIndex=-1;_this68._keysSelected={};_this68._valueDict={};_this68._setupDropdown();_this68._setupEventHandlers();return _this68;}_createClass(FormSelect,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this._removeDropdown();this.el.M_FormSelect=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){var _this69=this;this._handleSelectChangeBound=this._handleSelectChange.bind(this);this._handleOptionClickBound=this._handleOptionClick.bind(this);this._handleInputClickBound=this._handleInputClick.bind(this);$(this.dropdownOptions).find('li:not(.optgroup)').each(function(el){el.addEventListener('click',_this69._handleOptionClickBound);});this.el.addEventListener('change',this._handleSelectChangeBound);this.input.addEventListener('click',this._handleInputClickBound);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){var _this70=this;$(this.dropdownOptions).find('li:not(.optgroup)').each(function(el){el.removeEventListener('click',_this70._handleOptionClickBound);});this.el.removeEventListener('change',this._handleSelectChangeBound);this.input.removeEventListener('click',this._handleInputClickBound);}},{key:"_handleSelectChange",value:function _handleSelectChange(e){this._setValueToInput();}},{key:"_handleOptionClick",value:function _handleOptionClick(e){e.preventDefault();var option=$(e.target).closest('li')[0];var key=option.id;if(!$(option).hasClass('disabled')&&!$(option).hasClass('optgroup')&&key.length){var selected=true;if(this.isMultiple){var placeholderOption=$(this.dropdownOptions).find('li.disabled.selected');if(placeholderOption.length){placeholderOption.removeClass('selected');placeholderOption.fi
222nd('input[type="checkbox"]').prop('checked',false);this._toggleEntryFromArray(placeholderOption[0].id);}selected=this._toggleEntryFromArray(key);}else{$(this.dropdownOptions).find('li').removeClass('selected');$(option).toggleClass('selected',selected);}var prevSelected=$(this._valueDict[key].el).prop('selected');if(prevSelected!==selected){$(this._valueDict[key].el).prop('selected',selected);this.$el.trigger('change');}}e.stopPropagation();}},{key:"_handleInputClick",value:function _handleInputClick(){if(this.dropdown&&this.dropdown.isOpen){this._setValueToInput();this._setSelectedStates();}}},{key:"_setupDropdown",value:function _setupDropdown(){var _this71=this;this.wrapper=document.createElement('div');$(this.wrapper).addClass('select-wrapper '+this.options.classes);this.$el.before($(this.wrapper));this.wrapper.appendChild(this.el);if(this.el.disabled)this.wrapper.classList.add('disabled');this.$selectOptions=this.$el.children('option, optgroup');this.dropdownOptions=document.createElement('ul');this.dropdownOptions.id="select-options-"+M.guid();$(this.dropdownOptions).addClass('dropdown-content select-dropdown '+(this.isMultiple?'multiple-select-dropdown':''));if(this.$selectOptions.length)this.$selectOptions.each(function(el){if($(el).is('option')){var optionEl=void 0;if(_this71.isMultiple)optionEl=_this71._appendOptionWithIcon(_this71.$el,el,'multiple');else optionEl=_this71._appendOptionWithIcon(_this71.$el,el);_this71._addOptionToValueDict(el,optionEl);}else{if($(el).is('optgroup')){var selectOptions=$(el).children('option');$(_this71.dropdownOptions).append($('<li class="optgroup"><span>'+el.getAttribute('label')+'</span></li>')[0]);selectOptions.each(function(el){var optionEl=_this71._appendOptionWithIcon(_this71.$el,el,'optgroup-option');_this71._addOptionToValueDict(el,optionEl);});}}});this.$el.after(this.dropdownOptions);this.input=document.createElement('input');$(this.input).addClass('select-dropdown dropdown-trigger');this.input.setAttribute('type','text');this.input.setAttribute('readonly','true');this.input.setAttribute('data-target',this.dropdownOptions.id);if(this.el.disabled)$(this.input).prop('disabled','true');this.$el.before(this.input);this._setValueToInput();var dropdownIcon=$('<svg class="caret" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');this.$el.before(dropdownIcon[0]);if(!this.el.disabled){var dropdownOptions=$.extend({},this.options.dropdownOptions);dropdownOptions.onOpenEnd=function(el){var selectedOption=$(_this71.dropdownOptions).find('.selected').first();if(_this71.dropdown.isScrollable&&selectedOption.length){var scrollOffset=selectedOption[0].getBoundingClientRect().top-_this71.dropdownOptions.getBoundingClientRect().top;scrollOffset-=_this71.dropdownOptions.clientHeight/2;_this71.dropdownOptions.scrollTop=scrollOffset;}};if(this.isMultiple)dropdownOptions.closeOnClick=false;this.dropdown=M.Dropdown.init(this.input,dropdownOptions);}this._setSelectedStates();}},{key:"_addOptionToValueDict",value:function _addOptionToValueDict(el,optionEl){var index=Object.keys(this._valueDict).length;var key=this.dropdownOptions.id+index;var obj={};optionEl.id=key;obj.el=el;obj.optionEl=optionEl;this._valueDict[key]=obj;}},{key:"_removeDropdown",value:function _removeDropdown(){$(this.wrapper).find('.caret').remove();$(this.input).remove();$(this.dropdownOptions).remove();$(this.wrapper).before(this.$el);$(this.wrapper).remove();}},{key:"_appendOptionWithIcon",value:function _appendOptionWithIcon(select,option,type){var disabledClass=option.disabled?'disabled ':'';var optgroupClass=type==='optgroup-option'?'optgroup-option ':'';var multipleCheckbox=this.isMultiple?"<label><input type=\"checkbox\""+disabledClass+"\"/><span>"+option.innerHTML+"</span></label>":option.innerHTML;var liEl=$('<li></li>');var spanEl=$('<span></span>');spanEl.html(multipleCheckbox);liEl.addClass(disabledClass+" "+optgroupClass);liEl.append(spanEl);var iconUrl=option.getAttribute('data-icon');if(!!iconUrl){var imgEl=$("<img alt=\"\" src=\""+iconUrl+"\">");liEl.prepend(imgEl);}$(this.dropdownOptions).append(liEl[0]);return liEl[0];}},{key:"_toggleEntryFromArray",value:function _toggleEntryFromArray(key){var notAdded=!this._keysSelected.hasOwnProperty(key);var $optionLi=$(this._valueDict[key].optionEl);if(notAdded)this._keysSelected[key]=true;else delete this._keysSelected[key];$optionLi.toggleClass('selected',notAdded);$optionLi.find('input[type="checkbox"]').prop('checked',notAdded);$optionLi.prop('selected',notAdded);return notAdded;}},{key:"_setValueToInput",value:function _setValueToInput(){var values=[];var options=this.$el.find('option');options.each(function(el){if($(el).prop('selected')){var text=$(el).text();values.push(text);}});if(!values.length){var firstDisabled=this.$el.find('option:disabled').eq(0);if(firstDisabled.length&&firstDisabled[0].value==='')values.push(firstDisabled.text());}this.input.value=values.join(', ');}},{key:"_setSelectedStates",value:function _setSelectedStates(){this._keysSelected={};for(var key in this._valueDict){var option=this._valueDict[key];var optionIsSelected=$(option.el).prop('selected');$(option.optionEl).find('input[type="checkbox"]').prop('checked',optionIsSelected);if(optionIsSelected){this._activateOption($(this.dropdownOptions),$(option.optionEl));this._keysSelected[key]=true;}else $(option.optionEl).removeClass('selected');}}},{key:"_activateOption",value:function _activateOption(collection,newOption){if(newOption){if(!this.isMultiple)collection.find('li.selected').removeClass('selected');var option=$(newOption);option.addClass('selected');}}},{key:"getSelectedValues",value:function getSelectedValues(){var selectedValues=[];for(var key in this._keysSelected)selectedValues.push(this._valueDict[key].el.value);return selectedValues;}}],[{key:"init",value:function init(els,options){return _get(FormSelect.__proto__||Object.getPrototypeOf(FormSelect),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_FormSelect;}},{key:"defaults",get:function(){return _defaults;}}]);return FormSelect;}(Component);M.FormSelect=FormSelect;if(M.jQueryLoaded)M.initializeJqueryWrapper(FormSelect,'formSelect','M_FormSelect');})(cash);;(function($,anim){'use strict';var _defaults={};var Range=function(_Component21){_inherits(Range,_Component21);function Range(el,options){_classCallCheck(this,Range);var _this72=_possibleConstructorReturn(this,(Range.__proto__||Object.getPrototypeOf(Range)).call(this,Range,el,options));_this72.el.M_Range=_this72;_this72.options=$.extend({},Range.defaults,options);_this72._mousedown=false;_this72._setupThumb();_this72._setupEventHandlers();return _this72;}_createClass(Range,[{key:"destroy",value:function destroy(){this._removeEventHandlers();this._removeThumb();this.el.M_Range=undefined;}},{key:"_setupEventHandlers",value:function _setupEventHandlers(){this._handleRangeChangeBound=this._handleRangeChange.bind(this);this._handleRangeMousedownTouchstartBound=this._handleRangeMousedownTouchstart.bind(this);this._handleRangeInputMousemoveTouchmoveBound=this._handleRangeInputMousemoveTouchmove.bind(this);this._handleRangeMouseupTouchendBound=this._handleRangeMouseupTouchend.bind(this);this._handleRangeBlurMouseoutTouchleaveBound=this._handleRangeBlurMouseoutTouchleave.bind(this);this.el.addEventListener('change',this._handleRangeChangeBound);this.el.addEventListener('mousedown',this._handleRangeMousedownTouchstartBound);this.el.addEventListener('touchstart',this._handleRangeMousedownTouchstartBound);this.el.addEventListener('input',this._handleRangeInputMousemoveTouchmoveBound);this.el.addEventListener('mousemove',this._handleRangeInputMousemoveTouchmoveBound);this.el.addEventListener('touchmove',this._handleRangeInputMousemoveTouchmoveBound);this.el.addEventListener('mouseup',this._handleRangeMouseupTouchendBound);this.el.addEventListener('touchend',this._handleRangeMouseupTouchendBound);this.el.addEventListener('blur',this._handleRangeBlurMouseoutTouchleaveBound);this.el.addEventListener('mouseout',this._handleRangeBlurMouseoutTouchleaveBound);this.el.addEventListener('touchleave',this._handleRangeBlurMouseoutTouchleaveBound);}},{key:"_removeEventHandlers",value:function _removeEventHandlers(){this.el.removeEventListener('change',this._handleRangeChangeBound);this.el.removeEventListener('mousedown',this._handleRangeMousedownTouchstartBound);this.el.removeEventListener('touchstart',this._handleRangeMousedownTouchstartBound);this.el.removeEventListener('input',this._handleRangeInputMousemoveTouchmoveBound);this.el.removeEventListener('mousemove',this._handleRangeInputMousemoveTouchmoveBound);this.el.removeEventListener('touchmove',this._handleRangeInputMousemoveTouchmoveBound);this.el.removeEventListener('mouseup',this._handleRangeMouseupTouchendBound);this.el.removeEventListener('touchend',this._handleRangeMouseupTouchendBound);this.el.removeEventListener('blur',this._handleRangeBlurMouseoutTouchleaveBound);this.el.removeEventListener('mouseout',this._handleRangeBlurMouseoutTouchleaveBound);this.el.removeEventListener('touchleave',this._handleRangeBlurMouseoutTouchleaveBound);}},{key:"_handleRangeChange",value:function _handleRangeChange(){$(this.value).html(this.$el.val());if(!$(this.thumb).hasClass('active'))this._showRangeBubble();var offsetLeft=this._calcRangeOffset();$(this.thumb).addClass('active').css('left',offsetLeft+'px');}},{key:"_handleRangeMousedownTouchstart",value:function _handleRangeMousedownTouchstart(e){$(this.value).html(this.$el.val());this._mousedown=true;this.$el.addClass('active');if(!$(this.thumb).hasClass('active'))this._showRangeBubble();if(e.type!=='input'){var offsetLeft=this._calcRangeOffset();$(this.thumb).addClass('active').css('left',offsetLeft+'px');}}},{key:"_handleRangeInputMousemoveTouchmove",value:function _handleRangeInputMousemoveTouchmove(){if(this._mousedown){if(!$(this.thumb).hasClass('active'))this._showRangeBubble();var offsetLeft=this._calcRangeOffset();$(this.thumb).addClass('active').css('left',offsetLeft+'px');$(this.value).html(this.$el.val());}}},{key:"_handleRangeMouseupTouchend",value:function _handleRangeMouseupTouchend(){this._mousedown=false;this.$el.removeClass('active');}},{key:"_handleRangeBlurMouseoutTouchleave",value:function _handleRangeBlurMouseoutTouchleave(){if(!this._mousedown){var paddingLeft=parseInt(this.$el.css('padding-left'));var marginLeft=7+paddingLeft+'px';if($(this.thumb).hasClass('active')){anim.remove(this.thumb);anim({targets:this.thumb,height:0,width:0,top:10,easing:'easeOutQuad',marginLeft,duration:100});}$(this.thumb).removeClass('active');}}},{key:"_setupThumb",value:function _setupThumb(){this.thumb=document.createElement('span');
222this.value=document.createElement('span');$(this.thumb).addClass('thumb');$(this.value).addClass('value');$(this.thumb).append(this.value);this.$el.after(this.thumb);}},{key:"_removeThumb",value:function _removeThumb(){$(this.thumb).remove();}},{key:"_showRangeBubble",value:function _showRangeBubble(){var paddingLeft=parseInt($(this.thumb).parent().css('padding-left'));var marginLeft=-7+paddingLeft+'px';anim.remove(this.thumb);anim({targets:this.thumb,height:30,width:30,top:-30,marginLeft,duration:300,easing:'easeOutQuint'});}},{key:"_calcRangeOffset",value:function _calcRangeOffset(){var width=this.$el.width()-15;var max=parseFloat(this.$el.attr('max'))||100;var min=parseFloat(this.$el.attr('min'))||0;var percent=(parseFloat(this.$el.val())-min)/(max-min);return percent*width;}}],[{key:"init",value:function init(els,options){return _get(Range.__proto__||Object.getPrototypeOf(Range),"init",this).call(this,this,els,options);}},{key:"getInstance",value:function getInstance(el){var domElem=!!el.jquery?el[0]:el;return domElem.M_Range;}},{key:"defaults",get:function(){return _defaults;}}]);return Range;}(Component);M.Range=Range;if(M.jQueryLoaded)M.initializeJqueryWrapper(Range,'range','M_Range');Range.init($('input[type=range]'));})(cash,M.anime);;
223let vh=window.innerHeight*0.01;document.documentElement.style.setProperty('--vh',`${vh}px`);window.addEventListener('resize',()=>{let vh=window.innerHeight*0.01;document.documentElement.style.setProperty('--vh',`${vh}px`);});;
224function materialize_init(){var elems=document.querySelectorAll('select');var dropdownOptions={onOpenStart:function(){this.el.parentElement.classList.add('open');},onCloseStart:function(){this.el.parentElement.classList.remove('open');}};var options={dropdownOptions};var instances=M.FormSelect.init(elems,options);}document.addEventListener('DOMContentLoaded',function(){materialize_init();});(function($){$(document).ajaxSuccess(function(){materialize_init();});}(jQuery));;
225function _setCookie(name,value,days){var expires="";if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+date.toUTCString();}document.cookie=name+"="+(value||"")+expires+"; path=/ ; secure ; sameSite=Lax";}function _getCookieVarFromCookieString(cookieString,cookie_name){var c_start,c_end;c_start=cookieString.indexOf(cookie_name+'=');if(c_start!==-1){c_start=c_start+cookie_name.length+1;c_end=cookieString.indexOf(';',c_start);if(c_end===-1)c_end=cookieString.length;return decodeURIComponent(cookieString.substring(c_start,c_end));}}function _getCookie(name){if(document.cookie.length>0)return _getCookieVarFromCookieString(document.cookie,name);return undefined;};
226jQuery(document).ready(function($){$(".skip-link").bind("focus",function(){if('onetrust-accept-btn-handler'!==$(e.relatedTarget).attr('id')&&'onetrust-reject-all-handler'!==$(e.relatedTarget).attr('id'))$(this).parent().addClass('active');});$(".skip-link").bind("focusout",function(){$(this).parent().removeClass('active');});$('.skip-link[href="#nav"]').click(function(){$('#block-navigationprincipale .menu li:first-child a').trigger('focus');});});;
227!function(a,b){"use strict";"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.Headroom=b();}(this,function(){"use strict";function a(a){this.callback=a,this.ticking=!1;}function b(a){return a&&"undefined"!=typeof window&&(a===window||a.nodeType);}function c(a){if(arguments.length<=0)throw new Error("Missing arguments in extend function");var d,e,f=a||{};for(e=1;e<arguments.length;e++){var g=arguments[e]||{};for(d in g)"object"!=typeof f[d]||b(f[d])?f[d]=f[d]||g[d]:f[d]=c(f[d],g[d]);}return f;}function d(a){return a===Object(a)?a:{down:a,up:a};}function e(a,b){b=c(b,e.options),this.lastKnownScrollY=0,this.elem=a,this.tolerance=d(b.tolerance),this.classes=b.classes,this.offset=b.offset,this.scroller=b.scroller,this.initialised=!1,this.onPin=b.onPin,this.onUnpin=b.onUnpin,this.onTop=b.onTop,this.onNotTop=b.onNotTop,this.onBottom=b.onBottom,this.onNotBottom=b.onNotBottom;}var f={bind:!!function(){}.bind,classList:"classList" in document.documentElement,rAF:!!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame)};return window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,a.prototype={constructor:a,update:function(){this.callback&&this.callback(),this.ticking=!1;},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0);},handleEvent:function(){this.requestTick();}},e.prototype={constructor:e,init:function(){if(e.cutsTheMustard)return this.debouncer=new a(this.update.bind(this)),this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this;},destroy:function(){var a=this.classes;this.initialised=!1;for(var b in a)a.hasOwnProperty(b)&&this.elem.classList.remove(a[b]);this.scroller.removeEventListener("scroll",this.debouncer,!1);},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent());},unpin:function(){var a=this.elem.classList,b=this.classes;!a.contains(b.pinned)&&a.contains(b.unpinned)||(a.add(b.unpinned),a.remove(b.pinned),this.onUnpin&&this.onUnpin.call(this));},pin:function(){var a=this.elem.classList,b=this.classes;a.contains(b.unpinned)&&(a.remove(b.unpinned),a.add(b.pinned),this.onPin&&this.onPin.call(this));},top:function(){var a=this.elem.classList,b=this.classes;
227a.contains(b.top)||(a.add(b.top),a.remove(b.notTop),this.onTop&&this.onTop.call(this));},notTop:function(){var a=this.elem.classList,b=this.classes;a.contains(b.notTop)||(a.add(b.notTop),a.remove(b.top),this.onNotTop&&this.onNotTop.call(this));},bottom:function(){var a=this.elem.classList,b=this.classes;a.contains(b.bottom)||(a.add(b.bottom),a.remove(b.notBottom),this.onBottom&&this.onBottom.call(this));},notBottom:function(){var a=this.elem.classList,b=this.classes;a.contains(b.notBottom)||(a.add(b.notBottom),a.remove(b.bottom),this.onNotBottom&&this.onNotBottom.call(this));},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:void 0!==this.scroller.scrollTop?this.scroller.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop;},getViewportHeight:function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;},getElementPhysicalHeight:function(a){return Math.max(a.offsetHeight,a.clientHeight);},getScrollerPhysicalHeight:function(){return this.scroller===window||this.scroller===document.body?this.getViewportHeight():this.getElementPhysicalHeight(this.scroller);},getDocumentHeight:function(){var a=document.body,b=document.documentElement;return Math.max(a.scrollHeight,b.scrollHeight,a.offsetHeight,b.offsetHeight,a.clientHeight,b.clientHeight);},getElementHeight:function(a){return Math.max(a.scrollHeight,a.offsetHeight,a.clientHeight);},getScrollerHeight:function(){return this.scroller===window||this.scroller===document.body?this.getDocumentHeight():this.getElementHeight(this.scroller);},isOutOfBounds:function(a){var b=a<0,c=a+this.getScrollerPhysicalHeight()>this.getScrollerHeight();return b||c;},toleranceExceeded:function(a,b){return Math.abs(a-this.lastKnownScrollY)>=this.tolerance[b];},shouldUnpin:function(a,b){var c=a>this.lastKnownScrollY,d=a>=this.offset;return c&&d&&b;},shouldPin:function(a,b){var c=a<this.lastKnownScrollY,d=a<=this.offset;return c&&b||d;},update:function(){var a=this.getScrollY(),b=a>this.lastKnownScrollY?"down":"up",c=this.toleranceExceeded(a,b);this.isOutOfBounds(a)||(a<=this.offset?this.top():this.notTop(),a+this.getViewportHeight()>=this.getScrollerHeight()?this.bottom():this.notBottom(),this.shouldUnpin(a,c)?this.unpin():this.shouldPin(a,c)&&this.pin(),this.lastKnownScrollY=a);}},e.options={tolerance:{up:0,down:0},offset:0,scroller:window,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},e.cutsTheMustard="undefined"!=typeof f&&f.rAF&&f.bind&&f.classList,e;});;
228+function($){'use strict';var auto=false;$(window).scroll(function(){$('.to-top').hide();$.data(this,'scrollTimer',setTimeout(function(){if($(window).scrollTop()!=0&&!auto)$('.to-top').fadeIn();else $('.to-top').hide();},250));});$('.to-top').click(function(){auto=true;$("html, body").animate({scrollTop:0},600,function(){auto=false;});});var headerElement=document.querySelector("header.navbar");if(headerElement!==null){var headroom=new Headroom(headerElement);headroom.init();}$(document).ajaxSuccess(function(){var shareElement=document.querySelector(".block-sqli-share-block");if(shareElement!==null){var headroom=new Headroom(shareElement);headroom.init();}});}(jQuery);;
229(function($){$('.accessibility-link').on('click',function(e){e.preventDefault();$('#INDmenu-btn').trigger('click');});}(jQuery));;
230var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,r,p){if(p.get||p.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[r]=p.value);};$jscomp.getGlobal=function(e){return "undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e;};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol);};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++;};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this);}});$jscomp.initSymbolIterator=function(){};};$jscomp.arrayIterator=function(e){var r=0;return $jscomp.iteratorPrototype(function(){return r<e.length?{done:!1,value:e[r++]}:{done:!0};});};$jscomp.iteratorPrototype=function(e){$jscomp.initSymbolIterator();e={next:e};e[$jscomp.global.Symbol.iterator]=function(){return this;};return e;};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(e,r){$jscomp.initSymbolIterator();e instanceof String&&(e+="");var p=0,m={next:function(){if(p<e.length){var u=p++;return {value:r(u,e[u]),done:!1};}m.next=function(){return {done:!0,value:void 0};};return m.next();}};m[Symbol.iterator]=function(){return m;};return m;};$jscomp.polyfill=function(e,r,p,m){if(r){p=$jscomp.global;e=e.split(".");for(m=0;m<e.length-1;m++){var u=e[m];u in p||(p[u]={});p=p[u];}e=e[e.length-1];m=p[e];r=r(m);r!=m&&null!=r&&$jscomp.defineProperty(p,e,{configurable:!0,writable:!0,value:r});}};$jscomp.polyfill("Array.prototype.keys",function(e){return e?e:function(){return $jscomp.iteratorFromArray(this,function(e){return e;});};},"es6-impl","es3");var $jscomp$this=this;(function(e,r){"function"===typeof define&&define.amd?define([],r):"object"===typeof module&&module.exports?module.exports=r():e.anime=r();})(this,function(){function e(a){if(!h.col(a))try{return document.querySelectorAll(a);}catch(c){}}function r(a,c){for(var d=a.length,b=2<=arguments.length?arguments[1]:void 0,f=[],n=0;n<d;n++)if(n in a){var k=a[n];c.call(b,k,n,a)&&f.push(k);}return f;}function p(a){return a.reduce(function(a,d){return a.concat(h.arr(d)?p(d):d);},[]);}function m(a){if(h.arr(a))return a;h.str(a)&&(a=e(a)||a);return a instanceof NodeList||a instanceof HTMLCollection?[].slice.call(a):[a];}function u(a,c){return a.some(function(a){return a===c;});}function C(a){var c={},d;for(d in a)c[d]=a[d];return c;}function D(a,c){var d=C(a),b;for(b in a)d[b]=c.hasOwnProperty(b)?c[b]:a[b];return d;}function z(a,c){var d=C(a),b;for(b in c)d[b]=h.und(a[b])?c[b]:a[b];return d;}function T(a){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,c,d,k){return c+c+d+d+k+k;});var c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);a=parseInt(c[1],16);var d=parseInt(c[2],16),c=parseInt(c[3],16);return "rgba("+a+","+d+","+c+",1)";}function U(a){function c(a,c,b){0>b&&(b+=1);1<b&&--b;return b<1/6?a+6*(c-a)*b:.5>b?c:b<2/3?a+(c-a)*(2/3-b)*6:a;}var d=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(a)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(a);a=parseInt(d[1])/360;var b=parseInt(d[2])/100,f=parseInt(d[3])/100,d=d[4]||1;if(0==b)f=b=a=f;else{var n=.5>f?f*(1+b):f+b-f*b,k=2*f-n,f=c(k,n,a+1/3),b=c(k,n,a);a=c(k,n,a-1/3);}return "rgba("+255*f+","+255*b+","+255*a+","+d+")";}function y(a){if(a=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(a))return a[2];}function V(a){if(-1<a.indexOf("translate")||"perspective"===a)return "px";if(-1<a.indexOf("rotate")||-1<a.indexOf("skew"))return "deg";}function I(a,c){return h.fnc(a)?a(c.target,c.id,c.total):a;}function E(a,c){if(c in a.style)return getComputedStyle(a).getPropertyValue(c.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0";}
230function J(a,c){if(h.dom(a)&&u(W,c))return "transform";if(h.dom(a)&&(a.getAttribute(c)||h.svg(a)&&a[c]))return "attribute";if(h.dom(a)&&"transform"!==c&&E(a,c))return "css";if(null!=a[c])return "object";}function X(a,c){var d=V(c),d=-1<c.indexOf("scale")?1:0+d;a=a.style.transform;if(!a)return d;for(var b=[],f=[],n=[],k=/(\w+)\((.+?)\)/g;b=k.exec(a);)f.push(b[1]),n.push(b[2]);a=r(n,function(a,b){return f[b]===c;});return a.length?a[0]:d;}function K(a,c){switch(J(a,c)){case "transform":return X(a,c);case "css":return E(a,c);case "attribute":return a.getAttribute(c);}return a[c]||0;}function L(a,c){var d=/^(\*=|\+=|-=)/.exec(a);if(!d)return a;var b=y(a)||0;c=parseFloat(c);a=parseFloat(a.replace(d[0],""));switch(d[0][0]){case "+":return c+a+b;case "-":return c-a+b;case "*":return c*a+b;}}function F(a,c){return Math.sqrt(Math.pow(c.x-a.x,2)+Math.pow(c.y-a.y,2));}function M(a){a=a.points;for(var c=0,d,b=0;b<a.numberOfItems;b++){var f=a.getItem(b);0<b&&(c+=F(d,f));d=f;}return c;}function N(a){if(a.getTotalLength)return a.getTotalLength();switch(a.tagName.toLowerCase()){case "circle":return 2*Math.PI*a.getAttribute("r");case "rect":return 2*a.getAttribute("width")+2*a.getAttribute("height");case "line":return F({x:a.getAttribute("x1"),y:a.getAttribute("y1")},{x:a.getAttribute("x2"),y:a.getAttribute("y2")});case "polyline":return M(a);case "polygon":var c=a.points;return M(a)+F(c.getItem(c.numberOfItems-1),c.getItem(0));}}function Y(a,c){function d(b){b=void 0===b?0:b;return a.el.getPointAtLength(1<=c+b?c+b:0);}var b=d(),f=d(-1),n=d(1);switch(a.property){case "x":return b.x;case "y":return b.y;case "angle":return 180*Math.atan2(n.y-f.y,n.x-f.x)/Math.PI;}}function O(a,c){var d=/-?\d*\.?\d+/g,b;b=h.pth(a)?a.totalLength:a;if(h.col(b))if(h.rgb(b)){var f=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(b);b=f?"rgba("+f[1]+",1)":b;}else b=h.hex(b)?T(b):h.hsl(b)?U(b):void 0;else f=(f=y(b))?b.substr(0,b.length-f.length):b,b=c&&!/\s/g.test(b)?f+c:f;b+="";return {original:b,numbers:b.match(d)?b.match(d).map(Number):[0],strings:h.str(a)||c?b.split(d):[]};}function P(a){a=a?p(h.arr(a)?a.map(m):m(a)):[];return r(a,function(a,d,b){return b.indexOf(a)===d;});}function Z(a){var c=P(a);return c.map(function(a,b){return {target:a,id:b,total:c.length};});}function aa(a,c){var d=C(c);if(h.arr(a)){var b=a.length;2!==b||h.obj(a[0])?h.fnc(c.duration)||(d.duration=c.duration/b):a={value:a};}return m(a).map(function(a,b){b=b?0:c.delay;a=h.obj(a)&&!h.pth(a)?a:{value:a};h.und(a.delay)&&(a.delay=b);return a;}).map(function(a){return z(a,d);});}function ba(a,c){var d={},b;for(b in a){var f=I(a[b],c);h.arr(f)&&(f=f.map(function(a){return I(a,c);}),1===f.length&&(f=f[0]));d[b]=f;}d.duration=parseFloat(d.duration);d.delay=parseFloat(d.delay);return d;}function ca(a){return h.arr(a)?A.apply(this,a):Q[a];}function da(a,c){var d;return a.tweens.map(function(b){b=ba(b,c);var f=b.value,e=K(c.target,a.name),k=d?d.to.original:e,k=h.arr(f)?f[0]:k,w=L(h.arr(f)?f[1]:f,k),e=y(w)||y(k)||y(e);b.from=O(k,e);b.to=O(w,e);b.start=d?d.end:a.offset;b.end=b.start+b.delay+b.duration;b.easing=ca(b.easing);b.elasticity=(1E3-Math.min(Math.max(b.elasticity,1),999))/1E3;b.isPath=h.pth(f);b.isColor=h.col(b.from.original);b.isColor&&(b.round=1);return d=b;});}function ea(a,c){return r(p(a.map(function(a){return c.map(function(b){var c=J(a.target,b.name);if(c){var d=da(b,a);b={type:c,property:b.name,animatable:a,tweens:d,duration:d[d.length-1].end,delay:d[0].delay};}else b=void 0;return b;});})),function(a){return !h.und(a);});}function R(a,c,d,b){var f="delay"===a;return c.length?(f?Math.min:Math.max).apply(Math,c.map(function(b){return b[a];})):f?b.delay:d.offset+b.delay+b.duration;}function fa(a){var c=D(ga,a),d=D(S,a),b=Z(a.targets),f=[],e=z(c,d),k;for(k in a)e.hasOwnProperty(k)||"targets"===k||f.push({name:k,offset:e.offset,tweens:aa(a[k],d)});a=ea(b,f);return z(c,{children:[],animatables:b,animations:a,duration:R("duration",a,c,d),delay:R("delay",a,c,d)});}function q(a){function c(){return window.Promise&&new Promise(function(a){return p=a;});}function d(a){return g.reversed?g.duration-a:a;}function b(a){for(var b=0,c={},d=g.animations,f=d.length;b<f;){var e=d[b],k=e.animatable,h=e.tweens,n=h.length-1,l=h[n];n&&(l=r(h,function(b){return a<b.end;})[0]||l);for(var h=Math.min(Math.max(a-l.start-l.delay,0),l.duration)/l.duration,w=isNaN(h)?1:l.easing(h,l.elasticity),h=l.to.strings,p=l.round,n=[],m=void 0,m=l.to.numbers.length,t=0;t<m;t++){var x=void 0,x=l.to.numbers[t],q=l.from.numbers[t],x=l.isPath?Y(l.value,w*x):q+w*(x-q);p&&(l.isColor&&2<t||(x=Math.round(x*p)/p));n.push(x);}if(l=h.length)for(m=h[0],w=0;w<l;w++)p=h[w+1],t=n[w],isNaN(t)||(m=p?m+(t+p):m+(t+" "));else m=n[0];ha[e.type](k.target,e.property,m,c,k.id);e.currentValue=m;b++;}if(b=Object.keys(c).length)for(d=0;d<b;d++)H||(H=E(document.body,"transform")?"transform":"-webkit-transform"),g.animatables[d].target.style[H]=c[d].join(" ");g.currentTime=a;g.progress=a/g.duration*100;}function f(a){if(g[a])g[a](g);}function e(){g.remaining&&!0!==g.remaining&&g.remaining--;}function k(a){var k=g.duration,n=g.offset,w=n+g.delay,r=g.currentTime,x=g.reversed,q=d(a);if(g.children.length){var u=g.children,v=u.length;if(q>=g.currentTime)for(var G=0;G<v;G++)u[G].seek(q);else for(;v--;)u[v].seek(q);}if(q>=w||!k)g.began||(g.began=!0,f("begin")),f("run");if(q>n&&q<k)b(q);else{if(q<=n&&0!==r&&(b(0),x&&e()),q>=k&&r!==k||!k)b(k),x||e();}f("update");a>=k&&(g.remaining?(t=h,"alternate"===g.direction&&(g.reversed=!g.reversed)):(g.pause(),g.completed||(g.completed=!0,f("complete"),"Promise" in window&&(p(),m=c()))),l=0);}a=void 0===a?{}:a;var h,t,l=0,p=null,m=c(),g=fa(a);g.reset=function(){var a=g.direction,c=g.loop;g.currentTime=0;g.progress=0;g.paused=!0;g.began=!1;g.completed=!1;g.reversed="reverse"===a;g.remaining="alternate"===a&&1===c?2:c;b(0);for(a=g.children.length;a--;)g.children[a].reset();};g.tick=function(a){h=a;t||(t=h);k((l+h-t)*q.speed);};g.seek=function(a){k(d(a));};g.pause=function(){var a=v.indexOf(g);-1<a&&v.splice(a,1);g.paused=!0;};g.play=function(){g.paused&&(g.paused=!1,t=0,l=d(g.currentTime),v.push(g),B||ia());};g.reverse=function(){g.reversed=!g.reversed;t=0;l=d(g.currentTime);};g.restart=function(){g.pause();g.reset();g.play();};g.finished=m;g.reset();g.autoplay&&g.play();return g;}var ga={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},S={duration:1E3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},W="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX 
230skewY perspective".split(" "),H,h={arr:function(a){return Array.isArray(a);},obj:function(a){return -1<Object.prototype.toString.call(a).indexOf("Object");},pth:function(a){return h.obj(a)&&a.hasOwnProperty("totalLength");},svg:function(a){return a instanceof SVGElement;},dom:function(a){return a.nodeType||h.svg(a);},str:function(a){return "string"===typeof a;},fnc:function(a){return "function"===typeof a;},und:function(a){return "undefined"===typeof a;},hex:function(a){return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a);},rgb:function(a){return /^rgb/.test(a);},hsl:function(a){return /^hsl/.test(a);},col:function(a){return h.hex(a)||h.rgb(a)||h.hsl(a);}},A=function(){function a(a,d,b){return (((1-3*b+3*d)*a+(3*b-6*d))*a+3*d)*a;}return function(c,d,b,f){if(0<=c&&1>=c&&0<=b&&1>=b){var e=new Float32Array(11);if(c!==d||b!==f)for(var k=0;11>k;++k)e[k]=a(.1*k,c,b);return function(k){if(c===d&&b===f)return k;if(0===k)return 0;if(1===k)return 1;for(var h=0,l=1;10!==l&&e[l]<=k;++l)h+=.1;--l;var l=h+(k-e[l])/(e[l+1]-e[l])*.1,n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(.001<=n){for(h=0;4>h;++h){n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(0===n)break;var m=a(l,c,b)-k,l=l-m/n;}k=l;}else if(0===n)k=l;else{var l=h,h=h+.1,g=0;do m=l+(h-l)/2,n=a(m,c,b)-k,0<n?h=m:l=m;while(1e-7<Math.abs(n)&&10>++g);k=m;}return a(k,d,f);};}};}(),Q=function(){function a(a,b){return 0===a||1===a?a:-Math.pow(2,10*(a-1))*Math.sin(2*(a-1-b/(2*Math.PI)*Math.asin(1))*Math.PI/b);}var c="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),d={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],a],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(b,c){return 1-a(1-b,c);}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(b,c){return .5>b?a(2*b,c)/2:1-a(-2*b+2,c)/2;}]},b={linear:A(.25,.25,.75,.75)},f={},e;for(e in d)f.type=e,d[f.type].forEach(function(a){return function(d,f){b["ease"+a.type+c[f]]=h.fnc(d)?d:A.apply($jscomp$this,d);};}(f)),f={type:f.type};return b;}(),ha={css:function(a,c,d){return a.style[c]=d;},attribute:function(a,c,d){return a.setAttribute(c,d);},object:function(a,c,d){return a[c]=d;},transform:function(a,c,d,b,f){b[f]||(b[f]=[]);b[f].push(c+"("+d+")");}},v=[],B=0,ia=function(){function a(){B=requestAnimationFrame(c);}function c(c){var b=v.length;if(b){for(var d=0;d<b;)v[d]&&v[d].tick(c),d++;a();}else cancelAnimationFrame(B),B=0;}return a;}();q.version="2.2.0";q.speed=1;q.running=v;q.remove=function(a){a=P(a);for(var c=v.length;c--;)for(var d=v[c],b=d.animations,f=b.length;f--;)u(a,b[f].animatable.target)&&(b.splice(f,1),b.length||d.pause());};q.getValue=K;q.path=function(a,c){var d=h.str(a)?e(a)[0]:a,b=c||100;return function(a){return {el:d,property:a,totalLength:N(d)*(b/100)};};};q.setDashoffset=function(a){var c=N(a);a.setAttribute("stroke-dasharray",c);return c;};q.bezier=A;q.easings=Q;q.timeline=function(a){var c=q(a);c.pause();c.duration=0;c.add=function(d){c.children.forEach(function(a){a.began=!0;a.completed=!0;});m(d).forEach(function(b){var d=z(b,D(S,a||{}));d.targets=d.targets||a.targets;b=c.duration;var e=d.offset;d.autoplay=!1;d.direction=c.direction;d.offset=h.und(e)?b:L(e,b);c.began=!0;c.completed=!0;c.seek(d.offset);d=q(d);d.began=!0;d.completed=!0;d.duration>b&&(c.duration=d.duration);c.children.push(d);});c.seek(0);c.reset();c.autoplay&&c.restart();return c;};return c;};q.random=function(a,c){return Math.floor(Math.random()*(c-a+1))+a;};return q;});;
231(function(_,$,Drupal,drupalSettings){'use strict';var Bootstrap={processedOnce:{},settings:drupalSettings.bootstrap||{}};Bootstrap.checkPlain=function(str){return str&&Drupal.checkPlain(str)||'';};Bootstrap.createPlugin=function(id,plugin,noConflict){if($.fn[id]!==void 0)return this.fatal('Specified jQuery plugin identifier already exists: @id. Use Drupal.bootstrap.replacePlugin() instead.',{'@id':id});if(typeof plugin!=='function')return this.fatal('You must provide a constructor function to create a jQuery plugin "@id": @plugin',{'@id':id,'@plugin':plugin});this.pluginNoConflict(id,plugin,noConflict);$.fn[id]=plugin;};Bootstrap.diffObjects=function(objects){var args=Array.prototype.slice.call(arguments);return _.pick(args[0],_.difference.apply(_,_.map(args,function(obj){return Object.keys(obj);})));};Bootstrap.eventMap={Event:/^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/,MouseEvent:/^(?:click|dblclick|mouse(?:down|enter|leave|up|over|move|out))$/,KeyboardEvent:/^(?:key(?:down|press|up))$/,TouchEvent:/^(?:touch(?:start|end|move|cancel))$/};Bootstrap.extendPlugin=function(id,callback){if(typeof $.fn[id]!=='function')return this.fatal('Specified jQuery plugin identifier does not exist: @id',{'@id':id});if(typeof callback!=='function')return this.fatal('You must provide a callback function to extend the jQuery plugin "@id": @callback',{'@id':id,'@callback':callback});
231var constructor=$.fn[id]&&$.fn[id].Constructor||$.fn[id];var plugin=callback.apply(constructor,[this.settings]);if(!$.isPlainObject(plugin))return this.fatal('Returned value from callback is not a plain object that can be used to extend the jQuery plugin "@id": @obj',{'@obj':plugin});this.wrapPluginConstructor(constructor,plugin,true);return $.fn[id];};Bootstrap.superWrapper=function(parent,fn){return function(){var previousSuper=this.super;this.super=parent;var ret=fn.apply(this,arguments);if(previousSuper)this.super=previousSuper;else delete this.super;return ret;};};Bootstrap.fatal=function(message,args){if(this.settings.dev&&console.warn){for(var name in args)if(args.hasOwnProperty(name)&&typeof args[name]==='object')args[name]=JSON.stringify(args[name]);Drupal.throwError(new Error(Drupal.formatString(message,args)));}return false;};Bootstrap.intersectObjects=function(objects){var args=Array.prototype.slice.call(arguments);return _.pick(args[0],_.intersection.apply(_,_.map(args,function(obj){return Object.keys(obj);})));};Bootstrap.normalizeObject=function(obj){if(!$.isPlainObject(obj))return obj;for(var k in obj)if(typeof obj[k]==='string')if(obj[k]==='true')obj[k]=true;else if(obj[k]==='false')obj[k]=false;
231else{if(obj[k].match(/^[\d-.]$/))obj[k]=parseFloat(obj[k]);}else{if($.isPlainObject(obj[k]))obj[k]=Bootstrap.normalizeObject(obj[k]);}return obj;};Bootstrap.once=function(id,callback){if(this.processedOnce[id])return this;callback.call(this,this.settings);this.processedOnce[id]=true;return this;};Bootstrap.option=function(key,value){var options=$.isPlainObject(key)?$.extend({},key):{};if(arguments.length===0)return $.extend({},this.options);if(typeof key==="string"){var parts=key.split('.');key=parts.shift();var obj=options;if(parts.length){for(var i=0;i<parts.length-1;i++){obj[parts[i]]=obj[parts[i]]||{};obj=obj[parts[i]];}key=parts.pop();}if(arguments.length===1)return obj[key]===void 0?null:obj[key];obj[key]=value;}$.extend(true,this.options,options);};Bootstrap.pluginNoConflict=function(id,plugin,noConflict){if(plugin.noConflict===void 0&&(noConflict===void 0||noConflict)){var old=$.fn[id];plugin.noConflict=function(){$.fn[id]=old;return this;};}};Bootstrap.relayEvent=function(target,name,stopPropagation){return function(e){if(stopPropagation===void 0||stopPropagation)e.stopPropagation();var $target=$(target);var parts=name.split('.').filter(Boolean);var type=parts.shift();e.target=$target[0];e.currentTarget=$target[0];e.namespace=parts.join('.');e.type=type;$target.trigger(e);};};Bootstrap.replacePlugin=function(id,callback,noConflict){if(typeof $.fn[id]!=='function')return this.fatal('Specified jQuery plugin identifier does not exist: @id',{'@id':id});if(typeof callback!=='function')return this.fatal('You must provide a valid callback function to replace a jQuery plugin: @callback',{'@callback':callback});var constructor=$.fn[id]&&$.fn[id].Constructor||$.fn[id];var plugin=callback.apply(constructor,[this.settings]);if(typeof plugin!=='function')return this.fatal('Returned value from callback is not a usable function to replace a jQuery plugin "@id": @plugin',{'@id':id,'@plugin':plugin});this.wrapPluginConstructor(constructor,plugin);this.pluginNoConflict(id,plugin,noConflict);$.fn[id]=plugin;};Bootstrap.simulate=function(element,type,options){var ret=true;if(element instanceof $){element.each(function(){if(!Bootstrap.simulate(this,type,options))ret=false;});return ret;}if(!(element instanceof HTMLElement))this.fatal('Passed element must be an instance of HTMLElement, got "@type" instead.',{'@type':typeof element});if(typeof $.simulate==='function'){new $.simulate(element,type,options);return true;}var event;var ctor;var types=[].concat(type);for(var i=0,l=types.length;i<l;i++){type=types[i];for(var name in this.eventMap)if(this.eventMap[name].test(type)){ctor=name;break;}if(!ctor)throw new SyntaxError('Only rudimentary HTMLEvents, KeyboardEvents and MouseEvents are supported: '+type);var opts={bubbles:true,cancelable:true};if(ctor==='KeyboardEvent'||ctor==='MouseEvent')$.extend(opts,{ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1});if(ctor==='MouseEvent')$.extend(opts,{button:0,pointerX:0,pointerY:0,view:window});if(options)$.extend(opts,options);if(typeof window[ctor]==='function'){event=new window[ctor](type,opts);if(!element.dispatchEvent(event))ret=false;}else if(document.createEvent){event=document.createEvent(ctor);event.initEvent(type,opts.bubbles,opts.cancelable);if(!element.dispatchEvent(event))ret=false;}else if(typeof element.fireEvent==='function'){event=$.extend(document.createEventObject(),opts);if(!element.fireEvent('on'+type,event))ret=false;}else{if(typeof element[type])element[type]();}}return ret;};Bootstrap.stripHtml=function(html){if(html instanceof $)html=html.html();else{if(html instanceof Element)html=html.innerHTML;}var tmp=document.createElement('DIV');tmp.innerHTML=html;return (tmp.textContent||tmp.innerText||'').replace(/^[\s\n\t]*|[\s\n\t]*$/,'');};Bootstrap.unsupported=function(type,name,value){Bootstrap.warn('Unsupported by Drupal Bootstrap: (@type) @name -> @value',{'@type':type,'@name':name,'@value':typeof value==='object'?JSON.stringify(value):value});};Bootstrap.warn=function(message,args){if(this.settings.dev&&console.warn)console.warn(Drupal.formatString(message,args));};Bootstrap.wrapPluginConstructor=function(constructor,plugin,extend){var proto=constructor.prototype;var option=this.option;if(proto.option===void (0))proto.option=function(){return option.apply(this,arguments);};if(extend){if(plugin.prototype!==void 0)for(var key in plugin.prototype){if(!plugin.prototype.hasOwnProperty(key))continue;var value=plugin.prototype[key];if(typeof value==='function')proto[key]=this.superWrapper(proto[key]||function(){},value);else proto[key]=$.isPlainObject(value)?$.extend(true,{},proto[key],value):value;}delete plugin.prototype;for(key in plugin){if(!plugin.hasOwnProperty(key))continue;value=plugin[key];if(typeof value==='function')constructor[key]=this.superWrapper(constructor[key]||function(){},value);else constructor[key]=$.isPlainObject(value)?$.extend(true,{},constructor[key],value):value;}}};Drupal.bootstrap=Drupal.bootstrap||Bootstrap;})(window._,window.jQuery,window.Drupal,window.drupalSettings);;
232(function($,_){var Attributes=function(attributes){this.data={};this.data['class']=[];
232this.merge(attributes);};Attributes.prototype.toString=function(){var output='';var name,value;var checkPlain=function(str){return str&&str.toString().replace(/&/g,'&amp;').replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;')||'';};var data=this.getData();for(name in data){if(!data.hasOwnProperty(name))continue;value=data[name];if(_.isFunction(value))value=value();if(_.isObject(value))value=_.values(value);if(_.isArray(value))value=value.join(' ');output+=' '+checkPlain(name)+'="'+checkPlain(value)+'"';}return output;};Attributes.prototype.toPlainObject=function(){var object={};var name,value;var data=this.getData();for(name in data){if(!data.hasOwnProperty(name))continue;value=data[name];if(_.isFunction(value))value=value();if(_.isObject(value))value=_.values(value);if(_.isArray(value))value=value.join(' ');object[name]=value;}return object;};Attributes.prototype.addClass=function(value){var args=Array.prototype.slice.call(arguments);this.data['class']=this.sanitizeClasses(this.data['class'].concat(args));return this;};Attributes.prototype.exists=function(name){return this.data[name]!==void (0)&&this.data[name]!==null;};Attributes.prototype.get=function(name,defaultValue){if(!this.exists(name))this.data[name]=defaultValue;return this.data[name];};Attributes.prototype.getData=function(){return _.extend({},this.data);};Attributes.prototype.getClasses=function(){return this.get('class',[]);};Attributes.prototype.hasClass=function(className){className=this.sanitizeClasses(Array.prototype.slice.call(arguments));var classes=this.getClasses();for(var i=0,l=className.length;i<l;i++)if(_.indexOf(classes,className[i])===-1)return false;return true;};Attributes.prototype.merge=function(object,recursive){if(!object)return this;if(object instanceof $)object=object[0];if(object instanceof Node)object=Array.prototype.slice.call(object.attributes).reduce(function(attributes,attribute){attributes[attribute.name]=attribute.value;return attributes;},{});else if(object instanceof Attributes)object=object.getData();else object=_.extend({},object);if(!$.isPlainObject(object)){setTimeout(function(){throw new Error('Passed object is not supported: '+object);});return this;}if(object&&object['class']!==void 0){this.addClass(object['class']);delete object['class'];}if(recursive===void 0||recursive)this.data=$.extend(true,{},this.data,object);else this.data=$.extend({},this.data,object);return this;};Attributes.prototype.remove=function(name){if(this.exists(name))delete this.data[name];return this;};Attributes.prototype.removeClass=function(className){var remove=this.sanitizeClasses(Array.prototype.slice.apply(arguments));this.data['class']=_.without(this.getClasses(),remove);return this;};Attributes.prototype.replaceClass=function(oldValue,newValue){var classes=this.getClasses();var i=_.indexOf(this.sanitizeClasses(oldValue),classes);if(i>=0){classes[i]=newValue;this.set('class',classes);}return this;};Attributes.prototype.sanitizeClasses=function(classes){return _.chain(Array.prototype.slice.call(arguments)).flatten().map(function(string){return string.split(' ');}).flatten().filter().map(function(value){return Attributes.cleanClass(value);}).uniq().value();};Attributes.prototype.set=function(name,value){var obj=$.isPlainObject(name)?name:{};if(typeof name==='string')obj[name]=value;return this.merge(obj);};Attributes.cleanClass=function(identifier,filter){filter=filter||{' ':'-','_':'-','/':'-','[':'-',']':''};identifier=identifier.toLowerCase();if(filter['__']===void 0)identifier=identifier.replace('__','#DOUBLE_UNDERSCORE#');identifier=identifier.replace(Object.keys(filter),Object.keys(filter).map(function(key){return filter[key];}));if(filter['__']===void 0)identifier=identifier.replace('#DOUBLE_UNDERSCORE#','__');
232identifier=identifier.replace(/[^\u002D\u0030-\u0039\u0041-\u005A\u005F\u0061-\u007A\u00A1-\uFFFF]/g,'');identifier=identifier.replace(['/^[0-9]/','/^(-[0-9])|^(--)/'],['_','__']);return identifier;};Attributes.create=function(attributes){return new Attributes(attributes);};window.Attributes=Attributes;})(window.jQuery,window._);;
233(function($,Drupal,Bootstrap,Attributes){if(!Drupal.icon)Drupal.icon={bundles:{}};if(!Drupal.theme.icon||Drupal.theme.prototype.icon)$.extend(Drupal.theme,{icon:function(bundle,icon,attributes){if(!Drupal.icon.bundles[bundle])return '';attributes=Attributes.create(attributes).addClass('icon').set('aria-hidden','true');icon=Drupal.icon.bundles[bundle](icon,attributes);return '<span'+attributes+'></span>';}});Drupal.icon.bundles.bootstrap=function(icon,attributes){attributes.addClass(['glyphicon','glyphicon-'+icon]);};$.extend(Drupal.theme,{ajaxThrobber:function(){return Drupal.theme('bootstrapIcon','refresh',{'class':['ajax-throbber','glyphicon-spin']});},button:function(attributes){attributes=Attributes.create(attributes).addClass('btn');var context=attributes.get('context','default');var label=attributes.get('value','');attributes.remove('context').remove('value');if(!attributes.hasClass(['btn-default','btn-primary','btn-success','btn-info','btn-warning','btn-danger','btn-link']))attributes.addClass('btn-'+Bootstrap.checkPlain(context));if(!attributes.exists('type'))attributes.set('type',attributes.hasClass('form-submit')?'submit':'button');return '<button'+attributes+'>'+label+'</button>';},btn:function(attributes){return Drupal.theme('button',attributes);},'btn-block':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-block'));},'btn-lg':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-lg'));},'btn-sm':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-sm'));},'btn-xs':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-xs'));},bootstrapIcon:function(name,attributes){return Drupal.theme('icon','bootstrap',name,attributes);}});})(window.jQuery,window.Drupal,window.Drupal.bootstrap,window.Attributes);;
234var Drupal=Drupal||{};(function($,Drupal,Bootstrap){"use strict";var $document=$(document);Bootstrap.extendPlugin('popover',function(settings){return {DEFAULTS:{animation:!!settings.popover_animation,autoClose:!!settings.popover_auto_close,enabled:settings.popover_enabled,html:!!settings.popover_html,placement:settings.popover_placement,selector:settings.popover_selector,trigger:settings.popover_trigger,title:settings.popover_title,content:settings.popover_content,delay:parseInt(settings.popover_delay,10),container:settings.popover_container}};});Drupal.behaviors.bootstrapPopovers={$activePopover:null,attach:function(context){if(!$.fn.popover||!$.fn.popover.Constructor.DEFAULTS.enabled)return;var _this=this;$document.on('show.bs.popover','[data-toggle=popover]',function(){var $trigger=$(this);var popover=$trigger.data('bs.popover');if(popover.options.originalTrigger==='click'){if(_this.$activePopover&&_this.getOption('autoClose')&&!_this.$activePopover.is($trigger))_this.$activePopover.popover('hide');_this.$activePopover=$trigger;}}).on('focus.bs.popover',':visible',function(e){var $target=$(e.target);if(_this.$activePopover&&_this.getOption('autoClose')&&!_this.$activePopover.is($target)&&!$target.closest('.popover.in')[0]){_this.$activePopover.popover('hide');_this.$activePopover=null;}}).on('click.bs.popover',function(e){var $target=$(e.target);if(_this.$activePopover&&_this.getOption('autoClose')&&!$target.is('[data-toggle=popover]')&&!$target.closest('.popover.in')[0]){_this.$activePopover.popover('hide');_this.$activePopover=null;}}).on('keyup.bs.popover',function(e){if(_this.$activePopover&&_this.getOption('autoClose')&&e.which===27){_this.$activePopover.popover('hide');_this.$activePopover=null;}});;var elements=$(context).find('[data-toggle=popover]').toArray();for(var i=0;i<elements.length;i++){var $element=$(elements[i]);var options=$.extend({},$.fn.popover.Constructor.DEFAULTS,$element.data());options.originalTrigger=options.trigger;if(options.trigger==='click')options.trigger='manual';var target=options.target||$element.is('a[href^="#"]')&&$element.attr('href');var $target=$document.find(target).clone();if(!options.content&&$target[0]){$target.removeClass('visually-hidden hidden').removeAttr('aria-hidden');options.content=$target.wrap('<div/>').parent()[options.html?'html':'text']()||'';}$element.popover(options);if(options.originalTrigger==='click'){$element.off('click.drupal.bootstrap.popover').on('click.drupal.bootstrap.popover',function(e){$(this).popover('toggle');e.preventDefault();e.stopPropagation();});;}}},detach:function(context){if(!$.fn.popover||!$.fn.popover.Constructor.DEFAULTS.enabled)return;$(context).find('[data-toggle="popover"]').off('click.drupal.bootstrap.popover').popover('destroy');;},getOption:function(name,defaultValue,element){var $element=element?$(element):this.$activePopover;var options=$.extend(true,{},$.fn.popover.Constructor.DEFAULTS,($element&&$element.data('bs.popover')||{}).options);if(options[name]!==void 0)return options[name];return defaultValue!==void 0?defaultValue:void 0;}};})(window.jQuery,window.Drupal,window.Drupal.bootstrap);;
235var Drupal=Drupal||{};(function($,Drupal,Bootstrap){"use strict";Bootstrap.extendPlugin('tooltip',function(settings){return {DEFAULTS:{animation:!!settings.tooltip_animation,enabled:settings.tooltip_enabled,html:!!settings.tooltip_html,placement:settings.tooltip_placement,selector:settings.tooltip_selector,trigger:settings.tooltip_trigger,delay:parseInt(settings.tooltip_delay,10),container:settings.tooltip_container}};});Drupal.behaviors.bootstrapTooltips={attach:function(context){if(!$.fn.tooltip||!$.fn.tooltip.Constructor.DEFAULTS.enabled)return;var elements=$(context).find('[data-toggle="tooltip"]').toArray();for(var i=0;i<elements.length;i++){var $element=$(elements[i]);var options=$.extend({},$.fn.tooltip.Constructor.DEFAULTS,$element.data());$element.tooltip(options);}},detach:function(context){if(!$.fn.tooltip||!$.fn.tooltip.Constructor.DEFAULTS.enabled)return;$(context).find('[data-toggle="tooltip"]').tooltip('destroy');}};})(window.jQuery,window.Drupal,window.Drupal.bootstrap);;
236/* @license GPL-2.0-or-later https://raw.githubusercontent.com/jquery-form/form/master/LICENSE */
237(function(factory){if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof module==='object'&&module.exports)module.exports=function(root,jQuery){if(typeof jQuery==='undefined')if(typeof window!=='undefined')jQuery=require('jquery');else jQuery=require('jquery')(root);factory(jQuery);return jQuery;};else factory(jQuery);}(function($){'use strict';var rCRLF=/\r?\n/g;var feature={};feature.fileapi=$('<input type="file">').get(0).files!==undefined;feature.formdata=(typeof window.FormData!=='undefined');var hasProp=!!$.fn.prop;$.fn.attr2=function(){if(!hasProp)return this.attr.apply(this,arguments);var val=this.prop.apply(this,arguments);if((val&&val.jquery)||typeof val==='string')return val;return this.attr.apply(this,arguments);};$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){if(!this.length){log('ajaxSubmit: skipping submit process - no element selected');return this;}var method,action,url,isMsie,iframeSrc,$form=this;if(typeof options==='function')options={success:options};else if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}else{if(typeof options==='undefined')options={};}method=options.method||options.type||this.attr2('method');action=options.url||this.attr2('action');url=(typeof action==='string')?action.trim():'';url=url||window.location.href||'';if(url)url=(url.match(/^([^#]+)/)||[])[1];isMsie=/(MSIE|Trident)/.test(navigator.userAgent||'');iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank';options=$.extend(true,{url,success:$.ajaxSettings.success,type:method||$.ajaxSettings.type,iframeSrc},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}var traditional=options.traditional;if(typeof traditional==='undefined')traditional=$.ajaxSettings.traditional;var elements=[];var qx,a=this.formToArray(options.semantic,elements,options.filtering);if(options.data){var optionsData=typeof (options.data)==="function"?options.data(a):options.data;options.extraData=optionsData;qx=$.param(optionsData,traditional);}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}var q=$.param(a,traditional);if(qx)q=(q?(q+'&'+qx):qx);if(options.type.toUpperCase()==='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}else options.data=q;var callbacks=[];if(options.resetForm)callbacks.push(function(){$form.resetForm();});if(options.clearForm)callbacks.push(function(){$form.clearForm(options.includeHidden);});if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data,textStatus,jqXHR){var successArguments=arguments,fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(function(){oldSuccess.apply(this,successArguments);});});}else{if(options.success)if(Array.isArray(options.success))callbacks=callbacks.concat(options.success);else callbacks.push(options.success);}options.success=function(data,status,xhr){var context=options.context||this;for(var i=0,max=callbacks.length;i<max;i++)callbacks[i].apply(context,[data,status,xhr||$form,$form]);};if(options.error){var oldError=options.error;options.error=function(xhr,status,error){var context=options.context||this;oldError.apply(context,[xhr,status,error,$form]);};}if(options.complete){var oldComplete=options.complete;options.complete=function(xhr,status){var context=options.context||this;oldComplete.apply(context,[xhr,status,$form]);};}var fileInputs=$('input[type=file]:enabled',this).filter(function(){return $(this).val()!=='';});var hasFileInputs=fileInputs.length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp);var fileAPI=feature.fileapi&&feature.formdata;log('fileAPI :'+fileAPI);var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI;var jqxhr;if(options.iframe!==false&&(options.iframe||shouldUseFrame))if(options.closeKeepAlive)$.get(options.closeKeepAlive,function(){jqxhr=fileUploadIframe(a);});else jqxhr=fileUploadIframe(a);else if((hasFileInputs||multipart)&&fileAPI)jqxhr=fileUploadXhr(a);else jqxhr=$.ajax(options);$form.removeData('jqxhr').data('jqxhr',jqxhr);for(var k=0;k<elements.length;k++)elements[k]=null;this.trigger('form-submit-notify',[this,options]);return this;function deepSerialize(extraData){var serialized=$.param(extraData,options.traditional).split('&');var len=serialized.length;var result=[];var i,part;for(i=0;i<len;i++){serialized[i]=serialized[i].replace(/\+/g,' ');part=serialized[i].split('=');result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]);}return result;}function fileUploadXhr(a){var formdata=new FormData();for(var i=0;i<a.length;i++)formdata.append(a[i].name,a[i].value);if(options.extraData){var serializedData=deepSerialize(options.extraData);for(i=0;i<serializedData.length;i++)if(serializedData[i])formdata.append(serializedData[i][0],serializedData[i][1]);}options.data=null;var s=$.extend(true,{},$.ajaxSettings,options,{contentType:false,processData:false,cache:false,type:method||'POST'});if(options.uploadProgress)s.xhr=function(){var xhr=$.ajaxSettings.xhr();if(xhr.upload)xhr.upload.addEventListener('progress',function(event){var percent=0;var position=event.loaded||event.position;var total=event.total;if(event.lengthComputable)percent=Math.ceil(position/total*100);options.uploadProgress(event,position,total,percent);},false);return xhr;};s.data=null;var beforeSend=s.beforeSend;s.beforeSend=function(xhr,o){if(options.formData)o.data=options.formData;else o.data=formdata;
237if(beforeSend)beforeSend.call(this,xhr,o);};return $.ajax(s);}function fileUploadIframe(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var deferred=$.Deferred();deferred.abort=function(status){xhr.abort(status);};if(a)for(i=0;i<elements.length;i++){el=$(elements[i]);if(hasProp)el.prop('disabled',false);else el.removeAttr('disabled');}s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+new Date().getTime();var ownerDocument=form.ownerDocument;var $body=$form.closest('body');if(s.iframeTarget){$io=$(s.iframeTarget,ownerDocument);n=$io.attr2('name');if(!n)$io.attr2('name',id);else id=n;}else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />',ownerDocument);$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;try{if(io.contentWindow.document.execCommand)io.contentWindow.document.execCommand('Stop');}catch(ignore){}$io.attr('src',s.iframeSrc);xhr.error=e;if(s.error)s.error.call(s.context,xhr,e,status);if(g)$.event.trigger('ajaxError',[xhr,s,e]);if(s.complete)s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&$.active++===0)$.event.trigger('ajaxStart');if(g)$.event.trigger('ajaxSend',[xhr,s]);if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global)$.active--;deferred.reject();return deferred;}if(xhr.aborted){deferred.reject();return deferred;}sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type==='image'){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=null;try{if(frame.contentWindow)doc=frame.contentWindow.document;}catch(err){log('cannot get iframe.contentWindow document: '+err);}if(doc)return doc;try{doc=frame.contentDocument?frame.contentDocument:frame.document;}catch(err){log('cannot get iframe.contentDocument: '+err);doc=frame.document;}return doc;}var csrf_token=$('meta[name=csrf-token]').attr('content');var csrf_param=$('meta[name=csrf-param]').attr('content');if(csrf_param&&csrf_token){s.extraData=s.extraData||{};s.extraData[csrf_param]=csrf_token;}function doSubmit(){var t=$form.attr2('target'),a=$form.attr2('action'),mp='multipart/form-data',et=$form.attr('enctype')||$form.attr('encoding')||mp;form.setAttribute('target',id);if(!method||/post/i.test(method))form.setAttribute('method','POST');if(a!==s.url)form.setAttribute('action',s.url);if(!s.skipEncodingOverride&&(!method||/post/i.test(method)))$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});if(s.timeout)timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state&&state.toLowerCase()==='uninitialized')setTimeout(checkState,50);}catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);if(timeoutHandle)clearTimeout(timeoutHandle);timeoutHandle=undefined;}}var extraInputs=[];try{if(s.extraData)for(var n in s.extraData)if(s.extraData.hasOwnProperty(n))if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value'))extraInputs.push($('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value).appendTo(form)[0]);else extraInputs.push($('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]).appendTo(form)[0]);if(!s.iframeTarget)$io.appendTo($body);if(io.attachEvent)io.attachEvent('onload',cb);else io.addEventListener('load',cb,false);setTimeout(checkState,15);try{form.submit();}catch(err){var submitFn=document.createElement('form').submit;submitFn.apply(form);}}finally{form.setAttribute('action',a);form.setAttribute('enctype',et);if(t)form.setAttribute('target',t);else $form.removeAttr('target');$(extraInputs).remove();}}if(s.forceSync)doSubmit();else setTimeout(doSubmit,10);var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed)return;doc=getDoc(io);if(!doc){log('cannot access response document');e=SERVER_ABORT;}if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');deferred.reject(xhr,'timeout');return;}if(e===SERVER_ABORT&&xhr){xhr.abort('server abort');deferred.reject(xhr,'error','server abort');return;}if(!doc||doc.location.href===s.iframeSrc)if(!timedOut)return;if(io.detachEvent)io.detachEvent('onload',cb);else io.removeEventListener('load',cb,false);var status='success',errMsg;
237try{if(timedOut)throw 'timeout';var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML))if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header.toLowerCase()];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}var dt=(s.dataType||'').toLowerCase();var scr=/(json|script|text)/.test(dt);if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}else{if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre)xhr.responseText=pre.textContent?pre.textContent:pre.innerText;else{if(b)xhr.responseText=b.textContent?b.textContent:b.innerText;}}}}else{if(dt==='xml'&&!xhr.responseXML&&xhr.responseText)xhr.responseXML=toXml(xhr.responseText);}try{data=httpData(xhr,dt,s);}catch(err){status='parsererror';xhr.error=errMsg=(err||status);}}catch(err){log('error caught: ',err);status='error';xhr.error=errMsg=(err||status);}if(xhr.aborted){log('upload aborted');status=null;}if(xhr.status)status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error';if(status==='success'){if(s.success)s.success.call(s.context,data,'success',xhr);deferred.resolve(xhr.responseText,'success',xhr);if(g)$.event.trigger('ajaxSuccess',[xhr,s]);}else{if(status){if(typeof errMsg==='undefined')errMsg=xhr.statusText;if(s.error)s.error.call(s.context,xhr,status,errMsg);deferred.reject(xhr,'error',errMsg);if(g)$.event.trigger('ajaxError',[xhr,s,errMsg]);}}if(g)$.event.trigger('ajaxComplete',[xhr,s]);if(g&&!--$.active)$.event.trigger('ajaxStop');if(s.complete)s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)$io.remove();else $io.attr('src',s.iframeSrc);xhr.responseXML=null;},100);}var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}else doc=(new DOMParser()).parseFromString(s,'text/xml');return (doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null;};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0),data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror')if($.error)$.error('parsererror');if(s&&s.dataFilter)data=s.dataFilter(data,type);if(typeof data==='string')if((type==='json'||!type)&&ct.indexOf('json')>=0)data=JSON.parse(data);else{if((type==='script'||!type)&&ct.indexOf('javascript')>=0)$.globalEval(data);}return data;};return deferred;}};$.fn.ajaxForm=function(options,data,dataType,onSuccess){if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}options=options||{};options.delegation=options.delegation&&typeof $.fn.on==='function';if(!options.delegation&&this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}if(options.delegation){$(document).off('submit.form-plugin',this.selector,doAjaxSubmit).off('click.form-plugin',this.selector,captureSubmittingElement).on('submit.form-plugin',this.selector,options,doAjaxSubmit).on('click.form-plugin',this.selector,options,captureSubmittingElement);return this;}if(options.beforeFormUnbind)options.beforeFormUnbind(this,options);return this.ajaxFormUnbind().on('submit.form-plugin',options,doAjaxSubmit).on('click.form-plugin',options,captureSubmittingElement);};function doAjaxSubmit(e){var options=e.data;if(!e.isDefaultPrevented()){e.preventDefault();$(e.target).closest('form').ajaxSubmit(options);}}function captureSubmittingElement(e){var target=e.target;var $el=$(target);if(!$el.is('[type=submit],[type=image]')){var t=$el.closest('[type=submit]');if(t.length===0)return;target=t[0];}var form=target.form;form.clk=target;if(target.type==='image')if(typeof e.offsetX!=='undefined'){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset==='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);}$.fn.ajaxFormUnbind=function(){return this.off('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic,elements,filtering){var a=[];if(this.length===0)return a;var form=this[0];var formId=this.attr('id');var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements;var els2;if(els)els=$.makeArray(els);if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){els2=$(':input[form="'+formId+'"]').get();if(els2.length)els=(els||[]).concat(els2);}if(!els||!els.length)return a;
237if(typeof (filtering)==="function")els=$.map(els,filtering);var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n||el.disabled)continue;if(semantic&&form.clk&&el.type==='image'){if(form.clk===el){a.push({name:n,value:$(el).val(),type:el.type});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}continue;}v=$.fieldValue(el,true);if(v&&v.constructor===Array){if(elements)elements.push(el);for(j=0,jmax=v.length;j<jmax;j++)a.push({name:n,value:v[j]});}else if(feature.fileapi&&el.type==='file'){if(elements)elements.push(el);var files=el.files;if(files.length)for(j=0;j<files.length;j++)a.push({name:n,value:files[j],type:el.type});else a.push({name:n,value:'',type:el.type});}else{if(v!==null&&typeof v!=='undefined'){if(elements)elements.push(el);a.push({name:n,value:v,type:el.type,required:el.required});}}}if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type==='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n)return;var v=$.fieldValue(this,successful);if(v&&v.constructor===Array)for(var i=0,max=v.length;i<max;i++)a.push({name:n,value:v[i]});else{if(v!==null&&typeof v!=='undefined')a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length))continue;if(Array.isArray(v))val=val.concat(v);else val.push(v);}return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful==='undefined')successful=true;if(successful&&(!n||el.disabled||t==='reset'||t==='button'||(t==='checkbox'||t==='radio')&&!el.checked||(t==='submit'||t==='image')&&el.form&&el.form.clk!==el||tag==='select'&&el.selectedIndex===-1))return null;if(tag==='select'){var index=el.selectedIndex;if(index<0)return null;var a=[],ops=el.options;var one=(t==='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected&&!op.disabled){var v=op.value;if(!v)v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value;if(one)return v;a.push(v);}}return a;}return $(el).val().replace(rCRLF,'\r\n');};$.fn.clearForm=function(includeHidden){return this.each(function(){$('input,select,textarea',this).clearFields(includeHidden);});};$.fn.clearFields=$.fn.clearInputs=function(includeHidden){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag==='textarea')this.value='';else if(t==='checkbox'||t==='radio')this.checked=false;else if(tag==='select')this.selectedIndex=-1;else if(t==='file')if(/MSIE/.test(navigator.userAgent))$(this).replaceWith($(this).clone(true));else $(this).val('');else{if(includeHidden)if((includeHidden===true&&/hidden/.test(t))||(typeof includeHidden==='string'&&$(this).is(includeHidden)))this.value='';}});};$.fn.resetForm=function(){return this.each(function(){var el=$(this);var tag=this.tagName.toLowerCase();switch(tag){case 'input':this.checked=this.defaultChecked;case 'textarea':this.value=this.defaultValue;return true;case 'option':case 'optgroup':var select=el.parents('select');if(select.length&&select[0].multiple)if(tag==='option')this.selected=this.defaultSelected;else el.find('option').resetForm();else select.resetForm();return true;case 'select':el.find('option').each(function(i){this.selected=this.defaultSelected;if(this.defaultSelected&&!el[0].multiple){el[0].selectedIndex=i;return false;}});return true;case 'label':var forEl=$(el.attr('for'));var list=el.find('input,select,textarea');if(forEl[0])list.unshift(forEl[0]);list.resetForm();return true;case 'form':if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType))this.reset();return true;default:el.find('form,input,label,select,textarea').resetForm();return true;}}
237);};$.fn.enable=function(b){if(typeof b==='undefined')b=true;return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(typeof select==='undefined')select=true;return this.each(function(){var t=this.type;if(t==='checkbox'||t==='radio')this.checked=select;else{if(this.tagName.toLowerCase()==='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type==='select-one')$sel.find('option').selected(false);this.selected=select;}}});};$.fn.ajaxSubmit.debug=false;function log(){if(!$.fn.ajaxSubmit.debug)return;var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log)window.console.log(msg);else{if(window.opera&&window.opera.postError)window.opera.postError(msg);}}}));;
238/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
239((Drupal,drupalSettings)=>{Drupal.extlink=Drupal.extlink||{};Drupal.extlink.attach=(context,drupalSettings)=>{if(typeof drupalSettings.data==='undefined'||!drupalSettings.data.hasOwnProperty('extlink'))return;let extIconPlacement='append';if(drupalSettings.data.extlink.extIconPlacement&&drupalSettings.data.extlink.extIconPlacement!=='0')extIconPlacement=drupalSettings.data.extlink.extIconPlacement;const pattern=/^(([^:]+?\.)*)([^.:]+)((\.[a-z0-9]{1,253})*)(:[0-9]{1,5})?$/;const host=window.location.host.replace(pattern,'$2$3$6');const subdomain=window.location.host.replace(host,'');let subdomains;if(drupalSettings.data.extlink.extSubdomains)subdomains='([^/]*\\.)?';else if(subdomain==='www.'||subdomain==='')subdomains='(www\\.)?';else subdomains=subdomain.replace('.','\\.');let allowedDomains=false;if(drupalSettings.data.extlink.allowedDomains){allowedDomains=[];for(let i=0;i<drupalSettings.data.extlink.allowedDomains.length;i++)allowedDomains.push(new RegExp(`^https?:\\/\\/${drupalSettings.data.extlink.allowedDomains[i].replace(/(\r\n|\n|\r)/gm,'')}.*$`,'i'));}const internalLink=new RegExp(`^https?://([^@]*@)?${subdomains}${host}`,'i');let extInclude=false;if(drupalSettings.data.extlink.extInclude)extInclude=new RegExp(drupalSettings.data.extlink.extInclude.replace(/\\/,'\\'),'i');let extExclude=false;if(drupalSettings.data.extlink.extExclude)extExclude=new RegExp(drupalSettings.data.extlink.extExclude.replace(/\\/,'\\'),'i');let extExcludeNoreferrer=false;if(drupalSettings.data.extlink.extExcludeNoreferrer)extExcludeNoreferrer=new RegExp(drupalSettings.data.extlink.extExcludeNoreferrer.replace(/\\/,'\\'),'i');let extCssExclude=false;if(drupalSettings.data.extlink.extCssExclude)extCssExclude=drupalSettings.data.extlink.extCssExclude;let extCssInclude=false;if(drupalSettings.data.extlink.extCssInclude)extCssInclude=drupalSettings.data.extlink.extCssInclude;let extCssExplicit=false;if(drupalSettings.data.extlink.extCssExplicit)extCssExplicit=drupalSettings.data.extlink.extCssExplicit;const externalLinks=[];const mailtoLinks=[];const telLinks=[];const extlinks=context.querySelectorAll('a:not([data-extlink]), area:not([data-extlink])');extlinks.forEach((el)=>{try{let url='';if(typeof el.href==='string')url=el.href.toLowerCase();else{if(typeof el.href==='object')url=el.href.baseVal;}const isExtCssIncluded=extCssInclude&&(el.matches(extCssInclude)||el.closest(extCssInclude));if(url.indexOf('http')===0&&((!internalLink.test(url)&&!(extExclude&&extExclude.test(url)))||(extInclude&&extInclude.test(url))||isExtCssIncluded)&&!(extCssExclude&&el.matches(extCssExclude))&&!(extCssExclude&&el.closest(extCssExclude))&&!(extCssExplicit&&!el.closest(extCssExplicit))){let match=false;if(!isExtCssIncluded&&allowedDomains){for(let i=0;i<allowedDomains.length;i++)if(allowedDomains[i].test(url)){match=true;break;}}if(!match)externalLinks.push(el);}else{if(el.tagName!=='AREA'&&!(extCssExclude&&el.closest(extCssExclude))&&!(extCssExplicit&&!el.closest(extCssExplicit)))if(url.indexOf('mailto:')===0)mailtoLinks.push(el);else{if(url.indexOf('tel:')===0)telLinks.push(el);}}}catch(error){return false;}});const hasExtIcon=drupalSettings.data.extlink.extClass!=='0'&&drupalSettings.data.extlink.extClass!=='';const hasAdditionalExtClasses=drupalSettings.data.extlink.extAdditionalLinkClasses!=='';Drupal.extlink.applyClassAndSpan(externalLinks,'ext',hasExtIcon?extIconPlacement:null);if(hasAdditionalExtClasses)Drupal.extlink.applyClassAndSpan(externalLinks,drupalSettings.data.extlink.extAdditionalLinkClasses,null);const hasMailtoClass=drupalSettings.data.extlink.mailtoClass!=='0'&&drupalSettings.data.extlink.mailtoClass!=='';
239const hasAdditionalMailtoClasses=drupalSettings.data.extlink.extAdditionalMailtoClasses!=='';if(hasMailtoClass)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.mailtoClass,extIconPlacement);if(hasAdditionalMailtoClasses)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.extAdditionalMailtoClasses,null);const hasTelClass=drupalSettings.data.extlink.telClass!=='0'&&drupalSettings.data.extlink.telClass!=='';const hasAdditionalTelClasses=drupalSettings.data.extlink.extAdditionalTelClasses!=='0'&&drupalSettings.data.extlink.extAdditionalTelClasses!=='';if(hasTelClass)Drupal.extlink.applyClassAndSpan(telLinks,drupalSettings.data.extlink.telClass,extIconPlacement);if(hasAdditionalTelClasses)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.extAdditionalTelClasses,null);if(drupalSettings.data.extlink.extTarget){externalLinks.forEach((link,i)=>{if(!(drupalSettings.data.extlink.extTargetNoOverride&&link.matches('a[target]')))externalLinks[i].setAttribute('target','_blank');});externalLinks.forEach((link,i)=>{const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','noopener');return;}if(val.indexOf('noopener')>-1)if(val.indexOf('noopener')===-1)externalLinks[i].setAttribute('rel',`${val} noopener`);else{}else externalLinks[i].setAttribute('rel',`${val} noopener`);});}if(drupalSettings.data.extlink.extNofollow)externalLinks.forEach((link,i)=>{const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','nofollow');return;}let target='nofollow';if(drupalSettings.data.extlink.extFollowNoOverride)target='follow';if(val.indexOf(target)===-1)externalLinks[i].setAttribute('rel',`${val} nofollow`);});if(drupalSettings.data.extlink.extTitleNoOverride===false)externalLinks.forEach((link,i)=>{const oldTitle=link.getAttribute('title');let newTitle='';if(drupalSettings.data.extlink.extTargetAppendNewWindowDisplay)newTitle=drupalSettings.data.extlink.extTargetAppendNewWindowLabel;if(oldTitle!==null){if(Drupal.extlink.hasNewWindowText(oldTitle))return;newTitle=Drupal.extlink.combineLabels(oldTitle,newTitle);}if(newTitle)externalLinks[i].setAttribute('title',newTitle);});if(drupalSettings.data.extlink.extNoreferrer)externalLinks.forEach((link,i)=>{if(drupalSettings.data.extlink.extExcludeNoreferrer&&extExcludeNoreferrer.test(link.getAttribute('href')))return;const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','noreferrer');return;}externalLinks[i].setAttribute('rel',`${val} noreferrer`);});Drupal.extlink=Drupal.extlink||{};Drupal.extlink.popupClickHandler=Drupal.extlink.popupClickHandler||(()=>{if(drupalSettings.data.extlink.extAlert)return confirm(drupalSettings.data.extlink.extAlertText);});const _that=this;Drupal.extlink.handleClick=function(event){const shouldNavigate=Drupal.extlink.popupClickHandler.call(_that,event);if(typeof shouldNavigate!=='undefined'&&!shouldNavigate)event.preventDefault();};externalLinks.forEach((val,i)=>{externalLinks[i].removeEventListener('click',Drupal.extlink.handleClick);externalLinks[i].addEventListener('click',Drupal.extlink.handleClick);});};Drupal.extlink.hasNewWindowText=function(label){return label.toLowerCase().indexOf(Drupal.t('new window'))!==-1;};Drupal.extlink.combineLabels=function(labelA,labelB){labelA=labelA||'';labelB=labelB||'';if(!labelA.trim())return labelB;if(!labelB.trim())return labelA;const labelANoParens=labelA.trim().replace('(','').replace(')','');const labelBNoParens=labelB.trim().replace('(','').replace(')','');if(labelA===labelANoParens){if(labelB===labelBNoParens)return `${labelA}, ${labelB}`;return `${labelA} ${labelB}`;}if(labelB===labelBNoParens)return `${labelB} ${labelA}`;return `(${labelANoParens}, ${labelBNoParens})`;};Drupal.extlink.applyClassAndSpan=(links,className,iconPlacement)=>{let linksToProcess;if(drupalSettings.data.extlink.extImgClass)linksToProcess=links;else linksToProcess=links.filter((link)=>{return link.querySelector('img, svg')===null;});for(let i=0;i<linksToProcess.length;i++){if(className!=='0')linksToProcess[i].classList.add(className);if(className===drupalSettings.data.extlink.mailtoClass&&drupalSettings.data.extlink.extAdditionalMailtoClasse
239s)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalMailtoClasses);else if(className===drupalSettings.data.extlink.telClass&&drupalSettings.data.extlink.extAdditionalTelClasses)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalTelClasses);else{if(drupalSettings.data.extlink.extAdditionalLinkClasses)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalLinkClasses);}linksToProcess[i].setAttribute('data-extlink','');if(iconPlacement){let link=linksToProcess[i];if(drupalSettings.data.extlink.extPreventOrphan&&iconPlacement==='append'){let lastTextNode=link.lastChild;let trailingWhitespace=null;let parentNode=link;while(lastTextNode)if(lastTextNode.lastChild){parentNode=lastTextNode;lastTextNode=lastTextNode.lastChild;}else if(lastTextNode.nodeName==='#text'&&parentNode.lastElementChild&&lastTextNode.textContent.trim().length===0){trailingWhitespace=lastTextNode;parentNode=parentNode.lastElementChild;lastTextNode=parentNode.lastChild;}else break;if(lastTextNode&&lastTextNode.nodeName==='#text'&&lastTextNode.textContent.length>0){const lastText=lastTextNode.textContent;const lastWordRegex=new RegExp(/\S+\s*$/,'g');const lastWord=lastText.match(lastWordRegex);if(lastWord!==null){const breakPreventer=document.createElement('span');breakPreventer.classList.add('extlink-nobreak');breakPreventer.textContent=lastWord[0];if(trailingWhitespace){trailingWhitespace.textContent='';breakPreventer.append(trailingWhitespace.textContent);}lastTextNode.textContent=lastText.substring(0,lastText.length-lastWord[0].length);lastTextNode.parentNode.append(breakPreventer);link=breakPreventer;}}}let iconElement;if(drupalSettings.data.extlink.extUseFontAwesome){iconElement=document.createElement('span');iconElement.setAttribute('class',`fa-${className} extlink`);if(className===drupalSettings.data.extlink.mailtoClass){if(drupalSettings.data.extlink.mailtoLabel)link.ariaLabel=drupalSettings.data.extlink.mailtoLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_mailto',drupalSettings,iconPlacement);}else if(className===drupalSettings.data.extlink.extClass){if(drupalSettings.data.extlink.extLabel)link.ariaLabel=drupalSettings.data.extlink.extLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_extlink',drupalSettings,iconPlacement);}else{if(className===drupalSettings.data.extlink.telClass){if(drupalSettings.data.extlink.telLabel)link.ariaLabel=drupalSettings.data.extlink.telLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_tel',drupalSettings,iconPlacement);}}}else{iconElement=document.createElementNS('http://www.w3.org/2000/svg','svg');iconElement.setAttribute('focusable','false');iconElement.setAttribute('width','1em');iconElement.setAttribute('height','1em');iconElement.classList.add(className);iconElement.setAttribute('data-extlink-placement',iconPlacement);if(className===drupalSettings.data.extlink.mailtoClass)iconElement=Drupal.theme('extlink_mailto',iconElement,drupalSettings);else if(className===drupalSettings.data.extlink.extClass)iconElement=Drupal.theme('extlink_extlink',iconElement,drupalSettings);else{if(className===drupalSettings.data.extlink.telClass)iconElement=Drupal.theme('extlink_tel',iconElement,drupalSettings);}}iconElement.setAttribute('role','img');iconElement.setAttribute('aria-hidden',drupalSettings.data.extlink.extHideIcons);link[iconPlacement](iconElement);}}};Drupal.theme.extlink_fa_mailto=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaMailtoClasses}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_fa_extlink=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaLinkClasses}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_fa_tel=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaTelClasses}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_mailto=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.mailtoLabel);iconElement.setAttribute('viewBox','0 10 70 20');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.mailtoLabel}</title><path d="M56 14H8c-1.1 0-2 0.9-2 2v32c0 1.1 0.9 2 2 2h48c1.1 0 2-0.9 2-2V16C58 14.9 57.1 14 56 14zM50.5 18L32 33.4 13.5 18H50.5zM10 46V20.3l20.7 17.3C31.1 37.8 31.5 38 32 38s0.9-0.2 1.3-0.5L54 20.3V46H10z"/>`;return iconElement;};Drupal.theme.extlink_extlink=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.extLabel);iconElement.setAttribute('viewBox','0 0 80 40');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.extLabel}</title><path d="M48 26c-1.1 0-2 0.9-2 2v26H10V18h26c1.1 0 2-0.9 2-2s-0.9-2-2-2H8c-1.1 0-2 0.9-2 2v40c0 1.1 0.9 2 2 2h40c1.1 0 2-0.9 2-2V28C50 26.9 49.1 26 48 26z"/><path d="M56 6H44c-1.1 0-2 0.9-2 2s0.9 2 2 2h7.2L30.6 30.6c-0.8 0.8-0.8 2 0 2.8C31 33.8 31.5 34 32 34s1-0.2 1.4-0.6L54 12.8V20c0 1.1 0.9 2 2 2s2-0.9 2-2V8C58 6.9 57.1 6 56 6z"/>`;return iconElement;};Drupal.theme.extlink_tel=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.telLabel);iconElement.setAttribute('viewBox','0 0 181.352 181.352');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.telLabel}</title><path xmlns="http://www.w3.org/2000/svg" d="M169.393,167.37l-14.919,9.848c-9.604,6.614-50.531,14.049-106.211-53.404C-5.415,58.873,9.934,22.86,17.134,14.555L29.523,1.678c2.921-2.491,7.328-2.198,9.839,0.811l32.583,38.543l0.02,0.02c2.384,2.824,2.306,7.22-0.83,9.868v0.029l-14.44,10.415c-5.716,5.667-0.733,14.587,5.11,23.204l27.786,32.808c12.926,12.477,20.009,18.241,26.194,14.118l12.008-13.395c2.941-2.472,7.328-2.169,9.839,0.821l32.603,38.543v0.02C172.607,160.316,172.519,164.703,169.393,167.37z"/>`;return iconElement;};Drupal.behaviors.extlink=Drupal.behaviors.extlink||{};Drupal.behaviors.extlink.attach=(context,drupalSettings)=>{if(typeof extlinkAttach==='function')extlinkAttach(context);else Drupal.extlink.attach(context,drupalSettings);};})(Drupal,drupalSettings);;
240(function($,Drupal){Drupal.behaviors.fileValidateAutoAttach={attach(context,settings){const $context=$(context);let elements;function initFileValidation(selector){$(once('fileValidate',$context.find(selector))).on('change.fileValidate',{extensions:elements[selector]},Drupal.file.validateExtension);}
240if(settings.file?.elements){elements=settings.file.elements;Object.keys(elements).forEach(initFileValidation);}},detach(context,settings,trigger){const $context=$(context);let elements;function removeFileValidation(selector){$(once.remove('fileValidate',$context.find(selector))).off('change.fileValidate',Drupal.file.validateExtension);}if(trigger==='unload'&&settings.file?.elements){elements=settings.file.elements;Object.keys(elements).forEach(removeFileValidation);}}};Drupal.behaviors.fileAutoUpload={attach(context){$(once('auto-file-upload','input[type="file"]',context)).on('change.autoFileUpload',Drupal.file.triggerUploadButton);},detach(context,settings,trigger){if(trigger==='unload')$(once.remove('auto-file-upload','input[type="file"]',context)).off('.autoFileUpload');}};Drupal.behaviors.fileButtons={attach(context){const $context=$(context);$context.find('.js-form-submit').on('mousedown',Drupal.file.disableFields);$context.find('.js-form-managed-file .js-form-submit').on('mousedown',Drupal.file.progressBar);},detach(context,settings,trigger){if(trigger==='unload'){const $context=$(context);$context.find('.js-form-submit').off('mousedown',Drupal.file.disableFields);$context.find('.js-form-managed-file .js-form-submit').off('mousedown',Drupal.file.progressBar);}}};Drupal.behaviors.filePreviewLinks={attach(context){$(context).find('div.js-form-managed-file .file a').on('click',Drupal.file.openInNewWindow);},detach(context){$(context).find('div.js-form-managed-file .file a').off('click',Drupal.file.openInNewWindow);}};Drupal.file=Drupal.file||{validateExtension(event){event.preventDefault();$('.file-upload-js-error').remove();const extensionPattern=event.data.extensions.replace(/,\s*/g,'|');if(extensionPattern.length>1&&this.value.length>0){const acceptableMatch=new RegExp(`\\.(${extensionPattern})$`,'gi');if(!acceptableMatch.test(this.value)){const error=Drupal.t('The selected file %filename cannot be uploaded. Only files with the following extensions are allowed: %extensions.',{'%filename':this.value.replace('C:\\fakepath\\',''),'%extensions':extensionPattern.replace(/\|/g,', ')});$(this).closest('div.js-form-managed-file').prepend(`<div class="messages messages--error file-upload-js-error" aria-live="polite">${error}</div>`);this.value='';event.stopImmediatePropagation();}}},triggerUploadButton(event){$(event.target).closest('.js-form-managed-file').find('.js-form-submit[data-drupal-selector$="upload-button"]').trigger('mousedown');},disableFields(event){const $clickedButton=$(this);$clickedButton.trigger('formUpdated');let $enabledFields=[];if($clickedButton.closest('div.js-form-managed-file').length>0)$enabledFields=$clickedButton.closest('div.js-form-managed-file').find('input.js-form-file');const $fieldsToTemporarilyDisable=$('div.js-form-managed-file input.js-form-file').not($enabledFields).not(':disabled');$fieldsToTemporarilyDisable.prop('disabled',true);setTimeout(()=>{$fieldsToTemporarilyDisable.prop('disabled',false);},1000);},progressBar(event){const $clickedButton=$(this);const $progressId=$clickedButton.closest('div.js-form-managed-file').find('input.file-progress');if($progressId.length){const originalName=$progressId.attr('name');$progressId.attr('name',originalName.match(/APC_UPLOAD_PROGRESS|UPLOAD_IDENTIFIER/)[0]);setTimeout(()=>{$progressId.attr('name',originalName);},1000);}setTimeout(()=>{$clickedButton.closest('div.js-form-managed-file').find('div.ajax-progress-bar').slideDown();},500);$clickedButton.trigger('fileUpload');},openInNewWindow(event){event.preventDefault();$(this).attr('target','_blank');window.open(this.href,'filePreview','toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=500,height=550');}};})(jQuery,Drupal);;
241(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);;
242(function($,Drupal){'use strict';Drupal.theme.progressBar=function(id){return '<div class="progress-wrapper" aria-live="polite">'+'<div class="message"></div>'+'<div id ="'+id+'" class="progress progress-striped active">'+'<div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0">'+'<span class="percentage"></span>'+'</div>'+'</div>'+'<div class="progress-label"></div>'+'</div>';};$.extend(Drupal.ProgressBar.prototype,{setProgress:function(percentage,message,label){if(percentage>
242=0&&percentage<=100){$(this.element).find('.progress-bar').css('width',percentage+'%').attr('aria-valuenow',percentage);$(this.element).find('.percentage').html(percentage+'%');}if(message){message=message.replace(/<br\/>&nbsp;|\s*$/,'');$('.message',this.element).html(message);}if(label)$('.progress-label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},displayError:function(string){var error=$('<div class="alert alert-block alert-error"><button class="close" data-dismiss="alert">&times;</button><h4>'+Drupal.t('Error message')+'</h4></div>').append(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);;
243/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
244loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;
244for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();;
245/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
246(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);;
247((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){this.messageWrapper.querySelectorAll('[data-drupal-message-id]').forEach((message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);;
248(function($,Drupal){Drupal.Message.getMessageTypeClass=function(type){var classes=this.getMessageTypeClasses();return 'alert alert-'+(classes[type]||'success');};Drupal.Message.getMessageTypeClasses=function(){return {status:'success',error:'danger',warning:'warning',info:'info'};};Drupal.Message.getMessageTypeLabel=function(type){var labels=this.getMessageTypeLabels();return labels[type];};Drupal.Message.getMessageTypeLabels=function(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message'),info:Drupal.t('Informative message')};};Drupal.Message.getMessageTypeRole=function(type){var labels=this.getMessageTypeRoles();return labels[type];};Drupal.Message.getMessageTypeRoles=function(){return {status:'status',error:'alert',warning:'alert',info:'status'};};Drupal.theme.message=function(message,options){options=options||{};var wrapper=Drupal.theme('messageWrapper',options.id||(new Date()).getTime(),options.type||'status');if(options.dismissible===void 0||!!options.dismissible){wrapper.classList.add('alert-dismissible');wrapper.appendChild(Drupal.theme('messageClose'));}wrapper.appendChild(Drupal.theme('messageContents',message&&message.text));return wrapper;};Drupal.theme.messageWrapper=function(id,type){var wrapper=document.createElement('div');var label=Drupal.Message.getMessageTypeLabel(type);wrapper.setAttribute('class',Drupal.Message.getMessageTypeClass(type));wrapper.setAttribute('role',Drupal.Message.getMessageTypeRole(type));wrapper.setAttribute('aria-label',label);wrapper.setAttribute('data-drupal-message-id',id);wrapper.setAttribute('data-drupal-message-type',type);if(label)wrapper.appendChild(Drupal.theme('messageLabel',label));return wrapper;};Drupal.theme.messageClose=function(){var element=document.createElement('button');element.setAttribute('class','close');element.setAttribute('type','button');element.setAttribute('role','button');element.setAttribute('data-dismiss','alert');element.setAttribute('aria-label',Drupal.t('Close'));element.innerHTML='<span aria-hidden="true">&times;</span>';return element;};Drupal.theme.messageLabel=function(label){var element=document.createElement('h2');element.setAttribute('class','sr-only');element.innerHTML=label;return element;};Drupal.theme.messageContents=function(html){var element=document.createElement('p');element.innerHTML=''+html;return element;};})(window.jQuery,window.Drupal);;
249(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={url:$(el.form).attr('action'),setClick:true,event:'click',progress:{type:'throbber'},base:el.id,element:el};Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>
249{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element?.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=JSON.parse(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
249d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
249$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&typeof settings.isInProgress==='function'&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);;
250(function($,window,Drupal,drupalSettings){Drupal.Ajax.prototype.findGlyphicon=function(element){return $(element).closest('.form-item').find('.ajax-progress.glyphicon');};Drupal.Ajax.prototype.glyphiconStart=function(element,message){var $glyphicon=this.findGlyphicon(element);if($glyphicon[0]){$glyphicon.addClass('glyphicon-spin');if($.fn.tooltip&&drupalSettings.bootstrap.tooltip_enabled){$glyphicon.removeAttr('data-toggle').removeAttr('data-original-title').removeAttr('title').tooltip('destroy');;if(message)$glyphicon.attr('data-toggle','tooltip').attr('title',message).tooltip();}if(message)$glyphicon.parent().append('<div class="sr-only message">'+message+'</div>');}return $glyphicon;};Drupal.Ajax.prototype.glyphiconStop=function(element){var $glyphicon=this.findGlyphicon(element);if($glyphicon[0]){$glyphicon.removeClass('glyphicon-spin');if($.fn.tooltip&&drupalSettings.bootstrap.tooltip_enabled){$glyphicon.removeAttr('data-toggle').removeAttr('data-original-title').removeAttr('title').tooltip('destroy');;}}};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){var $element=$(this.element);var $glyphicon=this.glyphiconStart($element,this.progress.message);if($glyphicon[0]){this.progress.element=$glyphicon.parent();this.progress.glyphicon=true;return;}if(!this.progress.element)this.progress.element=$(Drupal.theme('ajaxThrobber'));if(this.progress.message)this.progress.element.after('<div class="message">'+this.progress.message+'</div>');if($element.is('input')||$element.is('select'))$element.after(this.progress.element);else $element.append(this.progress.element);};var success=Drupal.Ajax.prototype.success;Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)this.progress.element.parent().find('.message').remove();return success.apply(this,[response,status]);};})(jQuery,this,Drupal,drupalSettings);;
251(function(Drupal){Drupal.AjaxCommands.prototype.gtagEvent=function(ajax,response){gtag('event',response.event_name,response.data);};})(Drupal);;
252var dataLayerPush=function(obj){if(typeof dataLayer!=='undefined')dataLayer.push(obj);};(function($,Drupal){jQuery(document).ready(function(){var event="eventGA";var categoryGA="";var actionGA="";var labelGA="";var valueGA="0";var nonInteraction="false";setTimeout(function(){$('header #block-languageblock ul.menu--user-profiles li a').on('click',function(e){dataLayerPush({"event":'click_header',"element_text":$(this).text()});});},500);$('.path-pierre-fabre-search').each(function(){dataLayerPush({"event":'view_search_results',"search_results_number":$(this).find('.total-result p').text(),"search_term":$(this).find('#edit-aggregated-field').val()});});$("#views-exposed-form-pierre-fabre-search-page-1").on('submit',function(e){dataLayerPush({"event":'search',"search_term":$(this).serializeArray()[0]?$(this).serializeArray()[0].value:""});});setTimeout(function(){$('header .search-form').submit(function(){dataLayerPush({"event":'search',"search_term":$(this).serializeArray()[0]?$(this).serializeArray()[0].value:""});});},500);var focusedForm=false;$('.page-node-type-pharmacovigilance-form form[id^="webform"],.path-sqli-contact form#sqli-contact-form, #webform-submission-kontakt-add-form').on('focusin',function(event){if(!focusedForm){dataLayerPush({'event':'form_start','form_id':$(this).attr('id'),'form_name':$('.breadcrumb .active').text().trim()});focusedForm=true;}});$('#sqli-contact-form').submit(function(){var topicTid=undefined;var gtmContact='';var formData=$(this).serializeArray();for(var i=0;i<formData.length;i++)if(formData[i].name=="sqli_contact_topic"){topicTid=formData[i].value;continue;}gtmContact=$('#edit-sqli-contact-topic option[value="'+topicTid+'"]').text();sessionStorage.setItem('gtm_contact_topic',gtmContact);});setTimeout(function(){if($('#sqli-contact-form').length>0){if(sessionStorage.getItem('gtm_contact_topic')!=null&&$('.form-item--error-message').length==0&&$('.contact-form-errors-wrapper p').first().text()==""){dataLayerPush({'event':'form_submit','form_id':'sqli-contact-form','form_name':$('.breadcrumb .active').text().trim(),'form_subject':sessionStorage.getItem('gtm_contact_topic'),'form_submit_text':$('#pf\\.contact_form\\.submit\\.btn').text().trim()});sessionStorage.removeItem('gtm_contact_topic');}}else{if(sessionStorage.getItem('gtm_contact_topic')!=null)sessionStorage.removeItem('gtm_contact_topic');}},5000);$('#webform-submission-kontakt-add-form').submit(function(){var topicTid=undefined;var gtmContact='';var formData=$(this).serializeArray();for(var i=0;i<formData.length;i++)if(formData[i].name=="temat_select"){topicTid=formData[i].value;continue;}sessionStorage.setItem('gtm_kontakt_topic',topicTid);});setTimeout(function(){if($('#webform-submission-kontakt-add-form').length>0){if(sessionStorage.getItem('gtm_kontakt_topic')!=null&&$('.form-item--error-message').length==0){dataLayerPush({'event':'form_submit','form_id':'webform-submission-kontakt-add-form','form_name':$('.breadcrumb .active').text().trim(),'form_subject':sessionStorage.getItem('gtm_kontakt_topic'),'form_submit_text':$('#webform-submission-kontakt-add-form #edit-actions-submit').text().trim()});sessionStorage.removeItem('gtm_kontakt_topic');}}else{if(sessionStorage.getItem('gtm_kontakt_topic')!=null)sessionStorage.removeItem('gtm_kontakt_topic');}},5000);$('.page-node-type-pharmacovigilance-form form[id^="webform"]').submit(function(){sessionStorage.setItem('gtm_pharma_form','valid');});setTimeout(function(){if($('.page-node-type-pharmacovigilance-form form[id^="webform"]').length>0){if(sessionStorage.getItem('gtm_pharma_form')!=null&&$('.form-item--error-message').length==0){dataLayerPush({'event':'form_submit','form_id':$('.page-node-type-pharmacovigilance-form form[id^="webform"]').attr('id'),'form_name':$('.breadcrumb .active').text().trim(),'form_subject':null,'form_submit_text':$('#pf\\.pharmacovigilance_contact_form\\.submit_btn').text().trim()});sessionStorage.removeItem('gtm_pharma_form');}}else{if(sessionStorage.getItem('gtm_pharma_form')!=null)sessionStorage.removeItem('gtm_pharma_form');}},5000);$(' .video-wrapper , .paragraph--type--segment-video-text , .icon-player').click(function(){var videoname=$(this).find('img').attr('alt');var push=function(videoname){if(typeof dataLayer!=='undefined')dataLayer.push({"event":"eventGA","categoryGA":"Youtube video","actionGA":"Play youtube video","labelGA":videoname,"valueGA":"0","nonInteraction":"false"});};if(!$(this).hasClass('pushed')&&$(this).hasClass('icon-player')){push(videoname);$(this).addClass('pushed');}if(!jQuery(this).hasClass('pushed')&&$(this).find('.icon-player').length>0){push(videoname);$(this).addClass('pushed');}});$(".gtm:not('nav') a").on('click',function(){if($(this).parents('.gtm').first().data("categoryga"))categoryGA=$(this).parents('.gtm').first().data("categoryga");if($(this).parents('.gtm').first().data("actionga"))actionGA=$(this).parents('.gtm').first().data("actionga");if($(this).parents('.gtm').first().data("labelga"))labelGA=$(this).parents('.gtm').first().data("labelga");
252if(typeof dataLayer!=='undefined')dataLayer.push({"event":event,"categoryGA":categoryGA,"actionGA":actionGA,"labelGA":labelGA,"valueGA":valueGA,"nonInteraction":nonInteraction});});$("a.gtm").on('click',function(){if($(this).data("categoryga"))categoryGA=$(this).data("categoryga");if($(this).data("actionga"))actionGA=$(this).data("actionga");if($(this).data("labelga"))labelGA=$(this).data("labelga");if(typeof dataLayer!=='undefined')dataLayer.push({"event":event,"categoryGA":categoryGA,"actionGA":actionGA,"labelGA":labelGA,"valueGA":valueGA,"nonInteraction":nonInteraction});});$(".path-frontpage #actuality  .views-row article a").on('click',function(){if($(this).data("categoryga"))categoryGA=$(this).data("categoryga");if($(this).data("actionga"))actionGA=$(this).data("actionga");if($(this).data("labelga"))labelGA=$(this).data("labelga");if(typeof dataLayer!=='undefined')dataLayer.push({"event":event,"categoryGA":categoryGA,"actionGA":actionGA,"labelGA":labelGA,"valueGA":valueGA,"nonInteraction":nonInteraction});});var menuMap={'main':'Menu','usefull-menu':'Useful Links','footer':'Others Links'};$("nav.gtm ul.menu li a").on('click',function(){if($(this).parents('nav.gtm').first().data("categoryga"))categoryGA=$(this).parents('nav.gtm').first().data("categoryga");if($(this).parents('ul.menu').first().data("menu")){var menuName=$(this).parents('ul.menu').first().data("menu");actionGA=menuMap[menuName];}if($(this).text())labelGA=$(this).text();if(typeof dataLayer!=='undefined')dataLayer.push({"event":event,"categoryGA":categoryGA,"actionGA":actionGA,"labelGA":labelGA,"valueGA":valueGA,"nonInteraction":nonInteraction});});$('header #search-form').submit(function(){categoryGA="Header";actionGA="Search Terms";labelGA=$(this).serializeArray()[0].value;if(typeof dataLayer!=='undefined')dataLayer.push({"event":event,"categoryGA":categoryGA,"actionGA":actionGA,"labelGA":labelGA,"valueGA":valueGA,"nonInteraction":nonInteraction});});$(document).ajaxComplete(function(){$("#views-exposed-form-pf-news-list-block-news .form-item-field-news-tags-target-id-1 .select-wrapper ul li span").on('click',function(){categoryGA="Mediaroom page";actionGA="Filters_Category";labelGA=$(this).text();if(typeof dataLayer!=='undefined')dataLayer.push({"event":event,"categoryGA":categoryGA,"actionGA":actionGA,"labelGA":labelGA,"valueGA":valueGA,"nonInteraction":nonInteraction});});});$(".view-display-id-date_filter .views-field-field-year .field-content span").on('click',function(){categoryGA="Our history";actionGA="Date clicked";labelGA=$(this).text();if(typeof dataLayer!=='undefined')dataLayer.push({"event":event,"categoryGA":categoryGA,"actionGA":actionGA,"labelGA":labelGA,"valueGA":valueGA,"nonInteraction":nonInteraction});});function shareEventHandler(evt){switch(evt.type){case "addthis.menu.share":var url=evt.data.url.split('/');var title=$('.region.region-content h1').first().text();if($('article.job-offer').length>0){categoryGA='Job offer';actionGA=evt.data.service;labelGA=title;}else if($('article.news').length>0){categoryGA="Articles";actionGA=evt.data.service;labelGA=title;}else if($('article.press-release').length>0){categoryGA='Press Release';actionGA=evt.data.service;labelGA=title;}else{categoryGA=url[url.length-2];actionGA=evt.data.service;labelGA=title;}if(typeof dataLayer!=='undefined')dataLayer.push({"event":event,"categoryGA":categoryGA,"actionGA":actionGA,"labelGA":labelGA,"valueGA":valueGA,"nonInteraction":nonInteraction});break;}evt.preventDefault();document.location.reload();}setTimeout(function(){if(typeof addthis!=='undefined')addthis.addEventListener('addthis.menu.share',shareEventHandler);},1000);$('#sqli-contact-form').submit(function(){var topicTid=undefined;var gtmContact='';var formData=$(this).serializeArray();for(var i=0;i<formData.length;i++)if(formData[i].name=="sqli_contact_topic"){topicTid=formData[i].value;continue;}gtmContact=$('#edit-sqli-contact-topic option[value="'+topicTid+'"]').text()+' : '+$('#edit-sqli-contact-subjet').val();sessionStorage.setItem('gtm_contact_topic',gtmContact);});setTimeout(function(){if($('#sqli-contact-form').length>0){if(sessionStorage.getItem('gtm_contact_topic')!=null&&$('.form-item--error-message').length==0&&$('.contact-form-errors-wrapper p').first().text()==""){categoryGA="Contact page";actionGA="Successfull contact send";labelGA=sessionStorage.getItem('gtm_contact_topic');if(typeof dataLayer!=='undefined')dataLayer.push({"event":event,"categoryGA":categoryGA,"actionGA":actionGA,"labelGA":labelGA,"valueGA":valueGA,"nonInteraction":nonInteraction});sessionStorage.removeItem('gtm_contact_topic');}}else{if(sessionStorage.getItem('gtm_contact_topic')!=null)sessionStorage.removeItem('gtm_contact_topic');}},5000);});})(jQuery,Drupal);;
253(function($,Drupal,once){'use strict';Drupal.behaviors.simplePopupBlocks={attach:function(context,settings){var popup_settings=drupalSettings.simple_popup_blocks.settings,_html=document.documentElement,windowWidth=$(window).width();$.each(popup_settings,function(index,values){if(windowWidth<values.trigger_width)return null;;var modal_class='',block_id=values.identifier,visit_counts_arr=values.visit_counts.split(','),allow_cookie=true,read_cookie='',cookie_val=1,cookie_days=(values.cookie_expiry!==undefined&&values.cookie_expiry!==null)?values.cookie_expiry:100,match=0,css_identity='',spb_popup_id='',modal_close_class='',modal_minimize_class='',modal_minimized_class='',layout_class='',class_exists=false,delays='',browser_close_trigger=true,use_time_frequency=values.use_time_frequency,time_frequency=values.time_frequency,time_frequency_cookie=0,next_popup=0,current_timestamp=0,show_minimized_button=values.show_minimized_button,show_model=true;if(visit_counts_arr.length==1&&visit_counts_arr[0]==0&&use_time_frequency==0)allow_cookie=false;var element=document.getElementById(block_id);if(typeof (element)!='undefined'&&element!=null)if(allow_cookie==true)if(use_time_frequency==0){read_cookie=readCookie('spb_'+block_id);if(read_cookie){cookie_val=+read_cookie+1;createCookie('spb_'+block_id,cookie_val,cookie_days);}else createCookie('spb_'+block_id,cookie_val,cookie_days);cookie_val=cookie_val.toString();match=$.inArray(cookie_val,visit_counts_arr);if(match===-1)show_model=false;}else{time_frequency_cookie=readCookie('spb_time'+block_id);current_timestamp=Math.floor(Date.now()/1000);next_popup=current_timestamp+parseInt(time_frequency,10);if(time_frequency_cookie){if(current_timestamp>=time_frequency_cookie)match=1;else if(next_popup<=time_frequency_cookie)match=1;else{match=-1;show_model=false;}if(match===1)createCookie('spb_time'+block_id,next_popup,cookie_days);}else createCookie('spb_time'+block_id,next_popup,cookie_days);}css_identity='.';if(values.css_selector==1)css_identity='#';spb_popup_id='spb-'+block_id;modal_class=block_id+'-modal';modal_close_class=block_id+'-modal-close';modal_minimize_class=block_id+'-modal-minimize';modal_minimized_class=block_id+'-modal-minimized';layout_class='.'+modal_class+' .spb-popup-main-wrapper';
253once('wrap-arround',css_identity+block_id).forEach(function(elem){$(elem).wrap($('<div class="'+modal_class+'"></div>'));});once('hide-popup','.'+modal_class).forEach(function(elem){$(elem).hide();});if($(css_identity+block_id).closest('.spb-popup-main-wrapper').length)return;$(css_identity+block_id).wrap($('<div class="spb-popup-main-wrapper"></div>'));$('.'+modal_class).wrap('<div id="'+spb_popup_id+'" class="simple-popup-blocks-global"></div>');$(css_identity+block_id).before($('<div class="spb-controls"></div>'));class_exists=$('#'+spb_popup_id).hasClass('simple-popup-blocks-global');if(!class_exists)return true;if(values.minimize==="1"){$("#"+spb_popup_id+" .spb-controls").prepend($('<button type="button" aria-label="Dismiss modal" class="'+modal_minimize_class+' spb_minimize">&minus;</button>'));$('.'+modal_class).before($('<button type="button" aria-label="Open modal" class="'+modal_minimized_class+' spb_minimized">&plus;</button>'));}if(values.close==1)$("#"+spb_popup_id+" .spb-controls").prepend($('<button type="button" aria-label="Close modal" class="'+modal_close_class+' spb_close">&times;</button>'));if(values.overlay==1)$('.'+modal_class).addClass('spb_overlay');switch(values.layout){case 0:$(layout_class).addClass('spb_top_left');$(layout_class).css({'width':values.width});break;case '1':$(layout_class).addClass('spb_top_right');$(layout_class).css({'width':values.width});break;case '2':$(layout_class).addClass('spb_bottom_left');$(layout_class).css({'width':values.width});break;case '3':$(layout_class).addClass('spb_bottom_right');$(layout_class).css({'width':values.width});break;case '4':$(layout_class).addClass('spb_center');$(layout_class).css({'width':values.width,'margin-left':-values.width/2});break;case '5':$(layout_class).addClass('spb_top_center');$(layout_class).css({'width':values.width});break;case '6':$(layout_class).addClass('spb_top_bar');$(layout_class).css({});break;case '7':$(layout_class).addClass('spb_bottom_bar');$(layout_class).css({});break;case '8':$(layout_class).addClass('spb_left_bar');$(layout_class).css({'width':values.width});break;case '9':$(layout_class).addClass('spb_right_bar');$(layout_class).css({'width':values.width});break;}if(show_model===true)if(values.trigger_method==0&&values.delay>0){delays=values.delay*1000;$(css_identity+block_id).show();$('.'+modal_class).delay(delays).fadeIn('slow');if(values.overlay==1)setTimeout(stopTheScroll,delays);}else if(values.trigger_method==0){$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();}else if(values.trigger_method==1)$(document).on('click',values.trigger_selector,function(e){$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();return false;});else{if(values.trigger_method==2)$(_html).mouseleave(function(e){if(e.clientY>20)return;if(!browser_close_trigger)return;browser_close_trigger=false;$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();});}$('.'+modal_close_class).click(function(){$('.'+modal_class).hide();startTheScroll();});$('.'+modal_minimize_class).click(function(){$('.'+modal_class).hide();startTheScroll();$('.'+modal_minimized_class).show();});$('.'+modal_minimized_class).click(function(){$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();if(show_minimized_button==0)$('.'+modal_minimized_class).hide();});if(values.enable_escape==1)$(document).keyup(function(e){if(e.keyCode==27){$('.'+modal_class).hide();startTheScroll();$('.'+modal_minimized_class).show();}});if(show_minimized_button==0)$('.'+modal_minimized_class).hide();});}};function stopTheScroll(){$('body').css({'overflow':'hidden'});$('.simple-popup-blocks-global input:text').focus();}function startTheScroll(){$('body').css({'overflow':''});}function createCookie(name,value,days){if(days>0){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires='; expires='+date.toGMTString();}else var expires='';document.cookie=name+'='+value+expires+'; path=/ ; secure ; sameSite=Lax';}function readCookie(name){var nameEQ=name+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}return null;}})(jQuery,Drupal,once);;
254(function($,Drupal,once){'use strict';Drupal.behaviors.sqliCountrySelector={attach:function(context){let toucheEvent='click';if("ontouchstart" in document.documentElement)toucheEvent='touchend';function setCookieOnClickForLinksInCountrySelectorBlock(){block.find('a.country-link, a.lang-item').on(toucheEvent,function(e){e.stopPropagation();let href=$(this).attr('href');const lastChar=href.at(-1);if(lastChar==="/")href=href.substring(0,href.length-1);const prefix=(href.split('/')).slice(-1);_setCookie('pf.country-selector',prefix[0],7);});}const block=$('#spb-block-countryselectorblock');if(block.length){const cookie=_getCookie('pf.country-selector')?_getCookie('pf.country-selector'):'';
254const currentLang=block.find('.pf-country-selector-intro').attr('data-lang');if(cookie===''&&$('body.path-frontpage').length>0)block.fadeIn();else block.css("display","none");$('.language-dropdown a:not(.js-select-country)').on(toucheEvent,function(e){e.stopPropagation();let href=$(this).attr('href');const prefix=(href.split('/'));_setCookie('pf.country-selector',prefix[1],7);});setCookieOnClickForLinksInCountrySelectorBlock();block.find("#block-countryselectorblock, #block-countryselectorblock *:not(.country-link):not(.lang-item)").on(toucheEvent,function(e){e.stopPropagation();});block.find('.spb-controls, .spb-controls .spb_close, .spb_overlay').on(toucheEvent,function(e){e.stopPropagation();_setCookie('pf.country-selector',currentLang,7);block.css("display","none");});$(document).on(toucheEvent,'.js-select-country',function(e){block.fadeIn();block.find('.spb_overlay').removeAttr('style');});}$(document).ready(function(){if($('#block-countryselectorblock').length>0)$(once('submenuMobile','#block-countryselectorblock',context)).each(function(){const wrapper=$('#block-countryselectorblock');wrapper.find('.pf-country-selector-continent-name, .pf-country-selector-continent-name span').on(toucheEvent,function(e){e.stopPropagation();let parent=$(this).parents('.pf-country-selector-continent').clone();parent.find('.pf-country-selector-continent-name').addClass('mobile-caret-return icon-arrow-validate');parent.find('> div').show();setTimeout(function(){wrapper.find('.mobile-submenu-container .for-level-2').html(parent.html());wrapper.find('.js-lvl-1').hide();wrapper.find('.js-lvl-2').fadeIn();setCookieOnClickForLinksInCountrySelectorBlock();wrapper.find('.pf-country-selector-continent-name.mobile-caret-return, .pf-country-selector-continent-name.mobile-caret-return span').on(toucheEvent,function(e){e.stopPropagation();wrapper.find('.js-lvl-2').hide();wrapper.find('.mobile-submenu-container .for-level-2').html('');wrapper.find('.js-lvl-1').show();});},300);});});});}};})(jQuery,Drupal,once);;
255(function($,Drupal,debounce){const cache={right:0,left:0,bottom:0,top:0};const cssVarPrefix='--drupal-displace-offset';const documentStyle=document.documentElement.style;const offsetKeys=Object.keys(cache);const offsetProps={};offsetKeys.forEach((edge)=>{offsetProps[edge]={enumerable:true,get(){return cache[edge];},set(value){if(value!==cache[edge])documentStyle.setProperty(`${cssVarPrefix}-${edge}`,`${value}px`);cache[edge]=value;}};});const offsets=Object.seal(Object.defineProperties({},offsetProps));function getRawOffset(el,edge){const $el=$(el);const documentElement=document.documentElement;let displacement=0;const horizontal=edge==='left'||edge==='right';let placement=$el.offset()[horizontal?'left':'top'];placement-=window[`scroll${horizontal?'X':'Y'}`]||document.documentElement[`scroll${horizontal?'Left':'Top'}`]||0;switch(edge){case 'top':displacement=placement+$el.outerHeight();break;case 'left':displacement=placement+$el.outerWidth();break;case 'bottom':displacement=documentElement.clientHeight-placement;break;case 'right':displacement=documentElement.clientWidth-placement;break;default:displacement=0;}return displacement;}function calculateOffset(edge){let edgeOffset=0;document.querySelectorAll(`[data-offset-${edge}]`).forEach((el)=>{if(el.style.display==='none')return;let displacement=parseInt(el.getAttribute(`data-offset-${edge}`),10);if(isNaN(displacement))displacement=getRawOffset(el,edge);edgeOffset=Math.max(edgeOffset,displacement);});return edgeOffset;}function displace(broadcast=true){const newOffsets={};offsetKeys.forEach((edge)=>{newOffsets[edge]=calculateOffset(edge);});offsetKeys.forEach((edge)=>{offsets[edge]=newOffsets[edge];});if(broadcast)$(document).trigger('drupalViewportOffsetChange',offsets);return offsets;}Drupal.behaviors.drupalDisplace={attach(){if(this.displaceProcessed)return;this.displaceProcessed=true;$(window).on('resize.drupalDisplace',debounce(displace,200));}};Drupal.displace=displace;Object.defineProperty(Drupal.displace,'offsets',{value:offsets,writable:false});Drupal.displace.calculateOffset=calculateOffset;})(jQuery,Drupal,Drupal.debounce);;
256(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===Node.DOCUMENT_NODE)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>
2560&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===Node.DOCUMENT_NODE;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
256if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);;
257(function($,Drupal,Bootstrap,Attributes){'use strict';var $document=$(document);Bootstrap.modalFindFocusableElement=function(modal){return modal.$dialogBody.find(':input,:button,.btn').not('.visually-hidden,.sr-only');};$document.on('shown.bs.modal',function(e){var $modal=$(e.target);var modal=$modal.data('bs.modal');var $ckeditor=$modal.find('[data-ckeditor5-id]');if($ckeditor.length){$('.ck-body-wrapper').appendTo($modal);$('.ck-body-wrapper .ck-body>div').each(function(){$(this).css('margin-top',-window.scrollY+'px');});}if(modal&&modal.options.focusInput){var $focusable=Bootstrap.modalFindFocusableElement(modal);if($focusable&&$focusable[0]){var $input=$focusable.filter(':visible:first').focus();if(modal.options.selectText&&$input.is(':text'))$input[0].setSelectionRange(0,$input[0].value.length);}else{if(modal.$close.is(':visible'))modal.$close.focus();}}});Bootstrap.once('modal',function(settings){Bootstrap.replacePlugin('modal',function(){var BootstrapModal=this;Bootstrap.Modal=function(element,options){this.$body=$(document.body);this.$element=$(element);
257this.$dialog=this.$element.find('.modal-dialog');this.$header=this.$dialog.find('.modal-header');this.$title=this.$dialog.find('.modal-title');this.$close=this.$header.find('.close');this.$footer=this.$dialog.find('.modal-footer');this.$content=this.$dialog.find('.modal-content');this.$dialogBody=this.$dialog.find('.modal-body');this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=false;this.options=this.mapDialogOptions(options);};Bootstrap.Modal.DEFAULTS=$.extend({},BootstrapModal.DEFAULTS,{animation:!!settings.modal_animation,backdrop:settings.modal_backdrop==='static'?'static':!!settings.modal_backdrop,focusInput:!!settings.modal_focus_input,selectText:!!settings.modal_select_text,keyboard:!!settings.modal_keyboard,remote:null,show:!!settings.modal_show,size:settings.modal_size});Bootstrap.Modal.prototype=BootstrapModal.prototype;Bootstrap.Modal.prototype.destroy=function(){this.hide();Drupal.detachBehaviors(this.$element[0]);this.$element.removeData('bs.modal').remove();};Bootstrap.Modal.prototype.init=function(){if(this.options.remote)this.$content.load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal');},this));};Bootstrap.Modal.prototype.mapDialogOptions=function(options){return options||{};};var Plugin=function(){var args=Array.prototype.slice.call(arguments);var method=args[0];var options=args[1]||{};var relatedTarget=args[2]||null;if($.isPlainObject(method)){relatedTarget=options||null;options=method;method=null;}var ret=void 0;this.each(function(){var $this=$(this);var data=$this.data('bs.modal');var initialize=false;var showMethods=['open','show','toggle'];if(!data&&method&&showMethods.indexOf(method)===-1)return;options=Bootstrap.normalizeObject($.extend({},Bootstrap.Modal.DEFAULTS,data&&data.options,$this.data(),options));delete options['bs.modal'];if(!data){$this.data('bs.modal',(data=new Bootstrap.Modal(this,options)));initialize=true;}if(initialize||(!method&&!args.length))data.init();if(method)if(typeof data[method]==='function')try{ret=data[method].apply(data,args.slice(1));}catch(e){Drupal.throwError(e);}else Bootstrap.unsupported('method',method);else{data.option(options);if(options.show&&!data.isShown)data.show(relatedTarget);}});return this.length===1&&ret!==void 0?ret:this;};Plugin.Constructor=Bootstrap.Modal;$document.off('click.bs.modal.data-api').on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this);var href=$this.attr('href');var target=$this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,''));var $target=$document.find(target);var options=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data());if($this.is('a'))e.preventDefault();$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return;$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus');});});$target.modal(options,this);});return Plugin;});$.extend(Drupal.theme,{bootstrapModal:function(variables){var output='';var settings=drupalSettings.bootstrap||{};var defaults={attributes:{class:['modal'],tabindex:-1,role:'dialog'},body:'',closeButton:true,description:{attributes:{class:['help-block']},content:null,position:'before'},footer:'',id:'drupal-modal',size:settings.modal_size?settings.modal_size:'',title:{attributes:{class:['modal-title']},content:Drupal.t('Loading...'),html:false,tag:'h4'}};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id));if(settings.modal_animation)attributes.addClass('fade');output+='<div'+attributes+'>';output+=Drupal.theme('bootstrapModalDialog',_.omit(variables,'attributes'));output+='</div>';return output;},bootstrapModalDialog:function(variables){var output='';var defaults={attributes:{class:['modal-dialog'],role:'document'},id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--dialog'));if(variables.size)attributes.addClass(variables.size);output+='<div'+attributes+'>';output+=Drupal.theme('bootstrapModalContent',_.omit(variables,'attributes'));output+='</div>';return output;},bootstrapModalContent:function(variables){var output='';var defaults={attributes:{class:['modal-content']},id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--content'));output+='<div'+attributes+'>';variables=_.omit(variables,'attributes');output+=Drupal.theme('bootstrapModalHeader',variables);output+=Drupal.theme('bootstrapModalBody',variables);output+=Drupal.theme('bootstrapModalFooter',variables);output+='</div>';return output;},bootstrapModalBody:function(variables){var output='';var defaults={attributes:{class:['modal-body']},body:'',description:{attributes:{class:['help-block']},content:null,position:'before'},id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--body'));output+='<div'+attributes+'>';if(typeof variables.description==='string')variables.description=$.extend({},defaults.description,{content:variables.description});var description=variables.description;description.attributes=Attributes.create(defaults.description.attributes).merge(description.attributes);if(description.content&&description.position==='invisible')description.attributes.addClass('sr-only');if(description.content&&description.position==='before')output+='<p'+description.attributes+'>'+description.content+'</p>';output+=variables.body;if(description.content&&(description.position==='after'||description.position==='invisible'))output+='<p'+description.attributes+'>'+description.content+'</p>';output+='</div>';return output;},bootstrapModalClose:function(variables){var defaults={attributes:{'aria-label':Drupal.t('Close'),class:['close'],'data-dismiss':'modal',type:'button'}};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);return '<button'+attributes+'><span aria-hidden="true">&times;</span></button>';},bootstrapModalFooter:function(variables,force){var output='';var defaults={attributes:{class:['modal-footer']},footer:'',id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);if(force||variables.footer){var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--footer'));output+='<div'+attributes+'>';output+=variables.footer;output+='</div>';}return output;},bootstrapModalHeader:function(variables){var output='';var defaults={attributes:{class:['modal-header']}
257,closeButton:true,id:'drupal-modal',title:{attributes:{class:['modal-title']},content:Drupal.t('Loading...'),html:false,tag:'h4'}};variables=$.extend(true,{},defaults,variables);if(typeof variables.title==='string')variables.title=$.extend({},defaults.title,{content:variables.title});var title=Drupal.theme('bootstrapModalTitle',variables.title);if(title){var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--header'));output+='<div'+attributes+'>';if(variables.closeButton)output+=Drupal.theme('bootstrapModalClose',_.omit(variables,'attributes'));output+=title;output+='</div>';}return output;},bootstrapModalTitle:function(variables){var output='';var defaults={attributes:{class:['modal-title']},closeButton:true,id:'drupal-modal',content:Drupal.t('Loading...'),html:false,tag:'h4'};if(typeof variables==='string')variables=$.extend({},defaults,{content:title});variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--title'));output+='<'+Drupal.checkPlain(variables.tag)+Attributes.create(defaults.attributes).merge(variables.attributes)+'>';if(variables.closeButton)output+=Drupal.theme('bootstrapModalClose',_.omit(variables,'attributes'));output+=(variables.html?variables.content:Drupal.checkPlain(variables.content));output+='</'+Drupal.checkPlain(variables.tag)+'>';return output;}});});})(window.jQuery,window.Drupal,window.Drupal.bootstrap,window.Attributes);;
258(function($,Drupal,Bootstrap,Attributes){Bootstrap.Dialog=Bootstrap.Dialog||{};Bootstrap.Dialog.handlers={};Bootstrap.Dialog.Handler=function(type,data){this.ctor=$.fn.modal;this.extend=null;this.plugin='modal';this.prefix='modal';this.themeHooks={modal:'bootstrapModal',dialog:'bootstrapModalDialog',header:'bootstrapModalHeader',title:'bootstrapModalTitle',close:'bootstrapModalClose',content:'bootstrapModalContent',body:'bootstrapModalBody',footer:'bootstrapModalFooter'};this.type=type;this.selectors={dialog:'.modal-dialog',header:'.modal-header',title:'.modal-title',close:'.close',content:'.modal-content',body:'.modal-body',footer:'.modal-footer',buttons:'.modal-buttons'};$.extend(this,data);if(this.extend)Bootstrap.extend(this.plugin,this.extend);};Bootstrap.Dialog.Handler.get=function(type){if(type instanceof $)type=type[0];if(type instanceof HTMLElement)type=type.dialogType;if(!type)type='modal';if(!Bootstrap.Dialog.handlers[type])Bootstrap.Dialog.handlers[type]=new Bootstrap.Dialog.Handler();return Bootstrap.Dialog.handlers[type];};Bootstrap.Dialog.Handler.register=function(type,data){Bootstrap.Dialog.handlers[type]=new Bootstrap.Dialog.Handler(type,data);};Bootstrap.Dialog.Handler.prototype.invoke=function(context){var args=Array.prototype.slice.call(arguments);return this.ctor.apply(context,args.slice(1));};Bootstrap.Dialog.Handler.prototype.theme=function(hook){var args=Array.prototype.slice.call(arguments);return $(Drupal.theme.apply(Drupal.theme,[this.themeHooks[hook]].concat(args.slice(1))));};Bootstrap.Dialog.Handler.prototype.ensureModalStructure=function(element,options){var $element=$(element);if($element.is('[data-drupal-theme="'+this.themeHooks.modal+'"]'))return;var attributes=Attributes.create(element).remove('style').set('data-drupal-theme',this.themeHooks.modal);if(options.$trigger&&options.$trigger[0]){var trigger=options.$trigger[0];var data={};for(var i=0,l=trigger.attributes.length;i<l;i++){var name=trigger.attributes[i].name;if(name&&name.substring(0,5)==='data-')data[name]=trigger.getAttribute(name);}attributes.merge(data);}options=$.extend(true,{},options,{attributes});var $modal=this.theme('modal',options);var $body=$element.find(this.selectors.body);var $existing=$body[0]?$body.contents():$element.contents();$element.attr(Attributes.create($modal).toPlainObject());$element.append($modal.html());$element.find(this.selectors.body).append($existing);};})(jQuery,Drupal,Drupal.bootstrap,Attributes);;
259(function($,Drupal,once){if(once('drupal-dialog-deprecation-listener','html').length){const eventSpecial={handle($event){const $element=$($event.target);const event=$event.originalEvent;const dialog=event.dialog;const dialogArguments=[$event,dialog,$element,event?.settings];$event.handleObj.handler.apply(this,dialogArguments);}};$.event.special['dialog:beforecreate']=eventSpecial;$.event.special['dialog:aftercreate']=eventSpecial;$.event.special['dialog:beforeclose']=eventSpecial;$.event.special['dialog:afterclose']=eventSpecial;const listenDialogEvent=(event)=>{const windowEvents=$._data(window,'events');const isWindowHasDialogListener=windowEvents[event.type];if(isWindowHasDialogListener)Drupal.deprecationError({message:`jQuery event ${event.type} is deprecated in 10.3.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3422670`});};['dialog:beforecreate','dialog:aftercreate','dialog:beforeclose','dialog:afterclose'].forEach((e)=>window.addEventListener(e,listenDialogEvent));window.addEventListener('dialog:beforecreate',(event)=>{const dialog=event.target;$(dialog).on('dialogButtonsChange.dialogDeprecation',(e)=>{if(!e?.originalEvent){Drupal.deprecationError({message:`jQuery event dialogButtonsChange is deprecated in 11.2.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3464202`});dialog.dispatchEvent(new CustomEvent('dialogButtonsChange'));}});});window.addEventListener('dialog:beforeclose',(event)=>{const dialog=event.target;$(dialog).off(`dialogButtonsChange.dialogDeprecation`);});}})(jQuery,Drupal,once);;
260class DrupalDialogEvent extends Event{constructor(type,dialog,settings=null){super(`dialog:${type}`,{bubbles:true});this.dialog=dialog;this.settings=settings;}}(function($,Drupal,drupalSettings,bodyScrollLock){drupalSettings.dialog={autoOpen:true,buttonClass:'button',buttonPrimaryClass:'button--primary',close(event){Drupal.dialog(event.target).close();Drupal.detachBehaviors(event.target,null,'unload');}};Drupal.dialog=function(element,options){let undef;const $element=$(element);const domElement=$element.get(0);const dialog={open:false,returnValue:undef};function openDialog(settings){settings=$.extend({},drupalSettings.dialog,options,settings);if(settings.dialogClass)Drupal.deprecationError({message:'dialogClass is deprecated in drupal:10.4.x and will be removed from drupal:12.0.0.'});const event=new DrupalDialogEvent('beforecreate',dialog,settings);domElement.dispatchEvent(event);$element.dialog(event.settings);dialog.open=true;if(event.settings.modal)bodyScrollLock.lock(domElement);domElement.dispatchEvent(new DrupalDialogEvent('aftercreate',dialog,event.settings));}function closeDialog(value){domElement.dispatchEvent(new DrupalDialogEvent('beforeclose',dialog));bodyScrollLock.clearBodyLocks();$element.dialog('close');dialog.returnValue=value;dialog.open=false;domElement.dispatchEvent(new DrupalDialogEvent('afterclose',dialog));}dialog.show=()=>{openDialog({modal:false,uiDialogTitleHeadingLevel:2});};dialog.showModal=()=>{openDialog({modal:true,uiDialogTitleHeadingLevel:1});};dialog.close=closeDialog;return dialog;};})(jQuery,Drupal,drupalSettings,bodyScrollLock);;
261(function($,Drupal,drupalSettings,debounce,displace){drupalSettings.dialog=$.extend({autoResize:true,maxHeight:'95%'},drupalSettings.dialog);function resetPosition(options){const offsets=displace.offsets;const left=offsets.left-offsets.right;const top=offsets.top-offsets.bottom;const leftString=`${(left>0?'+':'-')+Math.abs(Math.round(left/2))}px`;const topString=`${(top>0?'+':'-')+Math.abs(Math.round(top/2))}px`;options.position={my:`center${left!==0?leftString:''} center${top!==0?topString:''}`,of:window};return options;}function resetSize(event){const positionOptions=['width','height','minWidth','minHeight','maxHeight','maxWidth','position'];let adjustedOptions={};let windowHeight=$(window).height();let option;let optionValue;let adjustedValue;for(let n=0;n<positionOptions.length;n++){option=positionOptions[n];optionValue=event.data.settings[option];if(optionValue)if(typeof optionValue==='string'&&optionValue.endsWith('%')&&/height/i.test(option)){windowHeight-=displace.offsets.top+displace.offsets.bottom;adjustedValue=parseInt(0.01*parseInt(optionValue,10)*windowHeight,10);if(option==='height'&&Math.round(event.data.$element.parent().outerHeight())<adjustedValue)adjustedValue='auto';adjustedOptions[option]=adjustedValue;}}if(!event.data.settings.modal)adjustedOptions=resetPosition(adjustedOptions);event.data.$element.dialog('option',adjustedOptions);event.data.$element?.get(0)?.dispatchEvent(new CustomEvent('dialogContentResize',{bubbles:true}));}window.addEventListener('dialog:aftercreate',(e)=>{const autoResize=debounce(resetSize,20);const $element=$(e.target);const {settings}=e;const eventData={settings,$element};if(settings.autoResize===true||settings.autoResize==='true'){const uiDialog=$element.dialog('option',{resizable:false,draggable:false}).dialog('widget');uiDialog[0].style.position='fixed';$(window).on('resize.dialogResize scroll.dialogResize',eventData,autoResize).trigger('resize.dialogResize');$(document).on('drupalViewportOffsetChange.dialogResize',eventData,autoResize);}});window.addEventListener('dialog:beforeclose',()=>{$(window).off('.dialogResize');$(document).off('.dialogResize');});})(jQuery,Drupal,drupalSettings,Drupal.debounce,Drupal.displace);;
262(function($,{tabbable,isTabbable}){$.widget('ui.dialog',$.ui.dialog,{options:{buttonClass:'button',buttonPrimaryClass:'button--primary'},_createButtons(){const opts=this.options;let primaryIndex;let index;const il=opts.buttons.length;for(index=0;index<il;index++)if(opts.buttons[index].primary&&opts.buttons[index].primary===true){primaryIndex=index;delete opts.buttons[index].primary;break;}this._super();const $buttons=this.uiButtonSet.children().addClass(opts.buttonClass);if(typeof primaryIndex!=='undefined')$buttons.eq(index).addClass(opts.buttonPrimaryClass);},_createWrapper(){this.uiDialog=$('<div>
262').hide().attr({tabIndex:-1,role:'dialog','aria-modal':this.options.modal?'true':null}).appendTo(this._appendTo());this._addClass(this.uiDialog,'ui-dialog','ui-widget ui-widget-content ui-front');this._on(this.uiDialog,{keydown(event){if(this.options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){event.preventDefault();this.close(event);return;}if(event.keyCode!==$.ui.keyCode.TAB||event.isDefaultPrevented())return;const tabbableElements=tabbable(this.uiDialog[0]);if(tabbableElements.length){const first=tabbableElements[0];const last=tabbableElements[tabbableElements.length-1];if((event.target===last||event.target===this.uiDialog[0])&&!event.shiftKey){this._delay(function(){$(first).trigger('focus');});event.preventDefault();}else{if((event.target===first||event.target===this.uiDialog[0])&&event.shiftKey){this._delay(function(){$(last).trigger('focus');});event.preventDefault();}}}},mousedown(event){if(this._moveToTop(event))this._focusTabbable();}});if(!this.element.find('[aria-describedby]').length)this.uiDialog.attr({'aria-describedby':this.element.uniqueId().attr('id')});},_focusTabbable(){let hasFocus=this._focusedElement?this._focusedElement.get(0):null;if(!hasFocus)hasFocus=this.element.find('[autofocus]').get(0);if(!hasFocus){const $elements=[this.element,this.uiDialogButtonPane];for(let i=0;i<$elements.length;i++){const element=$elements[i].get(0);if(element){const elementTabbable=tabbable(element);hasFocus=elementTabbable.length?elementTabbable[0]:null;}if(hasFocus)break;}}if(!hasFocus){const closeBtn=this.uiDialogTitlebarClose.get(0);hasFocus=closeBtn&&isTabbable(closeBtn)?closeBtn:null;}if(!hasFocus)hasFocus=this.uiDialog.get(0);$(hasFocus).eq(0).trigger('focus');}});})(jQuery,window.tabbable);;
263(($)=>{$.widget('ui.dialog',$.ui.dialog,{_allowInteraction(event){if(event.target.classList===undefined)return this._super(event);return event.target.classList.contains('ck')||this._super(event);}});})(jQuery);;
264(function($,Drupal,drupalSettings,once){'use strict';Drupal.behaviors.externalLinkPopup={attach:function(context){var self=this;var settings=drupalSettings.pf_external_link_popup;if(!settings.popups||!settings.popups.length||!$(once('external-link-popup','body',context)).length)return;var whitelist=settings.whitelist?settings.whitelist.split(/\s*,\s*|\s+/):[];var current=window.location.host||window.location.hostname;var popup;whitelist.unshift(current);if(current.substr(0,4)==='www.')whitelist.push(current.substr(4));else whitelist.push('www.'+current);$('body',context).on('click','a:not(.external-link-popup-disabled)',function(e){var element=$(this).get(0);var popupId=element.getAttribute('data-external-link-popup-id');var domain=self.getDomain(element.getAttribute('href'));for(var i=0;i<settings.popups.length;i++){popup=settings.popups[i];if(settings.popups[i].otherlanguages&&domain==document.location.host){var splitted_link=element.getAttribute('href').split('/');var splitted_current_path=document.location.href.split('/');var allow_for=settings.popups[i].prefixlanguages.split(',');if(allow_for.indexOf(splitted_current_path[3])==-1)continue;else{if(splitted_link[3]==splitted_current_path[3])continue;}}else{if(!popupId&&(!domain||self.inDomain(domain,whitelist)))return;if(!popupId&&popup.domains!=='*'&&!self.inDomain(domain,popup.domains.split(/\s*,\s*|\s+/)))continue;if(popupId&&popupId!==popup.id)continue;}e.preventDefault();return self.openDialog(element,popup,'external-link-popup-id-'+popup.id.replace('_','-'));}});},inDomain:function(domain,domains){if(typeof domain!=='string')return false;for(var i in domains)if(domain.toLowerCase()===domains[i].toLowerCase()||domain.match(new RegExp('\\.'+this.pregEscape(domains[i])+'$','i')))return true;return false;},getDomain:function(url){if(typeof url!=='string')return null;var matches=url.match(/\/\/([^/]+)\/?/);return matches&&matches[1];},pregEscape:function(str){return (str+'').replace(new RegExp('[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]','g'),'\\$&');},openDialog:function(element,settings,className){var dialog;var body=document.createElement('div');var content=document.createElement('div');var options={title:settings.title,width:drupalSettings.pf_external_link_popup.width||'85%',buttons:[{text:settings.labelyes,click:function(){$(this).dialog('close');var target=window.open(element.href,element.target||'_self');
264target.focus();}}],create:function(){var $widget=$(this).parent();$widget.addClass('external-link-popup').addClass(className);if(!settings.close)$widget.find('.ui-dialog-titlebar-close').remove();if(!settings.title)$widget.find('.ui-dialog-titlebar').remove();},close:function(){var $element=$(this);if(dialog&&dialog.open)dialog.close();$element.dialog('destroy');}};if(settings.labelno)options.buttons.push({text:settings.labelno,click:function(){$(this).dialog('close');}});var url=$(element).attr('href');var text=$(element).text();var bodyHtml=settings.body.replace('[link:url]',this.htmlEncode(url)).replace('[link:text]',this.htmlEncode(text));content.className='external-link-popup-content';body.innerHTML=bodyHtml;body.className='external-link-popup-body';content.appendChild(body);dialog=Drupal.dialog(content,options);dialog.showModal();},htmlEncode:function(value){return $('<div/>').text(value).html();}};})(jQuery,Drupal,drupalSettings,once);;
265var MOBILE_MAX_SIZE=1199;const viewportWidth=function(){return Math.max(document.documentElement.clientWidth,window.innerWidth);};let toucheEvent='click';if("ontouchstart" in document.documentElement)toucheEvent='touchend';const addMobileCaret=function($){if(viewportWidth()<=MOBILE_MAX_SIZE){if($('header .menu--main').find('.mobile-caret').length==0)$('a.first-level').after('<span class="mobile-caret initial icon-arrow-right"></span>');}else $('.mobile-caret').remove();};const findParent=function($that){parent=$that.parent('li');return parent;};function disableFirstLevelLinks($){$('#block-navigationprincipale a.first-level').on(toucheEvent,function(e){if(viewportWidth()>MOBILE_MAX_SIZE)e.preventDefault();});}const initMobileBehavior=function($,$d){var openMobile=false;$('.navbar-toggle').click(function(){if(viewportWidth()<=MOBILE_MAX_SIZE)if(!openMobile){$('header').addClass('full-height');$('html, body').addClass('overflow-hidden');openMobile=true;}else{$('header').removeClass('full-height');$('html, body').removeClass('overflow-hidden');openMobile=false;}});$d.on('.mobile-caret-return a',toucheEvent,function(e){if(viewportWidth()<=MOBILE_MAX_SIZE)e.preventDefault();});$d.on('click','.mobile-caret-return a',function(e){e.preventDefault();});if(viewportWidth()<=MOBILE_MAX_SIZE)if($('.dropdown-menu.language-dropdown li').length<=0)$('.right-nav-part .icon-arrow-down1').hide();$d.on(toucheEvent,'.mobile-caret',function(event){if(viewportWidth()<=MOBILE_MAX_SIZE){event.stopPropagation();$('.navbar-collapse .region-navigation-collapsible').hide();$('.navbar-collapse .mobile-submenu-top .sidebar-search').hide();let parent=$(this).parent().clone();parent.find('.first-level-link-wrapper').addClass('mobile-caret-return icon-arrow-validate');let push=$(this).parent().children('.push').clone();$('.mobile-submenu-container .for-push').html(push.html());parent.find('.first-level').remove();parent.find('.push').remove();parent.find('ul').removeAttr('data-menu').removeAttr('data-region').removeAttr('class');setTimeout(function(){$('.mobile-submenu-container .for-level-2').html(parent.html());$('.mobile-submenu-container').fadeIn();},300);}});$d.on(toucheEvent,'.mobile-caret-return',function(event){if(viewportWidth()<=MOBILE_MAX_SIZE){event.stopPropagation();$('.mobile-submenu-container .for-level-2').html('');$('.mobile-submenu-container').hide();$('.mobile-submenu-top .sidebar-search').hide();setTimeout(function(){$('.mobile-submenu-top .sidebar-search').fadeIn();$('.navbar-collapse .region-navigation-collapsible').fadeIn();},300);}});};var initMenuBehavior=function($){$('header').fadeIn();let height='auto';if(viewportWidth()>MOBILE_MAX_SIZE)height='82px';$('.wrapper-global-menu').delay(1000).animate({'height':height},300,'linear',function(){$('header .logo').fadeIn();$('header #block-languageblock').css('opacity','1');$('header #block-languageblock input[name=pf_search]').css('width','315px');if(viewportWidth()<1420)$('header #block-languageblock ul.menu--user-profiles > li > a').addClass('hp-anim');else $('header #block-languageblock ul.menu--user-profiles > li > a').addClass('hp-anim-xxl');$('.wrapper-global-menu').css('height','unset');$('header ul.menu--main').delay(500).animate({'margin-top':'0'},300,'linear',function(){$('header .menu--main > li > a').css('opacity','1');$('header .menu--main > li > a').css('padding-right','0');$('header .menu--main > li > a').css('padding-left','0');});$('header .logo').css('display','inline');});};var searchFormPlaceholder=function(){let $=jQuery;let placeholder=$('#block-languageblock .right-nav-part .desktop-search-form input[name=pf_search]').attr('placeholder').split(' ');placeholder.shift();$('#block-languageblock .right-nav-part .desktop-search-form input[name=pf_search]').attr('placeholder',placeholder);};jQuery(document).ready(function($){if($('.path-frontpage').length>0){initMenuBehavior($);searchFormPlaceholder();}$d=$(document);addMobileCaret($);initMobileBehavior($,$d);disableFirstLevelLinks($);$('.navbar-toggle').click(function(){addMobileCaret($);});$d.on('click','header:not(.clicked) .first-level',function(){$('header').addClass('clicked');$('.submenu-container').css('opacity','0');
265$('.submenu-container').show();let parent=$(this).parent().clone();let lvl1=$(this).parent().children('.first-level-link-wrapper').clone();$('.submenu-container .for-level-1').empty().append(lvl1);let push=$(this).parent().children('.push').clone();$('.submenu-container .for-push').html(push.html());parent.find('.first-level').remove();parent.find('.first-level-link-wrapper').remove();parent.find('.push').remove();parent.find('ul').removeAttr('data-menu').removeAttr('data-region').removeAttr('class');$('.submenu-container .for-level-2').html(parent.html());let ulHeight=$('.submenu-container .for-level-2 > ul').outerHeight();$('.submenu-container .for-level-2 > ul').css('height',((ulHeight/2.30)+3.5)+'px');$('.submenu-container').css('opacity','1');});$d.on('mouseenter','.first-level',function(){if($('header:not(.clicked)').hasClass('headroom--top')&&$('body').hasClass('path-frontpage'))$('header').addClass('clicked');$('.submenu-container').css('opacity','0');$('.submenu-container').show();let parent=$(this).parent().clone();let lvl1=$(this).parent().children('.first-level-link-wrapper').clone();$('.submenu-container .for-level-1').empty().append(lvl1);let push=$(this).parent().children('.push').clone();$('.submenu-container .for-push').html(push.html());parent.find('.first-level').remove();parent.find('.first-level-link-wrapper').remove();parent.find('.push').remove();parent.find('ul').removeAttr('data-menu').removeAttr('data-region').removeAttr('class');$('.submenu-container .for-level-2').html(parent.html());let ulHeight=$('.submenu-container .for-level-2 > ul').outerHeight();$('.submenu-container .for-level-2 > ul').css('height',((ulHeight/2.30)+3.5)+'px');$('.submenu-container').css('opacity','1');});$d.on('mouseenter','.level-0',function(){$('.submenu-container').hide();});$d.on('mouseleave','.level-0',function(){$('.submenu-container').hide();});$d.on('mouseenter','#block-languageblock',function(){$('.submenu-container').hide();});$('.submenu-container').on('mouseleave',function(){if($('header').hasClass('headroom--top')&&$('body').hasClass('path-frontpage')){}$('.submenu-container').hide();});$('header').on('mouseleave',function(){if($('header').hasClass('headroom--top')&&$('body').hasClass('path-frontpage')){$('header').removeClass('clicked');$('header .right-nav-part .header-btn .icon-cross').trigger('click');}});$('.navbar-header .icon-search').on('click',function(){setTimeout(function(){$('.sidebar-search .form-search input[name=pf_search]').get(0).focus();},1000);});$('header .right-nav-part .header-btn .icon-search').on('click',function(){$('header .js-hide-for-search').hide();$('header .menu--main').hide();$(this).hide();$('.search-btn.icon-cross').show();$('.desktop-search-form').fadeIn();$('.desktop-search-form input[name=pf_search]').focus();});$('header .right-nav-part .header-btn .icon-cross').on('click',function(){$('.desktop-search-form').hide();$(this).hide();$('.search-btn.icon-search').show();$('header .js-hide-for-search').show();$('header .menu--main').fadeIn();});});;
266(function($,Drupal){Drupal.behaviors.recaptcha={attach(context){$('.g-recaptcha',context).each(function(){if(typeof grecaptcha==='undefined'||typeof grecaptcha.render!=='function')return;if($(this).closest('body').length>0)if($(this).hasClass('recaptcha-processed'))grecaptcha.reset();else{grecaptcha.render(this,$(this).data());$(this).addClass('recaptcha-processed');}});}};window.drupalRecaptchaOnload=function(){$('.g-recaptcha').each(function(){if(!$(this).hasClass('recaptcha-processed')){grecaptcha.render(this,$(this).data());$(this).addClass('recaptcha-processed');}});};})(jQuery,Drupal);;
267window.libpannellum=function(J,f,m){function Ba(P){function bb(a,e){return 1==a.level&&1!=e.level?-1:1==e.level&&1!=a.level?1:e.timestamp-a.timestamp;}function W(a,e){return a.level!=e.level?a.level-e.level:a.diff-e.diff;}function X(a,e,d,f,p,c){this.vertices=a;this.side=e;this.level=d;this.x=f;this.y=p;this.path=c.replace("%s",e).replace("%l",d).replace("%x",f).replace("%y",p);}function Y(a,e,f,m,p){var c;var g=e.vertices;c=ea(a,g.slice(0,3));var t=ea(a,g.slice(3,6)),z=ea(a,g.slice(6,9)),g=ea(a,g.slice(9,12)),y=c[0]+t[0]+z[0]+g[0];-4==y||4==y?c=!1:(y=c[1]+t[1]+z[1]+g[1],c=-4==y||4==y?!1:4!=c[2]+t[2]+z[2]+g[2]);if(c){c=e.vertices;t=c[0]+c[3]+c[6]+c[9];z=c[1]+c[4]+c[7]+c[10];g=c[2]+c[5]+c[8]+c[11];y=Math.sqrt(t*t+z*z+g*g);g=Math.asin(g/y);t=Math.atan2(z,t)-m;t+=t>Math.PI?-2*Math.PI:t<-Math.PI?2*Math.PI:0;t=Math.abs(t);
vendor: 12,739 bytes, line 267
267e.diff=Math.acos(Math.sin(f)*Math.sin(g)+Math.cos(f)*Math.cos(g)*Math.cos(t));t=!1;for(z=0;z<d.nodeCache.length;z++)if(d.nodeCache[z].path==e.path){t=!0;d.nodeCache[z].timestamp=d.nodeCacheTimestamp++;d.nodeCache[z].diff=e.diff;d.currentNodes.push(d.nodeCache[z]);break;}t||(e.timestamp=d.nodeCacheTimestamp++,d.currentNodes.push(e),d.nodeCache.push(e));if(e.level<d.level){var g=s.cubeResolution*Math.pow(2,e.level-s.maxLevel),t=Math.ceil(g*s.invTileResolution)-1,z=g%s.tileResolution*2,E=2*g%s.tileResolution;0===E&&(E=s.tileResolution);0===z&&(z=2*s.tileResolution);y=0.5;if(e.x==t||e.y==t)y=1-s.tileResolution/(s.tileResolution+E);var r=1-y,g=[],v=y,Q=y,I=y,l=r,A=r,D=r;if(E<s.tileResolution)if(e.x==t&&e.y!=t){if(A=Q=0.5,"d"==e.side||"u"==e.side)D=I=0.5;}else e.x!=t&&e.y==t&&(l=v=0.5,"l"==e.side||"r"==e.side)&&(D=I=0.5);z<=s.tileResolution&&(e.x==t&&(v=0,l=1,"l"==e.side||"r"==e.side)&&(I=0,D=1),e.y==t&&(Q=0,A=1,"d"==e.side||"u"==e.side)&&(I=0,D=1));E=[c[0],c[1],c[2],c[0]*v+c[3]*l,c[1]*y+c[4]*r,c[2]*I+c[5]*D,c[0]*v+c[6]*l,c[1]*Q+c[7]*A,c[2]*I+c[8]*D,c[0]*y+c[9]*r,c[1]*Q+c[10]*A,c[2]*I+c[11]*D];E=new X(E,e.side,e.level+1,2*e.x,2*e.y,s.fullpath);g.push(E);e.x==t&&z<=s.tileResolution||(E=[c[0]*v+c[3]*l,c[1]*y+c[4]*r,c[2]*I+c[5]*D,c[3],c[4],c[5],c[3]*y+c[6]*r,c[4]*Q+c[7]*A,c[5]*I+c[8]*D,c[0]*v+c[6]*l,c[1]*Q+c[7]*A,c[2]*I+c[8]*D],E=new X(E,e.side,e.level+1,2*e.x+1,2*e.y,s.fullpath),g.push(E));e.x==t&&z<=s.tileResolution||e.y==t&&z<=s.tileResolution||(E=[c[0]*v+c[6]*l,c[1]*Q+c[7]*A,c[2]*I+c[8]*D,c[3]*y+c[6]*r,c[4]*Q+c[7]*A,c[5]*I+c[8]*D,c[6],c[7],c[8],c[9]*v+c[6]*l,c[10]*y+c[7]*r,c[11]*I+c[8]*D],E=new X(E,e.side,e.level+1,2*e.x+1,2*e.y+1,s.fullpath),g.push(E));e.y==t&&z<=s.tileResolution||(E=[c[0]*y+c[9]*r,c[1]*Q+c[10]*A,c[2]*I+c[11]*D,c[0]*v+c[6]*l,c[1]*Q+c[7]*A,c[2]*I+c[8]*D,c[9]*v+c[6]*l,c[10]*y+c[7]*r,c[11]*I+c[8]*D,c[9],c[10],c[11]],E=new X(E,e.side,e.level+1,2*e.x,2*e.y+1,s.fullpath),g.push(E));for(e=0;e<g.length;e++)Y(a,g[e],f,m,p);}}}function Ca(){return [-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,-1,1,1,1,1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,1,1,-1,1,1,-1,-1];}function ra(a,e,d){var f=Math.sin(e);e=Math.cos(e);if("x"==d)return [a[0],e*a[1]+f*a[2],e*a[2]-f*a[1],a[3],e*a[4]+f*a[5],e*a[5]-f*a[4],a[6],e*a[7]+f*a[8],e*a[8]-f*a[7]];if("y"==d)return [e*a[0]-f*a[2],a[1],e*a[2]+f*a[0],e*a[3]-f*a[5],a[4],e*a[5]+f*a[3],e*a[6]-f*a[8],a[7],e*a[8]+f*a[6]];if("z"==d)return [e*a[0]+f*a[1],e*a[1]-f*a[0],a[2],e*a[3]+f*a[4],e*a[4]-f*a[3],a[5],e*a[6]+f*a[7],e*a[7]-f*a[6],a[8]];}function sa(a){return [a[0],a[4],a[8],a[12],a[1],a[5],a[9],a[13],a[2],a[6],a[10],a[14],a[3],a[7],a[11],a[15]];}function La(a){a.textureLoad||(a.textureLoad=!0,Ma(encodeURI(a.path+"."+s.extension),function(e){a.texture=e;a.textureLoaded=!0;},Z.crossOrigin));}function ea(a,e){var d=[a[0]*e[0]+a[1]*e[1]+a[2]*e[2],a[4]*e[0]+a[5]*e[1]+a[6]*e[2],a[11]+a[8]*e[0]+a[9]*e[1]+a[10]*e[2],1/(a[12]*e[0]+a[13]*e[1]+a[14]*e[2])],f=d[0]*d[3],p=d[1]*d[3],d=d[2]*d[3],c=[0,0,0];-1>f&&(c[0]=-1);1<f&&(c[0]=1);-1>p&&(c[1]=-1);1<p&&(c[1]=1);if(-1>d||1<d)c[2]=1;return c;}function ta(){console.log("Reducing canvas size due to error 1286!");A.width=Math.round(A.width/2);A.height=Math.round(A.height/2);}var A=f.createElement("canvas");A.style.width=A.style.height="100%";P.appendChild(A);var d,a,V,N,na,R,ua,fa,s,G,va,ka,F,ba,Da,Z;this.init=function(h,e,Ia,ja,p,c,g,t){e===m&&(e="equirectangular");if("equirectangular"!=e&&"cubemap"!=e&&"multires"!=e)throw console.log("Error: invalid image type specified!"),{type:"config error"};G=e;s=h;va=Ia;Z=t||{};if(d){V&&(a.detachShader(d,V),a.deleteShader(V));N&&(a.detachShader(d,N),a.deleteShader(N));a.bindBuffer(a.ARRAY_BUFFER,null);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,null);d.texture&&a.deleteTexture(d.texture);if(d.nodeCache)for(h=0;h<d.nodeCache.length;h++)a.deleteTexture(d.nodeCache[h].texture);a.deleteProgram(d);d=m;}fa=m;"cubemap"==G&&0!==(s[0].width&s[0].width-1)&&(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 9_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 10_/)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))||(a||(a=A.getContext("experimental-webgl",{alpha:!1,depth:!1})),a&&1286==a.getError()&&ta());if(!a&&("multires"==G&&s.hasOwnProperty("fallbackPath")||"cubemap"==G)&&("WebkitAppearance" in f.documentElement.style||navigator.userAgent.match(/Trident.*rv[ :]*11\./)||-1!==navigator.appVersion.indexOf("MSIE 10"))){R&&P.removeChild(R);R=f.createElement("div");R.className="pnlm-world";ja=s.basePath?s.basePath+s.fallbackPath:s.fallbackPath;var z="frblud".split(""),y=0;p=function(){var a=f.createElement("canvas");a.className="pnlm-face pnlm-"+z[this.side]+"face";R.appendChild(a);var c=a.getContext("2d");a.style.width=this.width+4+"px";a.style.height=this.height+4+"px";a.width=this.width+4;a.height=this.height+4;c.drawImage(this,2,2);var e=c.getImageData(0,0,a.width,a.height),d=e.data,h,l;for(h=2;h<a.width-2;h++)for(l=0;4>l;l++)d[4*(h+a.width)+l]=d[4*(h+2*a.width)+l],d[4*(h+a.width*(a.height-2))+l]=d[4*(h+a.width*(a.height-3))+l];for(h=2;h<a.height-2;h++)for(l=0;4>l;l++)d[4*(h*a.width+1)+l]=d[4*(h*a.width+2)+l],d[4*((h+1)*a.width-2)+l]=d[4*((h+1)*a.width-3)+l];for(l=0;4>l;l++)d[4*(a.width+1)+l]=d[4*(2*a.width+2)+l],d[4*(2*a.width-2)+l]=d[4*(3*a.width-3)+l],d[4*(a.width*(a.height-2)+1)+l]=d[4*(a.width*(a.height-3)+2)+l],d[4*(a.width*(a.height-1)-2)+l]=d[4*(a.width*(a.height-2)-3)+l];for(h=1;h<a.width-1;h++)for(l=0;4>l;l++)d[4*h+l]=d[4*(h+a.width)+l],d[4*(h+a.width*(a.height-1))+l]=d[4*(h+a.width*(a.height-2))+l];for(h=1;h<a.height-1;h++)for(l=0;4>l;l++)d[h*a.width*4+l]=d[4*(h*a.width+1)+l],d[4*((h+1)*a.width-1)+l]=d[4*((h+1)*a.width-2)+l];for(l=0;4>l;l++)d[l]=d[4*(a.width+1)+l],d[4*(a.width-1)+l]=d[4*(2*a.width-2)+l],d[a.width*(a.height-1)*4+l]=d[4*(a.width*(a.height-2)+1)+l],d[4*(a.width*a.height-1)+l]=d[4*(a.width*(a.height-1)-2)+l];c.putImageData(e,0,0);y++;6==y&&(na=this.width,P.appendChild(R),g());};for(h=0;6>h;h++)c=new Image(),c.crossOrigin=Z.crossOrigin?Z.crossOrigin:"anonymous",c.side=h,c.onload=p,c.src="multires"==G?encodeURI(ja.replace("%s",z[h])+"."+s.extension):encodeURI(s[h].src);}else{if(!a)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"};s.fullpath=s.basePath?s.basePath+s.path:s.path;s.invTileResolution=1/s.tileResolution;e=Ca();ua=[];for(h=0;6>h;h++)ua[h]=e.slice(12*h,12*h+12),e=Ca();if("equirectangular"==G){if(h=Math.max(s.width,s.height),e=a.getParameter(a.MAX_TEXTURE_SIZE),h>e)throw console.log("Error: The image is too big; it's "+h+"px wide, but this device's maximum supported width is "+e+"px."),{type:"webgl size error",width:h,maxWidth:e};}else{if("cubemap"==G&&(h=s[0].width,e=a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE),h>e))throw console.log("Error: The cube face image is too big; it's "+h+"px wide, but this device's maximum supported width is "+e+"px."),{type:"webgl size error",width:h,maxWidth:e};}t===m||t.horizonPitch===m&&t.horizonRoll===m||(fa=[t.horizonPitch==m?0:t.horizonPitch,t.horizonRoll==m?0:t.horizonRoll]);h=a.TEXTURE_2D;a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight);V=a.createShader(a.VERTEX_SHADER);e=r;"multires"==G&&(e=v);a.shaderSource(V,e);a.compileShader(V);N=a.createShader(a.FRAGMENT_SHADER);e=Na;"cubemap"==G?(h=a.TEXTURE_CUBE_MAP,e=Oa):"multires"==G&&(e=oa);a.shaderSource(N,e);a.compileShader(N);d=a.createProgram();a.attachShader(d,V);a.attachShader(d,N);a.linkProgram(d);a.getShaderParameter(V,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(V));a.getShaderParameter(N,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(N));a.getProgramParameter(d,a.LINK_STATUS)||console.log(a.getProgramInfoLog(d));a.useProgram(d);d.drawInProgress=!1;d.texCoordLocation=a.getAttribLocation(d,"a_texCoord");a.enableVertexAttribArray(d.texCoordLocation);"multires"!=G?(ka||(ka=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,ka),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),a.STATIC_DRAW),a.vertexAttribPointer(d.texCoordLocation,2,a.FLOAT,!1,0,0),d.aspectRatio=a.getUniformLocation(d,"u_aspectRatio"),a.uniform1f(d.aspectRatio,a.drawingBufferWidth/a.drawingBufferHeight),d.psi=a.getUniformLocation(d,"u_psi"),d.theta=a.getUniformLocation(d,"u_theta"),d.f=a.getUniformLocation(d,"u_f"),d.h=a.getUniformLocation(d,"u_h"),d.v=a.getUniformLocation(d,"u_v"),d.vo=a.getUniformLocation(d,"u_vo"),d.rot=a.getUniformLocation(d,"u_rot"),a.uniform1f(d.h,ja/(2*Math.PI)),a.uniform1f(d.v,p/Math.PI),a.uniform1f(d.vo,c/Math.PI*2),"equirectangular"==G&&(d.backgroundColor=a.getUniformLocation(d,"u_backgroundColor"),a.uniform4fv(d.backgroundColor,(t.backgroundColor?t.backgroundColor:[0,0,0]).concat([1]))),d.texture=a.createTexture(),a.bindTexture(h,d.texture),"cubemap"==G?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[2])):a.texImage2D(h,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s),a.texParameteri(h,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(h,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(h,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(h,a.TEXTURE_MAG_FILTER,a.LINEAR)):(d.vertPosLocation=a.getAttribLocation(d,"a_vertCoord"),a.enableVertexAttribArray(d.vertPosLocation),F||(F=a.createBuffer()),ba||(ba=a.createBuffer()),Da||(Da=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,ba),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),a.STATIC_DRAW),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,Da),a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),a.STATIC_DRAW),d.perspUniform=a.getUniformLocation(d,"u_perspMatrix"),d.cubeUniform=a.getUniformLocation(d,"u_cubeMatrix"),d.level=-1,d.currentNodes=[],d.nodeCache=[],d.nodeCacheTimestamp=0);ja=a.getError();if(0!==ja)throw console.log("Error: Something went wrong with WebGL!",ja),{type:"webgl error"};g();}};this.destroy=function(){P!==m&&(A!==m&&P.contains(A)&&P.removeChild(A),R!==m&&P.contains(R)&&P.removeChild(R));if(a){var d=a.getExtension("WEBGL_lose_context");d&&d.loseContext();}};this.resize=function(){var h=J.devicePixelRatio||1;A.width=A.clientWidth*h;A.height=A.clientHeight*h;a&&(1286==a.getError()&&ta(),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),"multires"!=G&&a.uniform1f(d.aspectRatio,A.clientWidth/A.clientHeight));};this.resize();this.setPose=function(a,d){fa=[a,d];};this.render=function(h,e,f,r){var p;p=0;r===m&&(r={});r.roll&&(p=r.roll);if(fa!==m){var c=fa[0],g=fa[1],t=h,z=e,y=Math.cos(g)*Math.sin(h)*Math.sin(c)+Math.cos(h)*(Math.cos(c)*Math.cos(e)+Math.sin(g)*Math.sin(c)*Math.sin(e)),v=-Math.sin(h)*Math.sin(g)+Math.cos(h)*Math.cos(g)*Math.sin(e);h=Math.cos(g)*Math.cos(c)*Math.sin(h)+Math.cos(h)*(-Math.cos(e)*Math.sin(c)+Math.cos(c)*Math.sin(g)*Math.sin(e));h=Math.asin(Math.max(Math.min(h,1),-1));e=Math.atan2(v,y);c=[Math.cos(t)*(Math.sin(g)*Math.sin(c)*Math.cos(z)-Math.cos(c)*Math.sin(z)),Math.cos(t)*Math.cos(g)*Math.cos(z),Math.cos(t)*(Math.cos(c)*Math.sin(g)*Math.cos(z)+Math.sin(z)*Math.sin(c))];g=[-Math.cos(h)*Math.sin(e),Math.cos(h)*Math.cos(e)];g=Math.acos(Math.max(Math.min((c[0]*g[0]+c[1]*g[1])/(Math.sqrt(c[0]*c[0]+c[1]*c[1]+c[2]*c[2])*Math.sqrt(g[0]*g[0]+g[1]*g[1])),1),-1));0>c[2]&&(g=2*Math.PI-g);p+=g;}if(a||"multires"!=G&&"cubemap"!=G){if("multires"!=G)f=2*Math.atan(Math.tan(0.5*f)/(a.drawingBufferWidth/a.drawingBufferHeight)),f=1/Math.tan(0.5*f),a.uniform1f(d.psi,e),a.uniform1f(d.theta,h),a.uniform1f(d.rot,p),a.uniform1f(d.f,f),!0===va&&"equirectangular"==G&&(a.bindTexture(a.TEXTURE_2D,d.texture),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s)),a.drawArrays(a.TRIANGLES,0,6);else{c=a.drawingBufferWidth/a.drawingBufferHeight;g=2*Math.atan(Math.tan(f/2)*a.drawingBufferHeight/a.drawingBufferWidth);g=1/Math.tan(g/2);c=[g/c,0,0,0,0,g,0,0,0,0,100.1/-99.9,20/-99.9,0,0,-1,0];for(g=1;g<s.maxLevel&&a.drawingBufferWidth>s.tileResolution*Math.pow(2,g-1)*Math.tan(f/2)*0.707;)g++;d.level=g;g=[1,0,0,0,1,0,0,0,1];g=ra(g,-p,"z");g=ra(g,-h,"x");g=ra(g,e,"y");g=[g[0],g[1],g[2],0,g[3],g[4],g[5],0,g[6],g[7],g[8],0,0,0,0,1];a.uniformMatrix4fv(d.perspUniform,!1,new Float32Array(sa(c)));a.uniformMatrix4fv(d.cubeUniform,!1,new Float32Array(sa(g)));c=[c[0]*g[0],c[0]*g[1],c[0]*g[2],0,c[5]*g[4],c[5]*g[5],c[5]*g[6],0,c[10]*g[8],c[10]*g[9],c[10]*g[10],c[11],-g[8],-g[9],-g[10],0];d.nodeCache.sort(bb);
267if(200<d.nodeCache.length&&d.nodeCache.length>d.currentNodes.length+50)for(g=d.nodeCache.splice(200,d.nodeCache.length-200),p=0;p<g.length;p++)a.deleteTexture(g[p].texture);d.currentNodes=[];g="fbudlr".split("");for(p=0;6>p;p++)t=new X(ua[p],g[p],1,0,0,s.fullpath),Y(c,t,h,e,f);d.currentNodes.sort(W);for(p=0;p<d.currentNodes.length;p++)if(!d.currentNodes[p].texture){setTimeout(La,0,d.currentNodes[p]);break;}if(!d.drawInProgress){d.drawInProgress=!0;for(h=0;h<d.currentNodes.length;h++)d.currentNodes[h].textureLoaded&&(a.bindBuffer(a.ARRAY_BUFFER,F),a.bufferData(a.ARRAY_BUFFER,new Float32Array(d.currentNodes[h].vertices),a.STATIC_DRAW),a.vertexAttribPointer(d.vertPosLocation,3,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,ba),a.vertexAttribPointer(d.texCoordLocation,2,a.FLOAT,!1,0,0),a.bindTexture(a.TEXTURE_2D,d.currentNodes[h].texture),a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0));d.drawInProgress=!1;}}if(r.returnImage!==m)return A.toDataURL("image/png");}else for(p=na/2,r={f:"translate3d(-"+(p+2)+"px, -"+(p+2)+"px, -"+p+"px)",b:"translate3d("+(p+2)+"px, -"+(p+2)+"px, "+p+"px) rotateX(180deg) rotateZ(180deg)",u:"translate3d(-"+(p+2)+"px, -"+p+"px, "+(p+2)+"px) rotateX(270deg)",d:"translate3d(-"+(p+2)+"px, "+p+"px, -"+(p+2)+"px) rotateX(90deg)",l:"translate3d(-"+p+"px, -"+(p+2)+"px, "+(p+2)+"px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",r:"translate3d("+p+"px, -"+(p+2)+"px, -"+(p+2)+"px) rotateY(270deg)"},f=1/Math.tan(f/2),f=f*a.drawingBufferWidth/2+"px",h="perspective("+f+") translateZ("+f+") rotateX("+h+"rad) rotateY("+e+"rad) ",e=Object.keys(r),p=0;6>p;p++)f=R.querySelector(".pnlm-"+e[p]+"face").style,f.webkitTransform=h+r[e[p]],f.transform=h+r[e[p]];};this.isLoading=function(){if(a&&"multires"==G)for(var f=0;f<d.currentNodes.length;f++)if(!d.currentNodes[f].textureLoaded)return !0;return !1;};this.getCanvas=function(){return A;};var Ma=function(){function d(){var e=this;this.texture=this.callback=null;this.image=new Image();this.image.crossOrigin=c?c:"anonymous";this.image.addEventListener("load",function(){var c=e.image;a.bindTexture(a.TEXTURE_2D,e.texture);a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,c);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);a.bindTexture(a.TEXTURE_2D,null);e.callback(e.texture);p.length?(c=p.shift(),e.loadTexture(c.src,c.texture,c.callback)):m[f++]=e;});}function e(a,c,d){this.src=a;this.texture=c;this.callback=d;}var f=4,m={},p=[],c;d.prototype.loadTexture=function(a,c,d){this.texture=c;this.callback=d;this.image.src=a;};for(var g=0;g<f;g++)m[g]=new d();return function(d,g,h){c=h;h=a.createTexture();f?m[--f].loadTexture(d,h,g):p.push(new e(d,h,g));return h;};}();}var r="attribute vec2 a_texCoord;varying vec2 v_texCoord;void main() {gl_Position = vec4(a_texCoord, 0.0, 1.0);v_texCoord = a_texCoord;}",v="attribute vec3 a_vertCoord;attribute vec2 a_texCoord;uniform mat4 u_cubeMatrix;uniform mat4 u_perspMatrix;varying mediump vec2 v_texCoord;void main(void) {gl_Position = u_perspMatrix * u_cubeMatrix * vec4(a_vertCoord, 1.0);v_texCoord = a_texCoord;}",Oa="precision mediump float;\nuniform float u_aspectRatio;\nuniform float u_psi;\nuniform float u_theta;\nuniform float u_f;\nuniform float u_h;\nuniform float u_v;\nuniform float u_vo;\nuniform float u_rot;\nconst float PI = 3.14159265358979323846264;\nuniform sampler2D u_image;\nuniform samplerCube u_imageCube;\nvarying vec2 v_texCoord;\nuniform vec4 u_backgroundColor;\nvoid main() {\nfloat x = v_texCoord.x * u_aspectRatio;\nfloat y = v_texCoord.y;\nfloat sinrot = sin(u_rot);\nfloat cosrot = cos(u_rot);\nfloat rot_x = x * cosrot - y * sinrot;\nfloat rot_y = x * sinrot + y * cosrot;\nfloat sintheta = sin(u_theta);\nfloat costheta = cos(u_theta);\nfloat a = u_f * costheta - rot_y * sintheta;\nfloat root = sqrt(rot_x * rot_x + a * a);\nfloat lambda = atan(rot_x / root, a / root) + u_psi;\nfloat phi = atan((rot_y * costheta + u_f * sintheta) / root);float cosphi = cos(phi);\ngl_FragColor = textureCube(u_imageCube, vec3(cosphi*sin(lambda), sin(phi), cosphi*cos(lambda)));\n}
267",Na="precision mediump float;\nuniform float u_aspectRatio;\nuniform float u_psi;\nuniform float u_theta;\nuniform float u_f;\nuniform float u_h;\nuniform float u_v;\nuniform float u_vo;\nuniform float u_rot;\nconst float PI = 3.14159265358979323846264;\nuniform sampler2D u_image;\nuniform samplerCube u_imageCube;\nvarying vec2 v_texCoord;\nuniform vec4 u_backgroundColor;\nvoid main() {\nfloat x = v_texCoord.x * u_aspectRatio;\nfloat y = v_texCoord.y;\nfloat sinrot = sin(u_rot);\nfloat cosrot = cos(u_rot);\nfloat rot_x = x * cosrot - y * sinrot;\nfloat rot_y = x * sinrot + y * cosrot;\nfloat sintheta = sin(u_theta);\nfloat costheta = cos(u_theta);\nfloat a = u_f * costheta - rot_y * sintheta;\nfloat root = sqrt(rot_x * rot_x + a * a);\nfloat lambda = atan(rot_x / root, a / root) + u_psi;\nfloat phi = atan((rot_y * costheta + u_f * sintheta) / root);lambda = mod(lambda + PI, PI * 2.0) - PI;\nvec2 coord = vec2(lambda / PI, phi / (PI / 2.0));\nif(coord.x < -u_h || coord.x > u_h || coord.y < -u_v + u_vo || coord.y > u_v + u_vo)\ngl_FragColor = u_backgroundColor;\nelse\ngl_FragColor = texture2D(u_image, vec2((coord.x + u_h) / (u_h * 2.0), (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n}",oa="varying mediump vec2 v_texCoord;uniform sampler2D u_sampler;void main(void) {gl_FragColor = texture2D(u_sampler, v_texCoord);}";return {renderer:function(f,m,r,v){return new Ba(f,m,r,v);}};}(window,document);window.requestAnimationFrame||(window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(J,f){window.setTimeout(J,1E3/60);};}());window.pannellum=function(J,f,m){function Ba(r,v){function Oa(u){J.removeEventListener("deviceorientation",Oa);u&&null!==u.alpha&&null!==u.beta&&null!==u.gamma?(w.container.appendChild(w.orientation),pa=!0,Ya&&Ka()):pa=!1;}function Na(){var u=f.createElement("div");u.innerHTML="\x3c!--[if lte IE 9]><i></i><![endif]--\x3e";if(1==u.getElementsByTagName("i").length)W();else{wa=b.hfov;Ea=b.pitch;var a;if("cubemap"==b.type){O=[];for(u=0;6>u;u++)O.push(new Image()),O[u].crossOrigin=b.crossOrigin;n.load.lbox.style.display="block";n.load.lbar.style.display="none";}else if("multires"==b.type)u=JSON.parse(JSON.stringify(b.multiRes)),b.basePath&&b.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(b.multiRes.basePath)?u.basePath=b.basePath+b.multiRes.basePath:b.multiRes.basePath?u.basePath=b.multiRes.basePath:b.basePath&&(u.basePath=b.basePath),O=u;else if(!0===b.dynamic)O=b.panorama;else{if(b.panorama===m){W(b.strings.noPanoramaError);return;}O=new Image();}if("cubemap"==b.type)for(var ca=6,c=function(){ca--;0===ca&&P();},d=function(a){var u=f.createElement("a");u.href=a.target.src;u.innerHTML=u.href;W(b.strings.fileAccessError.replace("%s",u.outerHTML));},u=0;u<O.length;u++)O[u].onload=c,O[u].onerror=d,a=b.cubeMap[u],b.basePath&&!oa(a)&&(a=b.basePath+a),O[u].src=encodeURI(a);else if("multires"==b.type)P();else{if(a="",b.basePath&&(a=b.basePath),!0!==b.dynamic){a=oa(b.panorama)?b.panorama:a+b.panorama;O.onload=function(){J.URL.revokeObjectURL(this.src);P();};var e=new XMLHttpRequest();e.onloadend=function(){if(200!=e.status){var u=f.createElement("a");u.href=encodeURI(a);u.innerHTML=u.href;W(b.strings.fileAccessError.replace("%s",u.outerHTML));}Ba(this.response);n.load.msg.innerHTML="";};e.onprogress=function(a){if(a.lengthComputable){n.load.lbarFill.style.width=a.loaded/a.total*100+"%";var u,b;1E6<a.total?(u="MB",b=(a.loaded/1E6).toFixed(2),a=(a.total/1E6).toFixed(2)):1E3<a.total?(u="kB",b=(a.loaded/1E3).toFixed(1),a=(a.total/1E3).toFixed(1)):(u="B",b=a.loaded,a=a.total);n.load.msg.innerHTML=b+" / "+a+" "+u;}else n.load.lbox.style.display="block",n.load.lbar.style.display="none";};try{e.open("GET",a,!0);}catch(g){W(b.strings.malformedURLError);}e.responseType="blob";e.setRequestHeader("Accept","image/*,*/*;q=0.9");e.withCredentials="use-credentials"===b.crossOrigin;e.send();}}b.draggable&&C.classList.add("pnlm-grab");C.classList.remove("pnlm-grabbing");}}function oa(a){return /^(?:[a-z]+:)?\/\//i.test(a)||"/"==a[0]||"blob:"==a.slice(0,5);}function P(){B||(B=new libpannellum.renderer(M));Sa||(Sa=!0,H.addEventListener("mousedown",Ca,!1),f.addEventListener("mousemove",La,!1),f.addEventListener("mouseup",ea,!1),b.mouseZoom&&(C.addEventListener("mousewheel",na,!1),C.addEventListener("DOMMouseScroll",na,!1)),b.doubleClickZoom&&H.addEventListener("dblclick",ra,!1),C.addEventListener("mozfullscreenchange",y,!1),C.addEventListener("webkitfullscreenchange",y,!1),C.addEventListener("msfullscreenchange",y,!1),C.addEventListener("fullscreenchange",y,!1),J.addEventListener("resize",ka,!1),J.addEventListener("orientationchange",ka,!1),b.disableKeyboardCtrl||(r.addEventListener("keydown",R,!1),r.addEventListener("keyup",fa,!1),r.addEventListener("blur",ua,!1)),f.addEventListener("mouseleave",ea,!1),H.addEventListener("touchstart",ta,!1),H.addEventListener("touchmove",A,!1),H.addEventListener("touchend",d,!1),H.addEventListener("pointerdown",a,!1),H.addEventListener("pointermove",V,!1),H.addEventListener("pointerup",N,!1),H.addEventListener("pointerleave",N,!1),J.navigator.pointerEnabled&&(r.style.touchAction="none"));h();setTimeout(function(){},500);}function Ba(a){var k=new FileReader();k.addEventListener("loadend",function(){var ca=k.result;
267if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)){var c=ca.indexOf("\u00ff\u00c2");(0>c||65536<c)&&W(b.strings.iOS8WebGLError);}c=ca.indexOf("<x:xmpmeta");if(-1<c&&!0!==b.ignoreGPanoXMP){var d=ca.substring(c,ca.indexOf("</x:xmpmeta>")+12),e=function(a){var u;0<=d.indexOf(a+'="')?(u=d.substring(d.indexOf(a+'="')+a.length+2),u=u.substring(0,u.indexOf('"'))):0<=d.indexOf(a+">")&&(u=d.substring(d.indexOf(a+">")+a.length+1),u=u.substring(0,u.indexOf("<")));return u!==m?Number(u):null;},ca=e("GPano:FullPanoWidthPixels"),c=e("GPano:CroppedAreaImageWidthPixels"),f=e("GPano:FullPanoHeightPixels"),g=e("GPano:CroppedAreaImageHeightPixels"),h=e("GPano:CroppedAreaTopPixels"),l=e("GPano:PoseHeadingDegrees"),p=e("GPano:PosePitchDegrees"),e=e("GPano:PoseRollDegrees");null!==ca&&null!==c&&null!==f&&null!==g&&null!==h&&(0>da.indexOf("haov")&&(b.haov=c/ca*360),0>da.indexOf("vaov")&&(b.vaov=g/f*180),0>da.indexOf("vOffset")&&(b.vOffset=-180*((h+g/2)/f-0.5)),null!==l&&0>da.indexOf("northOffset")&&(b.northOffset=l,!1!==b.compass&&(b.compass=!0)),null!==p&&null!==e&&(0>da.indexOf("horizonPitch")&&(b.horizonPitch=p),0>da.indexOf("horizonRoll")&&(b.horizonRoll=e)));}O.src=J.URL.createObjectURL(a);});k.readAsBinaryString!==m?k.readAsBinaryString(a):k.readAsText(a);}function W(a){a===m&&(a=b.strings.genericWebGLError);n.errorMsg.innerHTML="<p>"+a+"</p>";w.load.style.display="none";n.load.box.style.display="none";n.errorMsg.style.display="table";Pa=!0;M.style.display="none";ga("error",a);}function X(a){var b=Y(a);ha.style.left=b.x+"px";ha.style.top=b.y+"px";clearTimeout(X.t1);clearTimeout(X.t2);ha.style.display="block";ha.style.opacity=1;X.t1=setTimeout(function(){ha.style.opacity=0;},2E3);X.t2=setTimeout(function(){ha.style.display="none";},2500);a.preventDefault();}function Y(a){var b=r.getBoundingClientRect(),c={};c.x=a.clientX-b.left;c.y=a.clientY-b.top;return c;}function Ca(a){a.preventDefault();r.focus();if(L&&b.draggable){var k=Y(a);if(b.hotSpotDebug){var c=sa(a);console.log("Pitch: "+c[0]+", Yaw: "+c[1]+", Center Pitch: "+b.pitch+", Center Yaw: "+b.yaw+", HFOV: "+b.hfov);}Ja();l();b.roll=0;x.hfov=0;la=!0;S=Date.now();xa=k.x;ya=k.y;Qa=b.yaw;Ra=b.pitch;C.classList.add("pnlm-grabbing");C.classList.remove("pnlm-grab");ga("mousedown",a);F();}}function ra(a){b.minHfov===b.hfov?za.setHfov(wa,1E3):(a=sa(a),za.lookAt(a[0],a[1],b.minHfov,1E3));}function sa(a){var k=Y(a);a=B.getCanvas();var c=a.clientWidth,d=a.clientHeight;a=k.x/c*2-1;var d=(1-k.y/d*2)*d/c,e=1/Math.tan(b.hfov*Math.PI/360),f=Math.sin(b.pitch*Math.PI/180),g=Math.cos(b.pitch*Math.PI/180),k=e*g-d*f,c=Math.sqrt(a*a+k*k),d=180*Math.atan((d*g+e*f)/c)/Math.PI;a=180*Math.atan2(a/c,k/c)/Math.PI+b.yaw;-180>a&&(a+=360);180<a&&(a-=360);return [d,a];}function La(a){if(la&&L){S=Date.now();var k=B.getCanvas(),c=k.clientWidth,k=k.clientHeight;a=Y(a);var d=180*(Math.atan(xa/c*2-1)-Math.atan(a.x/c*2-1))/Math.PI*b.hfov/90+Qa;x.yaw=(d-b.yaw)%360*0.2;b.yaw=d;c=360*Math.atan(Math.tan(b.hfov/360*Math.PI)*k/c)/Math.PI;c=180*(Math.atan(a.y/k*2-1)-Math.atan(ya/k*2-1))/Math.PI*c/90+Ra;x.pitch=0.2*(c-b.pitch);b.pitch=c;}}function ea(a){la&&(la=!1,15<Date.now()-S&&(x.pitch=x.yaw=0),C.classList.add("pnlm-grab"),C.classList.remove("pnlm-grabbing"),S=Date.now(),ga("mouseup",a));}function ta(a){if(L&&b.draggable){Ja();l();b.roll=0;x.hfov=0;var k=Y(a.targetTouches[0]);xa=k.x;ya=k.y;if(2==a.targetTouches.length){var c=Y(a.targetTouches[1]);xa+=0.5*(c.x-k.x);ya+=0.5*(c.y-k.y);Fa=Math.sqrt((k.x-c.x)*(k.x-c.x)+(k.y-c.y)*(k.y-c.y));}la=!0;S=Date.now();Qa=b.yaw;Ra=b.pitch;ga("touchstart",a);F();}}function A(a){if(b.draggable&&(a.preventDefault(),L&&(S=Date.now()),la&&L)){var k=Y(a.targetTouches[0]),c=k.x,d=k.y;2==a.targetTouches.length&&-1!=Fa&&(a=Y(a.targetTouches[1]),c+=0.5*(a.x-k.x),d+=0.5*(a.y-k.y),k=Math.sqrt((k.x-a.x)*(k.x-a.x)+(k.y-a.y)*(k.y-a.y)),U(b.hfov+0.1*(Fa-k)),Fa=k);k=b.hfov/360;c=(xa-c)*k+Qa;x.yaw=(c-b.yaw)%360*0.2;b.yaw=c;d=(d-ya)*k+Ra;x.pitch=0.2*(d-b.pitch);b.pitch=d;}}function d(){la=!1;150<Date.now()-S&&(x.pitch=x.yaw=0);Fa=-1;S=Date.now();ga("touchend",event);}function a(a){"touch"==a.pointerType&&(ma.push(a.pointerId),Aa.push({clientX:a.clientX,clientY:a.clientY}),a.targetTouches=Aa,ta(a),a.preventDefault());}function V(a){if("touch"==a.pointerType)for(var b=0;b<ma.length;b++)if(a.pointerId==ma[b]){Aa[b].clientX=a.clientX;Aa[b].clientY=a.clientY;a.targetTouches=Aa;A(a);break;}}function N(a){if("touch"==a.pointerType){for(var b=!1,c=0;c<ma.length;c++)a.pointerId==ma[c]&&(ma[c]=m),ma[c]&&(b=!0);b||(ma=[],Aa=[],d());a.preventDefault();}}function na(a){L&&("fullscreenonly"!=b.mouseZoom||Ga)&&(a.preventDefault(),Ja(),S=Date.now(),a.wheelDeltaY?(U(b.hfov-0.05*a.wheelDeltaY),x.hfov=0>a.wheelDelta?1:-1):a.wheelDelta?(U(b.hfov-0.05*a.wheelDelta),x.hfov=0>a.wheelDelta?1:-1):a.detail&&(U(b.hfov+1.5*a.detail),x.hfov=0<a.detail?1:-1),F());}function R(a){Ja();S=Date.now();l();b.roll=0;var k=a.which||a.keycode;0>Za.indexOf(k)||(a.preventDefault(),27==k?Ga&&z():s(k,!0));}function ua(){for(var a=0;10>a;a++)q[a]=!1;}function fa(a){var b=a.which||a.keycode;0>Za.indexOf(b)||(a.preventDefault(),s(b,!1));}function s(a,b){var c=!1;switch(a){case 109:case 189:case 17:case 173:q[0]!=b&&(c=!0);q[0]=b;break;
267case 107:case 187:case 16:case 61:q[1]!=b&&(c=!0);q[1]=b;break;case 38:q[2]!=b&&(c=!0);q[2]=b;break;case 87:q[6]!=b&&(c=!0);q[6]=b;break;case 40:q[3]!=b&&(c=!0);q[3]=b;break;case 83:q[7]!=b&&(c=!0);q[7]=b;break;case 37:q[4]!=b&&(c=!0);q[4]=b;break;case 65:q[8]!=b&&(c=!0);q[8]=b;break;case 39:q[5]!=b&&(c=!0);q[5]=b;break;case 68:q[9]!=b&&(c=!0),q[9]=b;}c&&b&&(ia="undefined"!==typeof performance&&performance.now()?performance.now():Date.now(),F());}function G(){if(L){var a=!1,k=b.pitch,c=b.yaw,d=b.hfov,e;e="undefined"!==typeof performance&&performance.now()?performance.now():Date.now();ia===m&&(ia=e);var f=(e-ia)*b.hfov/1700,f=Math.min(f,1);q[0]&&!0===b.keyboardZoom&&(U(b.hfov+(0.8*x.hfov+0.5)*f),a=!0);q[1]&&!0===b.keyboardZoom&&(U(b.hfov+(0.8*x.hfov-0.2)*f),a=!0);if(q[2]||q[6])b.pitch+=(0.8*x.pitch+0.2)*f,a=!0;if(q[3]||q[7])b.pitch+=(0.8*x.pitch-0.2)*f,a=!0;if(q[4]||q[8])b.yaw+=(0.8*x.yaw-0.2)*f,a=!0;if(q[5]||q[9])b.yaw+=(0.8*x.yaw+0.2)*f,a=!0;a&&(S=Date.now());Date.now();if(b.autoRotate){if(0.001<e-ia){var a=(e-ia)/1E3,g=(x.yaw/a*f-0.2*b.autoRotate)*a,g=(0<-b.autoRotate?1:-1)*Math.min(Math.abs(b.autoRotate*a),Math.abs(g));b.yaw+=g;}b.autoRotateStopDelay&&(b.autoRotateStopDelay-=e-ia,0>=b.autoRotateStopDelay&&(b.autoRotateStopDelay=!1,$=b.autoRotate,b.autoRotate=0));}K.pitch&&(va("pitch"),k=b.pitch);K.yaw&&(va("yaw"),c=b.yaw);K.hfov&&(va("hfov"),d=b.hfov);0<f&&!b.autoRotate&&(q[4]||q[5]||q[8]||q[9]||K.yaw||(b.yaw+=x.yaw*f*0.85),q[2]||q[3]||q[6]||q[7]||K.pitch||(b.pitch+=x.pitch*f*0.85),q[0]||q[1]||K.hfov||U(b.hfov+x.hfov*f*0.85));ia=e;0<f&&(x.yaw=0.8*x.yaw+(b.yaw-c)/f*0.2,x.pitch=0.8*x.pitch+(b.pitch-k)/f*0.2,x.hfov=0.8*x.hfov+(b.hfov-d)/f*0.2,k=b.autoRotate?Math.abs(b.autoRotate):5,x.yaw=Math.min(k,Math.max(x.yaw,-k)),x.pitch=Math.min(k,Math.max(x.pitch,-k)),x.hfov=Math.min(k,Math.max(x.hfov,-k)));q[0]&&q[0]&&(x.hfov=0);(q[2]||q[6])&&(q[3]||q[7])&&(x.pitch=0);(q[4]||q[8])&&(q[5]||q[9])&&(x.yaw=0);}}function va(a){var k=K[a],c=Math.min(1,Math.max((Date.now()-k.startTime)/1E3/(k.duration/1E3),0)),c=k.startPosition+b.animationTimingFunction(c)*(k.endPosition-k.startPosition);if(k.endPosition>k.startPosition&&c>=k.endPosition||k.endPosition<k.startPosition&&c<=k.endPosition||k.endPosition===k.startPosition){c=k.endPosition;x[a]=0;var k=K[a].callback,d=K[a].callbackArgs;delete K[a];"function"==typeof k&&k(d);}b[a]=c;}function ka(){y();}function F(){Ta||(Ta=!0,ba());}function ba(){Da();Ua&&clearTimeout(Ua);if(la||!0===aa)requestAnimationFrame(ba);else if(q[0]||q[1]||q[2]||q[3]||q[4]||q[5]||q[6]||q[7]||q[8]||q[9]||b.autoRotate||K.pitch||K.yaw||K.hfov||0.01<Math.abs(x.yaw)||0.01<Math.abs(x.pitch)||0.01<Math.abs(x.hfov))G(),0<=b.autoRotateInactivityDelay&&$&&Date.now()-S>b.autoRotateInactivityDelay&&!b.autoRotate&&(b.autoRotate=$,za.lookAt(Ea,m,wa,3E3)),requestAnimationFrame(ba);else if(B&&(B.isLoading()||!0===b.dynamic&&$a))requestAnimationFrame(ba);else{Ta=!1;ia=m;var a=b.autoRotateInactivityDelay-(Date.now()-S);0<a?Ua=setTimeout(function(){b.autoRotate=$;za.lookAt(Ea,m,wa,3E3);F();},a):0<=b.autoRotateInactivityDelay&&$&&(b.autoRotate=$,za.lookAt(Ea,m,wa,3E3),F());}}function Da(){var a;if(L){180<b.yaw?b.yaw-=360:-180>b.yaw&&(b.yaw+=360);a=b.yaw;var k=b.maxYaw-b.minYaw,d=-180,e=180;360>k&&(d=b.minYaw+b.hfov/2,e=b.maxYaw-b.hfov/2,k<b.hfov&&(d=e=(d+e)/2));b.yaw=Math.max(d,Math.min(e,b.yaw));!1!==b.autoRotate&&a!=b.yaw&&(b.autoRotate*=-1);a=B.getCanvas();a=2*Math.atan(Math.tan(b.hfov/180*Math.PI*0.5)/(a.width/a.height))/Math.PI*180;k=b.minPitch+a/2;d=b.maxPitch-a/2;b.maxPitch-b.minPitch<a&&(k=d=(k+d)/2);isNaN(k)&&(k=-90);isNaN(d)&&(d=90);b.pitch=Math.max(k,Math.min(d,b.pitch));B.render(b.pitch*Math.PI/180,b.yaw*Math.PI/180,b.hfov*Math.PI/180,{roll:b.roll*Math.PI/180});b.hotSpots.forEach(c);b.compass&&(Ha.style.transform="rotate("+(-b.yaw-b.northOffset)+"deg)",Ha.style.webkitTransform="rotate("+(-b.yaw-b.northOffset)+"deg)");}}function Z(a,b,c,d){this.w=a;this.x=b;this.y=c;this.z=d;}function Ma(a){var c;c=a.alpha;var d=a.beta;a=a.gamma;d=[d?d*Math.PI/180/2:0,a?a*Math.PI/180/2:0,c?c*Math.PI/180/2:0];c=[Math.cos(d[0]),Math.cos(d[1]),Math.cos(d[2])];d=[Math.sin(d[0]),Math.sin(d[1]),Math.sin(d[2])];
267c=new Z(c[0]*c[1]*c[2]-d[0]*d[1]*d[2],d[0]*c[1]*c[2]-c[0]*d[1]*d[2],c[0]*d[1]*c[2]+d[0]*c[1]*d[2],c[0]*c[1]*d[2]+d[0]*d[1]*c[2]);c=c.multiply(new Z(Math.sqrt(0.5),-Math.sqrt(0.5),0,0));d=J.orientation?-J.orientation*Math.PI/180/2:0;c=c.multiply(new Z(Math.cos(d),0,-Math.sin(d),0)).toEulerAngles();"number"==typeof aa&&10>aa?aa+=1:10===aa?(ab=c[2]/Math.PI*180+b.yaw,aa=!0,requestAnimationFrame(ba)):(b.pitch=c[0]/Math.PI*180,b.roll=-c[1]/Math.PI*180,b.yaw=-c[2]/Math.PI*180+ab);}function h(){try{var a={};b.horizonPitch!==m&&(a.horizonPitch=b.horizonPitch*Math.PI/180);b.horizonRoll!==m&&(a.horizonRoll=b.horizonRoll*Math.PI/180);b.backgroundColor!==m&&(a.backgroundColor=b.backgroundColor);B.init(O,b.type,b.dynamic,b.haov*Math.PI/180,b.vaov*Math.PI/180,b.vOffset*Math.PI/180,e,a);!0!==b.dynamic&&(O=m);}catch(c){if("webgl error"==c.type||"no webgl"==c.type)W();else if("webgl size error"==c.type)W(b.strings.textureSizeError.replace("%s",c.width).replace("%s",c.maxWidth));else throw W(b.strings.unknownError),c;}}function e(){if(b.sceneFadeDuration&&B.fadeImg!==m){B.fadeImg.style.opacity=0;var a=B.fadeImg;delete B.fadeImg;setTimeout(function(){M.removeChild(a);ga("scenechangefadedone");},b.sceneFadeDuration);}Ha.style.display=b.compass?"inline":"none";ja();n.load.box.style.display="none";qa!==m&&(M.removeChild(qa),qa=m);L=!0;ga("load");F();}function Ia(a){a.pitch=Number(a.pitch)||0;a.yaw=Number(a.yaw)||0;var c=f.createElement("div");c.className="pnlm-hotspot-base";c.className=a.cssClass?c.className+(" "+a.cssClass):c.className+(" pnlm-hotspot pnlm-sprite pnlm-"+D(a.type));var d=f.createElement("span");a.text&&(d.innerHTML=D(a.text));var e;if(a.video){e=f.createElement("video");var g=a.video;b.basePath&&!oa(g)&&(g=b.basePath+g);e.src=encodeURI(g);e.controls=!0;e.style.width=a.width+"px";M.appendChild(c);d.appendChild(e);}else if(a.image){g=a.image;b.basePath&&!oa(g)&&(g=b.basePath+g);e=f.createElement("a");e.href=encodeURI(a.URL?a.URL:g);e.target="_blank";d.appendChild(e);var h=f.createElement("img");h.src=encodeURI(g);h.style.width=a.width+"px";h.style.paddingTop="5px";M.appendChild(c);e.appendChild(h);d.style.maxWidth="initial";}else a.URL?(e=f.createElement("a"),e.href=encodeURI(a.URL),e.target="_blank",M.appendChild(e),c.style.cursor="pointer",d.style.cursor="pointer",e.appendChild(c)):(a.sceneId&&(c.onclick=c.ontouchend=function(){c.clicked||(c.clicked=!0,I(a.sceneId,a.targetPitch,a.targetYaw,a.targetHfov));return !1;},c.style.cursor="pointer",d.style.cursor="pointer"),M.appendChild(c));if(a.createTooltipFunc)a.createTooltipFunc(c,a.createTooltipArgs);else{if(a.text||a.video||a.image)c.classList.add("pnlm-tooltip"),c.appendChild(d),d.style.width=d.scrollWidth-20+"px",d.style.marginLeft=-(d.scrollWidth-c.offsetWidth)/2+"px",d.style.marginTop=-d.scrollHeight-12+"px";}a.clickHandlerFunc&&(c.addEventListener("click",function(b){a.clickHandlerFunc(b,a.clickHandlerArgs);},"false"),c.style.cursor="pointer",d.style.cursor="pointer");a.div=c;}function ja(){Va||(b.hotSpots?(b.hotSpots=b.hotSpots.sort(function(a,b){return a.pitch<b.pitch;}),b.hotSpots.forEach(Ia)):b.hotSpots=[],Va=!0,b.hotSpots.forEach(c));}function p(){var a=b.hotSpots;Va=!1;delete b.hotSpots;if(a)for(var c=0;c<a.length;c++){for(var d=a[c].div;d.parentNode!=M;)d=d.parentNode;M.removeChild(d);delete a[c].div;}}function c(a){var c=Math.sin(a.pitch*Math.PI/180),d=Math.cos(a.pitch*Math.PI/180),e=Math.sin(b.pitch*Math.PI/180),f=Math.cos(b.pitch*Math.PI/180),g=Math.cos((-a.yaw+b.yaw)*Math.PI/180),h=c*e+d*g*f;if(90>=a.yaw&&-90<a.yaw&&0>=h||(90<a.yaw||-90>=a.yaw)&&0>=h)a.div.style.visibility="hidden";else{var l=Math.sin((-a.yaw+b.yaw)*Math.PI/180),p=Math.tan(b.hfov*Math.PI/360);a.div.style.visibility="visible";var m=B.getCanvas(),n=m.clientWidth,m=m.clientHeight,c=[-n/p*l*d/h/2,-n/p*(c*f-d*g*e)/h/2],d=Math.sin(b.roll*Math.PI/180),e=Math.cos(b.roll*Math.PI/180),c=[c[0]*e-c[1]*d,c[0]*d+c[1]*e];c[0]+=(n-a.div.offsetWidth)/2;c[1]+=(m-a.div.offsetHeight)/2;n="translate("+c[0]+"px, "+c[1]+"px) translateZ(9999px) rotate("+b.roll+"deg)";a.div.style.webkitTransform=n;a.div.style.MozTransform=n;a.div.style.transform=n;}}
267function g(a){b={};var c,d,e="haov vaov vOffset northOffset horizonPitch horizonRoll".split(" ");da=[];for(c in Wa)Wa.hasOwnProperty(c)&&(b[c]=Wa[c]);for(c in v.default)if(v.default.hasOwnProperty(c))if("strings"==c)for(d in v.default.strings)v.default.strings.hasOwnProperty(d)&&(b.strings[d]=D(v.default.strings[d]));else b[c]=v.default[c],0<=e.indexOf(c)&&da.push(c);if(null!==a&&""!==a&&v.scenes&&v.scenes[a]){var f=v.scenes[a];for(c in f)if(f.hasOwnProperty(c))if("strings"==c)for(d in f.strings)f.strings.hasOwnProperty(d)&&(b.strings[d]=D(f.strings[d]));else b[c]=f[c],0<=e.indexOf(c)&&da.push(c);b.scene=a;}for(c in v)if(v.hasOwnProperty(c))if("strings"==c)for(d in v.strings)v.strings.hasOwnProperty(d)&&(b.strings[d]=D(v.strings[d]));else b[c]=v[c],0<=e.indexOf(c)&&da.push(c);}function t(a){if((a=a?a:!1)&&"preview" in b){var c=b.preview;b.basePath&&!oa(c)&&(c=b.basePath+c);qa=f.createElement("div");qa.className="pnlm-preview-img";qa.style.backgroundImage="url('"+encodeURI(c)+"')";M.appendChild(qa);}var c=b.title,d=b.author;a&&("previewTitle" in b&&(b.title=b.previewTitle),"previewAuthor" in b&&(b.author=b.previewAuthor));b.hasOwnProperty("title")||(n.title.innerHTML="");b.hasOwnProperty("author")||(n.author.innerHTML="");b.hasOwnProperty("title")||b.hasOwnProperty("author")||(n.container.style.display="none");w.load.innerHTML="<p>"+b.strings.loadButtonLabel+"</p>";n.load.boxp.innerHTML=b.strings.loadingLabel;for(var e in b)if(b.hasOwnProperty(e))switch(e){case "title":n.title.innerHTML=D(b[e]);n.container.style.display="inline";break;case "author":n.author.innerHTML=b.strings.bylineLabel.replace("%s",D(b[e]));n.container.style.display="inline";break;case "fallback":n.errorMsg.innerHTML='<p>Your browser does not support WebGL.<br><a href="'+encodeURI(b[e])+'" target="_blank">Click here to view this panorama in an alternative viewer.</a></p>';break;case "hfov":U(Number(b[e]));break;case "autoLoad":!0===b[e]&&B===m&&(n.load.box.style.display="inline",w.load.style.display="none",Na());break;case "showZoomCtrl":w.zoom.style.display=b[e]&&!1!=b.showControls?"block":"none";break;case "showFullscreenCtrl":w.fullscreen.style.display=b[e]&&!1!=b.showControls&&("fullscreen" in f||"mozFullScreen" in f||"webkitIsFullScreen" in f||"msFullscreenElement" in f)?"block":"none";break;case "hotSpotDebug":Xa.style.display=b[e]?"block":"none";break;case "showControls":b[e]||(w.orientation.style.display="none",w.zoom.style.display="none",w.fullscreen.style.display="none");break;case "orientationOnByDefault":b[e]&&(pa===m?Ya=!0:!0===pa&&Ka());}a&&(c?b.title=c:delete b.title,d?b.author=d:delete b.author);}function z(){if(L&&!Pa)if(Ga)f.exitFullscreen?f.exitFullscreen():f.mozCancelFullScreen?f.mozCancelFullScreen():f.webkitCancelFullScreen?f.webkitCancelFullScreen():f.msExitFullscreen&&f.msExitFullscreen();else try{r.requestFullscreen?r.requestFullscreen():r.mozRequestFullScreen?r.mozRequestFullScreen():r.msRequestFullscreen?r.msRequestFullscreen():r.webkitRequestFullScreen();}catch(a){}}function y(){f.fullscreen||f.mozFullScreen||f.webkitIsFullScreen||f.msFullscreenElement?(w.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),Ga=!0):(w.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),Ga=!1);B.resize();U(b.hfov);F();}function E(a){var c=b.minHfov;"multires"==b.type&&B&&(c=Math.min(c,B.getCanvas().width/(b.multiRes.cubeResolution/90*0.9)));return c>b.maxHfov?(console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),b.hfov):a<c?c:a>b.maxHfov?b.maxHfov:a;}function U(a){b.hfov=E(a);}function Ja(){K={};$=b.autoRotate?b.autoRotate:$;b.autoRotate=!1;}function Q(){Pa&&(n.load.box.style.display="none",n.errorMsg.style.display="none",Pa=!1,ga("errorcleared"));w.load.style.display="none";n.load.box.style.display="inline";Na();}function I(a,c,d,e,f){L=!1;K={};var h,l;if(b.sceneFadeDuration&&!f&&(h=B.render(b.pitch*Math.PI/180,b.yaw*Math.PI/180,b.hfov*Math.PI/180,{returnImage:!0}),h!==m)){f=new Image();f.className="pnlm-fade-img";f.style.transition="opacity "+b.sceneFadeDuration/1E3+"s";f.style.width="100%";f.style.height="100%";f.onload=function(){I(a,c,d,e,!0);};f.src=h;M.appendChild(f);B.fadeImg=f;return;}f="same"===c?b.pitch:c;h="same"===d?b.yaw:"sameAzimuth"===d?b.yaw+(b.northOffset||0)-(v.scenes[a].northOffset||0):d;l="same"===e?b.hfov:e;p();g(a);x.yaw=x.pitch=x.hfov=0;t();f!==m&&(b.pitch=f);h!==m&&(b.yaw=h);l!==m&&(b.hfov=l);ga("scenechange",a);Q();}function l(){J.removeEventListener("deviceorientation",Ma);w.orientation.classList.remove("pnlm-orientation-button-active");aa=!1;}function Ka(){aa=1;J.addEventListener("deviceorientation",Ma);w.orientation.classList.add("pnlm-orientation-button-active");}function D(a){return v.escapeHTML?String(a).split(/&/g).join("&amp;").split('"').join("&quot;").split("'").join("&#39;").split("<").join("&lt;").split(">").join("&gt;").split("/").join("&#x2f;").split("\n").join("<br>"):String(a).split("\n").join("<br>");}function ga(a){if(a in T)for(var b=T[a].length;0<b;
267b--)T[a][T[a].length-b].apply(null,[].slice.call(arguments,1));}var za=this,b,B,qa,la=!1,S=Date.now(),xa=0,ya=0,Fa=-1,Qa=0,Ra=0,q=Array(10),Ga=!1,L=!1,Pa=!1,Sa=!1,O,ia,x={yaw:0,pitch:0,hfov:0},Ta=!1,aa=!1,ab=0,Ua,$=0,wa,Ea,K={},T={},da=[],$a=!1,Va=!1,Wa={hfov:100,minHfov:50,maxHfov:120,pitch:0,minPitch:m,maxPitch:m,yaw:0,minYaw:-180,maxYaw:180,roll:0,haov:360,vaov:180,vOffset:0,autoRotate:!1,autoRotateInactivityDelay:-1,autoRotateStopDelay:m,type:"equirectangular",northOffset:0,showFullscreenCtrl:!0,dynamic:!1,doubleClickZoom:!0,keyboardZoom:!0,mouseZoom:!0,showZoomCtrl:!0,autoLoad:!1,showControls:!0,orientationOnByDefault:!1,hotSpotDebug:!1,backgroundColor:[0,0,0],animationTimingFunction:function(a){return 0.5>a?2*a*a:-1+(4-2*a)*a;},draggable:!0,disableKeyboardCtrl:!1,crossOrigin:"anonymous",strings:{loadButtonLabel:"Click to<br>Load<br>Panorama",loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",fileAccessError:"The file %s could not be accessed.",malformedURLError:"There is something wrong with the panorama URL.",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",genericWebGLError:"Your browser does not have the necessary WebGL support to display this panorama.",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",unknownError:"Unknown error. Check developer console."}},Za=[16,17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189];r="string"===typeof r?f.getElementById(r):r;r.classList.add("pnlm-container");r.tabIndex=0;var C=f.createElement("div");C.className="pnlm-ui";r.appendChild(C);var M=f.createElement("div");M.className="pnlm-render-container";r.appendChild(M);var H=f.createElement("div");H.className="pnlm-dragfix";C.appendChild(H);var ha=f.createElement("span");ha.className="pnlm-about-msg";ha.innerHTML='<a href="https://pannellum.org/" target="_blank">Pannellum</a> 2.4.0';C.appendChild(ha);H.addEventListener("contextmenu",X);var n={},Xa=f.createElement("div");Xa.className="pnlm-sprite pnlm-hot-spot-debug-indicator";C.appendChild(Xa);n.container=f.createElement("div");n.container.className="pnlm-panorama-info";n.title=f.createElement("div");n.title.className="pnlm-title-box";n.container.appendChild(n.title);n.author=f.createElement("div");n.author.className="pnlm-author-box";n.container.appendChild(n.author);C.appendChild(n.container);n.load={};n.load.box=f.createElement("div");n.load.box.className="pnlm-load-box";n.load.boxp=f.createElement("p");n.load.box.appendChild(n.load.boxp);n.load.lbox=f.createElement("div");n.load.lbox.className="pnlm-lbox";n.load.lbox.innerHTML='<div class="pnlm-loading"></div>';n.load.box.appendChild(n.load.lbox);n.load.lbar=f.createElement("div");n.load.lbar.className="pnlm-lbar";n.load.lbarFill=f.createElement("div");n.load.lbarFill.className="pnlm-lbar-fill";n.load.lbar.appendChild(n.load.lbarFill);n.load.box.appendChild(n.load.lbar);n.load.msg=f.createElement("p");n.load.msg.className="pnlm-lmsg";n.load.box.appendChild(n.load.msg);C.appendChild(n.load.box);n.errorMsg=f.createElement("div");n.errorMsg.className="pnlm-error-msg pnlm-info-box";C.appendChild(n.errorMsg);var w={};w.container=f.createElement("div");w.container.className="pnlm-controls-container";C.appendChild(w.container);w.load=f.createElement("div");w.load.className="pnlm-load-button";w.load.addEventListener("click",function(){t();Q();});C.appendChild(w.load);w.zoom=f.createElement("div");w.zoom.className="pnlm-zoom-controls pnlm-controls";w.zoomIn=f.createElement("div");w.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control";w.zoomIn.addEventListener("click",function(){L&&(U(b.hfov-5),F());});w.zoom.appendChild(w.zoomIn);w.zoomOut=f.createElement("div");w.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control";w.zoomOut.addEventListener("click",function(){L&&(U(b.hfov+5),F());});w.zoom.appendChild(w.zoomOut);w.container.appendChild(w.zoom);w.fullscreen=f.createElement("div");w.fullscreen.addEventListener("click",z);w.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-control
267s pnlm-control";(f.fullscreenEnabled||f.mozFullScreenEnabled||f.webkitFullscreenEnabled||f.msFullscreenEnabled)&&w.container.appendChild(w.fullscreen);w.orientation=f.createElement("div");w.orientation.addEventListener("click",function(a){aa?l():Ka();});w.orientation.addEventListener("mousedown",function(a){a.stopPropagation();});w.orientation.addEventListener("touchstart",function(a){a.stopPropagation();});w.orientation.addEventListener("pointerdown",function(a){a.stopPropagation();});w.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";var pa,Ya=!1;J.DeviceOrientationEvent?J.addEventListener("deviceorientation",Oa):pa=!1;var Ha=f.createElement("div");Ha.className="pnlm-compass pnlm-controls pnlm-control";C.appendChild(Ha);v.firstScene?g(v.firstScene):v.default&&v.default.firstScene?g(v.default.firstScene):g(null);t(!0);var ma=[],Aa=[];Z.prototype.multiply=function(a){return new Z(this.w*a.w-this.x*a.x-this.y*a.y-this.z*a.z,this.x*a.w+this.w*a.x+this.y*a.z-this.z*a.y,this.y*a.w+this.w*a.y+this.z*a.x-this.x*a.z,this.z*a.w+this.w*a.z+this.x*a.y-this.y*a.x);};Z.prototype.toEulerAngles=function(){var a=Math.atan2(2*(this.w*this.x+this.y*this.z),1-2*(this.x*this.x+this.y*this.y)),b=Math.asin(2*(this.w*this.y-this.z*this.x)),c=Math.atan2(2*(this.w*this.z+this.x*this.y),1-2*(this.y*this.y+this.z*this.z));return [a,b,c];};this.isLoaded=function(){return L;};this.getPitch=function(){return b.pitch;};this.setPitch=function(a,c,d,e){(c=c==m?1E3:Number(c))?K.pitch={startTime:Date.now(),startPosition:b.pitch,endPosition:a,duration:c,callback:d,callbackArgs:e}:b.pitch=a;F();return this;};this.getPitchBounds=function(){return [b.minPitch,b.maxPitch];};this.setPitchBounds=function(a){b.minPitch=Math.max(-90,Math.min(a[0],90));b.maxPitch=Math.max(-90,Math.min(a[1],90));return this;};this.getYaw=function(){return b.yaw;};this.setYaw=function(a,c,d,e){c=c==m?1E3:Number(c);a=(a+180)%360-180;c?(180<b.yaw-a?a+=360:180<a-b.yaw&&(a-=360),K.yaw={startTime:Date.now(),startPosition:b.yaw,endPosition:a,duration:c,callback:d,callbackArgs:e}):b.yaw=a;F();return this;};this.getYawBounds=function(){return [b.minYaw,b.maxYaw];};this.setYawBounds=function(a){b.minYaw=Math.max(-180,Math.min(a[0],180));b.maxYaw=Math.max(-180,Math.min(a[1],180));return this;};this.getHfov=function(){return b.hfov;};this.setHfov=function(a,c,d,e){(c=c==m?1E3:Number(c))?K.hfov={startTime:Date.now(),startPosition:b.hfov,endPosition:E(a),duration:c,callback:d,callbackArgs:e}:U(a);F();return this;};this.getHfovBounds=function(){return [b.minHfov,b.maxHfov];};this.setHfovBounds=function(a){b.minHfov=Math.max(0,a[0]);b.maxHfov=Math.max(0,a[1]);return this;};this.lookAt=function(a,b,c,d,e,f){d=d==m?1E3:Number(d);a!==m&&(this.setPitch(a,d,e,f),e=m);b!==m&&(this.setYaw(b,d,e,f),e=m);c!==m&&this.setHfov(c,d,e,f);return this;};this.getNorthOffset=function(){return b.northOffset;};this.setNorthOffset=function(a){b.northOffset=Math.min(360,Math.max(0,a));F();return this;};this.getHorizonRoll=function(){return b.horizonRoll;};this.setHorizonRoll=function(a){b.horizonRoll=Math.min(90,Math.max(-90,a));B.setPose(b.horizonPitch*Math.PI/180,b.horizonRoll*Math.PI/180);F();return this;};this.getHorizonPitch=function(){return b.horizonPitch;};this.setHorizonPitch=function(a){b.horizonPitch=Math.min(90,Math.max(-90,a));B.setPose(b.horizonPitch*Math.PI/180,b.horizonRoll*Math.PI/180);F();return this;};this.startAutoRotate=function(a){a=a||$||1;b.autoRotate=a;za.lookAt(Ea,m,wa,3E3);F();return this;};this.stopAutoRotate=function(){$=b.autoRotate?b.autoRotate:$;b.autoRotate=!1;b.autoRotateInactivityDelay=-1;return this;};this.getRenderer=function(){return B;};this.setUpdate=function(a){$a=!0===a;B===m?P():F();return this;};this.mouseEventToCoords=function(a){return sa(a);};this.loadScene=function(a,b,c,d){L&&I(a,b,c,d);return this;};this.getScene=function(){return b.scene;};this.addScene=function(a,b){v.scenes[a]=b;return this;};this.removeScene=function(a){if(b.scene===a||!v.scenes.hasOwnProperty(a))return !1;delete v.scenes[a];return !0;};this.toggleFullscreen=function(){z();return this;};this.getConfig=function(){return b;};this.getContainer=function(){return r;};this.addHotSpot=function(a,d){if(d===m&&b.scene===m)b.hotSpots.push(a);else{var e=d!==m?d:b.scene;if(v.scenes.hasOwnProperty(e))v.scenes[e].hasOwnProperty("hotSpots")||(v.scenes[e].hotSpots=[],e==b.scene&&(b.hotSpots=v.scenes[e].hotSpots)),v.scenes[e].hotSpots.push(a);else throw "Invalid scene ID!";}if(d===m||b.scene==d)Ia(a),L&&c(a);return this;};
267this.removeHotSpot=function(a){if(!b.hotSpots)return !1;for(var c=0;c<b.hotSpots.length;c++)if(b.hotSpots[c].hasOwnProperty("id")&&b.hotSpots[c].id===a){for(a=b.hotSpots[c].div;a.parentNode!=M;)a=a.parentNode;M.removeChild(a);delete b.hotSpots[c].div;b.hotSpots.splice(c,1);return !0;}return !1;};this.resize=function(){y();};this.isLoaded=function(){return L;};this.isOrientationSupported=function(){return pa||!1;};this.stopOrientation=function(){l();};this.startOrientation=function(){pa&&Ka();};this.isOrientationActive=function(){return Boolean(aa);};this.on=function(a,b){T[a]=T[a]||[];T[a].push(b);return this;};this.off=function(a,b){if(!a)return T={},this;if(b){var c=T[a].indexOf(b);0<=c&&T[a].splice(c,1);0==T[a].length&&delete T[a];}else delete T[a];return this;};this.destroy=function(){B&&B.destroy();Sa&&(H.removeEventListener("mousedown",Ca,!1),H.removeEventListener("dblclick",ra,!1),f.removeEventListener("mousemove",La,!1),f.removeEventListener("mouseup",ea,!1),r.removeEventListener("mousewheel",na,!1),r.removeEventListener("DOMMouseScroll",na,!1),r.removeEventListener("mozfullscreenchange",y,!1),r.removeEventListener("webkitfullscreenchange",y,!1),r.removeEventListener("msfullscreenchange",y,!1),r.removeEventListener("fullscreenchange",y,!1),J.removeEventListener("resize",ka,!1),J.removeEventListener("orientationchange",ka,!1),r.removeEventListener("keydown",R,!1),r.removeEventListener("keyup",fa,!1),r.removeEventListener("blur",ua,!1),f.removeEventListener("mouseleave",ea,!1),H.removeEventListener("touchstart",ta,!1),H.removeEventListener("touchmove",A,!1),H.removeEventListener("touchend",d,!1),H.removeEventListener("pointerdown",a,!1),H.removeEventListener("pointermove",V,!1),H.removeEventListener("pointerup",N,!1),H.removeEventListener("pointerleave",N,!1));r.innerHTML="";r.classList.remove("pnlm-container");C.classList.remove("pnlm-grab");C.classList.remove("pnlm-grabbing");};}return {viewer:function(f,m){return new Ba(f,m);}};}(window,document);;
268(function($){var panorama=$('#panorama');if(panorama.length>0){var url=panorama.data('src');if(window.matchMedia(panorama.data('mobile-breakpoint')))url=panorama.data('src-mobile');pannellum.viewer('panorama',{"default":{"sceneFadeDuration":500,"autoLoad":true},"type":"equirectangular","panorama":url});}})(jQuery);;
269(function($,Drupal,drupalSettings){'use strict';Drupal.behaviors.userAgentClassBehavior={attach:function(){var userAgentText=navigator.userAgent;var listDevicesAndBrowsers=drupalSettings.user_agent_class.ListDevicesAndBrowsers;var listDevices=Object.keys(listDevicesAndBrowsers[0].device_entity).map(function(e){return listDevicesAndBrowsers[0].device_entity[e];});var listBrowsers=Object.keys(listDevicesAndBrowsers[1].user_agent_entity).map(function(e){return listDevicesAndBrowsers[1].user_agent_entity[e];});var methodProvideBoolean=drupalSettings.user_agent_class.methodProvide;if(methodProvideBoolean==='0'||methodProvideBoolean===0){var classes=[];var item='';for(item in listBrowsers)if(listBrowsers[item].exclude.length>0&&userAgentText.search(listBrowsers[item].exclude)>=0&&userAgentText.search(listBrowsers[item].trigger)>=0)continue;else{if(userAgentText.search(listBrowsers[item].trigger)>=0){classes.push(listBrowsers[item].className);break;}}for(item in listDevices)if(listDevices[item].exclude.length>0&&userAgentText.search(listDevices[item].exclude)>=0&&userAgentText.search(listDevices[item].trigger)>=0)continue;else{if(userAgentText.search(listDevices[item].trigger)>=0){classes.push(listDevices[item].className);break;}}var classesInBody=classes.join(' ');
269$('body').addClass(classesInBody);}}};})(jQuery,Drupal,drupalSettings);;

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