/* @license MIT https://raw.githubusercontent.com/jquery/jquery/3.7.1/LICENSE.txt */ /*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0 script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');window.drupalSettings={};if(settingsElement!==null)window.drupalSettings=JSON.parse(settingsElement.textContent);})();; window.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,'&').replace(//g,'>').replace(/"/g,'"').replace(/'/g,''');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{if(drupalSettings.suppressDeprecationErrors===false&&typeof console!=='undefined'&&console.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(func in Drupal.theme)return Drupal.theme[func](...args);};Drupal.theme.placeholder=function(str){return `${Drupal.checkPlain(str)}`;};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);; if(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);; /* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.2.0/LICENSE */ /*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function t(e,n){var o;void 0===n&&(n=!0);var r=null==e||null===(o=e.getAttribute)||void 0===o?void 0:o.call(e,"inert");return""===r||"true"===r||n&&e&&t(e.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,i){for(var l=[],u=Array.from(e);u.length;){var d=u.shift();if(!a(d,!1))if("SLOT"===d.tagName){var c=d.assignedElements(),f=t(c.length?c:d.children,!0,i);i.flatten?l.push.apply(l,f):l.push({scopeParent:d,candidates:f})}else{r.call(d,n)&&i.filter(d)&&(o||!e.includes(d))&&l.push(d);var s=d.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(d),p=!a(s,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(d));if(s&&p){var h=t(!0===s?d.children:s.children,!0,i);i.flatten?l.push.apply(l,h):l.push({scopeParent:d,candidates:h})}else u.unshift.apply(u,d.children)}}return l},d=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},c=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))&&!d(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;nsummary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==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,d=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||d===t.ownerDocument?u:d.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 d,c,f;u=!(null===(c=l=null===(d=a=i(l))||void 0===d?void 0:d.host)||void 0===c||null===(f=c.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n=0)},y=function t(e){var n=[],o=[];return e.forEach((function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,l=function(t,e){var n=c(t);return n<0&&e&&!d(t)?0:n}(a,i),u=i?t(e.candidates):a;0===l?i?n.push.apply(n,u):n.push(a):o.push({documentOrder:r,tabIndex:l,item:e,isScope:i,content:u})})),o.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},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=c,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)&&m(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:m.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:g}):l(t,e.includeContainer,m.bind(null,e)),y(n)},Object.defineProperty(t,"__esModule",{value:!0})})); ; /* @license GNU-GPL-2.0-or-later https://www.drupal.org/licensing/faq */ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a;}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r);},p,p.exports,r,e,n,t);}return n[i].exports;}for(var u="function"==typeof require&&require,i=0;i0&&arguments[0]!==undefined?arguments[0]:{};var changeTimeoutId;var lastCalculatedSize;this.options=_objectSpread(_objectSpread({},defaultOptions),options);this.options.breakpoints.forEach(function(size){var $element=document.createElement(_this.options.template);$element.setAttribute('style',_this.options.styles);$element.setAttribute('class',_this.options.classPrefix+size);$element.setAttribute(_this.options.dataAttrSelector,size);document.querySelector('body').appendChild($element);});var event=new CustomEvent(this.options.breakpointInitEvent,{detail:{breakpoint:this.get()},bubbles:true});document.dispatchEvent(event);window.addEventListener('resize',function(){clearTimeout(changeTimeoutId);changeTimeoutId=setTimeout(function(){if(lastCalculatedSize!==_this.get()){lastCalculatedSize=_this.get();var _event=new CustomEvent(_this.options.breakpointChangeEvent,{detail:{breakpoint:lastCalculatedSize},bubbles:true});document.dispatchEvent(_event);}},_this.options.resizeTimeout);});},get:function get(){var _this2=this;var $element=document.querySelectorAll("[".concat(this.options.dataAttrSelector,"]"));var breakpoint='';$element.forEach(function(element){if(element.offsetWidth>0&&element.offsetHeight>0)breakpoint=element.getAttribute(_this2.options.dataAttrSelector);});return breakpoint;},is:function is(size){return this.get()===size;},not:function not(size){return !this.is(size);}};var _default=breakpoint;exports["default"]=_default;},{}]},{},[1]);; (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a;}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r);},p,p.exports,r,e,n,t);}return n[i].exports;}for(var u="function"==typeof require&&require,i=0;i/,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(;i1?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=[];each(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;icontainerRect.right-offset||scrolledX+bounding.width>window.innerWidth-offset)edges.right=true;if(scrolledYcontainerBottom-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,spaceOnRight: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 rb&&(b+=1);1b?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=g.currentTime)for(var G=0;G=w||!k)g.began||(g.began=!0,f("begin")),f("run");if(q>n&&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=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++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;db&&(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('touchmove',this._handleDocumentTouchmoveBound);this.dropdownEl.addEventListener('keydown',this._handleDropdownKeydownBound);}},{key:"_removeTemporaryEventHandlers",value:function _removeTemporaryEventHandlers(){document.body.removeEventListener('click',this._handleDocumentClickBound,true);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=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();if(!!$activatableElement.length)$activatableElement[0].click();else{if(!!focusedElement)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.focusedIndexalignments.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')_this11.options.onOpenEnd.call(_this11,_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')_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=[];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=$('');_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});$.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});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=$('
').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: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=$('
').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=$('
');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;this._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&&topparallaxInstance.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=$('');$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]);}});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);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;rippleStyle['-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;a0)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};var 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);toast.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;}},{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=[];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=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.id0){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||elRightbottom||elBottom=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=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(""+beforeMatch+""+matchText+""+afterMatch+"");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');if(!!_entry.data)$autocompleteOption.append(""+_entry.key+"");else $autocompleteOption.append(''+_entry.key+'');$(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=$('
');$('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);if(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,'
');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');this.$slides.each(function(el,index){var $indicator=$('
  • ');_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>=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='';}else{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.$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!==undefined&&!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.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(scrolledthis.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);function 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=$('
    ');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,0,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)&&datemax)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=visibleDate11){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=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.startRangeopts.maxDate||opts.disableWeekends&&Datepicker._isWeekend(day)||opts.disableDayFn&&opts.disableDayFn(day);if(isEmpty)if(i';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 ""+("")+'';}},{key:"renderRow",value:function renderRow(days,isRTL,isRowSelected){return ''+(isRTL?days.reverse():days).join('')+'';}},{key:"renderTable",value:function renderTable(opts,data,randId){return '
    '+this.renderHead(opts)+this.renderBody(data)+'
    ';}},{key:"renderHead",value:function renderHead(opts){var i=void 0,arr=[];for(i=0;i<7;i++)arr.push(""+this.renderDayName(opts,i,true)+"");return ''+(opts.isRTL?arr.reverse():arr).join('')+'';}},{key:"renderBody",value:function renderBody(rows){return ''+rows.join('')+'';}},{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='
    ',monthHtml=void 0,yearHtml=void 0,prev=true,next=true;for(arr=[],i=0;i<12;i++)arr.push('');monthHtml='';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=opts.minYear)arr.push("");yearHtml="";var leftArrow='';html+="";html+='
    ';if(opts.showMonthAfterYear)html+=yearHtml+monthHtml;else html+=monthHtml+yearHtml;html+='
    ';if(isMinYear&&(month===0||opts.minMonth>=month))prev=false;if(isMaxYear&&(month===11||opts.maxMonth<=month))next=false;var rightArrow='';html+="";return html+='
    ';}},{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=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))date.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=[''].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=$("").appendTo(this.footer).on('click',this.clear.bind(this));if(this.options.showClearBtn)$clearBtn.css({visibility:''});var confirmationBtnsContainer=$('
    ');$('').appendTo(confirmationBtnsContainer).on('click',this.close.bind(this));$('').appendTo(confirmationBtnsContainer).on('click',this.done.bind(this));confirmationBtnsContainer.appendTo(this.footer);}},{key:"_clockSetup",value:function _clockSetup(){if(this.options.twelveHour){this.$amBtn=$('
    AM
    ');this.$pmBtn=$('
    PM
    ');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=$('
    ');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=$('
    ');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;var 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=[''].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);if(_this62.options.fullWidth){_this62.options.dist=0;_this62._setCarouselHeight();if(_this62.showIndicators)_this62.$el.find('.carousel-fixed-item').addClass('with-indicators');}_this62.$indicators=$('
      ');_this62.$el.find('.carousel-item').each(function(el,i){_this62.images.push(el);if(_this62.showIndicators){var $indicator=$('
    • ');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');if(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.center0?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.center0)if(Math.abs(diff-this.count)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;icenterX;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.find('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($('
    • '+el.getAttribute('label')+'
    • ')[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=$('');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(selectedOption.length){M.keyDown=true;_this71.dropdown.focusedIndex=selectedOption.index();_this71.dropdown._focusFocusedItem();M.keyDown=false;if(_this71.dropdown.isScrollable){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?"":option.innerHTML;var liEl=$('
    • ');var spanEl=$('');spanEl.html(multipleCheckbox);liEl.addClass(disabledClass+" "+optgroupClass);liEl.append(spanEl);var iconUrl=option.getAttribute('data-icon');if(!!iconUrl){var imgEl=$("\"\"");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');this.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);}).call(this);}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{});},{}]},{},[1]);; (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a;}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r);},p,p.exports,r,e,n,t);}return n[i].exports;}for(var u="function"==typeof require&&require,i=0;i/,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(;i1?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=[];each(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;icontainerRect.right-offset||scrolledX+bounding.width>window.innerWidth-offset)edges.right=true;if(scrolledYcontainerBottom-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,spaceOnRight: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 rb&&(b+=1);1b?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=g.currentTime)for(var G=0;G=w||!k)g.began||(g.began=!0,f("begin")),f("run");if(q>n&&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=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++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;db&&(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('touchmove',this._handleDocumentTouchmoveBound);this.dropdownEl.addEventListener('keydown',this._handleDropdownKeydownBound);}},{key:"_removeTemporaryEventHandlers",value:function _removeTemporaryEventHandlers(){document.body.removeEventListener('click',this._handleDocumentClickBound,true);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=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();if(!!$activatableElement.length)$activatableElement[0].click();else{if(!!focusedElement)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.focusedIndexalignments.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')_this11.options.onOpenEnd.call(_this11,_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')_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=[];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=$('');_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});$.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});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=$('
      ').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: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=$('
      ').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=$('
      ');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;this._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&&topparallaxInstance.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=$('');$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]);}});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);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;rippleStyle['-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;a0)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};var 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);toast.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;}},{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=[];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=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.id0){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||elRightbottom||elBottom=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=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(""+beforeMatch+""+matchText+""+afterMatch+"");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');if(!!_entry.data)$autocompleteOption.append(""+_entry.key+"");else $autocompleteOption.append(''+_entry.key+'');$(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=$('
      ');$('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);if(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,'
      ');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');this.$slides.each(function(el,index){var $indicator=$('
    • ');_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>=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='';}else{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.$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!==undefined&&!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.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(scrolledthis.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);function 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=$('
      ');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,0,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)&&datemax)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=visibleDate11){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=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.startRangeopts.maxDate||opts.disableWeekends&&Datepicker._isWeekend(day)||opts.disableDayFn&&opts.disableDayFn(day);if(isEmpty)if(i';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 ""+("")+'';}},{key:"renderRow",value:function renderRow(days,isRTL,isRowSelected){return ''+(isRTL?days.reverse():days).join('')+'';}},{key:"renderTable",value:function renderTable(opts,data,randId){return '
      '+this.renderHead(opts)+this.renderBody(data)+'
      ';}},{key:"renderHead",value:function renderHead(opts){var i=void 0,arr=[];for(i=0;i<7;i++)arr.push(""+this.renderDayName(opts,i,true)+"");return ''+(opts.isRTL?arr.reverse():arr).join('')+'';}},{key:"renderBody",value:function renderBody(rows){return ''+rows.join('')+'';}},{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='
      ',monthHtml=void 0,yearHtml=void 0,prev=true,next=true;for(arr=[],i=0;i<12;i++)arr.push('');monthHtml='';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=opts.minYear)arr.push("");yearHtml="";var leftArrow='';html+="";html+='
      ';if(opts.showMonthAfterYear)html+=yearHtml+monthHtml;else html+=monthHtml+yearHtml;html+='
      ';if(isMinYear&&(month===0||opts.minMonth>=month))prev=false;if(isMaxYear&&(month===11||opts.maxMonth<=month))next=false;var rightArrow='';html+="";return html+='
      ';}},{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=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))date.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=[''].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=$("").appendTo(this.footer).on('click',this.clear.bind(this));if(this.options.showClearBtn)$clearBtn.css({visibility:''});var confirmationBtnsContainer=$('
      ');$('').appendTo(confirmationBtnsContainer).on('click',this.close.bind(this));$('').appendTo(confirmationBtnsContainer).on('click',this.done.bind(this));confirmationBtnsContainer.appendTo(this.footer);}},{key:"_clockSetup",value:function _clockSetup(){if(this.options.twelveHour){this.$amBtn=$('
      AM
      ');this.$pmBtn=$('
      PM
      ');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=$('
      ');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=$('
      ');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;var 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=[''].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);if(_this62.options.fullWidth){_this62.options.dist=0;_this62._setCarouselHeight();if(_this62.showIndicators)_this62.$el.find('.carousel-fixed-item').addClass('with-indicators');}_this62.$indicators=$('
        ');_this62.$el.find('.carousel-item').each(function(el,i){_this62.images.push(el);if(_this62.showIndicators){var $indicator=$('
      • ');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');if(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.center0?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.center0)if(Math.abs(diff-this.count)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;icenterX;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.find('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($('
      • '+el.getAttribute('label')+'
      • ')[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=$('');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(selectedOption.length){M.keyDown=true;_this71.dropdown.focusedIndex=selectedOption.index();_this71.dropdown._focusFocusedItem();M.keyDown=false;if(_this71.dropdown.isScrollable){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?"":option.innerHTML;var liEl=$('
      • ');var spanEl=$('');spanEl.html(multipleCheckbox);liEl.addClass(disabledClass+" "+optgroupClass);liEl.append(spanEl);var iconUrl=option.getAttribute('data-icon');if(!!iconUrl){var imgEl=$("\"\"");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');this.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);}).call(this);}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{});},{}]},{},[1]);; !function(){var t={9662:function(t,r,n){var e=n(7854),o=n(614),i=n(6330),u=e.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function");};},9483:function(t,r,n){var e=n(7854),o=n(4411),i=n(6330),u=e.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a constructor");};},6077:function(t,r,n){var e=n(7854),o=n(614),i=e.String,u=e.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype");};},1223:function(t,r,n){var e=n(5112),o=n(30),i=n(3070),u=e("unscopables"),a=Array.prototype;null==a[u]&&i.f(a,u,{configurable:!0,value:o(null)}),t.exports=function(t){a[u][t]=!0;};},1530:function(t,r,n){"use strict";var e=n(8710).charAt;t.exports=function(t,r,n){return r+(n?e(t,r).length:1);};},5787:function(t,r,n){var e=n(7854),o=n(7976),i=e.TypeError;t.exports=function(t,r){if(o(r,t))return t;throw i("Incorrect invocation");};},9670:function(t,r,n){var e=n(7854),o=n(111),i=e.String,u=e.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object");};},4019:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView;},7556:function(t,r,n){var e=n(7293);t.exports=e((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}}));},260:function(t,r,n){"use strict";var e,o,i,u=n(4019),a=n(9781),c=n(7854),f=n(614),s=n(111),l=n(2597),h=n(648),p=n(6330),v=n(8880),g=n(1320),d=n(3070).f,y=n(7976),m=n(9518),b=n(7674),_=n(5112),w=n(9711),x=c.Int8Array,E=x&&x.prototype,A=c.Uint8ClampedArray,S=A&&A.prototype,O=x&&m(x),R=E&&m(E),I=Object.prototype,T=c.TypeError,j=_("toStringTag"),k=w("TYPED_ARRAY_TAG"),M=w("TYPED_ARRAY_CONSTRUCTOR"),P=u&&!!b&&"Opera"!==h(c.opera),L=!1,C={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},U=function(t){if(!s(t))return !1;var r=h(t);return l(C,r)||l(N,r);};for(e in C)(i=(o=c[e])&&o.prototype)?v(i,M,o):P=!1;for(e in N)(i=(o=c[e])&&o.prototype)&&v(i,M,o);if((!P||!f(O)||O===Function.prototype)&&(O=function(){throw T("Incorrect invocation");},P))for(e in C)c[e]&&b(c[e],O);if((!P||!R||R===I)&&(R=O.prototype,P))for(e in C)c[e]&&b(c[e].prototype,R);if(P&&m(S)!==R&&b(S,R),a&&!l(R,j))for(e in L=!0,d(R,j,{get:function(){return s(this)?this[k]:void 0;}}),C)c[e]&&v(c[e],k,e);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_CONSTRUCTOR:M,TYPED_ARRAY_TAG:L&&k,aTypedArray:function(t){if(U(t))return t;throw T("Target is not a typed array");},aTypedArrayConstructor:function(t){if(f(t)&&(!b||y(O,t)))return t;throw T(p(t)+" is not a typed array constructor");},exportTypedArrayMethod:function(t,r,n,e){if(a){if(n)for(var o in C){var i=c[o];if(i&&l(i.prototype,t))try{delete i.prototype[t];}catch(n){try{i.prototype[t]=r;}catch(t){}}}R[t]&&!n||g(R,t,n?r:P&&E[t]||r,e);}},exportTypedArrayStaticMethod:function(t,r,n){var e,o;if(a){if(b){if(n)for(e in C)if((o=c[e])&&l(o,t))try{delete o[t];}catch(t){}if(O[t]&&!n)return;try{return g(O,t,n?r:P&&O[t]||r);}catch(t){}}for(e in C)!(o=c[e])||o[t]&&!n||g(o,t,r);}},isView:function(t){if(!s(t))return !1;var r=h(t);return "DataView"===r||l(C,r)||l(N,r);},isTypedArray:U,TypedArray:O,TypedArrayPrototype:R};},3331:function(t,r,n){"use strict";var e=n(7854),o=n(1702),i=n(9781),u=n(4019),a=n(6530),c=n(8880),f=n(2248),s=n(7293),l=n(5787),h=n(9303),p=n(7466),v=n(7067),g=n(1179),d=n(9518),y=n(7674),m=n(8006).f,b=n(3070).f,_=n(1285),w=n(1589),x=n(8003),E=n(9909),A=a.PROPER,S=a.CONFIGURABLE,O=E.get,R=E.set,I="ArrayBuffer",T="Wrong index",j=e.ArrayBuffer,k=j,M=k&&k.prototype,P=e.DataView,L=P&&P.prototype,C=Object.prototype,N=e.Array,U=e.RangeError,D=o(_),F=o([].reverse),B=g.pack,z=g.unpack,W=function(t){return [255&t];},q=function(t){return [255&t,t>>8&255];},$=function(t){return [255&t,t>>8&255,t>>16&255,t>>24&255];},V=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0];},G=function(t){return B(t,23,4);},Y=function(t){return B(t,52,8);},H=function(t,r){b(t.prototype,r,{get:function(){return O(this)[r];}});},K=function(t,r,n,e){var o=v(n),i=O(t);if(o+r>i.byteLength)throw U(T);var u=O(i.buffer).bytes,a=o+i.byteOffset,c=w(u,a,a+r);return e?c:F(c);},J=function(t,r,n,e,o,i){var u=v(n),a=O(t);if(u+r>a.byteLength)throw U(T);for(var c=O(a.buffer).bytes,f=u+a.byteOffset,s=e(+o),l=0;ltt;)(Z=X[tt++]) in k||c(k,Z,j[Z]);M.constructor=k;}y&&d(L)!==C&&y(L,C);var rt=new P(new k(2)),nt=o(L.setInt8);rt.setInt8(0,2147483648),rt.setInt8(1,2147483649),!rt.getInt8(0)&&rt.getInt8(1)||f(L,{setInt8:function(t,r){nt(this,t,r<<24>>24);},setUint8:function(t,r){nt(this,t,r<<24>>24);}},{unsafe:!0});}else M=(k=function(t){l(this,M);var r=v(t);R(this,{bytes:D(N(r),0),byteLength:r}),i||(this.byteLength=r);}).prototype,L=(P=function(t,r,n){l(this,L),l(t,M);var e=O(t).byteLength,o=h(r);if(o<0||o>e)throw U("Wrong offset");if(o+(n=void 0===n?e-o:p(n))>e)throw U("Wrong length");R(this,{buffer:t,byteLength:n,byteOffset:o}),i||(this.buffer=t,this.byteLength=n,this.byteOffset=o);}).prototype,i&&(H(k,"byteLength"),H(P,"buffer"),H(P,"byteLength"),H(P,"byteOffset")),f(L,{getInt8:function(t){return K(this,1,t)[0]<<24>>24;},getUint8:function(t){return K(this,1,t)[0];},getInt16:function(t){var r=K(this,2,t,arguments.length>1?arguments[1]:void 0);return (r[1]<<8|r[0])<<16>>16;},getUint16:function(t){var r=K(this,2,t,arguments.length>1?arguments[1]:void 0);return r[1]<<8|r[0];},getInt32:function(t){return V(K(this,4,t,arguments.length>1?arguments[1]:void 0));},getUint32:function(t){return V(K(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0;},getFloat32:function(t){return z(K(this,4,t,arguments.length>1?arguments[1]:void 0),23);},getFloat64:function(t){return z(K(this,8,t,arguments.length>1?arguments[1]:void 0),52);},setInt8:function(t,r){J(this,1,t,W,r);},setUint8:function(t,r){J(this,1,t,W,r);},setInt16:function(t,r){J(this,2,t,q,r,arguments.length>2?arguments[2]:void 0);},setUint16:function(t,r){J(this,2,t,q,r,arguments.length>2?arguments[2]:void 0);},setInt32:function(t,r){J(this,4,t,$,r,arguments.length>2?arguments[2]:void 0);},setUint32:function(t,r){J(this,4,t,$,r,arguments.length>2?arguments[2]:void 0);},setFloat32:function(t,r){J(this,4,t,G,r,arguments.length>2?arguments[2]:void 0);},setFloat64:function(t,r){J(this,8,t,Y,r,arguments.length>2?arguments[2]:void 0);}});x(k,I),x(P,"DataView"),t.exports={ArrayBuffer:k,DataView:P};},1048:function(t,r,n){"use strict";var e=n(7908),o=n(1400),i=n(6244),u=Math.min;t.exports=[].copyWithin||function(t,r){var n=e(this),a=i(n),c=o(t,a),f=o(r,a),s=arguments.length>2?arguments[2]:void 0,l=u((void 0===s?a:o(s,a))-f,a-c),h=1;for(f0;)f in n?n[c]=n[f]:delete n[c],c+=h,f+=h;return n;};},1285:function(t,r,n){"use strict";var e=n(7908),o=n(1400),i=n(6244);t.exports=function(t){for(var r=e(this),n=i(r),u=arguments.length,a=o(u>1?arguments[1]:void 0,n),c=u>2?arguments[2]:void 0,f=void 0===c?n:o(c,n);f>a;)r[a++]=t;return r;};},8533:function(t,r,n){"use strict";var e=n(2092).forEach,o=n(2133)("forEach");t.exports=o?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0);};},7745:function(t,r,n){var e=n(6244);t.exports=function(t,r){for(var n=0,o=e(r),i=new t(o);o>n;)i[n]=r[n++];return i;};},8457:function(t,r,n){"use strict";var e=n(7854),o=n(9974),i=n(6916),u=n(7908),a=n(3411),c=n(7659),f=n(4411),s=n(6244),l=n(6135),h=n(8554),p=n(1246),v=e.Array;t.exports=function(t){var r=u(t),n=f(this),e=arguments.length,g=e>1?arguments[1]:void 0,d=void 0!==g;d&&(g=o(g,e>2?arguments[2]:void 0));var y,m,b,_,w,x,E=p(r),A=0;if(!E||this==v&&c(E))for(y=s(r),m=n?new this(y):v(y);y>A;A++)x=d?g(r[A],A):r[A],l(m,A,x);else for(w=(_=h(r,E)).next,m=n?new this():[];!(b=i(w,_)).done;A++)x=d?a(_,g,[b.value,A],!0):b.value,l(m,A,x);return m.length=A,m;};},1318:function(t,r,n){var e=n(5656),o=n(1400),i=n(6244),u=function(t){return function(r,n,u){var a,c=e(r),f=i(c),s=o(u,f);if(t&&n!=n){for(;f>s;)if((a=c[s++])!=a)return !0;}else{for(;f>s;s++)if((t||s in c)&&c[s]===n)return t||s||0;}return !t&&-1;};};t.exports={includes:u(!0),indexOf:u(!1)};},2092:function(t,r,n){var e=n(9974),o=n(1702),i=n(8361),u=n(7908),a=n(6244),c=n(5417),f=o([].push),s=function(t){var r=1==t,n=2==t,o=3==t,s=4==t,l=6==t,h=7==t,p=5==t||l;return function(v,g,d,y){for(var m,b,_=u(v),w=i(_),x=e(g,d),E=a(w),A=0,S=y||c,O=r?S(v,E):n||h?S(v,0):void 0;E>A;A++)if((p||A in w)&&(b=x(m=w[A],A,_),t))if(r)O[A]=b;else if(b)switch(t){case 3:return !0;case 5:return m;case 6:return A;case 2:f(O,m);}else switch(t){case 4:return !1;case 7:f(O,m);}return l?-1:o||s?s:O;};};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)};},6583:function(t,r,n){"use strict";var e=n(2104),o=n(5656),i=n(9303),u=n(6244),a=n(2133),c=Math.min,f=[].lastIndexOf,s=!!f&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),h=s||!l;t.exports=h?function(t){if(s)return e(f,this,arguments)||0;var r=o(this),n=u(r),a=n-1;for(arguments.length>1&&(a=c(a,i(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in r&&r[a]===t)return a||0;return -1;}:f;},1194:function(t,r,n){var e=n(7293),o=n(5112),i=n(7392),u=o("species");t.exports=function(t){return i>=51||!e((function(){var r=[];return (r.constructor={})[u]=function(){return {foo:1};},1!==r[t](Boolean).foo;}));};},2133:function(t,r,n){"use strict";var e=n(7293);t.exports=function(t,r){var n=[][t];return !!n&&e((function(){n.call(null,r||function(){throw 1;},1);}));};},3671:function(t,r,n){var e=n(7854),o=n(9662),i=n(7908),u=n(8361),a=n(6244),c=e.TypeError,f=function(t){return function(r,n,e,f){o(n);var s=i(r),l=u(s),h=a(s),p=t?h-1:0,v=t?-1:1;if(e<2)for(;;){if(p in l){f=l[p],p+=v;break;}if(p+=v,t?p<0:h<=p)throw c("Reduce of empty array with no initial value");}for(;t?p>=0:h>p;p+=v)p in l&&(f=n(f,l[p],p,s));return f;};};t.exports={left:f(!1),right:f(!0)};},1589:function(t,r,n){var e=n(7854),o=n(1400),i=n(6244),u=n(6135),a=e.Array,c=Math.max;t.exports=function(t,r,n){for(var e=i(t),f=o(r,e),s=o(void 0===n?e:n,e),l=a(c(s-f,0)),h=0;f0;)t[e]=t[--e];e!==i++&&(t[e]=n);}return t;},a=function(t,r,n,e){for(var o=r.length,i=n.length,u=0,a=0;u1?arguments[1]:void 0);r=r?r.next:n.first;)for(e(r.value,r.key,this);r&&r.removed;)r=r.previous;},has:function(t){return !!m(this,t);}}),i(p,n?{get:function(t){var r=m(this,t);return r&&r.value;},set:function(t,r){return y(this,0===t?0:t,r);}}:{add:function(t){return y(this,t=0===t?0:t,t);}}),l&&e(p,"size",{get:function(){return d(this).size;}}),s;},setStrong:function(t,r,n){var e=r+" Iterator",o=g(r),i=g(e);f(t,r,(function(t,r){v(this,{type:e,target:t,state:o(t),kind:r,last:void 0});}),(function(){for(var t=i(this),r=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==r?{value:n.key,done:!1}:"values"==r?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0});}),n?"entries":"values",!n,!0),s(r);}};},9320:function(t,r,n){"use strict";var e=n(1702),o=n(2248),i=n(2423).getWeakData,u=n(9670),a=n(111),c=n(5787),f=n(408),s=n(2092),l=n(2597),h=n(9909),p=h.set,v=h.getterFor,g=s.find,d=s.findIndex,y=e([].splice),m=0,b=function(t){return t.frozen||(t.frozen=new _());},_=function(){this.entries=[];},w=function(t,r){return g(t.entries,(function(t){return t[0]===r;}));};_.prototype={get:function(t){var r=w(this,t);if(r)return r[1];},has:function(t){return !!w(this,t);},set:function(t,r){var n=w(this,t);n?n[1]=r:this.entries.push([t,r]);},delete:function(t){var r=d(this.entries,(function(r){return r[0]===t;}));return ~r&&y(this.entries,r,1),!!~r;}},t.exports={getConstructor:function(t,r,n,e){var s=t((function(t,o){c(t,h),p(t,{type:r,id:m++,frozen:void 0}),null!=o&&f(o,t[e],{that:t,AS_ENTRIES:n});})),h=s.prototype,g=v(r),d=function(t,r,n){var e=g(t),o=i(u(r),!0);return !0===o?b(e).set(r,n):o[e.id]=n,t;};return o(h,{delete:function(t){var r=g(this);if(!a(t))return !1;var n=i(t);return !0===n?b(r).delete(t):n&&l(n,r.id)&&delete n[r.id];},has:function(t){var r=g(this);if(!a(t))return !1;var n=i(t);return !0===n?b(r).has(t):n&&l(n,r.id);}}),o(h,n?{get:function(t){var r=g(this);if(a(t)){var n=i(t);return !0===n?b(r).get(t):n?n[r.id]:void 0;}},set:function(t,r){return d(this,t,r);}}:{add:function(t){return d(this,t,!0);}}),s;}};},7710:function(t,r,n){"use strict";var e=n(2109),o=n(7854),i=n(1702),u=n(4705),a=n(1320),c=n(2423),f=n(408),s=n(5787),l=n(614),h=n(111),p=n(7293),v=n(7072),g=n(8003),d=n(9587);t.exports=function(t,r,n){var y=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),b=y?"set":"add",_=o[t],w=_&&_.prototype,x=_,E={},A=function(t){var r=i(w[t]);a(w,t,"add"==t?function(t){return r(this,0===t?0:t),this;}:"delete"==t?function(t){return !(m&&!h(t))&&r(this,0===t?0:t);}:"get"==t?function(t){return m&&!h(t)?void 0:r(this,0===t?0:t);}:"has"==t?function(t){return !(m&&!h(t))&&r(this,0===t?0:t);}:function(t,n){return r(this,0===t?0:t,n),this;});};if(u(t,!l(_)||!(m||w.forEach&&!p((function(){(new _()).entries().next();})))))x=n.getConstructor(r,t,y,b),c.enable();else{if(u(t,!0)){var S=new x(),O=S[b](m?{}:-0,1)!=S,R=p((function(){S.has(1);})),I=v((function(t){new _(t);})),T=!m&&p((function(){for(var t=new _(),r=5;r--;)t[b](r,r);return !t.has(-0);}));I||((x=r((function(t,r){s(t,w);var n=d(new _(),t,x);return null!=r&&f(r,n[b],{that:n,AS_ENTRIES:y}),n;}))).prototype=w,w.constructor=x),(R||T)&&(A("delete"),A("has"),y&&A("get")),(T||O)&&A(b),m&&w.clear&&delete w.clear;}}return E[t]=x,e({global:!0,forced:x!=_},E),g(x,t),m||n.setStrong(x,t,y),x;};},9920:function(t,r,n){var e=n(2597),o=n(3887),i=n(1236),u=n(3070);t.exports=function(t,r,n){for(var a=o(r),c=u.f,f=i.f,s=0;s"+c+"";};},4994:function(t,r,n){"use strict";var e=n(3383).IteratorPrototype,o=n(30),i=n(9114),u=n(8003),a=n(7497),c=function(){return this;};t.exports=function(t,r,n,f){var s=r+" Iterator";return t.prototype=o(e,{next:i(+!f,n)}),u(t,s,!1,!0),a[s]=c,t;};},8880:function(t,r,n){var e=n(9781),o=n(3070),i=n(9114);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n));}:function(t,r,n){return t[r]=n,t;};},9114:function(t){t.exports=function(t,r){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r};};},6135:function(t,r,n){"use strict";var e=n(4948),o=n(3070),i=n(9114);t.exports=function(t,r,n){var u=e(r);u in t?o.f(t,u,i(0,n)):t[u]=n;};},5573:function(t,r,n){"use strict";var e=n(7854),o=n(1702),i=n(7293),u=n(6650).start,a=e.RangeError,c=Math.abs,f=Date.prototype,s=f.toISOString,l=o(f.getTime),h=o(f.getUTCDate),p=o(f.getUTCFullYear),v=o(f.getUTCHours),g=o(f.getUTCMilliseconds),d=o(f.getUTCMinutes),y=o(f.getUTCMonth),m=o(f.getUTCSeconds);t.exports=i((function(){return "0385-07-25T07:06:39.999Z"!=s.call(new Date(-50000000000001));}))||!i((function(){s.call(new Date(NaN));}))?function(){if(!isFinite(l(this)))throw a("Invalid time value");var t=this,r=p(t),n=g(t),e=r<0?"-":r>9999?"+":"";return e+u(c(r),e?6:4,0)+"-"+u(y(t)+1,2,0)+"-"+u(h(t),2,0)+"T"+u(v(t),2,0)+":"+u(d(t),2,0)+":"+u(m(t),2,0)+"."+u(n,3,0)+"Z";}:s;},8709:function(t,r,n){"use strict";var e=n(7854),o=n(9670),i=n(2140),u=e.TypeError;t.exports=function(t){if(o(this),"string"===t||"default"===t)t="string";else{if("number"!==t)throw u("Incorrect hint");}return i(this,t);};},654:function(t,r,n){"use strict";var e=n(2109),o=n(6916),i=n(1913),u=n(6530),a=n(614),c=n(4994),f=n(9518),s=n(7674),l=n(8003),h=n(8880),p=n(1320),v=n(5112),g=n(7497),d=n(3383),y=u.PROPER,m=u.CONFIGURABLE,b=d.IteratorPrototype,_=d.BUGGY_SAFARI_ITERATORS,w=v("iterator"),x="keys",E="values",A="entries",S=function(){return this;};t.exports=function(t,r,n,u,v,d,O){c(n,r,u);var R,I,T,j=function(t){if(t===v&&C)return C;if(!_&&t in P)return P[t];switch(t){case x:case E:case A:return function(){return new n(this,t);};}return function(){return new n(this);};},k=r+" Iterator",M=!1,P=t.prototype,L=P[w]||P["@@iterator"]||v&&P[v],C=!_&&L||j(v),N="Array"==r&&P.entries||L;if(N&&(R=f(N.call(new t())))!==Object.prototype&&R.next&&(i||f(R)===b||(s?s(R,b):a(R[w])||p(R,w,S)),l(R,k,!0,!0),i&&(g[k]=S)),y&&v==E&&L&&L.name!==E&&(!i&&m?h(P,"name",E):(M=!0,C=function(){return o(L,this);})),v)if(I={values:j(E),keys:d?C:j(x),entries:j(A)},O)for(T in I)(_||M||!(T in P))&&p(P,T,I[T]);else e({target:r,proto:!0,forced:_||M},I);return i&&!O||P[w]===C||p(P,w,C,{name:v}),g[r]=C,I;};},7235:function(t,r,n){var e=n(857),o=n(2597),i=n(6061),u=n(3070).f;t.exports=function(t){var r=e.Symbol||(e.Symbol={});o(r,t)||u(r,t,{value:i.f(t)});};},9781:function(t,r,n){var e=n(7293);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7;}})[1];}));},317:function(t,r,n){var e=n(7854),o=n(111),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{};};},3678:function(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}};},8324:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};},8509:function(t,r,n){var e=n(317)("span").classList,o=e&&e.constructor&&e.constructor.prototype;t.exports=o===Object.prototype?void 0:o;},8886:function(t,r,n){var e=n(8113).match(/firefox\/(\d+)/i);t.exports=!!e&&+e[1];},7871:function(t){t.exports="object"==typeof window;},256:function(t,r,n){var e=n(8113);t.exports=/MSIE|Trident/.test(e);},1528:function(t,r,n){var e=n(8113),o=n(7854);t.exports=/ipad|iphone|ipod/i.test(e)&&void 0!==o.Pebble;},8334:function(t,r,n){var e=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e);},5268:function(t,r,n){var e=n(4326),o=n(7854);t.exports="process"==e(o.process);},1036:function(t,r,n){var e=n(8113);t.exports=/web0s(?!.*chrome)/i.test(e);},8113:function(t,r,n){var e=n(5005);t.exports=e("navigator","userAgent")||"";},7392:function(t,r,n){var e,o,i=n(7854),u=n(8113),a=i.process,c=i.Deno,f=a&&a.versions||c&&c.version,s=f&&f.v8;s&&(o=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!o&&u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=+e[1]),t.exports=o;},8008:function(t,r,n){var e=n(8113).match(/AppleWebKit\/(\d+)\./);t.exports=!!e&&+e[1];},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];},2914:function(t,r,n){var e=n(7293),o=n(9114);t.exports=!e((function(){var t=Error("a");return !("stack" in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack);}));},7762:function(t,r,n){"use strict";var e=n(9781),o=n(7293),i=n(9670),u=n(30),a=n(6277),c=Error.prototype.toString,f=o((function(){if(e){var t=u(Object.defineProperty({},"name",{get:function(){return this===t;}}));if("true"!==c.call(t))return !0;}return "2: 1"!==c.call({message:1,name:2})||"Error"!==c.call({});}));t.exports=f?function(){var t=i(this),r=a(t.name,"Error"),n=a(t.message);return r?n?r+": "+n:r:n;}:c;},2109:function(t,r,n){var e=n(7854),o=n(1236).f,i=n(8880),u=n(1320),a=n(3505),c=n(9920),f=n(4705);t.exports=function(t,r){var n,s,l,h,p,v=t.target,g=t.global,d=t.stat;if(n=g?e:d?e[v]||a(v,{}):(e[v]||{}).prototype)for(s in r){if(h=r[s],l=t.noTargetGet?(p=o(n,s))&&p.value:n[s],!f(g?s:v+(d?".":"#")+s,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;c(h,l);}(t.sham||l&&l.sham)&&i(h,"sham",!0),u(n,s,h,t);}};},7293:function(t){t.exports=function(t){try{return !!t();}catch(t){return !0;}};},7007:function(t,r,n){"use strict";n(4916);var e=n(1702),o=n(1320),i=n(2261),u=n(7293),a=n(5112),c=n(8880),f=a("species"),s=RegExp.prototype;t.exports=function(t,r,n,l){var h=a(t),p=!u((function(){var r={};return r[h]=function(){return 7;},7!=""[t](r);})),v=p&&!u((function(){var r=!1,n=/a/;return "split"===t&&((n={}).constructor={},n.constructor[f]=function(){return n;},n.flags="",n[h]=/./[h]),n.exec=function(){return r=!0,null;},n[h](""),!r;}));if(!p||!v||n){var g=e(/./[h]),d=r(h,""[t],(function(t,r,n,o,u){var a=e(t),c=r.exec;return c===i||c===s.exec?p&&!u?{done:!0,value:g(r,n,o)}:{done:!0,value:a(n,r,o)}:{done:!1};}));o(String.prototype,t,d[0]),o(s,h,d[1]);}l&&c(s[h],"sham",!0);};},6790:function(t,r,n){"use strict";var e=n(7854),o=n(3157),i=n(6244),u=n(9974),a=e.TypeError,c=function(t,r,n,e,f,s,l,h){for(var p,v,g=f,d=0,y=!!l&&u(l,h);d0&&o(p))v=i(p),g=c(t,r,p,v,g,s-1)-1;else{if(g>=9007199254740991)throw a("Exceed the acceptable array length");t[g]=p;}g++;}d++;}return g;};t.exports=c;},6677:function(t,r,n){var e=n(7293);t.exports=!e((function(){return Object.isExtensible(Object.preventExtensions({}));}));},2104:function(t,r,n){var e=n(4374),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(e?u.bind(i):function(){return u.apply(i,arguments);});},9974:function(t,r,n){var e=n(1702),o=n(9662),i=n(4374),u=e(e.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments);};};},4374:function(t,r,n){var e=n(7293);t.exports=!e((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype");}));},7065:function(t,r,n){"use strict";var e=n(7854),o=n(1702),i=n(9662),u=n(111),a=n(2597),c=n(206),f=n(4374),s=e.Function,l=o([].concat),h=o([].join),p={},v=function(t,r,n){if(!a(p,r)){for(var e=[],o=0;o]*>)/g,s=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,r,n,e,l,h){var p=n+t.length,v=e.length,g=s;return void 0!==l&&(l=o(l),g=f),a(h,g,(function(o,a){var f;switch(u(a,0)){case "$":return "$";case "&":return t;case "`":return c(r,0,n);case "'":return c(r,p);case "<":f=l[c(a,1,-1)];break;default:var s=+a;if(0===s)return o;if(s>v){var h=i(s/10);return 0===h?o:h<=v?void 0===e[h-1]?u(a,1):e[h-1]+u(a,1):o;}f=e[s-1];}return void 0===f?"":f;}));};},7854:function(t,r,n){var e=function(t){return t&&t.Math==Math&&t;};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n.g&&n.g)||function(){return this;}()||Function("return this")();},2597:function(t,r,n){var e=n(1702),o=n(7908),i=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r);};},3501:function(t){t.exports={};},842:function(t,r,n){var e=n(7854);t.exports=function(t,r){var n=e.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,r));};},490:function(t,r,n){var e=n(5005);t.exports=e("document","documentElement");},4664:function(t,r,n){var e=n(9781),o=n(7293),i=n(317);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7;}}).a;}));},1179:function(t,r,n){var e=n(7854).Array,o=Math.abs,i=Math.pow,u=Math.floor,a=Math.log,c=Math.LN2;t.exports={pack:function(t,r,n){var f,s,l,h=e(n),p=8*n-r-1,v=(1<>1,d=23===r?i(2,-24)-i(2,-77):0,y=t<0||0===t&&1/t<0?1:0,m=0;for((t=o(t))!=t||t===1/0?(s=t!=t?1:0,f=v):(f=u(a(t)/c),t*(l=i(2,-f))<1&&(f--,l*=2),(t+=f+g>=1?d/l:d*i(2,1-g))*l>=2&&(f++,l/=2),f+g>=v?(s=0,f=v):f+g>=1?(s=(t*l-1)*i(2,r),f+=g):(s=t*i(2,g-1)*i(2,r),f=0));r>=8;)h[m++]=255&s,s/=256,r-=8;for(f=f<0;)h[m++]=255&f,f/=256,p-=8;return h[--m]|=128*y,h;},unpack:function(t,r){var n,e=t.length,o=8*e-r-1,u=(1<>1,c=o-7,f=e-1,s=t[f--],l=127&s;for(s>>=7;c>0;)l=256*l+t[f--],c-=8;for(n=l&(1<<-c)-1,l>>=-c,c+=r;c>0;)n=256*n+t[f--],c-=8;if(0===l)l=1-a;else{if(l===u)return n?NaN:s?-1/0:1/0;n+=i(2,r),l-=a;}return (s?-1:1)*n*i(2,l-r);}};},8361:function(t,r,n){var e=n(7854),o=n(1702),i=n(7293),u=n(4326),a=e.Object,c=o("".split);t.exports=i((function(){return !a("z").propertyIsEnumerable(0);}))?function(t){return "String"==u(t)?c(t,""):a(t);}:a;},9587:function(t,r,n){var e=n(614),o=n(111),i=n(7674);t.exports=function(t,r,n){var u,a;return i&&e(u=r.constructor)&&u!==n&&o(a=u.prototype)&&a!==n.prototype&&i(t,a),t;};},2788:function(t,r,n){var e=n(1702),o=n(614),i=n(5465),u=e(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t);}),t.exports=i.inspectSource;},8340:function(t,r,n){var e=n(111),o=n(8880);t.exports=function(t,r){e(r)&&"cause" in r&&o(t,"cause",r.cause);};},2423:function(t,r,n){var e=n(2109),o=n(1702),i=n(3501),u=n(111),a=n(2597),c=n(3070).f,f=n(8006),s=n(1156),l=n(2050),h=n(9711),p=n(6677),v=!1,g=h("meta"),d=0,y=function(t){c(t,g,{value:{objectID:"O"+d++,weakData:{}}});},m=t.exports={enable:function(){m.enable=function(){},v=!0;var t=f.f,r=o([].splice),n={};n[g]=1,t(n).length&&(f.f=function(n){for(var e=t(n),o=0,i=e.length;om;m++)if((_=T(t[m]))&&s(d,_))return _;return new g(!1);}e=l(t,y);}for(w=e.next;!(x=i(w,e)).done;){try{_=T(x.value);}catch(t){p(e,"throw",t);}if("object"==typeof _&&_&&s(d,_))return _;}return new g(!1);};},9212:function(t,r,n){var e=n(6916),o=n(9670),i=n(8173);t.exports=function(t,r,n){var u,a;o(t);try{if(!(u=i(t,"return"))){if("throw"===r)throw n;return n;}u=e(u,t);}catch(t){a=!0,u=t;}if("throw"===r)throw n;if(a)throw u;return o(u),n;};},3383:function(t,r,n){"use strict";var e,o,i,u=n(7293),a=n(614),c=n(30),f=n(9518),s=n(1320),l=n(5112),h=n(1913),p=l("iterator"),v=!1;[].keys&&("next" in (i=[].keys())?(o=f(f(i)))!==Object.prototype&&(e=o):v=!0),null==e||u((function(){var t={};return e[p].call(t)!==t;}))?e={}:h&&(e=c(e)),a(e[p])||s(e,p,(function(){return this;})),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:v};},7497:function(t){t.exports={};},6244:function(t,r,n){var e=n(7466);t.exports=function(t){return e(t.length);};},6736:function(t){var r=Math.expm1,n=Math.exp;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1;}:r;},6130:function(t,r,n){var e=n(4310),o=Math.abs,i=Math.pow,u=i(2,-52),a=i(2,-23),c=i(2,127)*(2-a),f=i(2,-126);t.exports=Math.fround||function(t){var r,n,i=o(t),s=e(t);return ic||n!=n?s*(1/0):s*n;};},202:function(t){var r=Math.log,n=Math.LOG10E;t.exports=Math.log10||function(t){return r(t)*n;};},6513:function(t){var r=Math.log;t.exports=Math.log1p||function(t){return (t=+t)>-1e-8&&t<1e-8?t-t*t/2:r(1+t);};},4310:function(t){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1;};},5948:function(t,r,n){var e,o,i,u,a,c,f,s,l=n(7854),h=n(9974),p=n(1236).f,v=n(261).set,g=n(8334),d=n(1528),y=n(1036),m=n(5268),b=l.MutationObserver||l.WebKitMutationObserver,_=l.document,w=l.process,x=l.Promise,E=p(l,"queueMicrotask"),A=E&&E.value;A||(e=function(){var t,r;for(m&&(t=w.domain)&&t.exit();o;){r=o.fn,o=o.next;try{r();}catch(t){throw o?u():i=void 0,t;}}i=void 0,t&&t.enter();},g||m||y||!b||!_?!d&&x&&x.resolve?((f=x.resolve(void 0)).constructor=x,s=h(f.then,f),u=function(){s(e);}):m?u=function(){w.nextTick(e);}:(v=h(v,l),u=function(){v(e);}):(a=!0,c=_.createTextNode(""),new b(e).observe(c,{characterData:!0}),u=function(){c.data=a=!a;})),t.exports=A||function(t){var r={fn:t,next:void 0};i&&(i.next=r),o||(o=r,u()),i=r;};},3366:function(t,r,n){var e=n(7854);t.exports=e.Promise;},133:function(t,r,n){var e=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return !String(t)||!(Object(t) instanceof Symbol)||!Symbol.sham&&e&&e<41;}));},590:function(t,r,n){var e=n(7293),o=n(5112),i=n(1913),u=o("iterator");t.exports=!e((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),r=t.searchParams,n="";return t.pathname="c%20d",r.forEach((function(t,e){r.delete("b"),n+=e+t;})),i&&!t.toJSON||!r.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[u]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host;}));},8536:function(t,r,n){var e=n(7854),o=n(614),i=n(2788),u=e.WeakMap;t.exports=o(u)&&/native code/.test(i(u));},8523:function(t,r,n){"use strict";var e=n(9662),o=function(t){var r,n;this.promise=new t((function(t,e){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=t,n=e;})),this.resolve=e(r),this.reject=e(n);};t.exports.f=function(t){return new o(t);};},6277:function(t,r,n){var e=n(1340);t.exports=function(t,r){return void 0===t?arguments.length<2?"":r:e(t);};},3929:function(t,r,n){var e=n(7854),o=n(7850),i=e.TypeError;t.exports=function(t){if(o(t))throw i("The method doesn't accept regular expressions");return t;};},7023:function(t,r,n){var e=n(7854).isFinite;t.exports=Number.isFinite||function(t){return "number"==typeof t&&e(t);};},2814:function(t,r,n){var e=n(7854),o=n(7293),i=n(1702),u=n(1340),a=n(3111).trim,c=n(1361),f=i("".charAt),s=e.parseFloat,l=e.Symbol,h=l&&l.iterator,p=1/s(c+"-0")!=-1/0||h&&!o((function(){s(Object(h));}));t.exports=p?function(t){var r=a(u(t)),n=s(r);return 0===n&&"-"==f(r,0)?-0:n;}:s;},3009:function(t,r,n){var e=n(7854),o=n(7293),i=n(1702),u=n(1340),a=n(3111).trim,c=n(1361),f=e.parseInt,s=e.Symbol,l=s&&s.iterator,h=/^[+-]?0x/i,p=i(h.exec),v=8!==f(c+"08")||22!==f(c+"0x16")||l&&!o((function(){f(Object(l));}));t.exports=v?function(t,r){var n=a(u(t));return f(n,r>>>0||(p(h,n)?16:10));}:f;},1574:function(t,r,n){"use strict";var e=n(9781),o=n(1702),i=n(6916),u=n(7293),a=n(1956),c=n(5181),f=n(5296),s=n(7908),l=n(8361),h=Object.assign,p=Object.defineProperty,v=o([].concat);t.exports=!h||u((function(){if(e&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1});}}),{b:2})).b)return !0;var t={},r={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){r[t]=t;})),7!=h({},t)[n]||a(h({},r)).join("")!=o;}))?function(t,r){for(var n=s(t),o=arguments.length,u=1,h=c.f,p=f.f;o>u;)for(var g,d=l(arguments[u++]),y=h?v(a(d),h(d)):a(d),m=y.length,b=0;m>b;)g=y[b++],e&&!i(p,d,g)||(n[g]=d[g]);return n;}:h;},30:function(t,r,n){var e,o=n(9670),i=n(6048),u=n(748),a=n(3501),c=n(490),f=n(317),s=n(6200)("IE_PROTO"),l=function(){},h=function(t){return "