PageSourceSearch

https://www.casinorewards.co.uk/Content/dist/js/js-cr_en-gb.js

js casinorewards.co.uk collected 2026-09-26 07:28:43 UTC 269,223 bytes, 1 lines download raw bytes

1function encodeSpecificChars(t,e){let i={};for(var n of e)i[n]=encodeURIComponent(n);e=e.map(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),e=new RegExp(`[${e.join("")}]`,"g");return t.replace(e,t=>i[t])}function isGoogleAnalyticsLoaded(){return"undefined"!=typeof __gaTracker&&!0===__gaTracker.loaded}function isAmplitudeLoaded(){return"undefined"!=typeof amplitude&&amplitude.getDeviceId()}((i,s)=>{window.console=window.console||{log:function(){},error:function(){}},i.fn.footable=function(i,n){return i=i||{},this.filter("table").each(function(t,e){s.init(e,i,n)})};var n={events:[]};s.__debug__=JSON.parse(localStorage.getItem("footable_debug"))||!1,s.__debug_options__=JSON.parse(localStorage.getItem("footable_debug_options"))||n,s.debug=function(t,e){if(!s.is.boolean(t))return s.__debug__;s.__debug__=t,s.__debug__?(localStorage.setItem("footable_debug",JSON.stringify(s.__debug__)),s.__debug_options__=i.extend(!0,{},n,e||{}),s.is.hash(e)&&localStorage.setItem("footable_debug_options",JSON.stringify(s.__debug_options__))):(localStorage.removeItem("footable_debug"),localStorage.removeItem("footable_debug_options"))},s.get=function(t){return i(t).first().data("__FooTable__")},s.init=function(t,e,i){var n=s.get(t);return n instanceof s.Table&&n.destroy(),new s.Table(t,e,i)}})(jQuery,FooTable=window.FooTable||{}),(a=>{function s(){return!0}a.arr={},a.arr.each=function(t,e){if(a.is.array(t)&&a.is.fn(e))for(var i=0,n=t.length;i<n&&!1!==e(t[i],i);i++);},a.arr.get=function(t,e){var i=[];if(a.is.array(t)){if(!a.is.fn(e))return t;for(var n=0,s=t.length;n<s;n++)e(t[n],n)&&i.push(t[n])}return i},a.arr.any=function(t,e){if(a.is.array(t)){e=a.is.fn(e)?e:s;for(var i=0,n=t.length;i<n;i++)if(e(t[i],i))return!0}return!1},a.arr.contains=function(t,e){if(a.is.array(t)&&!a.is.undef(e))for(var i=0,n=t.length;i<n;i++)if(t[i]==e)return!0;return!1},a.arr.first=function(t,e){if(a.is.array(t)){e=a.is.fn(e)?e:s;for(var i=0,n=t.length;i<n;i++)if(e(t[i],i))return t[i]}return null},a.arr.map=function(t,e){var i,n=[];if(a.is.array(t)&&a.is.fn(e))for(var s=0,o=t.length;s<o;s++)null!=(i=e(t[s],s))&&n.push(i);return n},a.arr.remove=function(t,e){var i=[],n=[];if(a.is.array(t)&&a.is.fn(e)){for(var s=0,o=t.length;s<o;s++)e(t[s],s,n)&&(i.push(s),n.push(t[s]));for(i.sort(function(t,e){return e-t}),s=0,o=i.length;s<o;s++)t.splice(i[s]-s,1)}return n},a.arr.delete=function(t,e){var i=-1,n=null;if(a.is.array(t)&&!a.is.undef(e)){for(var s=0,o=t.length;s<o;s++)if(t[s]==e){n=t[i=s];break}-1!=i&&t.splice(i,1)}return n},a.arr.replace=function(t,e,i){e=t.indexOf(e);-1!==e&&(t[e]=i)}})(FooTable),(i=>{var t;i.is={},i.is.type=function(t,e){return typeof t===e},i.is.defined=function(t){return void 0!==t},i.is.undef=function(t){return void 0===t},i.is.array=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i.is.date=function(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())},i.is.boolean=function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},i.is.string=function(t){return"[object String]"===Object.prototype.toString.call(t)},i.is.number=function(t){return"[object Number]"===Object.prototype.toString.call(t)&&!isNaN(t)},i.is.fn=function(t){return i.is.defined(window)&&t===window.alert||"[object Function]"===Object.prototype.toString.call(t)},i.is.error=function(t){return"[object Error]"===Object.prototype.toString.call(t)},i.is.object=function(t){return"[object Object]"===Object.prototype.toString.call(t)},i.is.hash=function(t){return i.is.object(t)&&t.constructor===Object&&!t.nodeType&&!t.setInterval},i.is.element=function(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName},i.is.promise=function(t){return i.is.object(t)&&i.is.fn(t.then)&&i.is.fn(t.promise)},i.is.jq=function(t){return i.is.defined(window.jQuery)&&t instanceof jQuery&&0<t.length},i.is.moment=function(t){return i.is.defined(window.moment)&&i.is.object(t)&&i.is.boolean(t._isAMomentObject)},i.is.emptyObject=function(t){if(!i.is.hash(t))return!1;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},i.is.emptyArray=function(t){return!i.is.array(t)||0===t.length},i.is.emptyString=function(t){return!i.is.string(t)||0===t.length},i.is.mobile=(t=navigator.userAgent||navigator.vendor||window.opera,/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))})(FooTable),(a=>{a.str={},a.str.contains=function(t,e,i){return!a.is.emptyString(t)&&!a.is.emptyString(e)&&e.length<=t.length&&-1!==(i?t.toUpperCase().indexOf(e.toUpperCase()):t.indexOf(e))},a.str.containsWord=function(t,e,i){if(!(a.is.emptyString(t)||a.is.emptyString(e)||t.length<e.length))for(var n=t.split(/\W/),s=0,o=n.length;s<o;s++)if(i?n[s].toUpperCase()==e.toUpperCase():n[s]==e)return!0;return!1},a.str.from=function(t,e){return this.contains(t,e)?t.substring(t.indexOf(e)+1):t},a.str.startsWith=function(t,e){return t.slice(0,e.length)==e},a.str.toCamelCase=function(t){return t.toUpperCase()===t?t.toLowerCase():t.replace(/^([A-Z])|[-\s_](\w)/g,function(t,e,i){return i?i.toUpperCase():e.toLowerCase()})},a.str.random=function(t){return(t=a.is.emptyString(t)?"":t)+Math.random().toString(36).substr(2,9)},a.str.escapeRegExp=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}})(FooTable),(r=>{function e(){}function l(){}Object.create||(Object.create=function(t){if(1<arguments.length)throw Error("Second argument not supported");if(!r.is.object(t))throw TypeError("Argument must be an object");e.prototype=t;t=new e;return e.prototype=null,t});var h=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;l.__extend__=function(t,e,i,n){var s;t[e]=r.is.fn(n)&&h.test(i)?(s=i,function(){var t,e=this._super;return this._super=n,t=s.apply(this,arguments),this._super=e,t}):i},l.extend=function(t,e){var i=Array.prototype.slice.call(arguments);function n(t,e,i,n){var s,o;t[e]=r.is.fn(n)&&h.test(i)?(s=i,o=n,function(){var t,e=this._super;return this._super=o,t=s.apply(this,arguments),this._super=e,t}):i}if(t=i.shift(),e=i.shift(),r.is.hash(t)){var s,o=Object.create(this.prototype),a=this.prototype;for(s in t)"__ctor__"!==s&&n(o,s,t[s],a[s]);i=r.is.fn(o.__ctor__)?o.__ctor__:function(){if(!r.is.fn(this.construct))throw new SyntaxError('FooTable class objects must be constructed with the "new" keyword.');this.construct.apply(this,arguments)};return o.construct=r.is.fn(o.construct)?o.construct:function(){},((i.prototype=o).constructor=i).extend=l.extend,i}r.is.string(t)&&r.is.fn(e)&&n(this.prototype,t,e,this.prototype[t])},r.Class=l,r.ClassFactory=r.Class.extend({construct:function(){this.registered={}},contains:function(t){return r.is.defined(this.registered[t])},names:function(){var t,e=[];for(t in this.registered)this.registered.hasOwnProperty(t)&&e.push(t);return e},register:function(t,e,i){var n;r.is.string(t)&&r.is.fn(e)&&(n=this.registered[t],this.registered[t]={name:t,klass:e,priority:r.is.number(i)?i:r.is.defined(n)?n.priority:0})},load:function(t,e){var i,n=this,s=Array.prototype.slice.call(arguments),o=[],a=[];for(i in n.registered)n.registered.hasOwnProperty(i)&&o.push(n.registered[i]);return o.sort(function(t,e){return e.priority-t.priority}),r.arr.each(o,function(t){r.is.fn(t.klass)&&a.push(n._make(t.klass,s))}),a},make:function(t,e,i){var n=Array.prototype.slice.call(arguments);return t=n.shift(),t=this.registered[t],r.is.fn(t.klass)?this._make(t.klass,n):null},_make:function(t,e){function i(){return t.apply(this,e)}return i.prototype=t.prototype,new i}})})(FooTable),((r,l)=>{l.css2json=function(t){if(l.is.emptyString(t))return{};for(var e,i,n={},s=t.split(";"),o=0,a=s.length;o<a;o++)i=s[o].split(":"),e=l.str.toCamelCase(r.trim(i[0])),i=r.trim(i[1]),n[e]=i;return n},l.getFnPointer=function(t){return!l.is.emptyString(t)&&l.is.fn(window[t])?window[t]:null},l.checkFnValue=function(t,e,i){function n(t,e,i){return l.is.fn(e)?function(){return e.apply(t,arguments)}:i}return i=l.is.fn(i)?i:null,l.is.fn(e)?n(t,e,i):l.is.type(e,"string")?n(t,l.getFnPointer(e),i):i}})(jQuery,FooTable),((s,o)=>{o.Cell=o.Class.extend({construct:function(t,e,i,n){this.ft=t,this.row=e,this.column=i,this.created=!1,this.define(n)}
1,define:function(t){this.$el=o.is.element(t)||o.is.jq(t)?s(t):null,this.$detail=null;var e=o.is.hash(t)&&o.is.hash(t.options)&&o.is.defined(t.value);this.value=this.column.parser.call(this.column,o.is.jq(this.$el)?this.$el:e?t.value:t,this.ft.o),this.o=s.extend(!0,{classes:null,style:null},e?t.options:{}),this.classes=o.is.jq(this.$el)&&this.$el.attr("class")?this.$el.attr("class").match(/\S+/g):o.is.array(this.o.classes)?this.o.classes:o.is.string(this.o.classes)?this.o.classes.match(/\S+/g):[],this.style=o.is.jq(this.$el)&&this.$el.attr("style")?o.css2json(this.$el.attr("style")):o.is.hash(this.o.style)?this.o.style:o.is.string(this.o.style)?o.css2json(this.o.style):{}},$create:function(){this.created||((this.$el=o.is.jq(this.$el)?this.$el:s("<td/>")).data("value",this.value).contents().detach().end().append(this.format(this.value)),this._setClasses(this.$el),this._setStyle(this.$el),this.$detail=s("<tr/>").addClass(this.row.classes.join(" ")).data("__FooTableCell__",this).append(s("<th/>")).append(s("<td/>")),this.created=!0)},collapse:function(){this.created&&(this.$detail.children("th").html(this.column.title),this.$detail.children("td").first().attr("class",this.$el.attr("class")).attr("style",this.$el.attr("style")).css("display","table-cell").append(this.$el.contents().detach()),o.is.jq(this.$detail.parent())||this.$detail.appendTo(this.row.$details.find(".footable-details > tbody")))},restore:function(){var t;this.created&&(o.is.jq(this.$detail.parent())&&(t=this.$detail.children("td").first(),this.$el.attr("class",t.attr("class")).attr("style",t.attr("style")).css("display",this.column.hidden||!this.column.visible?"none":"table-cell").append(t.contents().detach())),this.$detail.detach())},parse:function(){return this.column.parser.call(this.column,this.$el,this.ft.o)},format:function(t){return this.column.formatter.call(this.column,t,this.ft.o)},val:function(t,e){if(o.is.undef(t))return this.value;var i=o.is.hash(t)&&o.is.hash(t.options)&&o.is.defined(t.value);this.o=s.extend(!0,{classes:this.classes,style:this.style},i?t.options:{}),this.value=i?t.value:t,this.classes=o.is.array(this.o.classes)?this.o.classes:o.is.string(this.o.classes)?this.o.classes.match(/\S+/g):[],this.style=o.is.hash(this.o.style)?this.o.style:o.is.string(this.o.style)?o.css2json(this.o.style):{},this.created&&(this.$el.data("value",this.value).empty(),i=this.$detail.children("td").first().empty(),(t=o.is.jq(this.$detail.parent())?i:this.$el).append(this.format(this.value)),this._setClasses(t),this._setStyle(t),o.is.boolean(e)&&!e||this.row.draw())},_setClasses:function(t){var e=!o.is.emptyArray(this.column.classes),i=!o.is.emptyArray(this.classes),n=null;t.removeAttr("class"),(e||i)&&(e&&i?n=this.classes.concat(this.column.classes).join(" "):e?n=this.column.classes.join(" "):i&&(n=this.classes.join(" ")),o.is.emptyString(n)||t.addClass(n))},_setStyle:function(t){var e=!o.is.emptyObject(this.column.style),i=!o.is.emptyObject(this.style),n=null;t.removeAttr("style"),(e||i)&&(e&&i?n=s.extend({},this.column.style,this.style):e?n=this.column.style:i&&(n=this.style),o.is.hash(n))&&t.css(n)}})})(jQuery,FooTable),((e,n)=>{n.Column=n.Class.extend({construct:function(t,e,i){this.ft=t,this.type=n.is.emptyString(i)?"text":i,this.virtual=!!n.is.boolean(e.virtual)&&e.virtual,this.$el=n.is.jq(e.$el)?e.$el:null,this.index=n.is.number(e.index)?e.index:-1,this.define(e),this.$create()},define:function(t){this.hidden=!!n.is.boolean(t.hidden)&&t.hidden,this.visible=!n.is.boolean(t.visible)||t.visible,this.name=n.is.string(t.name)?t.name:null,null==this.name&&(this.name="col"+(t.index+1)),this.title=n.is.string(t.title)?t.title:null,!this.virtual&&null==this.title&&n.is.jq(this.$el)&&(this.title=this.$el.html()),null==this.title&&(this.title="Column "+(t.index+1)),this.style=n.is.hash(t.style)?t.style:n.is.string(t.style)?n.css2json(t.style):{},this.classes=n.is.array(t.classes)?t.classes:n.is.string(t.classes)?t.classes.match(/\S+/g):[],this.parser=n.checkFnValue(this,t.parser,this.parser),this.formatter=n.checkFnValue(this,t.formatter,this.formatter)},$create:function(){(this.$el=!this.virtual&&n.is.jq(this.$el)?this.$el:e("
1<th/>")).html(this.title)},parser:function(t){return n.is.element(t)||n.is.jq(t)?e(t).data("value")||e(t).text():n.is.defined(t)&&null!=t?t+"":null},formatter:function(t){return null==t?"":t},createCell:function(t){var e=n.is.jq(t.$el)?t.$el.children("td,th").get(this.index):null,i=n.is.hash(t.value)?t.value[this.name]:null;return new n.Cell(this.ft,t,this,e||i)}}),n.columns=new n.ClassFactory,n.columns.register("text",n.Column)})(jQuery,FooTable),(t=>{t.Defaults=function(){this.stopPropagation=!1,this.on=null},t.defaults=new t.Defaults})((jQuery,FooTable)),((s,o)=>{o.Row=o.Class.extend({construct:function(t,e,i){this.ft=t,this.columns=e,this.created=!1,this.define(i)},define:function(t){this.$el=o.is.element(t)||o.is.jq(t)?s(t):null,this.$toggle=s("<span/>",{class:"footable-toggle fooicon fooicon-plus"});var e=o.is.hash(t),i=e&&o.is.hash(t.options)&&o.is.hash(t.value),n=(this.value=e?i?t.value:t:null,this.o=s.extend(!0,{expanded:!1,classes:null,style:null},i?t.options:{}),this.expanded=o.is.jq(this.$el)&&this.$el.data("expanded")||this.o.expanded,this.classes=o.is.jq(this.$el)&&this.$el.attr("class")?this.$el.attr("class").match(/\S+/g):o.is.array(this.o.classes)?this.o.classes:o.is.string(this.o.classes)?this.o.classes.match(/\S+/g):[],this.style=o.is.jq(this.$el)&&this.$el.attr("style")?o.css2json(this.$el.attr("style")):o.is.hash(this.o.style)?this.o.style:o.is.string(this.o.style)?o.css2json(this.o.style):{},this.cells=this.createCells(),this);n.value={},o.arr.each(n.cells,function(t){n.value[t.column.name]=t.val()})},$create:function(){var e;this.created||((this.$el=o.is.jq(this.$el)?this.$el:s("<tr/>")).data("__FooTableRow__",this),this._setClasses(this.$el),this._setStyle(this.$el),"last"==this.ft.rows.toggleColumn&&this.$toggle.addClass("last-column"),this.$details=s("<tr/>",{class:"footable-detail-row"}).append(s("<td/>",{colspan:this.ft.columns.visibleColspan}).append(s("<table/>",{class:"footable-details "+this.ft.classes.join(" ")}).append("<tbody/>"))),o.arr.each((e=this).cells,function(t){t.created||t.$create(),e.$el.append(t.$el)}),e.$el.off("click.ft.row").on("click.ft.row",{self:e},e._onToggle),this.created=!0)},createCells:function(){var e=this;return o.arr.map(e.columns,function(t){return t.createCell(e)})},val:function(t){var e=this;if(!o.is.hash(t))return o.is.hash(this.value)&&!o.is.emptyObject(this.value)||(this.value={},o.arr.each(this.cells,function(t){e.value[t.column.name]=t.val()})),this.value;this.collapse(!1);var i=o.is.hash(t),n=i&&o.is.hash(t.options)&&o.is.hash(t.value);this.o=s.extend(!0,{expanded:e.expanded,classes:e.classes,style:e.style},n?t.options:{}),this.expanded=this.o.expanded,this.classes=o.is.array(this.o.classes)?this.o.classes:o.is.string(this.o.classes)?this.o.classes.match(/\S+/g):[],this.style=o.is.hash(this.o.style)?this.o.style:o.is.string(this.o.style)?o.css2json(this.o.style):{},this.value=i?n?t.value:t:null,o.arr.each(this.cells,function(t){o.is.defined(e.value[t.column.name])&&t.val(e.value[t.column.name],!1)}),this.created&&(this._setClasses(this.$el),this._setStyle(this.$el),this.draw())},_setClasses:function(t){var e=!o.is.emptyArray(this.classes),i=null;t.removeAttr("class"),e&&(i=this.classes.join(" "),o.is.emptyString(i)||t.addClass(i))},_setStyle:function(t){var e=!o.is.emptyObject(this.style),i=null;t.removeAttr("style"),e&&(i=this.style,o.is.hash(i))&&t.css(i)},expand:function(){var t;this.created&&(t=this).ft.raise("expand.ft.row").then(function(){t.__hidden__=o.arr.map(t.cells,function(t){return t.column.hidden&&t.column.visible?t:null}),0<t.__hidden__.length&&(t.$details.insertAfter(t.$el).children("td").first().attr("colspan",t.ft.columns.visibleColspan),o.arr.each(t.__hidden__,function(t){t.collapse()})),t.$el.attr("data-expanded",!0),t.$toggle.removeClass("fooicon-plus").addClass("fooicon-minus"),t.expanded=!0})},collapse:function(t){var e;this.created&&(e=this).ft.raise("collapse.ft.row").then(function(){o.arr.each(e.__hidden__,function(t){t.restore()}),e.$details.detach(),e.$el.removeAttr("data-expanded"),e.$toggle.removeClass("fooicon-minus").addClass("fooicon-plus"),o.is.boolean(t)&&!t||(e.expanded=!1)})},predraw:function(){this.created&&(this.expanded&&this.collapse(!1),this.$toggle.detach(),this.$el.detach())},draw:function(t){this.created||this.$create(),o.is.jq(t)&&t.append(this.$el);var e=this;o.arr.each(e.cells,function(t){t.$el.css("display",t.column.hidden||!t.column.visible?"n
1one":"table-cell"),e.ft.rows.showToggle&&e.ft.columns.hasHidden&&("first"==e.ft.rows.toggleColumn&&t.column.index==e.ft.columns.firstVisibleIndex||"last"==e.ft.rows.toggleColumn&&t.column.index==e.ft.columns.lastVisibleIndex)&&t.$el.prepend(e.$toggle)}),this.expanded&&this.expand()},toggle:function(){this.created&&this.ft.columns.hasHidden&&(this.expanded?this.collapse():this.expand())},_onToggle:function(t){var e=t.data.self;s(t.target).is(e.ft.rows.toggleSelector)&&e.toggle()}})})(jQuery,FooTable),((r,d)=>{d.instances=[],d.Table=d.Class.extend({construct:function(t,e,i){this._resizeTimeout=null,this.id=d.instances.push(this),this.initialized=!1,this.$el=(d.is.jq(t)?t:r(t)).first(),this.o=r.extend(!0,{},d.defaults,e),this.classes=[],this.components={internal:d.components.internal.load(this),core:d.components.core.load(this),custom:d.components.load(this)},this.breakpoints=this.use(FooTable.Breakpoints),this.columns=this.use(FooTable.Columns),this.rows=this.use(FooTable.Rows),this._construct(i)},_construct:function(e){var i=this;this._preinit().then(function(){return i._init()}).always(function(t){if(!d.is.error(t))return i.raise("ready.ft.table").then(function(){d.is.fn(e)&&e.call(i,i)});console.error("FooTable: unhandled error thrown during initialization.",t)})},_preinit:function(){var o=this;return this.raise("preinit.ft.table").then(function(){var t=o.$el.attr("class").match(/\S+/g),e=o.$el.data()||{};o.o.ajax=d.checkFnValue(o,e.ajax,o.o.ajax),o.o.stopPropagation=(d.is.boolean(e.stopPropagation)?e:o.o).stopPropagation;for(var i=0,n=t.length;i<n;i++)d.str.startsWith(t[i],"footable")||o.classes.push(t[i]);var s=r("<div/>",{class:"footable-loader"}).append(r("<span/>",{class:"fooicon fooicon-loader"}));return o.$el.hide().after(s),o.execute(!1,!1,"preinit",e).always(function(){o.$el.show(),s.remove()})})},_init:function(){var n=this;return n.raise("init.ft.table").then(function(){var t=n.$el.children("thead"),e=n.$el.children("tbody"),i=n.$el.children("tfoot");return n.$el.addClass("footable footable-"+n.id),d.is.hash(n.o.on)&&n.$el.on(n.o.on),0==i.length&&n.$el.append(i=r("<tfoot/>")),0==e.length&&n.$el.append("<tbody/>"),0==t.length&&n.$el.prepend(t=r("<thead/>")),n.execute(!1,!0,"init").then(function(){return n.$el.data("__FooTable__",n),0==i.children("tr").length&&i.remove(),0==t.children("tr").length&&t.remove(),n.raise("postinit.ft.table").then(function(){return n.draw()}).always(function(){r(window).off("resize.ft"+n.id,n._onWindowResize).on("resize.ft"+n.id,{self:n},n._onWindowResize),n.initialized=!0})})})},destroy:function(){var t=this;return t.raise("destroy.ft.table").then(function(){return t.execute(!0,!0,"destroy").then(function(){t.$el.removeData("__FooTable__").removeClass("footable-"+t.id),d.is.hash(t.o.on)&&t.$el.off(t.o.on),t.initialized=!1})}).fail(function(t){d.is.error(t)&&console.error("FooTable: unhandled error thrown while destroying the plugin.",t)})},raise:function(i,n){var s=this,o=d.__debug__&&(d.is.emptyArray(d.__debug_options__.events)||d.arr.any(d.__debug_options__.events,function(t){return d.str.contains(i,t)}));return(n=n||[]).unshift(this),r.Deferred(function(t){var e=r.Event(i);1==s.o.stopPropagation&&s.$el.one(i,function(t){t.stopPropagation()}),o&&console.log("FooTable:"+i+": ",n),s.$el.trigger(e,n),e.isDefaultPrevented()?(o&&console.log('FooTable: default prevented for the "'+i+'" event.'),t.reject(e)):t.resolve(e)})},use:function(t){for(var e=this.components.internal.concat(this.components.core,this.components.custom),i=0,n=e.length;i<n;i++)if(e[i]instanceof t)return e[i];return null},draw:function(){var t=this;return t.execute(!1,!0,"predraw").then(function(){return t.raise("predraw.ft.table").then(function(){return t.execute(!1,!0,"draw").then(function(){return t.raise("draw.ft.table").then(function(){return t.execute(!1,!0,"postdraw").then(function(){return t.raise("postdraw.ft.table")})})})})}).fail(function(t){d.is.error(t)&&console.error("FooTable: unhandled error thrown during a draw operation.",t)})},execute:function(t,e,i,n,s){var o=this,a=Array.prototype.slice.call(arguments),r=(t=a.shift(),(e=a.shift())?d.arr.get(o.components.internal,function(t){return t.enabled}
1):o.components.internal.slice(0)),l=e?d.arr.get(o.components.core,function(t){return t.enabled}):o.components.core.slice(0),h=e?d.arr.get(o.components.custom,function(t){return t.enabled}):o.components.custom.slice(0);return a.unshift(t?h.reverse():r),o._execute.apply(o,a).then(function(){return a.shift(),a.unshift(t?l.reverse():l),o._execute.apply(o,a).then(function(){return a.shift(),a.unshift(t?r.reverse():h),o._execute.apply(o,a)})})},_execute:function(t,i,e,n){var s,o,a;return t&&t.length?(s=this,o=Array.prototype.slice.call(arguments),t=o.shift(),i=o.shift(),a=t.shift(),d.is.fn(a[i])?r.Deferred(function(e){try{var t=a[i].apply(a,o);if(d.is.promise(t))return t.then(e.resolve,e.reject);e.resolve(t)}catch(t){e.reject(t)}}).then(function(){return s._execute.apply(s,[t,i].concat(o))}):s._execute.apply(s,[t,i].concat(o))):r.when()},_onWindowResize:function(t){var e=t.data.self;null!=e._resizeTimeout&&clearTimeout(e._resizeTimeout),e._resizeTimeout=setTimeout(function(){e._resizeTimeout=null,e.raise("resize.ft.table").then(function(){e.breakpoints.check()})},300)}})})(jQuery,FooTable),((e,i)=>{i.is.undef(window.moment)||(i.DateColumn=i.Column.extend({construct:function(t,e){this._super(t,e,"date"),this.formatString=i.is.string(e.formatString)?e.formatString:"MM-DD-YYYY"},parser:function(t){if((i.is.element(t)||i.is.jq(t))&&(t=e(t).data("value")||e(t).text(),i.is.string(t))&&(t=isNaN(t)?t:+t),i.is.date(t))return moment(t);if(i.is.object(t)&&i.is.boolean(t._isAMomentObject))return t;if(i.is.string(t)){if(isNaN(t))return moment(t,this.formatString);t=+t}return i.is.number(t)?moment(t):null},formatter:function(t){return i.is.object(t)&&i.is.boolean(t._isAMomentObject)?t.format(this.formatString):""},filterValue:function(t){if((i.is.element(t)||i.is.jq(t))&&(t=e(t).data("filterValue")||e(t).text()),i.is.hash(t)&&i.is.hash(t.options)&&(i.is.string(t.options.filterValue)&&(t=t.options.filterValue),i.is.defined(t.value))&&(t=t.value),i.is.object(t)&&i.is.boolean(t._isAMomentObject))return t.format(this.formatString);if(i.is.string(t)){if(isNaN(t))return t;t=+t}return i.is.number(t)||i.is.date(t)?moment(t).format(this.formatString):i.is.defined(t)&&null!=t?t+"":""}}),i.columns.register("date",i.DateColumn))})(jQuery,FooTable),((i,n)=>{n.HTMLColumn=n.Column.extend({construct:function(t,e){this._super(t,e,"html")},parser:function(t){var e;return n.is.string(t)&&(t=i(i.trim(t))),n.is.element(t)&&(t=i(t)),n.is.jq(t)?"td"==(e=t.prop("tagName").toLowerCase())||"th"==e?t.data("value")||t.contents():t:null}}),n.columns.register("html",n.HTMLColumn)})(jQuery,FooTable),((e,i)=>{i.NumberColumn=i.Column.extend({construct:function(t,e){this._super(t,e,"number"),this.decimalSeparator=i.is.string(e.decimalSeparator)?e.decimalSeparator:".",this.thousandSeparator=i.is.string(e.thousandSeparator)?e.thousandSeparator:",",this.decimalSeparatorRegex=new RegExp(i.str.escapeRegExp(this.decimalSeparator),"g"),this.thousandSeparatorRegex=new RegExp(i.str.escapeRegExp(this.thousandSeparator),"g"),this.cleanRegex=new RegExp("[^0-9"+i.str.escapeRegExp(this.decimalSeparator)+"]","g")},parser:function(t){return(i.is.element(t)||i.is.jq(t))&&(t=e(t).data("value")||e(t).text().replace(this.cleanRegex,"")),i.is.string(t)&&(t=t.replace(this.thousandSeparatorRegex,"").replace(this.decimalSeparatorRegex,"."),t=parseFloat(t)),i.is.number(t)?t:null},formatter:function(t){return null==t?"":(2==(t=(t+"").split(".")).length&&3<t[0].length&&(t[0]=t[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,this.thousandSeparator)),t.join(this.decimalSeparator))}}),i.columns.register("number",i.NumberColumn)})(jQuery,FooTable),(i=>{i.Component=i.Class.extend({construct:function(t,e){if(!(t instanceof i.Table))throw new TypeError("The instance parameter must be an instance of FooTable.Table.");this.ft=t,this.enabled=!!i.is.boolean(e)&&e},preinit:null,init:null,destroy:null,predraw:null,draw:null,postdraw:null}),i.components=new i.ClassFactory,i.components.core=new i.ClassFactory,i.components.internal=new i.ClassFactory})((jQuery,FooTable)),(t=>
1{t.Breakpoint=t.Class.extend({construct:function(t,e){this.name=t,this.width=e}})})((jQuery,FooTable)),(r=>{r.Breakpoints=r.Component.extend({construct:function(t){this._super(t,!0),this.o=t.o,this.current=null,this.array=[],this.cascade=this.o.cascade,this.useParentWidth=this.o.useParentWidth,this.hidden=null,this._classNames="",this.getWidth=r.checkFnValue(this,this.o.getWidth,this.getWidth)},preinit:function(e){var i=this;return this.ft.raise("preinit.ft.breakpoints",[e]).then(function(){for(var t in i.cascade=(r.is.boolean(e.cascade)?e:i).cascade,i.o.breakpoints=(r.is.hash(e.breakpoints)?e:i.o).breakpoints,i.getWidth=r.checkFnValue(i,e.getWidth,i.getWidth),null==i.o.breakpoints&&(i.o.breakpoints={xs:480,sm:768,md:992,lg:1200}),i.o.breakpoints)i.o.breakpoints.hasOwnProperty(t)&&(i.array.push(new r.Breakpoint(t,i.o.breakpoints[t])),i._classNames+="breakpoint-"+t+" ");i.array.sort(function(t,e){return e.width-t.width})})},init:function(){var t=this;return this.ft.raise("init.ft.breakpoints").then(function(){t.current=t.get()})},draw:function(){this.ft.$el.removeClass(this._classNames).addClass("breakpoint-"+this.current.name)},calculate:function(){for(var t,e=null,i=[],n=null,s=this.getWidth(),o=0,a=this.array.length;o<a;o++)t=this.array[o],(e=!e&&o==a-1||s>=t.width&&(!(n instanceof r.Breakpoint)||s<n.width)?t:e)||i.push(t.name),n=t;return i.push(e.name),this.hidden=i.join(" "),e},visible:function(t){if(!r.is.emptyString(t)){if("all"===t)return!1;for(var e=t.split(" "),i=0,n=e.length;i<n;i++)if(this.cascade?r.str.containsWord(this.hidden,e[i]):e[i]==this.current.name)return!1}return!0},check:function(){var e=this,i=e.get();i instanceof r.Breakpoint&&i!=e.current&&e.ft.raise("before.ft.breakpoints",[e.current,i]).then(function(){var t=e.current;return e.current=i,e.ft.draw().then(function(){e.ft.raise("after.ft.breakpoints",[e.current,t])})})},get:function(e){return r.is.undef(e)?this.calculate():e instanceof r.Breakpoint?e:r.is.string(e)?r.arr.first(this.array,function(t){return t.name==e}):r.is.number(e)&&0<=e&&e<this.array.length?this.array[e]:null},getWidth:function(){return r.is.fn(this.o.getWidth)?this.o.getWidth(this.ft):1==this.useParentWidth?this.getParentWidth():this.getViewportWidth()},getParentWidth:function(){return this.ft.$el.parent().width()},getViewportWidth:function(){var t=r.is.defined(window.devicePixelRatio)&&r.is.mobile?window.devicePixelRatio:1;return Math.max(document.documentElement.clientWidth,window.innerWidth,0)/t}}),r.components.internal.register("breakpoints",r.Breakpoints,10)})((jQuery,FooTable)),(e=>{e.Column.prototype.breakpoints=null,e.Column.prototype.__breakpoints_define__=function(t){this.breakpoints=e.is.emptyString(t.breakpoints)?null:t.breakpoints},e.Column.extend("define",function(t){this._super(t),this.__breakpoints_define__(t)})})(FooTable),(t=>{t.Defaults.prototype.breakpoints=null,t.Defaults.prototype.cascade=!1,t.Defaults.prototype.useParentWidth=!1,t.Defaults.prototype.getWidth=null})(FooTable),((h,d)=>{d.Columns=d.Component.extend({construct:function(t){this._super(t,!0),this.o=t.o,this.array=[],this.$header=null,this.showHeader=t.o.showHeader},parse:function(t){var l=this;return h.Deferred(function(e){function i(t,e){var i=[];if(0==t.length||0==e.length)i=t.concat(e);else{var n=0;d.arr.each(t.concat(e),function(t){t.index>n&&(n=t.index)}),n++;for(var s,o,a=0;a<n;a++)s={},d.arr.each(t,function(t){if(t.index==a)return s=t,!1}),o={},d.arr.each(e,function(t){if(t.index==a)return o=t,!1}),i.push(h.extend(!0,{},s,o))}return i}var n,s,o,a=[],r=[],t=l.ft.$el.find("tr.footable-header");0<(t=0==(t=0==t.length?l.ft.$el.find("thead > tr:last:has([data-breakpoints])"):t).length?l.ft.$el.find("tbody > tr:first:has([data-breakpoints])"):t).length&&((o=t.parent().is("tbody")&&t.children().length==t.children("td").length)||(l.$header=t.addClass("footable-header")),t.children("td,th").each(function(t,e){n=h(e),(s=n.data()).index=t,s.$el=n,s.virtual=o,r.push(s)}),o)&&(l.showHeader=!1),d.is.array(l.o.columns)?(d.arr.each(l.o.columns,function(t,e){t.index=e,a.push(t)}),l.parseFinalize(e,i(a,r))):d.is.promise(l.o.columns)?l.o.columns.then(function(t){d.arr.each(t,function(t,e){t.index=e,a.push(t)}),l.parseFinalize(e,i(a,r))},function(t){e.reject(Error("Columns ajax request error: "+t.status+" ("+t.statusText+")"))}):l.parseFinalize(e,i(a,r))})},parseFinalize:function(t,e){var i,n=this,s=[];d.arr.each(e,function(t){(i=d.columns.contains(t.type)?d.columns.make(t.type,n.ft,t):new d.Column(n.ft,t))&&s.push(i)}),d.is.emptyArray(s)?t.reject(Error("No columns supplied.")):(s.sort(function(t,e){return t.index-e.index}),t.resolve(s))},preinit:function(e){var i=this;return i.ft.raise("preinit.ft.columns",[e]).then(function(){return i.parse(e).then(function(t){i.array=t,i.showHeader=(d.is.boolean(e.showHeader)?e:i).showHeader})})},init:function(){var t=this;return this.ft.raise("init.ft.columns",[t.array]).then(function(){t.$create()})},predraw:function(){var e=this,i=!0;e.visibleColspan=0,e.firstVisibleIndex=0,e.lastVisibleIndex=0,e.hasHidden=!1,d.arr.each(e.array,function(t){t.hidden=!e.ft.breakpoints.visible(t.breakpoints),!t.hidden&&t.visible&&(i&&(e.firstVisibleIndex=t.index,i=!1),e.lastVisibleIndex=t.index,e.visibleColspan++),t.hidden&&(e.hasHidden=!0)})},draw:function(){d.arr.each(this.array,function(t){t.$el.css("display",t.hidden||!t.visible?"n
1one":"table-cell")}),!this.showHeader&&d.is.jq(this.$header.parent())&&this.$header.detach()},$create:function(){var e=this;e.$header=d.is.jq(e.$header)?e.$header:h("<tr/>",{class:"footable-header"}),e.$header.children("th,td").detach(),d.arr.each(e.array,function(t){e.$header.append(t.$el)}),e.showHeader&&!d.is.jq(e.$header.parent())&&e.ft.$el.children("thead").append(e.$header)},get:function(e){return e instanceof d.Column?e:d.is.string(e)?d.arr.first(this.array,function(t){return t.name==e}):d.is.number(e)?d.arr.first(this.array,function(t){return t.index==e}):d.is.fn(e)?d.arr.get(this.array,e):null},ensure:function(t){var e=this,i=[];return d.is.array(t)&&d.arr.each(t,function(t){i.push(e.get(t))}),i}}),d.components.internal.register("columns",d.Columns,5)})(jQuery,FooTable),(t=>{t.Defaults.prototype.columns=[],t.Defaults.prototype.showHeader=!0})(FooTable),((n,s)=>{s.Rows=s.Component.extend({construct:function(t){this._super(t,!0),this.o=t.o,this.array=[],this.all=[],this.showToggle=t.o.showToggle,this.toggleSelector=t.o.toggleSelector,this.toggleColumn=t.o.toggleColumn,this.emptyString=t.o.empty,this.expandFirst=t.o.expandFirst,this.$empty=null},parse:function(){var i=this;return n.Deferred(function(e){var t=i.ft.$el.children("tbody").children("tr");s.is.jq(t)?(i.parseFinalize(e,t),t.detach()):s.is.array(i.o.rows)&&0<i.o.rows.length?i.parseFinalize(e,i.o.rows):s.is.promise(i.o.rows)?i.o.rows.then(function(t){i.parseFinalize(e,t)},function(t){e.reject(Error("Rows ajax request error: "+t.status+" ("+t.statusText+")"))}):i.parseFinalize(e,[])})},parseFinalize:function(t,e){var i=this,e=n.map(e,function(t){return new s.Row(i.ft,i.ft.columns.array,t)});t.resolve(e)},preinit:function(e){var i=this;return i.ft.raise("preinit.ft.rows",[e]).then(function(){return i.parse().then(function(t){i.all=t,i.array=i.all.slice(0),i.showToggle=(s.is.boolean(e.showToggle)?e:i).showToggle,i.toggleSelector=(s.is.string(e.toggleSelector)?e:i).toggleSelector,i.toggleColumn=(s.is.string(e.toggleColumn)?e:i).toggleColumn,"first"!=i.toggleColumn&&"last"!=i.toggleColumn&&(i.toggleColumn="first"),i.emptyString=s.is.string(e.empty)?e.empty:i.emptyString,i.expandFirst=(s.is.boolean(e.expandFirst)?e:i).expandFirst})})},init:function(){var t=this;return t.ft.raise("init.ft.rows",[t.all]).then(function(){t.$create()})},predraw:function(){s.arr.each(this.array,function(t){t.predraw()}),this.array=this.all.slice(0)},$create:function(){this.$empty=n("<tr/>",{class:"footable-empty"}).append(n("<td/>").text(this.emptyString))},draw:function(){var e=this,i=e.ft.$el.children("tbody"),n=!0;0<e.array.length?(e.$empty.detach(),s.arr.each(e.array,function(t){e.expandFirst&&n&&(t.expanded=!0,n=!1),t.draw(i)})):(e.$empty.children("td").attr("colspan",e.ft.columns.visibleColspan),i.append(e.$empty))}}),s.components.internal.register("rows",s.Rows,0)})(jQuery,FooTable),(t=>{t.Defaults.prototype.rows=[],t.Defaults.prototype.empty="No results",t.Defaults.prototype.showToggle=!0,t.Defaults.prototype.toggleSelector="tr,td,.footable-toggle",t.Defaults.prototype.toggleColumn="first",t.Defaults.prototype.expandFirst=!1})(FooTable),(o=>{o.Filter=o.Class.extend({construct:function(t,e,i,n,s){this.name=t,this.space=!o.is.string(n)||"OR"!=n&&"AND"!=n?"AND":n,this.connectors=!o.is.boolean(s)||s,this.query=new o.Query(e,this.space,this.connectors),this.columns=i},match:function(t){return!!o.is.string(t)&&(o.is.string(this.query)&&(this.query=new o.Query(this.query,this.space,this.connectors)),this.query instanceof o.Query)&&this.query.match(t)},matchRow:function(t){var e=this,t=o.arr.map(t.cells,function(t){return o.arr.contains(e.columns,t.column)?t.filterValue:null}).join(" ");return e.match(t)}})})(FooTable),((a,r)=>{r.Filtering=r.Component.extend({construct:function(t){this._super(t,t.o.filtering.enabled),this.filters=t.o.filtering.filters,this.delay=t.o.filtering.delay,this.min=t.o.filtering.min,this.space=t.o.filtering.space,this.connectors=t.o.filtering.connectors,this.placeholder=t.o.filtering.placeholder,this.position=t.o.filtering.position,this.$row=null,this.$cell=null,this.$dropdown=null,this.$input
1=null,this.$button=null,this._filterTimeout=null},preinit:function(t){var e=this;this.ft.raise("preinit.ft.filtering").then(function(){e.ft.$el.hasClass("footable-filtering")&&(e.enabled=!0),e.enabled=r.is.boolean(t.filtering)?t.filtering:e.enabled,e.enabled&&(e.space=r.is.string(t.filterSpace)?t.filterSpace:e.space,e.min=r.is.number(t.filterMin)?t.filterMin:e.min,e.connectors=r.is.boolean(t.filterConnectors)?t.filterConnectors:e.connectors,e.delay=r.is.number(t.filterDelay)?t.filterDelay:e.delay,e.placeholder=r.is.string(t.filterPlaceholder)?t.filterPlaceholder:e.placeholder,e.filters=r.is.array(t.filterFilters)?e.ensure(t.filterFilters):e.ensure(e.filters),e.ft.$el.hasClass("footable-filtering-left")&&(e.position="left"),e.ft.$el.hasClass("footable-filtering-center")&&(e.position="center"),e.ft.$el.hasClass("footable-filtering-right")&&(e.position="right"),e.position=r.is.string(t.filterPosition)?t.filterPosition:e.position)},function(){e.enabled=!1})},init:function(){var t=this;this.ft.raise("init.ft.filtering").then(function(){t.$create()},function(){t.enabled=!1})},destroy:function(){var t=this;this.ft.raise("destroy.ft.filtering").then(function(){t.ft.$el.removeClass("footable-filtering").find("thead > tr.footable-filtering").remove()})},$create:function(){var t,e=this,i=a("<div/>",{class:"form-group"}).append(a("<label/>",{class:"sr-only",text:"Search"})),n=a("<div/>",{class:"input-group"}).appendTo(i),s=a("<div/>",{class:"input-group-btn"}),o=a("<button/>",{type:"button",class:"btn btn-default dropdown-toggle"}).on("click",{self:e},e._onDropdownToggleClicked).append(a("<span/>",{class:"caret"}));switch(e.position){case"left":t="footable-filtering-left";break;case"center":t="footable-filtering-center";break;default:t="footable-filtering-right"}e.ft.$el.addClass("footable-filtering").addClass(t),e.$row=a("<tr/>",{class:"footable-filtering"}).prependTo(e.ft.$el.children("thead")),e.$cell=a("<th/>").attr("colspan",e.ft.columns.visibleColspan).appendTo(e.$row),e.$form=a("<form/>",{class:"form-inline"}).append(i).appendTo(e.$cell),e.$input=a("<input/>",{type:"text",class:"form-control",placeholder:e.placeholder}),e.$button=a("<button/>",{type:"button",class:"btn btn-primary"}).on("click",{self:e},e._onSearchButtonClicked).append(a("<span/>",{class:"fooicon fooicon-search"})),e.$dropdown=a("<ul/>",{class:"dropdown-menu dropdown-menu-right"}).append(r.arr.map(e.ft.columns.array,function(t){return t.filterable?a("<li/>").append(a("<a/>",{class:"checkbox"}).append(a("<label/>",{text:t.title}).prepend(a("<input/>",{type:"checkbox",checked:!0}).data("__FooTableColumn__",t)))):null})),0<e.delay&&(e.$input.on("keypress keyup",{self:e},e._onSearchInputChanged),e.$dropdown.on("click",'input[type="checkbox"]',{self:e},e._onSearchColumnClicked)),s.append(e.$button,o,e.$dropdown),n.append(e.$input,s)},predraw:function(){var e;r.is.emptyArray(this.filters)||((e=this).ft.rows.array=a.grep(e.ft.rows.array,function(t){return t.filtered(e.filters)}
1))},draw:function(){this.$cell.attr("colspan",this.ft.columns.visibleColspan)},addFilter:function(e,t,i){var n=r.arr.first(this.filters,function(t){return t.name==e});n instanceof r.Filter?(n.name=e,n.query=t,n.columns=i):this.filters.push({name:e,query:t,columns:i})},removeFilter:function(e){r.arr.remove(this.filters,function(t){return t.name==e})},filter:function(t,e){return r.is.undef(t)?t=a.trim(this.$input.val()||""):this.$input.val(t),r.is.emptyString(t)?this.removeFilter("search"):this.addFilter("search",t,e),this.$button.children(".fooicon").removeClass("fooicon-search").addClass("fooicon-remove"),this._filter()},clear:function(){return this.$button.children(".fooicon").removeClass("fooicon-remove").addClass("fooicon-search"),this.$input.val(null),this.removeFilter("search"),this._filter()},columns:function(){return r.is.jq(this.$dropdown)?this.$dropdown.find("input:checked").map(function(){return a(this).data("__FooTableColumn__")}).get():this.ft.columns.get(function(t){return t.filterable})},ensure:function(t){var e=this,i=[],n=e.columns();return r.is.emptyArray(t)||r.arr.each(t,function(t){r.is.object(t)&&(!r.is.emptyString(t.query)||t.query instanceof r.Query)&&(t.name=r.is.emptyString(t.name)?"anon":t.name,t.columns=r.is.emptyArray(t.columns)?n:e.ft.columns.ensure(t.columns),i.push(t instanceof r.Filter?t:new r.Filter(t.name,t.query,t.columns,e.space,e.connectors)))}),i},_filter:function(){var t=this;return t.filters=t.ensure(t.filters),t.ft.raise("before.ft.filtering",[t.filters]).then(function(){return t.filters=t.ensure(t.filters),t.ft.draw().then(function(){t.ft.raise("after.ft.filtering",[t.filters])})})},_onSearchInputChanged:function(t){var e=t.data.self,i="keypress"==t.type&&!r.is.emptyString(String.fromCharCode(t.charCode)),n="keyup"==t.type&&(8==t.which||46==t.which);(i||n)&&(13==t.which&&t.preventDefault(),null!=e._filterTimeout&&clearTimeout(e._filterTimeout),e._filterTimeout=setTimeout(function(){e._filterTimeout=null,e.filter()},e.delay))},_onSearchButtonClicked:function(t){t.preventDefault();t=t.data.self;null!=t._filterTimeout&&clearTimeout(t._filterTimeout),t.$button.children(".fooicon").hasClass("fooicon-remove")?t.clear():t.filter()},_onSearchColumnClicked:function(t){var e=t.data.self;null!=e._filterTimeout&&clearTimeout(e._filterTimeout),e._filterTimeout=setTimeout(function(){e._filterTimeout=null;var t=e.$button.children(".fooicon");t.hasClass("fooicon-remove")&&(t.removeClass("fooicon-remove").addClass("fooicon-search"),e.filter())},e.delay)},_onDropdownToggleClicked:function(t){t.preventDefault(),t.stopPropagation();t=t.data.self;t.$dropdown.parent().toggleClass("open"),t.$dropdown.parent().hasClass("open")?a(document).on("click.footable",{self:t},t._onDocumentClicked):a(document).off("click.footable",t._onDocumentClicked)},_onDocumentClicked:function(t){0==a(t.target).closest(".dropdown-menu").length&&(t.preventDefault(),(t=t.data.self).$dropdown.parent().removeClass("open"),a(document).off("click.footable",t._onDocumentClicked))}}),r.components.core.register("filtering",r.Filtering,10)})(jQuery,FooTable),(o=>{o.Query=o.Class.extend({construct:function(t,e,i){this._original=null,this._value=null,this.space=!o.is.string(e)||"OR"!=e&&"AND"!=e?"AND":e,this.connectors=!o.is.boolean(i)||i,this.left=null,this.right=null,this.parts=[],this.operator=null,this.val(t)},val:function(t){if(o.is.emptyString(t))return this._value;if(o.is.emptyString(this._original))this._original=t;else if(this._original==t)return;this._value=t,this._parse()},match:function(t){return o.is.emptyString(this.operator)||"OR"===this.operator?this._left(t,!1)||this._match(t,!1)||this._right(t,!1):"AND"===this.operator?this._left(t,!0)&&this._match(t,!0)&&this._right(t,!0):void 0},_match:function(i,t){var e=this,n=!1,s=o.is.emptyString(i);return o.is.emptyArray(e.parts)&&e.left instanceof o.Query?t:(o.is.emptyArray(e.parts)||("OR"===e.space?o.arr.each(e.parts,function(t){if(t.empty&&s){if(n=!0,t.negate)return n=!1}else{var e=o.str.contains(i,t.query,!0);if(e&&!t.negate&&(n=!0),e&&t.negate)return n=!1}}):(n=!0,o.arr.each(e.parts,function(t){var e;return n=t.empty?!(!s&&!t.negate||s&&t.negate)&&n:!(!(e=o.str.contains(i,t.query,!0))&&!t.negate||e&&t.negate)&&n}))),n)},_left:function(t,e){return this.left instanceof o.Query?this.left.match(t):e},_right:function(t,e){return this.right instanceof o.Query?this.right.match(t):e},_parse:function(){var t,e;o.is.emptyString(this._value)||(/\sOR\s/.test(this._value)?(this.operator="OR",t=this._value.split(/(?:\sOR\s)(.*)?/),this.left=new o.Query(t[0],this.space,this.connectors),this.right=new o.Query(t[1],this.space,this.connectors)):/\sAND\s/.test(this._value)?(this.operator="AN
1D",t=this._value.split(/(?:\sAND\s)(.*)?/),this.left=new o.Query(t[0],this.space,this.connectors),this.right=new o.Query(t[1],this.space,this.connectors)):(e=this).parts=o.arr.map(this._value.match(/(?:[^\s"]+|"[^"]*")+/g),function(t){return e._part(t)}))},_part:function(t){t={query:t,negate:!1,phrase:!1,exact:!1,empty:!1};return o.str.startsWith(t.query,"-")&&(t.query=o.str.from(t.query,"-"),t.negate=!0),/^"(.*?)"$/.test(t.query)?(t.query=t.query.replace(/^"(.*?)"$/,"$1"),t.phrase=!0,t.exact=!0):this.connectors&&/(?:\w)+?([-_\+\.])(?:\w)+?/.test(t.query)&&(t.query=t.query.replace(/(?:\w)+?([-_\+\.])(?:\w)+?/g,function(t,e){return t.replace(e," ")}),t.phrase=!0),t.empty=t.phrase&&o.is.emptyString(t.query),t}})})(FooTable),(e=>{e.Cell.prototype.filterValue=null,e.Cell.prototype.__filtering_define__=function(t){this.filterValue=this.column.filterValue.call(this.column,t)},e.Cell.prototype.__filtering_val__=function(t){e.is.defined(t)&&(this.filterValue=this.column.filterValue.call(this.column,t))},e.Cell.extend("define",function(t){this._super(t),this.__filtering_define__(t)}),e.Cell.extend("val",function(t){var e=this._super(t);return this.__filtering_val__(t),e})})(FooTable),((e,i)=>{i.Column.prototype.filterable=!0,i.Column.prototype.filterValue=function(t){if(i.is.element(t)||i.is.jq(t))return e(t).data("filterValue")||e(t).text();if(i.is.hash(t)&&i.is.hash(t.options)){if(i.is.string(t.options.filterValue))return t.options.filterValue;i.is.defined(t.value)&&(t=t.value)}return i.is.defined(t)&&null!=t?t+"":""},i.Column.prototype.__filtering_define__=function(t){this.filterable=(i.is.boolean(t.filterable)?t:this).filterable},i.Column.extend("define",function(t){this._super(t),this.__filtering_define__(t)})})(jQuery,FooTable),FooTable.Defaults.prototype.filtering={enabled:!1,filters:[],delay:1200,min:3,space:"AND",placeholder:"Search",position:"right",connectors:!0},(n=>{n.Row.prototype.filtered=function(t){var e=!0,i=this;return n.arr.each(t,function(t){if(0==(e=t.matchRow(i)))return!1}),e}})(FooTable),(i=>{i.Table.prototype.applyFilter=function(t,e){return this.use(i.Filtering).filter(t,e)},i.Table.prototype.clearFilter=function(){return this.use(i.Filtering).clear()}})(FooTable),(t=>{t.Sorter=t.Class.extend({construct:function(t,e){this.column=t,this.direction=e}})})((jQuery,FooTable)),((s,o)=>{o.Sorting=o.Component.extend({construct:function(t){this._super(t,t.o.sorting.enabled),this.o=t.o.sorting,this.column=null,this.allowed=!0,this.initial=null},preinit:function(t){var e=this;this.ft.raise("preinit.ft.sorting",[t]).then(function(){e.ft.$el.hasClass("footable-sorting")&&(e.enabled=!0),e.enabled=o.is.boolean(t.sorting)?t.sorting:e.enabled,e.enabled&&(e.column=o.arr.first(e.ft.columns.array,function(t){return t.sorted}))},function(){e.enabled=!1})},init:function(){var e=this;this.ft.raise("init.ft.sorting").then(function(){var t;e.initial||(t=!!e.column,e.initial={isset:t,rows:e.ft.rows.all.slice(0),column:t?e.column.name:null,direction:t?e.column.direction:null}),o.arr.each(e.ft.columns.array,function(t){t.sortable&&t.$el.addClass("footable-sortable").append(s("<span/>",{class:"fooicon fooicon-sort"}))}),e.ft.$el.on("click.footable",".footable-sortable",{self:e},e._onSortClicked)},function(){e.enabled=!1})},destroy:function(){var t=this;this.ft.raise("destroy.ft.paging").then(function(){t.ft.$el.off("click.footable",".footable-sortable",t._onSortClicked),t.ft.$el.children("thead").children("tr.footable-header").children(".footable-sortable").removeClass("footable-sortable").find("span.fooicon").remove()})},predraw:function(){var i;this.column&&(i=this.column,this.ft.rows.array.sort(function(t,e){return"DESC"==i.direction?i.sorter(e.cells[i.index].sortValue,t.cells[i.index].sortValue):i.sorter(t.cells[i.index].sortValue,e.cells[i.index].sortValue)}))},draw:function(){var t,e;this.column&&(t=this.ft.$el.find("thead > tr > .footable-sortable"),e=this.column.$el,t.removeClass("footable-asc footable-desc").children(".fooicon").removeClass("fooicon-sort fooicon-sort-asc fooicon-sort-desc"),t.not(e).children(".fooicon").addClass("fooicon-sort"),e.addClass("ASC"==this.column.direction?"footable-asc":"footable-desc").children(".fooicon").addClass("ASC"==this.column.direction?"fooicon-sort-asc":"fooicon-sort-desc"))},sort:function(t,e){return this._sort(t,e)},toggleAllowed:function(t){t=o.is.boolean(t)?t:!this.allowed,this.allowed=t,this.ft.$el.toggleClass("footable-sorting-disabled",!this.allowed)},hasChanged:function(){return!(!this.initial||!this.column||this.column.name===this.initial.column&&(this.column.direction===this.initial.direction||null===this.initial.direction&&"ASC"===this.column.direction))},reset:function(){this.initial&&(this.initial.isset?this.sort(this.initial.column,this.initial.direction):(this.column&&(this.column.$el.removeClass("footable-asc footable-desc"),this.column=null),this.ft.rows.all=this.initial.rows,this.ft.draw()))},_sort:function(t,e){var i,n;return this.allowed?(n=new o.Sorter((i=this).ft.columns.get(t),o.Sorting.dir(e)),i.ft.raise("before.ft.sorting",[n]).then(function(){return o.arr.each(i.ft.columns.array,function(t){t!=i.column&&(t.direction=null)}),i.column=i.ft.columns.get(n.column),i.column&&(i.column.direction=o.Sorting.dir(n.direction)),i.ft.draw().then(function(){i.ft.raise("after.ft.sorting",[n])})})):s.Deferred().reject("sorting disabled")},_onSortClicked:function(t){t.preventDefault();var t=t.data.self,e=s(this).closest("th,td"),i=!e.is(".footable-asc, .footable-desc")||e.hasClass("footable-desc")?"ASC":"DESC";t._sort(e.index(),i)}}),o.Sorting.dir=function(t){return!o.is.string(t)||"ASC"!=t&&"DESC"!=t?"ASC":t}
1,o.components.core.register("sorting",o.Sorting,5)})(jQuery,FooTable),(e=>{e.Cell.prototype.sortValue=null,e.Cell.prototype.__sorting_define__=function(t){this.sortValue=this.column.sortValue.call(this.column,t)},e.Cell.prototype.__sorting_val__=function(t){e.is.defined(t)&&(this.sortValue=this.column.sortValue.call(this.column,t))},e.Cell.extend("define",function(t){this._super(t),this.__sorting_define__(t)}),e.Cell.extend("val",function(t){var e=this._super(t);return this.__sorting_val__(t),e})})(FooTable),((e,i)=>{i.Column.prototype.direction=null,i.Column.prototype.sortable=!0,i.Column.prototype.sorted=!1,i.Column.prototype.sorter=function(t,e){return(t="string"==typeof t?t.toLowerCase():t)===(e="string"==typeof e?e.toLowerCase():e)?0:t<e?-1:1},i.Column.prototype.sortValue=function(t){if(i.is.element(t)||i.is.jq(t))return e(t).data("sortValue")||this.parser(t);if(i.is.hash(t)&&i.is.hash(t.options)){if(i.is.string(t.options.sortValue))return t.options.sortValue;i.is.defined(t.value)&&(t=t.value)}return i.is.defined(t)&&null!=t?t:null},i.Column.prototype.__sorting_define__=function(t){this.sorter=i.checkFnValue(this,t.sorter,this.sorter),this.direction=i.is.type(t.direction,"string")?i.Sorting.dir(t.direction):null,this.sortable=!i.is.boolean(t.sortable)||t.sortable,this.sorted=!!i.is.boolean(t.sorted)&&t.sorted},i.Column.extend("define",function(t){this._super(t),this.__sorting_define__(t)})})(jQuery,FooTable),FooTable.Defaults.prototype.sorting={enabled:!1},((e,i)=>{i.HTMLColumn.extend("__sorting_define__",function(t){this._super(t),this.sortUse=i.is.string(t.sortUse)&&-1!==e.inArray(t.sortUse,["html","text"])?t.sortUse:"html"}),i.HTMLColumn.prototype.sortValue=function(t){if(i.is.element(t)||i.is.jq(t))return e(t).data("sortValue")||e.trim(e(t)[this.sortUse]());if(i.is.hash(t)&&i.is.hash(t.options)){if(i.is.string(t.options.sortValue))return t.options.sortValue;i.is.defined(t.value)&&(t=t.value)}return i.is.defined(t)&&null!=t?t:null}})(jQuery,FooTable),(i=>{i.Table.prototype.sort=function(t,e){return this.use(i.Sorting).sort(t,e)}})(FooTable),(t=>{t.Pager=t.Class.extend({construct:function(t,e,i,n,s){this.total=t,this.current=e,this.size=i,this.page=n,this.forward=s}})})((jQuery,FooTable)),((o,n)=>{n.Paging=n.Component.extend({construct:function(t){this._super(t,t.o.paging.enabled),this.strings=t.o.paging.strings,this.current=t.o.paging.current,this.size=t.o.paging.size,this.limit=t.o.paging.limit,this.position=t.o.paging.position,this.countFormat=t.o.paging.countFormat,this.total=-1,this.$row=null,this.$cell=null,this.$pagination=null,this.$count=null,this.detached=!1,this._previous=1,this._total=0},preinit:function(t){var e=this;this.ft.raise("preinit.ft.paging",[t]).then(function(){e.ft.$el.hasClass("footable-paging")&&(e.enabled=!0),e.enabled=n.is.boolean(t.paging)?t.paging:e.enabled,e.enabled&&(e.size=n.is.number(t.pagingSize)?t.pagingSize:e.size,e.current=n.is.number(t.pagingCurrent)?t.pagingCurrent:e.current,e.limit=n.is.number(t.pagingLimit)?t.pagingLimit:e.limit,e.ft.$el.hasClass("footable-paging-left")&&(e.position="left"),e.ft.$el.hasClass("footable-paging-center")&&(e.position="center"),e.ft.$el.hasClass("footable-paging-right")&&(e.position="right"),e.position=n.is.string(t.pagingPosition)?t.pagingPosition:e.position,e.countFormat=n.is.string(t.pagingCountFormat)?t.pagingCountFormat:e.countFormat,e.total=Math.ceil(e.ft.rows.all.length/e.size))},function(){e.enabled=!1})},init:function(){var t=this;this.ft.raise("init.ft.paging").then(function(){t.$create()},function(){t.enabled=!1})},destroy:function(){var t=this;this.ft.raise("destroy.ft.paging").then(function(){t.ft.$el.removeClass("footable-paging").find("tfoot > tr.footable-paging").remove(),t.detached=!1})},predraw:function(){this.total=Math.ceil(this.ft.rows.array.length/this.size),this.current=this.current>this.total?this.total:this.current<1?1:this.current,this.ft.rows.array.length>this.size&&(this.ft.rows.array=this.ft.rows.array.splice((this.current-1)*this.size,this.size))},draw:function(){var t;this.total<=1?this.detached||(this.$row.detach(),this.detached=!0):(this.detached&&(0==(t=this.ft.$el.children("tfoot")).length&&(t=o("<tfoot/>"),this.ft.$el.append(t)),this.$row.appendTo(t),this.detached=!1),this.$cell.attr("colspan",this.ft.columns.visibleColspan),this._createLinks(),this._setVisible(this.current,this.current>this._previous),this._setNavigation(!0))},$create:function(){var t="footable-paging-center";switch(this.position){case"left":t="footable-paging-left";break;case"right":t="footable-paging-right"}this.ft.$el.addClass("footable-paging").addClass(t),this.$cell=o("<td/>").attr("colspan",this.ft.columns.visibleColspan);var e=this.ft.$el.children("tfoot");0==e.length&&(e=o("<tfoot/>"),this.ft.$el.append(e)),this.$row=o("<tr/>",{class:"footable-paging"}).append(this.$cell).appendTo(e),this.$pagination=o("<ul/>",{class:"pagination"}).on("click.footable","a.footable-page-link",{self:this}
1,this._onPageClicked),this.$count=o("<span/>",{class:"label label-default"}),this.$cell.append(this.$pagination,o("<div/>",{class:"divider"}),this.$count),this.detached=!1,this._createLinks()},first:function(){return this._set(1)},prev:function(){return this._set(0<this.current-1?this.current-1:1)},next:function(){return this._set(this.current+1<this.total?this.current+1:this.total)},last:function(){return this._set(this.total)},goto:function(t){return this._set(t>this.total?this.total:t<1?1:t)},prevPages:function(){var t=this.$pagination.children("li.footable-page.visible:first").data("page")-1;this._setVisible(t,!0),this._setNavigation(!1)},nextPages:function(){var t=this.$pagination.children("li.footable-page.visible:last").data("page")+1;this._setVisible(t,!1),this._setNavigation(!1)},pageSize:function(t){if(!n.is.number(t))return this.size;this.size=t,this.total=Math.ceil(this.ft.rows.all.length/this.size),n.is.jq(this.$row)&&this.$row.remove(),this.$create(),this.ft.draw()},_set:function(t){var e=this,i=new n.Pager(e.total,e.current,e.size,t,e.current<t);return e.ft.raise("before.ft.paging",[i]).then(function(){return i.page=i.page>i.total?i.total:i.page,i.page=i.page<1?1:i.page,e.current==t?o.when():(e._previous=e.current,e.current=i.page,e.ft.draw().then(function(){e.ft.raise("after.ft.paging",[i])}))})},_createLinks:function(){if(this._total!==this.total){var t=this,e=1<t.total,i=function(t,e,i){return o("<li/>",{class:i}).attr("data-page",t).append(o("<a/>",{class:"footable-page-link",href:"#"}).data("page",t).html(e))};t.$pagination.empty(),e&&(t.$pagination.append(i("first",t.strings.first,"footable-page-nav")),t.$pagination.append(i("prev",t.strings.prev,"footable-page-nav")),0<t.limit)&&t.limit<t.total&&t.$pagination.append(i("prev-limit",t.strings.prevPages,"footable-page-nav"));for(var n,s=0;s<t.total;s++)n=i(s+1,s+1,"footable-page"),t.$pagination.append(n);e&&(0<t.limit&&t.limit<t.total&&t.$pagination.append(i("next-limit",t.strings.nextPages,"footable-page-nav")),t.$pagination.append(i("next",t.strings.next,"footable-page-nav")),t.$pagination.append(i("last",t.strings.last,"footable-page-nav"))),t._total=t.total}},_setNavigation:function(t){1==this.current?this.$pagination.children('li[data-page="first"],li[data-page="prev"]').addClass("disabled"):this.$pagination.children('li[data-page="first"],li[data-page="prev"]').removeClass("disabled"),this.current==this.total?this.$pagination.children('li[data-page="next"],li[data-page="last"]').addClass("disabled"):this.$pagination.children('li[data-page="next"],li[data-page="last"]').removeClass("disabled"),1==(this.$pagination.children("li.footable-page.visible:first").data("page")||1)?this.$pagination.children('li[data-page="prev-limit"]').addClass("disabled"):this.$pagination.children('li[data-page="prev-limit"]').removeClass("disabled"),(this.$pagination.children("li.footable-page.visible:last").data("page")||this.limit)==this.total?this.$pagination.children('li[data-page="next-limit"]').addClass("disabled"):this.$pagination.children('li[data-page="next-limit"]').removeClass("disabled"),0<this.limit&&this.total<this.limit?this.$pagination.children('li[data-page="prev-limit"],li[data-page="next-limit"]').hide():this.$pagination.children('li[data-page="prev-limit"],li[data-page="next-limit"]').show(),t&&this.$pagination.children("li.footable-page").removeClass("active").filter('li[data-page="'+this.current+'"]').addClass("active")},_setVisible:function(t,e){0<this.limit&&this.total>this.limit?this.$pagination.children('li.footable-page[data-page="'+t+'"]').hasClass("visible")||(n=i=0,1==e?i=(n=t>this.total?this.total:t)-this.limit:n=(i=t<1?0:t-1)+this.limit,i<0&&(i=0,n=this.limit>this.total?this.total:this.limit),n>this.total&&(n=this.total,i=this.total-this.limit<0?0:this.total-this.limit),this.$pagination.children("li.footable-page").removeClass("visible").slice(i,n).addClass("visible")):this.$pagination.children("li.footable-page").removeClass("visible").slice(0,this.total).addClass("visible");var e=this.size*(t-1)+1,i=this.size*t,n=this.ft.rows.all.length,i=0==this.ft.rows.array.length?e=0:n<i?n:i;this._setCount(t,this.total,e,i,n)}
1,_setCount:function(t,e,i,n,s){this.$count.text(this.countFormat.replace(/\{CP}/g,t).replace(/\{TP}/g,e).replace(/\{PF}/g,i).replace(/\{PL}/g,n).replace(/\{TR}/g,s))},_onPageClicked:function(t){if(t.preventDefault(),!o(t.target).closest("li").is(".active,.disabled")){var e=t.data.self,i=o(this).data("page");switch(i){case"first":return void e.first();case"prev":return void e.prev();case"next":return void e.next();case"last":return void e.last();case"prev-limit":return void e.prevPages();case"next-limit":return void e.nextPages();default:return void e._set(i)}}}}),n.components.core.register("paging",n.Paging,0)})(jQuery,FooTable),FooTable.Defaults.prototype.paging={enabled:!1,countFormat:"{CP} of {TP}",current:1,limit:5,position:"center",size:10,strings:{first:"&laquo;",prev:"&lsaquo;",next:"&rsaquo;",last:"&raquo;",prevPages:"...",nextPages:"..."}},(e=>{e.Table.prototype.gotoPage=function(t){return this.use(e.Paging).goto(t)},e.Table.prototype.nextPage=function(){return this.use(e.Paging).next()},e.Table.prototype.prevPage=function(){return this.use(e.Paging).prev()},e.Table.prototype.firstPage=function(){return this.use(e.Paging).first()},e.Table.prototype.lastPage=function(){return this.use(e.Paging).last()},e.Table.prototype.nextPages=function(){return this.use(e.Paging).nextPages()},e.Table.prototype.prevPages=function(){return this.use(e.Paging).prevPages()},e.Table.prototype.pageSize=function(t){return this.use(e.Paging).pageSize(t)}})(FooTable),((s,o)=>{o.Editing=o.Component.extend({construct:function(t){this._super(t,t.o.editing.enabled),this.pageToNew=t.o.editing.pageToNew,this.alwaysShow=t.o.editing.alwaysShow,this.column=s.extend(!0,{},t.o.editing.column,{visible:this.alwaysShow}),this.position=t.o.editing.position,this.showText=t.o.editing.showText,this.hideText=t.o.editing.hideText,this.addText=t.o.editing.addText,this.editText=t.o.editing.editText,this.deleteText=t.o.editing.deleteText,this.callbacks={addRow:o.checkFnValue(this,t.o.editing.addRow),editRow:o.checkFnValue(this,t.o.editing.editRow),deleteRow:o.checkFnValue(this,t.o.editing.deleteRow)}},preinit:function(i){var n=this;this.ft.raise("preinit.ft.editing",[i]).then(function(){if(n.ft.$el.hasClass("footable-editing")&&(n.enabled=!0),n.enabled=o.is.boolean(i.editing)?i.editing:n.enabled,n.enabled){if(n.pageToNew=o.is.boolean(i.editingPageToNew)?i.editingPageToNew:n.pageToNew,n.alwaysShow=o.is.boolean(i.editingAlwaysShow)?i.editingAlwaysShow:n.alwaysShow,n.position=o.is.string(i.editingPosition)?i.editingPosition:n.position,n.showText=o.is.string(i.editingShowText)?i.editingShowText:n.showText,n.hideText=o.is.string(i.editingHideText)?i.editingHideText:n.hideText,n.addText=o.is.string(i.editingAddText)?i.editingAddText:n.addText,n.editText=o.is.string(i.editingEditText)?i.editingEditText:n.editText,n.deleteText=o.is.string(i.editingDeleteText)?i.editingDeleteText:n.deleteText,n.column=new o.EditingColumn(n.ft,n,s.extend(!0,{},n.column,i.editingColumn,{visible:n.alwaysShow})),n.ft.$el.hasClass("footable-editing-left")&&(n.position="left"),n.ft.$el.hasClass("footable-editing-right")&&(n.position="right"),"right"===n.position)n.column.index=n.ft.columns.array.length;else for(var t=n.column.index=0,e=n.ft.columns.array.length;t<e;t++)n.ft.columns.array[t].index+=1;n.ft.columns.array.push(n.column),n.ft.columns.array.sort(function(t,e){return t.index-e.index}),n.callbacks.addRow=o.checkFnValue(n,i.editingAddRow,n.callbacks.addRow),n.callbacks.editRow=o.checkFnValue(n,i.editingEditRow,n.callbacks.editRow),n.callbacks.deleteRow=o.checkFnValue(n,i.editingDeleteRow,n.callbacks.deleteRow)}},function(){n.enabled=!1})},init:function(){var t=this;this.ft.raise("init.ft.editing").then(function(){t.$create()},function(){t.enabled=!1})},destroy:function(){var t=this;this.ft.raise("destroy.ft.editing").then(function(){t.ft.$el.removeClass("footable-editing").off("click.ft.editing").find("tfoot > tr.footable-editing").remove()})},$create:function(){var t=this,e="right"===t.position?"footable-editing-right":"footable-editing-left",e=(t.ft.$el.addClass("footable-editing").addClass(e).on("click.ft.editing",".footable-show",{self:t},t._onShowClick).on("click.ft.editing",".footable-hide",{self:t},t._onHideClick).on("click.ft.editing",".footable-edit",{self:t},t._onEditClick).on("click.ft.editing",".footable-delete",{self:t},t._onDeleteClick).on("click.ft.editing",".footable-add",{self:t},t._onAddClick),t.$cell=s("<td/>").attr("colspan",t.ft.columns.visibleColspan).append(t.$buttonShow()).append(t.$buttonAdd()).append(t.$buttonHide()),t.alwaysShow&&t.ft.$el.addClass("footable-editing-always-show"),t.ft.$el.children("tfoot"));0==e.length&&(e=s("<tfoot/>"),t.ft.$el.append(e)),t.$row=s("<tr/>",{class:"footable-editing"}).append(t.$cell).appendTo(e)},$buttonShow:function(){return'<button type="button" class="btn btn-primary footable-show">'+this.showText+"</button>"},$buttonHide:function(){return'<button type="button" class="btn btn-default footable-hide">'+this.hideText+"</button>"},$buttonAdd:function(){return'<button type="button" class="btn btn-primary footable-add">'+this.addText+"</button> "},$buttonEdit:function(){return'<button type="button" class="btn btn-default footable-edit">'+this.editText+"</button> "},$buttonDelete:function(){return'<button type="button" class="btn btn-default footable-delete">'+this.deleteText+"</button>"},$rowButtons:function(){return s('<div class="btn-group btn-group-xs" role="group"></div>').append(this.$buttonEdit()).append(this.$buttonDelete())},draw:function(){this.$cell.attr("colspan",this.ft.columns.visibleColspan)},_onEditClick:function(t){t.preventDefault();var e=t.data.self,i=s(this).closest("tr").data("__FooTableRow__");i instanceof o.Row&&e.ft.raise("edit.ft.editing",[i]).then(function(){e.callbacks.editRow.call(e.ft,i)})},_onDeleteClick:function(t){t.preventDefault();var e=t.data.self,i=s(this).closest("tr").data("__FooTableRow__");i instanceof o.Row&&e.ft.raise("delete.ft.editing",[i]).then(function(){e.callbacks.deleteRow.call(e.ft,i)})},_onAddClick:function(t){t.preventDefault();var e=t.data.self;e.ft.raise("add.ft.editing").then(function(){e.callbacks.addRow.call(e.ft)})},_onShowClick:function(t){t.preventDefault();var e=t.data.self;e.ft.raise("show.ft.editing").then(function(){e.ft.$el.addClass("footable-editing-show"),e.column.visible=!0,e.ft.draw()})},_onHideClick:function(t){t.preventDefault();var e=t.data.self;e.ft.raise("hide.ft.editing").then(function(){e.ft.$el.removeClass("footable-editing-show"),e.column.visible=!1,e.ft.draw()})}}),o.components.internal.register("editing",o.Editing,4)})(jQuery,FooTable),((i,n)=>
1{n.EditingColumn=n.Column.extend({construct:function(t,e,i){this._super(t,i,"editing"),this.editing=e},parser:function(t){var e;return n.is.string(t)&&(t=i(i.trim(t))),n.is.element(t)&&(t=i(t)),n.is.jq(t)?"td"==(e=t.prop("tagName").toLowerCase())||"th"==e?t.data("value")||t.contents():t:null},createCell:function(t){var e=this.editing.$rowButtons(),e=i("<td/>").append(e);return n.is.jq(t.$el)&&(0===this.index?e.prependTo(t.$el):e.insertAfter(t.$el.children().eq(this.index-1))),new n.Cell(this.ft,t,this,e||e.html())}}),n.columns.register("editing",n.EditingColumn)})(jQuery,FooTable),jQuery,FooTable.Defaults.prototype.editing={enabled:!1,pageToNew:!0,position:"right",alwaysShow:!1,addRow:function(){},editRow:function(t){},deleteRow:function(t){},showText:'<span class="fooicon fooicon-pencil" aria-hidden="true"></span> Edit rows',hideText:"Cancel",addText:"New row",editText:'<span class="fooicon fooicon-pencil" aria-hidden="true"></span>',deleteText:'<span class="fooicon fooicon-trash" aria-hidden="true"></span>',column:{classes:"footable-editing",name:"editing",title:"",filterable:!1,sortable:!1}},(t=>{t.is.defined(t.Paging)&&(t.Paging.prototype.unpaged=[],t.Paging.extend("predraw",function(){this.unpaged=this.ft.rows.array.slice(0),this._super()}))})((jQuery,FooTable)),((t,o)=>{o.Row.prototype.add=function(i){i=!o.is.boolean(i)||i;var n=this;return t.Deferred(function(t){var e=n.ft.rows.all.push(n)-1;if(i)return n.ft.draw().then(function(){t.resolve(e)});t.resolve(e)})},o.Row.prototype.delete=function(i){i=!o.is.boolean(i)||i;var n=this;return t.Deferred(function(t){var e=n.ft.rows.all.indexOf(n);if(o.is.number(e)&&0<=e&&e<n.ft.rows.all.length&&(n.ft.rows.all.splice(e,1),i))return n.ft.draw().then(function(){t.resolve(n)});t.resolve(n)})},o.is.defined(o.Paging)&&o.Row.extend("add",function(t){t=!o.is.boolean(t)||t;var e,i=this,n=this._super(t),s=i.ft.use(o.Editing);return s&&s.pageToNew&&(e=i.ft.use(o.Paging))&&t?n.then(function(){var t=e.unpaged.indexOf(i),t=Math.ceil((t+1)/e.size);if(e.current!==t)return e.goto(t)}):n}),o.is.defined(o.Sorting)&&o.Row.extend("val",function(t,e){e=!o.is.boolean(e)||e;var i,n=this._super(t);return o.is.hash(t)&&(i=this,e)&&i.ft.draw().then(function(){var t=i.ft.use(o.Editing);if(o.is.defined(o.Paging)&&t&&t.pageToNew&&(t=i.ft.use(o.Paging))){var e=t.unpaged.indexOf(i),e=Math.ceil((e+1)/t.size);if(t.current!==e)return t.goto(e)}}),n})})(jQuery,FooTable),(s=>{s.Rows.prototype.add=function(t){var e=t;(e=s.is.hash(t)?new FooTable.Row(this.ft,this.ft.columns.array,t):e)instanceof FooTable.Row&&e.add()},s.Rows.prototype.update=function(t,e){var i=this.ft.rows.all.length,n=t;(n=s.is.number(t)&&0<=t&&t<i?this.ft.rows.all[t]:n)instanceof FooTable.Row&&s.is.hash(e)&&n.val(e)},s.Rows.prototype.delete=function(t){var e=this.ft.rows.all.length,i=t;(i=s.is.number(t)&&0<=t&&t<e?this.ft.rows.all[t]:i)instanceof FooTable.Row&&i.delete()}})(FooTable),(r=>{function l(t,e,i){if("show"==e)switch(i){case"fade":t.fadeIn();break;case"slide":t.slideDown();break;default:t.fadeIn()}else switch(i){case"fade":t.fadeOut();break;case"slide":t.slideUp();break;default:t.fadeOut()}}r.goup=function(t){var e,i=r.extend({location:"right",locationOffset:20,bottomOffset:10,containerSize:40,containerRadius:10,containerClass:"goup-container",arrowClass:"goup-arrow",alwaysVisible:!1,trigger:500,entryAnimation:"fade",goupSpeed:"slow",hideUnderWidth:500,containerColor:"#000",arrowColor:"#fff",title:"",titleAsText:!1,titleAsTextClass:"goup-text"},t),n=(r("body").append('<div style="display:none" class="'+i.containerClass+'"></div>'),r("."+i.containerClass)),t=(r(n).html('<div class="'+i.arrowClass+'"></div>'),r("."+i.arrowClass)),s=("right"!=i.location&&"left"!=i.location&&(i.location="right"),i.locationOffset<0&&(i.locationOffset=0),i.bottomOffset<0&&(i.bottomOffset=0),i.containerSize<20&&(i.containerSize=20),i.containerRadius<0&&(i.containerRadius=0),i.trigger<0&&(i.trigger=0),i.hideUnderWidth<0&&(i.hideUnderWidth=0),/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i),s=(s.test(i.containerColor)||(i.containerColor="#000"),s.test(i.arrowColor)||(i.arrowColor="#fff"),""===i.title&&(i.titleAsText=!1),{}),s=((s={position:"fixed",width:i.containerSize,height:i.containerSize,background:i.containerColor,cursor:"pointer"}).bottom=i.bottomOffset,s[i.location]=i.locationOffset,s["border-radius"]=i.containerRadius,r(n).css(s),i.titleAsText?(r("body").append('<div class="'+i.titleAsTextClass+'">'+i.title+"</div>"),e=r("."+i.titleAsTextClass),r(e).attr("style",r(n).attr("style")),r(e).css("background","transparent").css("width",i.containerSize+40).css("height","auto").css("text-align","center").css(i.location,i.locationOffset-20),s=r(e).height()+10,r(n).css("bottom","+="+s+"px")):r(n).attr("title",i.title),.25*i.containerSize),s={width:0,height:0,margin:"0 auto","padding-top":Math.ceil(.325*i.containerSize),"border-style":"solid","border-width":"0 "+s+"px "+s+"px "+s+"px","border-color":"transparent transparent "+i.arrowColor+" transparent"},o=(r(t).css(s),!1),a=(r(window).resize(function(){r(window).outerWidth()<=i.hideUnderWidth?(o=!0,l(r(n),"hide",i.entryAnimation),e&&l(r(e),"hide",i.entryAnimation)):(o=!1,r(window).trigger("scroll"))}),r(window).outerWidth()<=i.hideUnderWidth&&(o=!0,r(n).hide(),e)&&r(e).hide(),i.alwaysVisible?(l(r(n),"show",i.entryAnimation),e&&l(r(e),"show",i.entryAnimation)):r(window).scroll(function(){r(window).scrollTop()>=i.trigger&&!o&&(l(r(n),"show",i.entryAnimation),e)&&l(r(e),"show",i.entryAnimation),r(window).scrollTop()<i.trigger&&!o&&(l(r(n),"hide",i.entryAnimation),e)&&l(r(e),"hide",i.entryAnimation)}),r(window).scrollTop()>=i.trigger&&!o&&(l(r(n),"show",i.entryAnimation),e)&&l(r(e),"show",i.entryAnimation),!0);r(n).add(e).on("click",function(){return a&&(a=!1,r("html,body").animate({scrollTop:0},i.goupSpeed,function(){a=!0})),!1})}})(jQuery),(o=>{o(document).ready(function(){o("a[data-affid]").on("mousedown keydown",function(t){var e,i,n,s;"keydown"===t.type&&13!==t.which||(t=o(this).attr("href"),i=o(this).data("affid"),o(this).attr("href",(e="aff_id",i=i,t=(t=t)||window.location.href,(s=new RegExp("([?&])"+e+"=.*?(&|#|$)(.*)","gi")).test(t)?null!=i?t.replace(s,"$1"+e+"="+i+"$2$3"):(t=(n=t.split("#"))[0].replace(s,"$1$3").replace(/(&|\?)$/,""),null!=n[1]&&(t+="#"+n[1]),t):(null!=i&&(s=-1!==t.indexOf("?")?"&":"?",t=(n=t.split("#"))[0]+s+e+"="+i,null!=n[1])&&(t+="#"+n[1]),t)))
1)})})})(jQuery),$(document).ready(function(){var t,e,i,n,s,o,h,d,a;moment.locale(cultureName),$("#jclock").length&&(t=moment.utc(startIsoGmtDateTime),setInterval(function(){$("#jclock").html(t.format("[<span class='timezone'>GMT:</span>] [<span class='time'>]HH:mm:ss[</span>] [<span class='date'>] DD/MM/YYYY[</span>]")),t.add(1,"s")},1e3)),$("a[data-download='auto-start']").length&&(e=$("a[data-download='auto-start']").first().attr("href"),window.setTimeout(function(){location.href=e},1e3)),$.goup({hideUnderWidth:0,containerClass:"jquery-goup-container"}),$(".footable").footable({breakpoints:{zero:0,verysmall:400,smallphone:500,phone:600,tablet:800}}),$("#ForcedRedirectModal").length&&($("#ForcedRedirectModal").modal({show:!0,backdrop:"static"}),$("body").addClass("is-forced-redirect")),$("#MarketingPopupModal").length&&"true"!==getCookie("isMarketingPopupModalFired")&&setTimeout(function(){$("#MarketingPopupModal").modal({show:!0}).on("hidden.bs.modal",function(t){setCookie("isMarketingPopupModalFired","true",7),$(".hundredm-announcement-banner").show()})},3e3),$(".hundredm-announcement-banner").length&&jsVars.siteCode.includes("lxc")&&"true"!==getCookie("isMarketingPopupModalFired")&&1==window.location.pathname.trim().replace(/^\/|\/$/g,"").split("/").length||$(".hundredm-announcement-banner").show(),$("#PromoVideoModal").length&&(i=$("body"),n=$("#PromoVideoModal"),c=$(".promo-video-info-modal"),(s=document.getElementById("promo-video-player"))&&s.pause(),c.on("click",function(){setTimeout(()=>{i.css("padding-right","0"),n.css("padding-right","0"),s&&s.play()},200)}),n.on("hidden.bs.modal",function(t){s&&(s.pause(),s.currentTime=0)})),$(".progressive-jackpot-ticker").length&&$(document).progressiveJackpotTicker({apiUrl:"/HandlerService/GetProgressiveJackpotTicker/",cultureName:currencyCultureName}),$(".on-submit-logic").submit(function(t){isAmplitudeLoaded()&&(-1<window.location.pathname.toLowerCase().indexOf("post-out")?amplitude.track("post_out_submitted",amplitudeProperties):amplitude.track("thanks_success_clicked",amplitudeProperties),amplitude.flush())}),$(".auto-post").length&&$(".auto-post").submit(),$("[data-deep-link-type]").click(function(t){var e=$(this).attr("href");if(e.length){isAmplitudeLoaded()&&(-1<window.location.pathname.toLowerCase().indexOf("post-out")?amplitude.track("post_out_submitted",amplitudeProperties):amplitude.track("thanks_success_clicked",amplitudeProperties),amplitude.flush());var i=e,e=$(this).data("deep-link-type");e=e||"";var n,s=i.split("//")[1].split("#")[0];switch(e.toLowerCase()){case"android":n="intent://"+s+"#Intent;scheme=https;action=android.intent.action.VIEW;end;";break;case"ios1":n="x-safari-https://"+s;break;case"ios2":n="googlechromes://"+s;break;case"ios3":n="instagram://extbrowser/?url="+encodeSpecificChars("https://"+s,["?","&","=","#"]);break;default:n=""}n.length?(isAmplitudeLoaded()&&(amplitude.track("breakout_attempted",amplitudeProperties),amplitude.flush()),jsVars.isDeepLinkBreakOutEnabled&&jsVars.isJavascriptDebugMessagingEnabled&&alert("Try deepLinkUrl="+n),window.location.href=n,window.setTimeout(function(){jsVars.isDeepLinkBreakOutEnabled&&jsVars.isJavascriptDebugMessagingEnabled&&alert("Fallback to originalUrl="+i),isAmplitudeLoaded()&&(amplitudeProperties.CD0117=n,amplitudeProperties.CD0118=i,amplitude.track("breakout_failed",amplitudeProperties),amplitude.flush()),window.location.href=i},1e3)):(console.log("data-deep-link-type is empty. Redirect to the href value."),jsVars.isDeepLinkBreakOutEnabled&&jsVars.isJavascriptDebugMessagingEnabled&&alert("data-deep-link-type is empty. Redirect to originalUrl="+i),window.location.href=i)}else console.error("href is undefined. Redirection stopped.");return!1}),window.setTimeout(function(){$("[data-deep-link-type].auto-click").click()},1e3),$(".auto-focus").length&&$(".auto-focus")[0].focus(),$(".readonly-list-box").each(function(){$(this).click(function(t){t.stopPropagation()})}),$(".readonly-radio-button").each(function(){$(this).click(function(t){t.stopPropagation()})}),$(".readonly-check-box").each(function(){$(this).click(function(t){t.stopPropagation()})}),0<$(".game-image-data").length&&document.addEventListener("error",function(t){var e;if("IMG"==t.target.nodeName.toUpperCase()&&t.target.classList.contains("game-image-data"))throw e=(e=(e=t.target.getAttribute("data-srcset"))||t.target.getAttribute("src"))?"Error retrieving image - "+e:"Error retrieving image - Image src not defined.",t.target.style.objectFit="contain",t.target.removeAttribute("data-srcset"),t.target.removeAttribute("srcset"),t.target.setAttribute("src",jsVars.AWSFFEURL+"/img/gameicons/no-game-logo.webp"),this.onerror=null,new Error(e)},!0),window.loadDeferImages=function(){$(".defer-image-load").each(function(){$(this).removeClass("defer-image-load")}),$("img[data-srcset]").each(function(){$(this).attr("srcset",$(this).data("srcset"))})},$(function(){window.loadDeferImages()}),0<$(".faqAccordian").length&&$(".faqAccordian").on("click",">dd>dl>dt",function(){$(this).next("dd").slideToggle()}),0<$("#casino-games-filter").length&&(o=$("#casino-games-filter"),h=$(".messages .loading"),d=["cr","m-cr"].includes(jsVars.siteCode.toLowerCase()),(a=function(t){h.show().siblings().hide();var l=o.closest(".container").find(".game-data");l.find(".casino-game-category").remove(),$.ajax({url:"/HandlerGames/LoadCategory",method:"POST",data:{categoryId:t,deviceCategory:deviceCategory,cultureName:cultureName,siteCode:jsVars.siteCode,geoIpCode:jsVars.geoIpCode}}).done(function(t){h.hide();var e,i="",n="";if(t){for(var s=0;s<t.Games.length;s++){var o=t.Games[s].Name,a=t.Games[s].GameImage,r=t.Games[s].RTPInfo;d&&(n+='<li class="casino-game-item"><div class="casino-game-item__inner-wrapper clearfix"><div class="casino-game-item__image"><img class="defer-image-load game-image-data" alt="'+o+'" src="'+a+'" /></div><div class="casino-game-item__content">'+o+"</div></div></li>"),r&&(e=e||"",e+="<tr><td>"+o+"</td><td>"+r+"</td></tr>")}i+='<div class="casino-game-category">',d&&(i+="<h2>
1"+t.Name+'</h2><ul class="casino-game-group-list">'+n+"</ul>"),e&&(i+='<div class="casino-games-rtp-section">'+(d?"<h2>Game Payout Rates</h2>":"")+'<table class="table table-striped table-bordered table-hover toggle-square "><thead><tr><th>Game</th><th>Payout rate</th></tr></thead><tbody>'+e+"</tbody></table></div>"),t.UpdatedDate&&(i+='<div class="rtp-update-timestamp"><strong>Updated</strong>: '+t.UpdatedDate+"</div>"),i+="</div>",l.append($.parseHTML(i))}}).fail(function(){$(".messages .error").show().siblings().hide()}).always(function(){})})(o.val()),o.change(function(){var t=this.value||-1;a(t)}),$(".messages .error a").click(function(){a(o.val())})),0<$(".jackpots-list").length&&$(".jackpots-list").each(function(){var t=$(this),e=null;t.on("click",".show-more",function(){e=e||$(this),t.is(".show-more")?(t.removeClass("show-more"),e.text(e.attr("data-text-show-more"))):(t.addClass("show-more"),e.text(e.attr("data-text-show-less")))})});var r,l,c=!1,u=(0<$(".page-winners").length&&(null!=sessionStorage.getItem("auto-scroll-pos")&&/sort=/g.test(location.search)&&(c=!0,$("html,body").scrollTop(sessionStorage.getItem("auto-scroll-pos")||0),sessionStorage.removeItem("auto-scroll-pos")),$(".winner-list-table").on("click","th a",function(){sessionStorage.setItem("auto-scroll-pos",$(document).scrollTop())}),!c)&&/(page|year|month)=/gi.test(location.search)&&(c=!0,$("html,body").scrollTop($(".form-section").offset().top)),$("#forgotPasswordDialog").on("shown.bs.modal",function(){var t=$("#forgotPasswordDialog iframe");t.attr("src",t.attr("data-src"))}),$("#offerDisclaimerModal")),p=$("#offerDisclaimerCTA"),f=$("#offerDisclaimerCheckbox"),v=($("[data-disclaimer-trigger]").click(function(t){t.preventDefault(),p.attr("href",$(this).attr("data-href")),u.modal("show")}),f.length&&(f.change(function(){$(this).is(":checked")?p.prop("disabled",!1):p.prop("disabled",!0)}),p.click(function(t){window.location.href=$(this).attr("href")}),u.on("hide.bs.modal",function(t){f.prop("checked",!1),p.prop("disabled",!0)})),$("#gameModal")),g=$("#gameIframe");v.on("hidden.bs.modal",function(t){g.attr("src","")}),"en-gb"!==cultureName&&(r=new GameLauncher({apiDomain:jsVars.apiDomain}),$("[data-game-launch-code]").click(function(){r.getUrl({launchCode:$(this).data("game-launch-code"),isLobby:!1,casinoId:mgsId,countryCode:geoIpCode,langCode:cultureName.split("-")[0],showErrorMessages:!0,onSuccess:function(t){null!=t.Url&&(g.attr("src",t.Url),v.modal("show"))},onError:function(){}})})),isRea||jsVars.basePage||window.CookieConsentCr&&window.CookieConsentCr.initialise({neutralCultureName:neutralCultureName,hrefToPrivacy:"/"+cultureName+"/privacy/",onPopupOpen:function(){$(".cc-btn,.cc-link,.cc-close").addClass("link-always-enabled")}}),reaThanksPrivacyTrigger=$(".js-reathanks-privacy-trigger"),reaThanksPrivacyModal=$("#reaThanksPrivacyModal"),reaThanksPrivacyTrigger.length&&reaThanksPrivacyTrigger.attr("href","#"),reaThanksPrivacyTrigger.click(function(t){t.preventDefault(),reaThanksPrivacyModal.modal("show")}),$("#success-continue-lock-overlay").length&&window.setTimeout(function(){$("#success-continue-lock-overlay").hide()},1e3),$("#contact-us-mailto-form").length&&(l=$("#contact-us-mailto-submit"),void 0!==(c=$("#mail-subject-select"))&&null!=c&&c.change(function(){"Nil"!==this.value?(l.attr("data-subject",this.value),l.attr("data-active","1")):(l.removeAttr("data-subject"),l.attr("data-active","0"),l.attr("href","#"))}),void 0!==l)&&null!=l&&l.click(function(t){if("1"!=$(this).attr("data-active"))return!1;$(this).attr("href",$(this).attr("data-href")+"?subject="+$(this).attr("data-subject")),t.preventDefault})});var bootstrapAffixHelper=window.bootstrapAffixHelper||{setup:function(t){var e=t.parent();e.is(".cta-wrapper")||(t.wrap("<div class='cta-wrapper'></div>"),e=t.parent()),t.affix({offset:{top:function(){return e.offset().top}}}).off("affix.bs.affix").on("affix.bs.affix",function(){}).off("affixed.bs.affix").on("affixed.bs.affix",function(){e.css({height:t.height()+"px"})}).off("affix-top.bs.affix").on("affixed-top.bs.affix",function(){e.css({height:"auto"})})}};function setCookie(t,e,i,n="/",s="None",o=!0){i=i?"; expires="+new Date(Date.now()+864e5*i).toUTCString():"",o=o?"; Secure":"",s=s?"; SameSite="+s:"",n="; path="+n;document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+i+n+o+s}function getCookie(t){for(var e of document.cookie.split("; ")){var[e,i]=e.split("=");if(decodeURIComponent(e)===t)return decodeURIComponent(i)}return null}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var _get=function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);return void 0!==s?"value"in s?s.value:void 0!==(s=s.get)?s.call(n):void 0:null!==(s=Object.getPrototypeOf(e))?t(s,i,n):void 0},_createClass=(()=>{function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}
1return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}})();function _possibleConstructorReturn(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(()=>{function o(t,e){return e=e||k,j.test(t)?e.getElementsByClassName(t.slice(1)):F.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t)}function a(t){var e;return S||((e=(S=k.implementation.createHTMLDocument(null)).createElement("base")).href=k.location.href,S.head.appendChild(e)),S.body.innerHTML=t,S.body.childNodes}function h(t){"loading"!==k.readyState?t():k.addEventListener("DOMContentLoaded",t)}function i(t,e){if(t){if(t.cash&&t!==C)return t;var i,n=t,s=0;if(O(t))n=R.test(t)?k.getElementById(t.slice(1)):P.test(t)?a(t):o(t,e);else if(M(t))return h(t),this;if(n)if(n.nodeType||n===C)this[0]=n,this.length=1;else for(i=this.length=n.length;s<i;s++)this[s]=n[s]}return this}function r(t,e){return new i(t,e)}function l(t,e){for(var i=t.length,n=0;n<i&&!1!==e.call(t[n],t[n],n,t);n++);}function s(t,e){var i=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!i&&i.call(t,e)}function t(e){return O(e)?s:e.cash?function(t){return e.is(t)}:function(t,e){return t===e}}function d(t){return r($.call(t).filter(function(t,e,i){return i.indexOf(t)===e}))}function c(t){return t[D]=t[D]||{}}function u(t,e,i){return c(t)[e]=i}function p(t,e){var i=c(t);return void 0===i[e]&&(i[e]=t.dataset?t.dataset[e]:r(t).attr("data-"+e)),i[e]}function f(t){return O(t)&&t.match(H)}function v(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function g(t,e,i){t.classList?t.classList.add(e):i.indexOf(" "+e+" ")&&(t.className+=" "+e)}function m(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(e,"")}function n(t,e){return parseInt(C.getComputedStyle(t[0],null)[e],10)||0}function y(e,i,t){var n=p(e,"_cashEvents"),n=n&&n[i];n&&(t?(e.removeEventListener(i,t),0<=(t=n.indexOf(t))&&n.splice(t,1)):l(n,function(t){e.removeEventListener(i,t)}))}function _(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(/%20/g,"+")}function b(t){var e,i,n,s=t.type;if(!s)return null;switch(s.toLowerCase()){case"select-one":return 0<=(n=(i=t).selectedIndex)?i.options[n].value:null;case"select-multiple":return e=[],l(t.options,function(t){t.selected&&e.push(t.value)}),e.length?e:null;case"radio":case"checkbox":return t.checked?t.value:null;default:return t.value||null}}function w(e,n,s){var t=O(n);!t&&n.length?l(n,function(t){return w(e,t,s)}):l(e,t?function(t){return t.insertAdjacentHTML(s?"afterbegin":"beforeend",n)}:function(t,e){var i;t=t,e=0===e?n:n.cloneNode(!0),(i=s)?(i=t.childNodes[0],t.insertBefore(e,i)):t.appendChild(e)})}var k,C,e,$,x,E,T,M,O,R,j,P,F,S,L,D,H,B,A,I;window.cash=(k=document,C=window,e=Array.prototype,$=e.slice,x=e.filter,E=e.push,T=function(){},M=function(t){return typeof t==typeof T&&t.call},O=function(t){return"string"==typeof t},R=/^#[\w-]*$/,j=/^\.[\w-]*$/,P=/<.+>/,F=/^\w+$/,L=r.fn=r.prototype=i.prototype={cash:!0,length:0,push:E,splice:e.splice,map:e.map,init:i},Object.defineProperty(L,"constructor",{value:r}),r.parseHTML=a,r.noop=T,r.isFunction=M,r.isString=O,r.extend=L.extend=function(t){t=t||{};var e=$.call(arguments),i=e.length,n=1;for(1===e.length&&(t=this,n=0);n<i;n++)if(e[n])for(var s in e[n])e[n].hasOwnProperty(s)&&(t[s]=e[n][s]);return t},r.extend({merge:function(t,e){for(var i=+e.length,n=t.length,s=0;s<i;n++,s++)t[n]=e[s];return t.length=n,t},each:l,matches:s,unique:d,isArray:Array.isArray,isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}
1}),D=r.uid="_cash"+Date.now(),L.extend({data:function(e,i){if(O(e))return void 0===i?p(this[0],e):this.each(function(t){return u(t,e,i)});for(var t in e)this.data(t,e[t]);return this},removeData:function(n){return this.each(function(t){var e,i;e=n,(i=c(t=t))?delete i[e]:t.dataset?delete t.dataset[e]:r(t).removeAttr("data-"+name)})}}),H=/\S+/g,L.extend({addClass:function(t){var n=f(t);return n?this.each(function(e){var i=" "+e.className+" ";l(n,function(t){g(e,t,i)})}):this},attr:function(e,i){if(e){if(O(e))return void 0===i?this[0]?this[0].getAttribute?this[0].getAttribute(e):this[0][e]:void 0:this.each(function(t){t.setAttribute?t.setAttribute(e,i):t[e]=i});for(var t in e)this.attr(t,e[t]);return this}},hasClass:function(t){var e=!1,i=f(t);return i&&i.length&&this.each(function(t){return!(e=v(t,i[0]))}),e},prop:function(e,i){if(O(e))return void 0===i?this[0][e]:this.each(function(t){t[e]=i});for(var t in e)this.prop(t,e[t]);return this},removeAttr:function(e){return this.each(function(t){t.removeAttribute?t.removeAttribute(e):delete t[e]})},removeClass:function(t){var i;return arguments.length?(i=f(t))?this.each(function(e){l(i,function(t){m(e,t)})}):this:this.attr("class","")},removeProp:function(e){return this.each(function(t){delete t[e]})},toggleClass:function(t,e){var n;return void 0!==e?this[e?"addClass":"removeClass"](t):(n=f(t))?this.each(function(e){var i=" "+e.className+" ";l(n,function(t){v(e,t)?m(e,t):g(e,t,i)})}):this}}),L.extend({add:function(t,e){return d(r.merge(this,r(t,e)))},each:function(t){return l(this,t),this},eq:function(t){return r(this.get(t))},filter:function(e){var i;return e?(i=M(e)?e:t(e),r(x.call(this,function(t){return i(t,e)}))):this},first:function(){return this.eq(0)},get:function(t){return void 0===t?$.call(this):t<0?this[t+this.length]:this[t]},index:function(t){var e=(t?r(t):this)[0],t=t?this:r(e).parent().children();return $.call(t).indexOf(e)},last:function(){return this.eq(-1)}}),B=(()=>{var e=/(?:^\w|[A-Z]|\b\w)/g,i=/[\s-_]+/g;return function(t){return t.replace(e,function(t,e){return t[0===e?"toLowerCase":"toUpperCase"]()}).replace(i,"")}})(),A=(()=>{var i={},n=document.createElement("div").style;return function(e){var t;return e=B(e),i[e]||(t=e.charAt(0).toUpperCase()+e.slice(1),l((e+" "+["webkit","moz","ms","o"].join(t+" ")+t).split(" "),function(t){if(t in n)return i[t]=e=i[e]=t,!1})),i[e]}})(),r.prefixedProp=A,r.camelCase=B,L.extend({css:function(e,i){if(O(e))return e=A(e),1<arguments.length?this.each(function(t){return t.style[e]=i}):C.getComputedStyle(this[0])[e];for(var t in e)this.css(t,e[t]);return this}}),l(["Width","Height"],function(e){var t=e.toLowerCase();L[t]=function(){return this[0].getBoundingClientRect()[t]},L["inner"+e]=function(){return this[0]["client"+e]},L["outer"+e]=function(t){return this[0]["offset"+e]+(t?n(this,"margin"+("Width"===e?"Left":"Top"))+n(this,"margin"+("Width"===e?"Right":"Bottom")):0)}}),L.extend({off:function(e,i){return this.each(function(t){return y(t,e,i)})},on:function(a,i,r,l){var n,t;if(O(a))return M(i)&&(r=i,i=null),"ready"===a?(h(r),this):(i&&(n=r,r=function(t){for(var e=t.target;!s(e,i);){if(e===this||null===e)return!1;e=e.parentNode}e&&n.call(e,t)}),this.each(function(t){var e,i,n,s,o=r;i=a,n=o=l?function(){r.apply(this,arguments),y(t,a,o)}:r,(s=p(e=t,"_cashEvents")||u(e,"_cashEvents",{}))[i]=s[i]||[],s[i].push(n),e.addEventListener(i,n)}));for(t in a)this.on(t,i,a[t]);return this},one:function(t,e,i){return this.on(t,e,i,!0)},ready:h,trigger:function(t,e){var i;if(document.createEvent)return(i=document.createEvent("HTMLEvents")).initEvent(t,!0,!1),i=this.extend(i,e),this.each(function(t){return t.dispatchEvent(i)})}}),L.extend({serialize:function(){var n="";return l(this[0].elements||this,function(t){if(!t.disabled&&"FIELDSET"!==t.tagName){var e=t.name;switch(t.type.toLowerCase()){case"file":case"reset":case"submit":case"button":break;case"select-multiple":var i=b(t);null!==i&&l(i,function(t){n+=_(e,t)});break;default:i=b(t);null!==i&&(n+=_(e,i))}}}),n.substr(1)},val:function(e){return void 0===e?b(this[0]):this.each(function(t){return t.value=e})}}),L.extend({after:function(t){return r(t).insertAfter(this),this},append:function(t){return w(this,t),this},appendTo:function(t){return w(r(t),this),this},before:function(t){return r(t).insertBefore(this),this},clone:function(){return r(this.map(function(t){return t.cloneNode(!0)}))},empty:function(){return this.html(""),this},html:function(t){var e;return void 0===t?this[0].innerHTML:(e=t.nodeType?t[0].outerHTML:t,this.each(function(t){return t.innerHTML=e}))},insertAfter:function(t){var s=this;return r(t).each(function(t,e){var i=t.parentNode,n=t.nextSibling;s.each(function(t){i.insertBefore(0===e?t:t.cloneNode(!0),n)})}),this},insertBefore:function(t){var s=this;return r(t).each(function(e,i){var n=e.parentNode;s.each(function(t){n.insertBefore(0===i?t:t.cloneNode(!0),e)})}),this},prepend:function(t){return w(this,t,!0),this},prependTo:function(t){return w(r(t),this,!0),this},remove:function(){return this.each(function(t){if(t.parentNode)return t.parentNode.removeChild(t)})},text:function(e){return void 0===e?this[0].textContent:this.each(function(t){return t.textContent=e})}}),I=k.documentElement,L.extend({position:function(){var t=this[0];return{left:t.offsetLeft,top:t.offsetTop}},offset:function(){var t=this[0].getBoundingClientRect();return{top:t.top+C.pageYOffset-I.clientTop,left:t.left+C.pageXOffset-I.clientLeft}},offsetParent:function(){return r(this[0].offsetParent)}}),L.extend({children:function(e){var i=[];return this.each(function(t){E.apply(i,t.children)}),i=d(i),e?i.filter(function(t){return s(t,e)}):i},closest:function(t){return!t||this.length<1?r():this.is(t)?this.filter(t):this.parent().closest(t)},is:function(e){var i,n;return!!e&&(i=!1,n=t(e),this.each(function(t){return!(i=n(t,e))}),i)},find:function(e){var i;return!e||e.nodeType?r(e&&this.has(e).length?e:null):(i=[],this.each(function(t){E.apply(i,o(e,t))}),d(i))},has:function(e){var t=O(e)?function(t){return 0!==o(e,t).length}:function(t){return t.contains(e)};return this.filter(t)},next:function(){return r(this[0].nextElementSibling)},not:function(e){var i;return e?(i=t(e),this.filter(function(t){return!i(t,e)})):this},parent:function(){var e=[];return this.each(function(t){t&&t.parentNode&&e.push(t.parentNode)}),d(e)},parents:function(e){var i,n=[];return this.each(function(t){for(i=t;i&&i.parentNode&&i!==k.body.parentNode;)i=i.parentNode,e&&!s(i,e)||n.push(i)}),d(n)},prev:function(){return r(this[0].previousElementSibling)},siblings:function(t){var t=this.parent().children(t),e=this[0];return t.filter(function(t){return t!==e})}}),r)})();
1var Component=(()=>{function n(t,e,i){_classCallCheck(this,n),e instanceof Element||console.error(Error(e+" is not an HTML Element"));t=t.getInstance(e);t&&t.destroy(),this.el=e,this.$el=cash(e)}return _createClass(n,null,[{key:"init",value:function(t,e,i){var n=null;if(e instanceof Element)n=new t(e,i);else if(e&&(e.jquery||e.cash||e instanceof NodeList)){for(var s=[],o=0;o<e.length;o++)s.push(new t(e[o],i));n=s}return n}}]),n})(),docHandleKeydown=((t=>{t.Package?M={}:t.M={},M.jQueryLoaded=!!t.jQuery})(window),"function"==typeof define&&define.amd?define("M",[],function(){return M}):"undefined"==typeof exports||exports.nodeType||((exports="undefined"!=typeof module&&!module.nodeType&&module.exports?module.exports=M:exports).default=M),M.version="1.0.0",M.keys={TAB:9,ENTER:13,ESC:27,ARROW_UP:38,ARROW_DOWN:40},M.tabPressed=!1,M.keyDown=!1,function(t){M.keyDown=!0,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!0)}),docHandleKeyup=function(t){M.keyDown=!1,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!1)},docHandleFocus=function(t){M.keyDown&&document.body.classList.add("keyboard-focused")},docHandleBlur=function(t){document.body.classList.remove("keyboard-focused")},getTime=(document.addEventListener("keydown",docHandleKeydown,!0),document.addEventListener("keyup",docHandleKeyup,!0),document.addEventListener("focus",docHandleFocus,!0),document.addEventListener("blur",docHandleBlur,!0),M.initializeJqueryWrapper=function(n,s,o){jQuery.fn[s]=function(e){var i,t;return n.prototype[e]?(i=Array.prototype.slice.call(arguments,1),"get"===e.slice(0,3)?(t=this.first()[0][o])[e].apply(t,i):this.each(function(){var t=this[o];t[e].apply(t,i)})):"object"!=typeof e&&e?void jQuery.error("Method "+e+" does not exist on jQuery."+s):(n.init(this,e),this)}},M.AutoInit=function(t){var e,t=t||document.body,i={Autocomplete:t.querySelectorAll(".autocomplete:not(.no-autoinit)"),C
1arousel:t.querySelectorAll(".carousel:not(.no-autoinit)"),Chips:t.querySelectorAll(".chips:not(.no-autoinit)"),Collapsible:t.querySelectorAll(".collapsible:not(.no-autoinit)"),Datepicker:t.querySelectorAll(".datepicker:not(.no-autoinit)"),Dropdown:t.querySelectorAll(".dropdown-trigger:not(.no-autoinit)"),Materialbox:t.querySelectorAll(".materialboxed:not(.no-autoinit)"),Modal:t.querySelectorAll(".modal:not(.no-autoinit)"),Parallax:t.querySelectorAll(".parallax:not(.no-autoinit)"),Pushpin:t.querySelectorAll(".pushpin:not(.no-autoinit)"),ScrollSpy:t.querySelectorAll(".scrollspy:not(.no-autoinit)"),FormSelect:t.querySelectorAll("select:not(.no-autoinit)"),Sidenav:t.querySelectorAll(".sidenav:not(.no-autoinit)"),Tabs:t.querySelectorAll(".tabs:not(.no-autoinit)"),TapTarget:t.querySelectorAll(".tap-target:not(.no-autoinit)"),Timepicker:t.querySelectorAll(".timepicker:not(.no-autoinit)"),Tooltip:t.querySelectorAll(".tooltipped:not(.no-autoinit)"),FloatingActionButton:t.querySelectorAll(".fixed-action-btn:not(.no-autoinit)")};for(e in i)M[e].init(i[e])},M.objectSelectorString=function(t){return((t.prop("tagName")||"")+(t.attr("id")||"")+(t.attr("class")||"")).replace(/\s/g,"")},M.guid=(()=>{function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}
1return function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}})(),M.escapeHash=function(t){return t.replace(/(:|\.|\[|\]|,|=|\/)/g,"\\$1")},M.elementOrParentIsFixed=function(t){var t=$(t),t=t.add(t.parents()),e=!1;return t.each(function(){if("fixed"===$(this).css("position"))return!(e=!0)}),e},M.checkWithinContainer=function(t,e,i){var n={top:!1,right:!1,bottom:!1,left:!1},s=t.getBoundingClientRect(),o=t===document.body?Math.max(s.bottom,window.innerHeight):s.bottom,a=t.scrollLeft,a=e.left-a,t=e.top-t.scrollTop;return(a<s.left+i||a<i)&&(n.left=!0),(s.right-i<a+e.width||a+e.width>window.innerWidth-i)&&(n.right=!0),(t<s.top+i||t<i)&&(n.top=!0),(o-i<t+e.height||t+e.height>window.innerHeight-i)&&(n.bottom=!0),n},M.checkPossibleAlignments=function(t,e,i,n){var s={top:!0,right:!0,bottom:!0,left:!0,spaceOnTop:null,spaceOnRight:null,spaceOnBottom:null,spaceOnLeft:null},o="visible"===getComputedStyle(e).overflow,a=e.getBoundingClientRect(),r=Math.min(a.height,window.innerHeight),a=Math.min(a.width,window.innerWidth),t=t.getBoundingClientRect(),l=e.scrollLeft,e=e.scrollTop,l=i.left-l,h=i.top-e,e=i.top+t.height-e;return s.spaceOnRight=o?window.innerWidth-(t.left+i.width):a-(l+i.width),s.spaceOnRight<0&&(s.left=!1),s.spaceOnLeft=o?t.right-i.width:l-i.width+t.width,s.spaceOnLeft<0&&(s.right=!1),s.spaceOnBottom=o?window.innerHeight-(t.top+i.height+n):r-(h+i.height+n),s.spaceOnBottom<0&&(s.top=!1),s.spaceOnTop=o?t.bottom-(i.height+n):e-(i.height-n),s.spaceOnTop<0&&(s.bottom=!1),s},M.getOverflowParent=function(t){return null==t?null:t===document.body||"visible"!==getComputedStyle(t).overflow?t:M.getOverflowParent(t.parentElement)},M.getIdFromTrigger=function(t){var e=t.getAttribute("data-target");return e=e||((e=t.getAttribute("href"))?e.slice(1):"")},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},Date.now||function(){return(new Date).getTime()}),$jscomp=(M.throttle=function(i,n,s){function o(){d=!1===s.leading?0:getTime(),h=null,l=i.apply(a,r),a=r=null}var a=void 0,r=void 0,l=void 0,h=null,d=0;s=s||{};return function(){var t=getTime(),e=(d||!1!==s.leading||(d=t),n-(t-d));return a=this,r=arguments,e<=0?(clearTimeout(h),h=null,d=t,l=i.apply(a,r),a=r=null):h||!1===s.trailing||(h=setTimeout(o,e)),l}},{scope:{}}),$jscomp$this=($jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,i){if(i.get||i.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=i.value)},$jscomp.getGlobal=function(t){return("undefined"==typeof window||window!==t)&&"undefined"!=typeof global&&null!=global?global:t},$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(t){return $jscomp.SYMBOL_PREFIX+(t||"")+$jscomp.symbolCounter_++},$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var t=(t=$jscomp.global.Symbol.iterator)||($jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[t]&&$jscomp.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}}),$jscomp.initSymbolIterator=function(){}},$jscomp.arrayIterator=function(t){var e=0;return $jscomp.iteratorPrototype(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})},$jscomp.iteratorPrototype=function(t){return $jscomp.initSymbolIterator(),(t={next:t})[$jscomp.global.Symbol.iterator]=function(){return this},t},$jscomp.array=$jscomp.array||{},$jscomp.iteratorFromArray=function(e,i){$jscomp.initSymbolIterator(),e instanceof String&&(e+="");var n=0,s={next:function(){var t;return n<e.length?(t=n++,{value:i(t,e[t]),done:!1}):(s.next=function(){return{done:!0,value:void 0}},s.next())}};return s[Symbol.iterator]=function(){return s},s}
1,$jscomp.polyfill=function(t,e,i,n){if(e){for(i=$jscomp.global,t=t.split("."),n=0;n<t.length-1;n++){var s=t[n];s in i||(i[s]={}),i=i[s]}(e=e(n=i[t=t[t.length-1]]))!=n&&null!=e&&$jscomp.defineProperty(i,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.keys",function(t){return t||function(){return $jscomp.iteratorFromArray(this,function(t){return t})}},"es6-impl","es3"),this);(()=>{function s(t){if(!S.col(t))try{return document.querySelectorAll(t)}catch(t){}}function w(t,e){for(var i,n=t.length,s=2<=arguments.length?e:void 0,o=[],a=0;a<n;a++)a in t&&(i=t[a],e.call(s,i,a,t))&&o.push(i);return o}function h(t){return t.reduce(function(t,e){return t.concat(S.arr(e)?h(e):e)},[])}function d(t){return S.arr(t)?t:(t=S.str(t)?s(t)||t:t)instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t]}function o(t,e){return t.some(function(t){return t===e})}function c(t){var e,i={};for(e in t)i[e]=t[e];return i}function u(t,e){var i,n=c(t);for(i in t)n[i]=(e.hasOwnProperty(i)?e:t)[i];return n}function p(t,e){var i,n=c(t);for(i in e)n[i]=(S.und(t[i])?e:t)[i];return n}function f(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function l(t,e){return S.fnc(t)?t(e.target,e.id,e.total):t}function k(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function v(t,e){return S.dom(t)&&o(T,e)?"transform":S.dom(t)&&(t.getAttribute(e)||S.svg(t)&&t[e])?"attribute":S.dom(t)&&"transform"!==e&&k(t,e)?"css":null!=t[e]?"object":void 0}function g(t,e){switch(v(t,e)){case"transform":var i=t,n=e,s=-1<(s=n).indexOf("translate")||"perspective"===s?"px":-1<s.indexOf("rotate")||-1<s.indexOf("skew")?"deg":void 0,s=-1<n.indexOf("scale")?1:0+s;if(!(i=i.style.transform))return s;for(var o,a=[],r=[],l=/(\w+)\((.+?)\)/g;o=l.exec(i);)a.push(o[1]),r.push(o[2]);return(i=w(r,function(t,e){return a[e]===n})).length?i[0]:s;case"css":return k(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function m(t,e){var i=/^(\*=|\+=|-=)/.exec(t);if(!i)return t;var n=f(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(i[0],"")),i[0][0]){case"+":return e+t+n;case"-":return e-t+n;case"*":return e*t+n}}function a(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function i(t){t=t.points;for(var e,i=0,n=0;n<t.numberOfItems;n++){var s=t.getItem(n);0<n&&(i+=a(e,s)),e=s}return i}function r(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return a({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return i(t);case"polygon":var e=t.points;return i(t)+a(e.getItem(e.numberOfItems-1),e.getItem(0))}}function y(t,e){var i,n,s,o,a,r,l,h,d=/-?\d*\.?\d+/g;function c(t,e,i){return i<0&&(i+=1),1<i&&--i,i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}return n=S.pth(t)?t.totalLength:t,n=S.col(n)?S.rgb(n)?(i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n))?"rgba("+i[1]+",1)":n:S.hex(n)?(r=(r=n).replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n}),l=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),r=parseInt(l[1],16),h=parseInt(l[2],16),"rgba("+r+","+h+","+parseInt(l[3],16)+",1)"):S.hsl(n)?(r=n,h=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(r)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(r),r=parseInt(h[1])/360,l=parseInt(h[2])/100,a=parseInt(h[3])/100,h=h[4]||1,0==l?a=l=r=a:(a=c(o=2*a-(s=a<.5?a*(1+l):a+l-a*l),s,r+1/3),l=c(o,s,r),r=c(o,s,r-1/3)),"rgba("+255*a+","+255*l+","+255*r+","+h+")"):void 0:(i=(i=f(n))?n.substr(0,n.length-i.length):n,e&&!/\s/g.test(n)?i+e:i),{original:n+="",numbers:n.match(d)?n.match(d).map(Number):[0],strings:S.str(t)||e?n.split(d):[]}}function _(t){return w(t=t?h(S.arr(t)?t.map(d):d(t)):[],function(t,e,i){return i.indexOf(t)===e})}function b(o,a){var r;return o.tweens.map(function(t){var e=(t=((t,e)=>{var i,n={};for(i in t){var s=l(t[i],e);S.arr(s)&&1===(s=s.map(function(t){return l(t,e)})).length&&(s=s[0]),n[i]=s}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n})(t,a)).value,i=g(a.target,o.name),n=r?r.to.original:i,n=S.arr(e)?e[0]:n,s=m(S.arr(e)?e[1]:e,n),i=f(s)||f(n)||f(i);return t.from=y(n,i),t.to=y(s,i),t.start=r?r.end:o.offset,t.end=t.start+t.delay+t.duration,t.easing=function(t){return S.arr(t)?L.apply(this,t):D[t]}(t.easing),t.elasticity=(1e3-Math.min(Math.max(t.elasticity,1),999))/1e3,t.isPath=S.pth(e),t.isColor=S.col(t.from.original),t.isColor&&(t.round=1),r=t})}function C(e,t,i,n){var s="delay"===e;return t.length?(s?Math.min:Math.max).apply(Math,t.map(function(t){return t[e]})):s?n.delay:i.offset+n.delay+n.duration}
vendor: 5,856 bytes, line 1
1function n(t){var e,i,s,n=u(x,t),o=u(E,t),a=(a=t.targets,(i=_(a)).map(function(t,e){return{target:t,id:e,total:i.length}})),r=[],l=p(n,o);for(e in t)l.hasOwnProperty(e)||"targets"===e||r.push({name:e,offset:l.offset,tweens:((t,i)=>{var e,n=c(i);return S.arr(t)&&(2!==(e=t.length)||S.obj(t[0])?S.fnc(i.duration)||(n.duration=i.duration/e):t={value:t}),d(t).map(function(t,e){return e=e?0:i.delay,t=S.obj(t)&&!S.pth(t)?t:{value:t},S.und(t.delay)&&(t.delay=e),t}).map(function(t){return p(t,n)})})(t[e],o)});return s=r,p(n,{children:[],animatables:a,animations:t=w(h(a.map(function(n){return s.map(function(t){var e,i=v(n.target,t.name);return t=i?(e=b(t,n),{type:i,property:t.name,animatable:n,tweens:e,duration:e[e.length-1].end,delay:e[0].delay}):void 0})})),function(t){return!S.und(t)}),duration:C("duration",t,n,o),delay:C("delay",t,n,o)})}function $(t){function d(){return window.Promise&&new Promise(function(t){return y=t})}function c(t){return b.reversed?b.duration-t:t}function u(e){for(var t=0,i={},n=b.animations,s=n.length;t<s;){var o=n[t],a=o.animatable,r=(l=o.tweens)[c=l.length-1];c&&(r=w(l,function(t){return e<t.end})[0]||r);for(var l=Math.min(Math.max(e-r.start-r.delay,0),r.duration)/r.duration,h=isNaN(l)?1:r.easing(l,r.elasticity),l=r.to.strings,d=r.round,c=[],u=void 0,u=r.to.numbers.length,p=0;p<u;p++){var f=void 0,f=r.to.numbers[p],v=r.from.numbers[p],f=r.isPath?((e,i)=>{function t(t){return e.el.getPointAtLength(1<=i+(t=void 0===t?0:t)?i+t:0)}var n=t(),s=t(-1),o=t(1);switch(e.property){case"x":return n.x;case"y":return n.y;case"angle":return 180*Math.atan2(o.y-s.y,o.x-s.x)/Math.PI}})(r.value,h*f):v+h*(f-v);!d||r.isColor&&2<p||(f=Math.round(f*d)/d),c.push(f)}if(r=l.length)for(u=l[0],h=0;h<r;h++)d=l[h+1],p=c[h],isNaN(p)||(u=d?u+(p+d):u+(p+" "));else u=c[0];B[o.type](a.target,o.property,u,i,a.id),o.currentValue=u,t++}if(t=Object.keys(i).length)for(n=0;n<t;n++)O=O||(k(document.body,"transform")?"transform":"-webkit-transform"),b.animatables[n].target.style[O]=i[n].join(" ");b.currentTime=e,b.progress=e/b.duration*100}function p(t){b[t]&&b[t](b)}function f(){b.remaining&&!0!==b.remaining&&b.remaining--}function e(t){var e=b.duration,i=b.offset,n=i+b.delay,s=b.currentTime,o=b.reversed,a=c(t);if(b.children.length){var r=b.children,l=r.length;if(a>=b.currentTime)for(var h=0;h<l;h++)r[h].seek(a);else for(;l--;)r[l].seek(a)}(n<=a||!e)&&(b.began||(b.began=!0,p("begin")),p("run")),i<a&&a<e?u(a):(a<=i&&0!==s&&(u(0),o)&&f(),(e<=a&&s!==e||!e)&&(u(e),o||f())),p("update"),e<=t&&(b.remaining?(g=v,"alternate"===b.direction&&(b.reversed=!b.reversed)):(b.pause(),b.completed||(b.completed=!0,p("complete"),"Promise"in window&&(y(),_=d()))),m=0)}t=void 0===t?{}:t;var v,g,m=0,y=null,_=d(),b=n(t);return b.reset=function(){var t=b.direction,e=b.loop;for(b.currentTime=0,b.progress=0,b.paused=!0,b.began=!1,b.completed=!1,b.reversed="reverse"===t,b.remaining="alternate"===t&&1===e?2:e,u(0),t=b.children.length;t--;)b.children[t].reset()},b.tick=function(t){e((m+(v=t)-(g=g||v))*$.speed)},b.seek=function(t){e(c(t))},b.pause=function(){var t=A.indexOf(b);-1<t&&A.splice(t,1),b.paused=!0},b.play=function(){b.paused&&(b.paused=!1,g=0,m=c(b.currentTime),A.push(b),I||R())},b.reverse=function(){b.reversed=!b.reversed,g=0,m=c(b.currentTime)},b.restart=function(){b.pause(),b.reset(),b.play()},b.finished=_,b.reset(),b.autoplay&&b.play(),b}var x,E,T,O,S,L,D,B,A,I,R;M.anime=(x={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},E={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},T="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),S={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return S.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||S.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return S.hex(t)||S.rgb(t)||S.hsl(t)}},L=(()=>{function c(t,e,i){return(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t}return function(a,r,l,h){if(0<=a&&a<=1&&0<=l&&l<=1){var d=new Float32Array(11);if(a!==r||l!==h)for(var t=0;t<11;++t)d[t]=c(.1*t,a,l);return function(t){if(a===r&&l===h)return t;if(0===t)return 0;if(1===t)return 1;for(var e=0,i=1;10!==i&&d[i]<=t;++i)e+=.1;var i=e+(t-d[--i])/(d[i+1]-d[i])*.1,n=3*(1-3*l+3*a)*i*i+2*(3*l-6*a)*i+3*a;if(.001<=n){for(e=0;e<4&&0!==(n=3*(1-3*l+3*a)*i*i+2*(3*l-6*a)*i+3*a);++e)var s=c(i,a,l)-t,i=i-s/n;t=i}else if(0===n)t=i;else{for(var i=e,e=e+.1,o=0;0<(n=c(s=i+(e-i)/2,a,l)-t)?e=s:i=s,1e-7<Math.abs(n)&&++o<10;);t=s}return c(t,r,h)}}}})(),D=(()=>{function i(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),e={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],i],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(t,e){return 1-i(1-t,e)}],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(t,e){return t<.5?i(2*t,e)/2:1-i(-2*t+2,e)/2}]},s={linear:L(.25,.25,.75,.75)},o={};for(t in e)o.type=t,e[o.type].forEach((i=>function(t,e){s["ease"+i.type+n[e]]=S.fnc(t)?t:L.apply($jscomp$this,t)})(o)),o={type:o.type};return s}
1)(),B={css:function(t,e,i){return t.style[e]=i},attribute:function(t,e,i){return t.setAttribute(e,i)},object:function(t,e,i){return t[e]=i},transform:function(t,e,i,n,s){n[s]||(n[s]=[]),n[s].push(e+"("+i+")")}},A=[],I=0,R=(()=>{function n(){I=requestAnimationFrame(t)}function t(t){var e=A.length;if(e){for(var i=0;i<e;)A[i]&&A[i].tick(t),i++;n()}else cancelAnimationFrame(I),I=0}return n})(),$.version="2.2.0",$.speed=1,$.running=A,$.remove=function(t){t=_(t);for(var e=A.length;e--;)for(var i=A[e],n=i.animations,s=n.length;s--;)o(t,n[s].animatable.target)&&(n.splice(s,1),n.length||i.pause())},$.getValue=g,$.path=function(t,e){var i=S.str(t)?s(t)[0]:t,n=e||100;return function(t){return{el:i,property:t,totalLength:r(i)*(n/100)}}},$.setDashoffset=function(t){var e=r(t);return t.setAttribute("stroke-dasharray",e),e},$.bezier=L,$.easings=D,$.timeline=function(n){var s=$(n);return s.pause(),s.duration=0,s.add=function(t){return s.children.forEach(function(t){t.began=!0,t.completed=!0}),d(t).forEach(function(t){var e=p(t,u(E,n||{})),i=(e.targets=e.targets||n.targets,t=s.duration,e.offset);e.autoplay=!1,e.direction=s.direction,e.offset=S.und(i)?t:m(i,t),s.began=!0,s.completed=!0,s.seek(e.offset),(e=$(e)).began=!0,e.completed=!0,t<e.duration&&(s.duration=e.duration),s.children.push(e)}),s.seek(0),s.reset(),s.autoplay&&s.restart(),s},s},$.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},$)})(),((s,a)=>{var t={accordion:!0,onOpenStart:void 0,onOpenEnd:void 0,onCloseStart:void 0,onCloseEnd:void 0,inDuration:300,outDuration:300},e=(_inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Collapsible=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleCollapsibleClickBound=this._handleCollapsibleClick.bind(this),this._handleCollapsibleKeydownBound=this._handleCollapsibleKeydown.bind(this),this.el.addEventListener("click",this._handleCollapsibleClickBound),this.$headers.each(function(t){t.addEventListener("keydown",e._handleCollapsibleKeydownBound)})}},{key:"_removeEventHandlers",value:function(){var e=this;this.el.removeEventListener("click",this._handleCollapsibleClickBound),this.$headers.each(function(t){t.removeEventListener("keydown",e._handleCollapsibleKeydownBound)})}},{key:"_handleCollapsibleClick",value:function(t){var e,i=s(t.target).closest(".collapsible-header");t.target&&i.length&&(t=i.closest(".collapsible"))[0]===this.el&&(i=i.closest("li"),t=t.children("li"),e=i[0].classList.contains("active"),t=t.index(i),e?this.close(t):this.open(t))}},{key:"_handleCollapsibleKeydown",value:function(t){13===t.keyCode&&this._handleCollapsibleClickBound(t)}},{key:"_animateIn",value:function(t){var e,i,n,s=this,o=this.$el.children("li").eq(t);o.length&&(e=o.children(".collapsible-body"),a.remove(e[0]),e.css({display:"block",overflow:"hidden",height:0,paddingTop:"",paddingBottom:""}),t=e.css("padding-top"),i=e.css("padding-bottom"),n=e[0].scrollHeight,e.css({paddingTop:0,paddingBottom:0}),a({targets:e[0],height:n,paddingTop:t,paddingBottom:i,duration:this.options.inDuration,easing:"easeInOutCubic",complete:function(t){e.css({overflow:"",paddingTop:"",paddingBottom:"",height:""}),"function"==typeof s.options.onOpenEnd&&s.options.onOpenEnd.call(s,o[0])}}))}},{key:"_animateOut",value:function(t){var e,i=this,n=this.$el.children("li").eq(t);n.length&&(e=n.children(".collapsible-body"),a.remove(e[0]),e.css("overflow","hidden"),a({targets:e[0],height:0,paddingTop:0,paddingBottom:0,duration:this.options.outDuration,easing:"easeInOutCubic",complete:function(){e.css({height:"",overflow:"",padding:"",display:""}),"function"==typeof i.options.onCloseEnd&&i.options.onCloseEnd.call(i,n[0])}}))}},{key:"open",value:function(t){var e,i=this,n=this.$el.children("li").eq(t);n.length&&!n[0].classList.contains("active")&&("function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,n[0]),this.options.accordion&&(e=this.$el.children("li"),this.$el.children("li.active").each(function(t){t=e.index(s(t));i.close(t)})),n[0].classList.add("active"),this._animateIn(t))}},{key:"close",value:function(t){var e=this.$el.children("li").eq(t);e.length&&e[0].classList.contains("active")&&("function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,e[0]),e[0].classList.remove("active"),this._animateOut(t))}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Collapsible}},{key:"defaults",get:function(){return t}}]),i);function i(t,e){_classCallCheck(this,i);t=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,t,e)),(t.el.M_Collapsible=t).options=s.extend({},i.defaults,e),t.$headers=t.$el.children("li").children(".collapsible-header"),t.$headers.attr("tabindex",0),t._setupEventHandlers(),e=t.$el.children("li.active").children(".collapsible-body");return(t.options.accordion?e.first():e).css("display","block"),t}M.Collapsible=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"collapsible","M_Collapsible")})(cash,M.anime),((r,t)=>{var e={alignment:"left",autoFocus:!0,constrainWidth:!0,container:null,coverTrigger:!0,closeOnClick:!0,hover:!1,inDuration:150,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onItemClick:null},i=(_inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._resetDropdownStyles(),this._removeEventHandlers(),n._dropdowns.splice(n._dropdowns.indexOf(this),1),this.el.M_Dropdown=void 0}},{key:"_setupEventHandlers",value:function(){this.el.addEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.addEventListener("click",this._handleDropdownClickBound),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)):(this._handleClickBound=this._handleClick.bind(this),this.el.addEventListener("click",this._handleClickBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.removeEventListener("click",this._handleDropdownClickBound),this.options.hover?(this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.removeEventListener("mouseleave",this._handleMouseLeaveBound)):this.el.removeEventListener("click",this._handleClickBound)}},{key:"_setupTemporaryEventHandlers",value:function(){document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound),document.body.addEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.addEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_removeTemporaryEventHandlers",value:function(){document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound),document.body.removeEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.removeEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_handleClick",value:function(t){t.preventDefault(),this.open()}},{key:"_handleMouseEnter",value:function(){this.open()}},{key:"_handleMouseLeave",value:function(t){var t=t.toElement||t.relatedTarget,e=!!r(t).closest(".dropdown-content").length,i=!1,t=r(t).closest(".dropdown-trigger");(i=t.length&&t[0].M_Dropdown&&t[0].M_Dropdown.isOpen?!0:i)||e||this.close()}},{key:"_handleDocumentClick",value:function(t){var e=this,t=r(t.target);(this.options.closeOnClick&&t.closest(".dropdown-content").length&&!this.isTouchMoving||t.closest(".dropdown-trigger").length||!t.closest(".dropdown-content").length)&&setTimeout(function(){e.close()},0),this.isTouchMoving=!1}},{key:"_handleTriggerKeydown",value:function(t){t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ENTER||this.isOpen||(t.preventDefault(),this.open())}},{key:"_handleDocumentTouchmove",value:function(t){r(t.target).closest(".dropdown-content").length&&(this.isTouchMoving=!0)}},{key:"_handleDropdownClick",value:function(t){"function"==typeof this.options.onItemClick&&(t=r(t.target).closest("li")[0],this.options.onItemClick.call(this,t))}},{key:"_handleDropdownKeydown",value:function(t){if(t.which===M.keys.TAB)t.preventDefault(),this.close();else if(t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||!this.isOpen)t.which===M.keys.ENTER&&this.isOpen?(o=this.dropdownEl.children[this.focusedIndex],(a=r(o).find("a, button").first()).length?a[0].click():o&&o.click()):t.which===M.keys.ESC&&this.isOpen&&(t.preventDefault(),this.close());else{t.preventDefault();var e=t.which===M.keys.ARROW_DOWN?1:-1,i=this.focusedIndex,n=!1;do{if(this.dropdownEl.children[i+=e]&&-1!==this.dropdownEl.children[i].tabIndex){n=!0;break}}while(i<this.dropdownEl.children.length&&0<=i);n&&(this.focusedIndex=i,this._focusFocusedItem())}var s,o,a=String.fromCharCode(t.which).toLowerCase();a&&-1===[9,13,27,38,40].indexOf(t.which)&&(this.filterQuery.push(a),s=this.filterQuery.join(""),o=r(this.dropdownEl).find("li").filter(function(t){return 0===r(t).text().toLowerCase().indexOf(s)})[0])&&(this.focusedIndex=r(o).index(),this._focusFocusedItem()),this.filterTimeout=setTimeout(this._resetFilterQueryBound,1e3)}},{key:"_resetFilterQuery",value:function(){this.filterQuery=[]}},{key:"_resetDropdownStyles",value:function(){this.$dropdownEl.css({display:"",width:"",height:"",left:"",top:"","transform-origin":"",transform:"",opacity:""})}},{key:"_makeDropdownFocusable",value:function(){this.dropdownEl.tabIndex=0,r(this.dropdownEl).children().each(function(t){t.getAttribute("tabindex")||t.setAttribute("tabindex",0)})}},{key:"_focusFocusedItem",value:function(){0<=this.focusedIndex&&this.focusedIndex<this.dropdownEl.children.length&&this.options.autoFocus&&this.dropdownEl.children[this.focusedIndex].focus()}},{key:"_getDropdownPosition",value:function(){this.el.offsetParent.getBoundingClientRect();var t,e=this.el.getBoundingClientRect(),i=this.dropdownEl.getBoundingClientRect(),n=i.height,s=i.width,o=e.left-i.left,a=e.top-i.top,r=this.dropdownEl.offsetParent||this.dropdownEl.parentNode,r=M.checkPossibleAlignments(this.el,r,{left
1:o,top:a,height:n,width:s},this.options.coverTrigger?0:e.height),l="top",h=this.options.alignment;return a+=this.options.coverTrigger?0:e.height,this.isScrollable=!1,r.top||(r.bottom?l="bottom":(this.isScrollable=!0,r.spaceOnTop>r.spaceOnBottom?(l="bottom",n+=r.spaceOnTop,a-=r.spaceOnTop):n+=r.spaceOnBottom)),r[h]||(r[t="left"===h?"right":"left"]?h=t:r.spaceOnLeft>r.spaceOnRight?(h="right",s+=r.spaceOnLeft,o-=r.spaceOnLeft):(h="left",s+=r.spaceOnRight)),"bottom"===l&&(a=a-i.height+(this.options.coverTrigger?e.height:0)),{x:o="right"===h?o-i.width+e.width:o,y:a,verticalAlignment:l,horizontalAlignment:h,height:n,width:s}}},{key:"_animateIn",value:function(){var e=this;t.remove(this.dropdownEl),t({targets:this.dropdownEl,opacity:{value:[0,1],easing:"easeOutQuad"},scaleX:[.3,1],scaleY:[.3,1],duration:this.options.inDuration,easing:"easeOutQuint",complete:function(t){e.options.autoFocus&&e.dropdownEl.focus(),"function"==typeof e.options.onOpenEnd&&e.options.onOpenEnd.call(e,e.el)}})}},{key:"_animateOut",value:function(){var e=this;t.remove(this.dropdownEl),t({targets:this.dropdownEl,opacity:{value:0,easing:"easeOutQuint"},scaleX:.3,scaleY:.3,duration:this.options.outDuration,easing:"easeOutQuint",complete:function(t){e._resetDropdownStyles(),"function"==typeof e.options.onCloseEnd&&e.options.onCloseEnd.call(e,e.el)}})}},{key:"_placeDropdown",value:function(){var t=(this.options.constrainWidth?this.el:this.dropdownEl).getBoundingClientRect().width,t=(this.dropdownEl.style.width=t+"px",this._getDropdownPosition());this.dropdownEl.style.left=t.x+"px",this.dropdownEl.style.top=t.y+"px",this.dropdownEl.style.height=t.height+"px",this.dropdownEl.style.width=t.width+"px",this.dropdownEl.style.transformOrigin=("left"===t.horizontalAlignment?"0":"100%")+" "+("top"===t.verticalAlignment?"0":"100%")}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._resetDropdownStyles(),this.dropdownEl.style.display="block",this._placeDropdown(),this._animateIn(),this._setupTemporaryEventHandlers())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.focusedIndex=-1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._animateOut(),this._removeTemporaryEventHandlers(),this.options.autoFocus)&&this.el.focus()}},{key:"recalculateDimensions",value:function(){this.isOpen&&(this.$dropdownEl.css({width:"",height:"",left:"",top:"","transform-origin":""}),this._placeDropdown())}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Dropdown}},{key:"defaults",get:function(){return e}}]),n);function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return i.el.M_Dropdown=i,n._dropdowns.push(i),i.id=M.getIdFromTrigger(t),i.dropdownEl=document.getElementById(i.id),i.$dropdownEl=r(i.dropdownEl),i.options=r.extend({},n.defaults,e),i.isOpen=!1,i.isScrollable=!1,i.isTouchMoving=!1,i.focusedIndex=-1,i.filterQuery=[],i.options.container?r(i.options.container).append(i.dropdownEl):i.$el.after(i.dropdownEl),i._makeDropdownFocusable(),i._resetFilterQueryBound=i._resetFilterQuery.bind(i),i._handleDocumentClickBound=i._handleDocumentClick.bind(i),i._handleDocumentTouchmoveBound=i._handleDocumentTouchmove.bind(i),i._handleDropdownClickBound=i._handleDropdownClick.bind(i),i._handleDropdownKeydownBound=i._handleDropdownKeydown.bind(i),i._handleTriggerKeydownBound=i._handleTriggerKeydown.bind(i),i._setupEventHandlers(),i}i._dropdowns=[],M.Dropdown=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"dropdown","M_Dropdown")})(cash,M.anime),((n,i)=>{var t={opacity:.5,inDuration:250,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0,dismissible:!0,startingTop:"4%",endingTop:"10%"},e=(_inherits(s,Component),_createClass(s,[{key:"destroy",value:function(){s._count--,this._removeEventHandlers(),this.el.removeAttribute("style"),this.$overlay.remove(),this.el.M_Modal=void 0}},{key:"_setupEventHandlers",value:function(){this._handleOverlayClickBound=this._handleOverlayClick.bind(this),this._handleModalCloseClickBound=this._handleModalCloseClick.bind(this),1===s._count&&document.body.addEventListener("click",this._handleTriggerClick),this.$overlay[0].addEventListener("click",this._handleOverlayClickBound),this.el.addEventListener("click",this._handleModalCloseClickBound)}},{key:"_removeEventHandlers",value:function(){0===s._count&&document.body.removeEventListener("click",this._handleTriggerClick),this.$overlay[0].removeEventListener("click",this._handleOverlayClickBound),this.el.removeEventListener("click",this._handleModalCloseClickBound)}},{key:"_handleTriggerClick",value:function(t){var e,i=n(t.target).closest(".modal-trigger");i.length&&(e=M.getIdFromTrigger(i[0]),(e=document.getElementById(e).M_Modal)&&e.open(i),t.preventDefault())}},{key:"_handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"_handleModalCloseClick",value:function(t){n(t.target).closest(".modal-close").length&&this.close()}},{key:"_handleKeydown",value:function(t){27===t.keyCode&&this.options.dismissible&&this.close()}},{key:"_handleFocus",value:function(t){this.el.contains(t.target)||this._nthModalOpened!==s._modalsOpen||this.el.focus()}},{key:"_animateIn",value:function(){var t=this,e=(n.extend(this.el.style,{display:"block",opacity:0}
vendor: 7,613 bytes, line 1
1),n.extend(this.$overlay[0].style,{display:"block",opacity:0}),i({targets:this.$overlay[0],opacity:this.options.opacity,duration:this.options.inDuration,easing:"easeOutQuad"}),{targets:this.el,duration:this.options.inDuration,easing:"easeOutCubic",complete:function(){"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el,t._openingTrigger)}});this.el.classList.contains("bottom-sheet")?n.extend(e,{bottom:0,opacity:1}):n.extend(e,{top:[this.options.startingTop,this.options.endingTop],opacity:1,scaleX:[.8,1],scaleY:[.8,1]}),i(e)}},{key:"_animateOut",value:function(){var t=this,e=(i({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuart"}),{targets:this.el,duration:this.options.outDuration,easing:"easeOutCubic",complete:function(){t.el.style.display="none",t.$overlay.remove(),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}});this.el.classList.contains("bottom-sheet")?n.extend(e,{bottom:"-100%",opacity:0}):n.extend(e,{top:[this.options.endingTop,this.options.startingTop],opacity:0,scaleX:.8,scaleY:.8}),i(e)}},{key:"open",value:function(t){if(!this.isOpen)return this.isOpen=!0,s._modalsOpen++,this._nthModalOpened=s._modalsOpen,this.$overlay[0].style.zIndex=1e3+2*s._modalsOpen,this.el.style.zIndex=1e3+2*s._modalsOpen+1,this._openingTrigger=t?t[0]:void 0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el,this._openingTrigger),this.options.preventScrolling&&(document.body.style.overflow="hidden"),this.el.classList.add("open"),this.el.insertAdjacentElement("afterend",this.$overlay[0]),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,!0)),i.remove(this.el),i.remove(this.$overlay[0]),this._animateIn(),this.el.focus(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,s._modalsOpen--,this._nthModalOpened=0,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this.el.classList.remove("open"),0===s._modalsOpen&&(document.body.style.overflow=""),this.options.dismissible&&(document.removeEventListener("keydown",this._handleKeydownBound),document.removeEventListener("focus",this._handleFocusBound,!0)),i.remove(this.el),i.remove(this.$overlay[0]),this._animateOut(),this}}],[{key:"init",value:function(t,e){return _get(s.__proto__||Object.getPrototypeOf(s),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Modal}},{key:"defaults",get:function(){return t}}]),s);function s(t,e){_classCallCheck(this,s);t=_possibleConstructorReturn(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,s,t,e));return(t.el.M_Modal=t).options=n.extend({},s.defaults,e),t.isOpen=!1,t.id=t.$el.attr("id"),t._openingTrigger=void 0,t.$overlay=n('<div class="modal-overlay"></div>'),t.el.tabIndex=0,t._nthModalOpened=0,s._count++,t._setupEventHandlers(),t}e._modalsOpen=0,e._count=0,M.Modal=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"modal","M_Modal")})(cash,M.anime),((s,o)=>{var t={inDuration:275,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null},e=(_inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Materialbox=void 0,s(this.placeholder).after(this.el).remove(),this.$el.removeAttr("style")}},{key:"_setupEventHandlers",value:function(){this._handleMaterialboxClickBound=this._handleMaterialboxClick.bind(this),this.el.addEventListener("click",this._handleMaterialboxClickBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleMaterialboxClickBound)}},{key:"_handleMaterialboxClick",value:function(t){!1===this.doneAnimating||this.overlayActive&&this.doneAnimating?this.close():this.open()}},{key:"_handleWindowScroll",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowResize",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowEscape",value:function(t){27===t.keyCode&&this.doneAnimating&&this.overlayActive&&this.close()}},{key:"_makeAncestorsOverflowVisible",value:function(){this.ancestorsChanged=s();for(var t=this.placeholder[0].parentNode;null!==t&&!s(t).is(document);){var e=s(t);"visible"!==e.css("overflow")&&(e.css("overflow","visible"),void 0===this.ancestorsChanged?this.ancestorsChanged=e:this.ancestorsChanged=this.ancestorsChanged.add(e)),t=t.parentNode}}},{key:"_animateImageIn",value:function(){var t=this,e={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(){t.doneAnimating=!0,"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}};this.maxWidth=this.$el.css("max-width"),this.maxHeight=this.$el.css("max-height"),"none"!==this.maxWidth&&(e.maxWidth=this.newWidth),"none"!==this.maxHeight&&(e.maxHeight=this.newHeight),o(e)}},{key:"_animateImageOut",value:function(){var t=this,e={targets:this.el,width:this.originalWidth,height:this.originalHeight,left:0,top:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.placeholder.css({height:"",width:"",position:"",top:"",left:""}),t.attrWidth&&t.$el.attr("width",t.attrWidth),t.attrHeight&&t.$el.attr("height",t.attrHeight),t.$el.removeAttr("style"),t.originInlineStyles&&t.$el.attr("style",t.originInlineStyles),t.$el.removeClass("active"),t.doneAnimating=!0,t.ancestorsChanged.length&&t.ancestorsChanged.css("overflow",""),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}};o(e)}},{key:"_updateVars",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.caption=this.el.getAttribute("data-caption")||""}},{key:"open",value:function(){var t=this,e=(this._updateVars(),this.originalWidth=this.el.getBoundingClientRect().width,this.originalHeight=this.el.getBoundingClientRect().height,this.doneAnimating=!1,this.$el.addClass("active"),this.overlayActive=!0,"function"==typeof this.options.onOpenStart&&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":1e3,"will-change":"left, top, width, height"}),this.attrWidth=this.$el.attr("width"),this.attrHeight=this.$el.attr("height"),this.attrWidth&&(this.$el.css("width",this.attrWidth+"px"),this.$el.removeAttr("width")),this.attrHeight&&(this.$el.css("width",this.attrHeight+"px"),this.$el.removeAttr("height")),this.$overlay=s('<div id="materialbox-overlay"></div>').css({opacity:0}).one("click",function(){t.doneAnimating&&t.close()}),this.$el.before(this.$overlay),this.$overlay[0].getBoundingClientRect()),e=(this.$overlay.css({width:this.windowWidth+"px",height:this.windowHeight+"px",left:-1*e.left+"px",top:-1*e.top+"px"}),o.remove(this.el),o.remove(this.$overlay[0]),o({targets:this.$overlay[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}),""!==this.caption&&(this.$photocaption&&o.remove(this.$photoCaption[0]),this.$photoCaption=s('<div class="materialbox-caption"></div>
1'),this.$photoCaption.text(this.caption),s("body").append(this.$photoCaption),this.$photoCaption.css({display:"inline"}),o({targets:this.$photoCaption[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"})),0),i=this.originalWidth/this.windowWidth,n=this.originalHeight/this.windowHeight;this.newWidth=0,this.newHeight=0,n<i?(e=this.originalHeight/this.originalWidth,this.newWidth=.9*this.windowWidth,this.newHeight=.9*this.windowWidth*e):(e=this.originalWidth/this.originalHeight,this.newWidth=.9*this.windowHeight*e,this.newHeight=.9*this.windowHeight),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(){var t=this;this._updateVars(),this.doneAnimating=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),o.remove(this.el),o.remove(this.$overlay[0]),""!==this.caption&&o.remove(this.$photoCaption[0]),window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleWindowResizeBound),window.removeEventListener("keyup",this._handleWindowEscapeBound),o({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.overlayActive=!1,t.$overlay.remove()}}),this._animateImageOut(),""!==this.caption&&o({targets:this.$photoCaption[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.$photoCaption.remove()}})}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Materialbox}},{key:"defaults",get:function(){return t}}]),i);function i(t,e){_classCallCheck(this,i);t=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,t,e));return(t.el.M_Materialbox=t).options=s.extend({},i.defaults,e),t.overlayActive=!1,t.doneAnimating=!0,t.placeholder=s("<div></div>").addClass("material-placeholder"),t.originalWidth=0,t.originalHeight=0,t.originInlineStyles=t.$el.attr("style"),t.caption=t.el.getAttribute("data-caption")||"",t.$el.before(t.placeholder),t.placeholder.append(t.$el),t._setupEventHandlers(),t}M.Materialbox=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"materialbox","M_Materialbox")})(cash,M.anime),(i=>{var t={responsiveThreshold:0},e=(_inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){n._parallaxes.splice(n._parallaxes.indexOf(this),1),this.$img[0].style.transform="",this._removeEventHandlers(),this.$el[0].M_Parallax=void 0}},{key:"_setupEventHandlers",value:function(){this._handleImageLoadBound=this._handleImageLoad.bind(this),this.$img[0].addEventListener("load",this._handleImageLoadBound),0===n._parallaxes.length&&(n._handleScrollThrottled=M.throttle(n._handleScroll,5),window.addEventListener("scroll",n._handleScrollThrottled),n._handleWindowResizeThrottled=M.throttle(n._handleWindowResize,5),window.addEventListener("resize",n._handleWindowResizeThrottled))}},{key:"_removeEventHandlers",value:function(){this.$img[0].removeEventListener("load",this._handleImageLoadBound),0===n._parallaxes.length&&(window.removeEventListener("scroll",n._handleScrollThrottled),window.removeEventListener("resize",n._handleWindowResizeThrottled))}},{key:"_setupStyles",value:function(){this.$img[0].style.opacity=1}},{key:"_handleImageLoad",value:function(){this._updateParallax()}},{key:"_updateParallax",value:function(){var t=0<this.$el.height()?this.el.parentNode.offsetHeight:500,e=this.$img[0].offsetHeight-t,i=this.$el.offset().top+t,n=this.$el.offset().top,s=M.getDocumentScrollTop(),o=window.innerHeight;this._enabled?s<i&&n<s+o&&(this.$img[0].style.transform="translate3D(-50%, "+e*((s+o-n)/(t+o))+"px, 0)"):this.$img[0].style.transform=""}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Parallax}},{key:"_handleScroll",value:function(){for(var t=0;t<n._parallaxes.length;t++){var e=n._parallaxes[t];e._updateParallax.call(e)}}},{key:"_handleWindowResize",value:function(){for(var t=0;t<n._parallaxes.length;t++){var e=n._parallaxes[t];e._enabled=window.innerWidth>e.options.responsiveThreshold}}},{key:"defaults",get:function(){return t}}]),n);function n(t,e){_classCallCheck(this,n);t=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(t.el.M_Parallax=t).options=i.extend({},n.defaults,e),t._enabled=window.innerWidth>t.options.responsiveThreshold,t.$img=t.$el.find("img").first(),t.$img.each(function(){this.complete&&i(this).trigger("load")}),t._updateParallax(),t._setupEventHandlers(),t._setupStyles(),n._parallaxes.push(t),t}e._parallaxes=[],M.Parallax=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"parallax","M_Parallax")})(cash),((o,n)=>{var t={duration:300,onShow:null,swipeable:!1,responsiveThreshold:1/0}
1,e=(_inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this._indicator.parentNode.removeChild(this._indicator),this.options.swipeable?this._teardownSwipeableTabs():this._teardownNormalTabs(),this.$el[0].M_Tabs=void 0}},{key:"_setupEventHandlers",value:function(){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(){window.removeEventListener("resize",this._handleWindowResizeBound),this.el.removeEventListener("click",this._handleTabClickBound)}},{key:"_handleWindowResize",value:function(){this._setTabsAndTabWidth(),0!==this.tabWidth&&0!==this.tabsWidth&&(this._indicator.style.left=this._calcLeftPos(this.$activeTabLink)+"px",this._indicator.style.right=this._calcRightPos(this.$activeTabLink)+"px")}},{key:"_handleTabClick",value:function(t){var e,i=this,n=o(t.target).closest("li.tab"),s=o(t.target).closest("a");s.length&&s.parent().hasClass("tab")&&(n.hasClass("disabled")?t.preventDefault():s.attr("target")||(this.$activeTabLink.removeClass("active"),n=this.$content,this.$activeTabLink=s,this.$content=o(M.escapeHash(s[0].hash)),this.$tabLinks=this.$el.children("li.tab").children("a"),this.$activeTabLink.addClass("active"),e=this.index,this.index=Math.max(this.$tabLinks.index(s),0),this.options.swipeable?this._tabsCarousel&&this._tabsCarousel.set(this.index,function(){"function"==typeof i.options.onShow&&i.options.onShow.call(i,i.$content[0])}):this.$content.length&&(this.$content[0].style.display="block",this.$content.addClass("active"),"function"==typeof this.options.onShow&&this.options.onShow.call(this,this.$content[0]),n.length)&&!n.is(this.$content)&&(n[0].style.display="none",n.removeClass("active")),this._setTabsAndTabWidth(),this._animateIndicator(e),t.preventDefault()))}},{key:"_createIndicator",value:function(){var t=this,e=document.createElement("li");e.classList.add("indicator"),this.el.appendChild(e),this._indicator=e,setTimeout(function(){t._indicator.style.left=t._calcLeftPos(t.$activeTabLink)+"px",t._indicator.style.right=t._calcRightPos(t.$activeTabLink)+"px"},0)}},{key:"_setupActiveTabLink",value:function(){this.$activeTabLink=o(this.$tabLinks.filter('[href="'+location.hash+'"]')),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a.active").first()),0===this.$activeTabLink.length&&(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),this.$activeTabLink.length&&(this.$content=o(M.escapeHash(this.$activeTabLink[0].hash)),this.$content.addClass("active"))}},{key:"_setupSwipeableTabs",value:function(){var i=this,e=(window.innerWidth>this.options.responsiveThreshold&&(this.options.swipeable=!1),o()),t=(this.$tabLinks.each(function(t){t=o(M.escapeHash(t.hash));t.addClass("carousel-item"),e=e.add(t)}),o('<div class="tabs-content carousel carousel-slider"></div>')),n=(e.first().before(t),t.append(e),e[0].style.display="",this.$activeTabLink.closest(".tab").index());this._tabsCarousel=M.Carousel.init(t[0],{fullWidth:!0,noWrap:!0,onCycleTo:function(t){var e=i.index;i.index=o(t).index(),i.$activeTabLink.removeClass("active"),i.$activeTabLink=i.$tabLinks.eq(i.index),i.$activeTabLink.addClass("active"),i._animateIndicator(e),"function"==typeof i.options.onShow&&i.options.onShow.call(i,i.$content[0])}}),this._tabsCarousel.set(n)}},{key:"_teardownSwipeableTabs",value:function(){var t=this._tabsCarousel.$el;this._tabsCarousel.destroy(),t.after(t.children()),t.remove()}},{key:"_setupNormalTabs",value:function(){this.$tabLinks.not(this.$activeTabLink).each(function(t){t.hash&&(t=o(M.escapeHash(t.hash))).length&&(t[0].style.display="none")})}},{key:"_teardownNormalTabs",value:function(){this.$tabLinks.each(function(t){t.hash&&(t=o(M.escapeHash(t.hash))).length&&(t[0].style.display="")})}},{key:"_setTabsAndTabWidth",value:function(){this.tabsWidth=this.$el.width(),this.tabWidth=Math.max(this.tabsWidth,this.el.scrollWidth)/this.$tabLinks.length}},{key:"_calcRightPos",value:function(t){return Math.ceil(this.tabsWidth-t.position().left-t[0].getBoundingClientRect().width)}},{key:"_calcLeftPos",value:function(t){return Math.floor(t.position().left)}},{key:"updateTabIndicator",value:function(){this._setTabsAndTabWidth(),this._animateIndicator(this.index)}},{key:"_animateIndicator",value:function(t){var e=0,i=0,t=(0<=this.index-t?e=90:i=90,{targets:this._indicator,left:{value:this._calcLeftPos(this.$activeTabLink),delay:e},right:{value:this._calcRightPos(this.$activeTabLink),delay:i},duration:this.options.duration,easing:"easeOutQuad"});n.remove(this._indicator),n(t)}},{key:"select",value:function(t){t=this.$tabLinks.filter('[href="#'+t+'"]');t.length&&t.trigger("click")}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tabs}},{key:"defaults",get:function(){return t}}]),i);function i(t,e){_classCallCheck(this,i);t=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,t,e));return(t.el.M_Tabs=t).options=o.extend({},i.defaults,e),t.$tabLinks=t.$el.children("li.tab").children("a"),t.index=0,t._setupActiveTabLink(),t.options.swipeable?t._setupSwipeableTabs():t._setupNormalTabs(),t._setTabsAndTabWidth(),t._createIndicator(),t._setupEventHandlers(),t}M.Tabs=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"tabs","M_Tabs")})(cash,M.anime),((h,t)=>{var e={exitDelay:200,enterDelay:0,html:null,margin:5,inDuration:250,outDuration:200,position:"bottom",transitionMovement:10},i=(_inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){h(this.tooltipEl).remove(),this._removeEventHandlers(),this.el.M_Tooltip=void 0}},{key:"_appendTooltipEl",value:function(){var t=document.createElement("div"),e=(t.classList.add("material-tooltip"),this.tooltipEl=t,document.createElement("div"));e.classList.add("tooltip-content"),e.innerHTML=this.options.html,t.appendChild(e),document.body.appendChild(t)}},{key:"_updateTooltipContent",value:function(){this.tooltipEl.querySelector(".tooltip-content").innerHTML=this.options.html}},{key:"_setupEventHandlers",value:function(){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,!0),this.el.addEventListener("blur",this._handleBlurBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.el.removeEventListener("focus",this._handleFocusBound,!0),this.el.removeEventListener("blur",this._handleBlurBound,!0)}},{key:"open",value:function(t){this.isOpen||(t=void 0===t||void 0,this.isOpen=!0,this.options=h.extend({},this.options,this._getAttributeOptions()),this._updateTooltipContent(),this._setEnterDelayTimeout(t))}},{key:"close",value:function(){this.isOpen&&(this.isHovered=!1,this.isFocused=!1,this.isOpen=!1,this._setExitDelayTimeout())}},{key:"_setExitDelayTimeout",value:function(){var t=this;clearTimeout(this._exitDelayTimeout),this._exitDelayTimeout=setTimeout(function(){t.isHovered||t.isFocused||t._animateOut()},this.options.exitDelay)}},{key:"_setEnterDelayTimeout",value:function(t){var e=this;clearTimeout(this._enterDelayTimeout),this._enterDelayTimeout=setTimeout(function(){(e.isHovered||e.isFocused||t)&&e._animateIn()},this.options.enterDelay)}},{key:"_positionTooltip",value:function(){var t=this.el,e=this.tooltipEl,i=t.offsetHeight,n=t.offsetWidth,s=e.offsetHeight,o=e.offsetWidth,a=this.options.margin,r=void 0,l=void 0;this.xMovement=0,this.yMovement=0,r=t.getBoundingClientRect().top+M.getDocumentScrollTop(),l=t.getBoundingClientRect().left+M.getDocumentScrollLeft(),"top"===this.options.position?(r+=-s-a,l+=n/2-o/2,this.yMovement=-this.options.transitionMovement):"right"===this.options.position?(r+=i/2-s/2,l+=n+a,this.xMovement=this.options.transitionMovement):"left"===this.options.position?(r+=i/2-s/2,l+=-o-a,this.xMovement=-this.options.transitionMovement):(r+=i+a,l+=n/2-o/2,this.yMovement=this.options.transitionMovement),t=this._repositionWithinScreen(l,r,o,s),h(e).css({top:t.y+"px",left:t.x+"px"})}}
1,{key:"_repositionWithinScreen",value:function(t,e,i,n){var s=M.getDocumentScrollLeft(),o=M.getDocumentScrollTop(),t=t-s,e=e-o,a=this.options.margin+this.options.transitionMovement,r=M.checkWithinContainer(document.body,{left:t,top:e,width:i,height:n},a);return r.left?t=a:r.right&&(t-=t+i-window.innerWidth),r.top?e=a:r.bottom&&(e-=e+n-window.innerHeight),{x:t+s,y:e+o}}},{key:"_animateIn",value:function(){this._positionTooltip(),this.tooltipEl.style.visibility="visible",t.remove(this.tooltipEl),t({targets:this.tooltipEl,opacity:1,translateX:this.xMovement,translateY:this.yMovement,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_animateOut",value:function(){t.remove(this.tooltipEl),t({targets:this.tooltipEl,opacity:0,translateX:0,translateY:0,duration:this.options.outDuration,easing:"easeOutCubic"})}},{key:"_handleMouseEnter",value:function(){this.isHovered=!0,this.isFocused=!1,this.open(!1)}},{key:"_handleMouseLeave",value:function(){this.isHovered=!1,this.isFocused=!1,this.close()}},{key:"_handleFocus",value:function(){M.tabPressed&&(this.isFocused=!0,this.open(!1))}},{key:"_handleBlur",value:function(){this.isFocused=!1,this.close()}},{key:"_getAttributeOptions",value:function(){var t={},e=this.el.getAttribute("data-tooltip"),i=this.el.getAttribute("data-position");return e&&(t.html=e),i&&(t.position=i),t}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tooltip}},{key:"defaults",get:function(){return e}}]),n);function n(t,e){_classCallCheck(this,n);t=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(t.el.M_Tooltip=t).options=h.extend({},n.defaults,e),t.isOpen=!1,t.isHovered=!1,t.isFocused=!1,t._appendTooltipEl(),t._setupEventHandlers(),t}M.Tooltip=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"tooltip","M_Tooltip")})(cash,M.anime),(i=>{var t={},e=document.querySelectorAll.bind(document);function r(t){var e,i="";for(e in t)t.hasOwnProperty(e)&&(i+=e+":"+t[e]+";");return i}var l={duration:750,show:function(t,e){if(2===t.button)return!1;var e=e||this,i=document.createElement("div"),n=(i.className="waves-ripple",e.appendChild(i),s={top:0,left:0},o=(n=e)&&n.ownerDocument,a=o.documentElement,void 0!==n.getBoundingClientRect&&(s=n.getBoundingClientRect()),o=null!==(o=n=o)&&o===o.window?n:9===n.nodeType&&n.defaultView,{top:s.top+o.pageYOffset-a.clientTop,left:s.left+o.pageXOffset-a.clientLeft}),s=t.pageY-n.top,o=t.pageX-n.left,a="scale("+e.clientWidth/100*10+")",e=("touches"in t&&(s=t.touches[0].pageY-n.top,o=t.touches[0].pageX-n.left),i.setAttribute("data-hold",Date.now()),i.setAttribute("data-scale",a),i.setAttribute("data-x",o),i.setAttribute("data-y",s),{top:s+"px",left:o+"px"});i.className=i.className+" waves-notransition",i.setAttribute("style",r(e)),i.className=i.className.replace("waves-notransition",""),e["-webkit-transform"]=a,e["-moz-transform"]=a,e["-ms-transform"]=a,e["-o-transform"]=a,e.transform=a,e.opacity="1",e["-webkit-transition-duration"]=l.duration+"ms",e["-moz-transition-duration"]=l.duration+"ms",e["-o-transition-duration"]=l.duration+"ms",e["transition-duration"]=l.duration+"ms",e["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",e["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",e["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",e["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",i.setAttribute("style",r(e))},hide:function(t){a.touchup(t);var e=this,i=(e.clientWidth,null),t=e.getElementsByClassName("waves-ripple");if(!(0<t.length))return!1;var n=(i=t[t.length-1]).getAttribute("data-x"),s=i.getAttribute("data-y"),o=i.getAttribute("data-scale"),t=350-(Date.now()-Number(i.getAttribute("data-hold")));t<0&&(t=0),setTimeout(function(){var t={top:s+"px",left:n+"px",opacity:"0","-webkit-transition-duration":l.duration+"ms","-moz-transition-duration":l.duration+"ms","-o-transition-duration":l.duration+"ms","transition-duration":l.duration+"ms","-webkit-transform":o,"-moz-transform":o,"-ms-transform":o,"-o-transform":o,transform:o};i.setAttribute("style",r(t)),setTimeout(function(){try{e.removeChild(i)}catch(t){return!1}},l.duration)},t)},wrapInput:function(t){for(var e=0;e<t.length;e++){var i,n,s,o=t[e];"input"!==o.tagName.toLowerCase()||"i"===(i=o.parentNode).tagName.toLowerCase()&&-1!==i.className.indexOf("waves-effect")||((n=document.createElement("i")).className=o.className+" waves-input-wrapper",s=(s=o.getAttribute("style"))||"",n.setAttribute("style",s),o.className="waves-button-input",o.removeAttribute("style"),i.replaceChild(n,o),n.appendChild(o))}}},a={touches:0,allowEvent:function(t){var e=!0;return"touchstart"===t.type?a.touches+=1:"touchend"===t.type||"touchcancel"===t.type?setTimeout(function(){0<a.touches&&--a.touches},500):"mousedown"===t.type&&0<a.touches&&(e=!1),e},touchup:function(t){a.allowEvent(t)}};function n(t){var e=(t=>{if(!1===a.allowEvent(t))return null;for(var e=null,i=t.target||t.srcElement;null!==i.parentNode;){if(!(i instanceof SVGElement)&&-1!==i.className.indexOf("waves-effect")){e=i;break}i=i.parentNode}return e})(t);null!==e&&(l.show(t,e),"ontouchstart"in i&&(e.addEventListener("touchend",l.hide,!1),e.addEventListener("touchcancel",l.hide,!1)),e.addEventListener("mouseup",l.hide,!1),e.addEventListener("mouseleave",l.hide,!1),e.addEventListener("dragend",l.hide,!1))}t.displayEffect=function(t){"duration"in(t=t||{})&&(l.duration=t.duration),l.wrapInput(e(".waves-effect")),"ontouchstart"in i&&document.body.addEventListener("touchstart",n,!1),document.body.addEventListener("mousedown",n,!1)}
1,t.attach=function(t){"input"===t.tagName.toLowerCase()&&(l.wrapInput([t]),t=t.parentNode),"ontouchstart"in i&&t.addEventListener("touchstart",n,!1),t.addEventListener("mousedown",n,!1)},i.Waves=t,document.addEventListener("DOMContentLoaded",function(){t.displayEffect()},!1)})(window),((i,n)=>{var t={html:"",displayLength:4e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},e=(_createClass(s,[{key:"_createToast",value:function(){var t=document.createElement("div");return t.classList.add("toast"),this.options.classes.length&&i(t).addClass(this.options.classes),("object"==typeof HTMLElement?this.message instanceof HTMLElement:this.message&&"object"==typeof this.message&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?t.appendChild(this.message):this.message.jquery?i(t).append(this.message[0]):t.innerHTML=this.message,s._container.appendChild(t),t}},{key:"_animateIn",value:function(){n({targets:this.el,top:0,opacity:1,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_setTimer",value:function(){var t=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval(function(){t.panning||(t.timeRemaining-=20),t.timeRemaining<=0&&t.dismiss()},20))}},{key:"dismiss",value:function(){var t=this,e=(window.clearInterval(this.counterInterval),this.el.offsetWidth*this.options.activationPercent);this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX("+e+"px)",this.el.style.opacity=0),n({targets:this.el,opacity:0,marginTop:-40,duration:this.options.outDuration,easing:"easeOutExpo",complete:function(){"function"==typeof t.options.completeCallback&&t.options.completeCallback(),t.$el.remove(),s._toasts.splice(s._toasts.indexOf(t),1),0===s._toasts.length&&s._removeContainer()}})}}],[{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Toast}},{key:"_createContainer",value:function(){var t=document.createElement("div");t.setAttribute("id","toast-container"),t.addEventListener("touchstart",s._onDragStart),t.addEventListener("touchmove",s._onDragMove),t.addEventListener("touchend",s._onDragEnd),t.addEventListener("mousedown",s._onDragStart),document.addEventListener("mousemove",s._onDragMove),document.addEventListener("mouseup",s._onDragEnd),document.body.appendChild(t),s._container=t}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",s._onDragMove),document.removeEventListener("mouseup",s._onDragEnd),i(s._container).remove(),s._container=null}},{key:"_onDragStart",value:function(t){var e;t.target&&i(t.target).closest(".toast").length&&((e=i(t.target).closest(".toast")[0].M_Toast).panning=!0,(s._draggedToast=e).el.classList.add("panning"),e.el.style.transition="",e.startingXPos=s._xPos(t),e.time=Date.now(),e.xPos=s._xPos(t))}},{key:"_onDragMove",value:function(t){var e,i;s._draggedToast&&(t.preventDefault(),(e=s._draggedToast).deltaX=Math.abs(e.xPos-s._xPos(t)),e.xPos=s._xPos(t),e.velocityX=e.deltaX/(Date.now()-e.time),e.time=Date.now(),t=e.xPos-e.startingXPos,i=e.el.offsetWidth*e.options.activationPercent,e.el.style.transform="translateX("+t+"px)",e.el.style.opacity=1-Math.abs(t/i))}},{key:"_onDragEnd",value:function(){var t,e,i;s._draggedToast&&((t=s._draggedToast).panning=!1,t.el.classList.remove("panning"),e=t.xPos-t.startingXPos,i=t.el.offsetWidth*t.options.activationPercent,Math.abs(e)>i||1<t.velocityX?(t.wasSwiped=!0,t.dismiss()):(t.el.style.transition="transform .2s, opacity .2s",t.el.style.transform="",t.el.style.opacity=""),s._draggedToast=null)}},{key:"_xPos",value:function(t){return(t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0]:t).clientX}},{key:"dismissAll",value:function(){for(var t in s._toasts)s._toasts[t].dismiss()}},{key:"defaults",get:function(){return t}}]),s);function s(t){_classCallCheck(this,s),this.options=i.extend({},s.defaults,t),this.message=this.options.html,this.panning=!1,this.timeRemaining=this.options.displayLength,0===s._toasts.length&&s._createContainer(),s._toasts.push(this);t=this._createToast();(t.M_Toast=this).el=t,this.$el=i(t),this._animateIn(),this._setTimer()}e._toasts=[],e._container=null,e._draggedToast=null,M.Toast=e,M.toast=function(t){return new e(t)}})(cash,M.anime),((n,s)=>{var t={edge:"left",draggable:!0,inDuration:250,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0}
1,e=(_inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this._enableBodyScrolling(),this._overlay.parentNode.removeChild(this._overlay),this.dragTarget.parentNode.removeChild(this.dragTarget),this.el.M_Sidenav=void 0,this.el.style.transform="";var t=i._sidenavs.indexOf(this);0<=t&&i._sidenavs.splice(t,1)}},{key:"_createOverlay",value:function(){var t=document.createElement("div");this._closeBound=this.close.bind(this),t.classList.add("sidenav-overlay"),t.addEventListener("click",this._closeBound),document.body.appendChild(t),this._overlay=t}},{key:"_setupEventHandlers",value:function(){0===i._sidenavs.length&&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),this.isFixed&&(this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound))}},{key:"_removeEventHandlers",value:function(){1===i._sidenavs.length&&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),this.isFixed&&window.removeEventListener("resize",this._handleWindowResizeBound)}},{key:"_handleTriggerClick",value:function(t){var e,i=n(t.target).closest(".sidenav-trigger");t.target&&i.length&&(e=M.getIdFromTrigger(i[0]),(e=document.getElementById(e).M_Sidenav)&&e.open(i),t.preventDefault())}},{key:"_startDrag",value:function(t){t=t.targetTouches[0].clientX;this.isDragged=!0,this._startingXpos=t,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=!1,s.remove(this.el),s.remove(this._overlay)}},{key:"_dragMoveUpdate",value:function(t){var t=t.targetTouches[0].clientX,e=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop();this.deltaX=Math.abs(this._xPos-t),this._xPos=t,this.velocityX=this.deltaX/(Date.now()-this._time),this._time=Date.now(),this._initialScrollTop!==e&&(this._verticallyScrolling=!0)}},{key:"_handleDragTargetDrag",value:function(t){var e,i;!this.options.draggable||this._isCurrentlyFixed()||this._verticallyScrolling||(this.isDragged||this._startDrag(t),this._dragMoveUpdate(t),e=0<(t=this._xPos-this._startingXpos)?"right":"left",t=Math.min(this._width,Math.abs(t)),e=t=this.options.edge===e?0:t,i="translateX(-100%)","right"===this.options.edge&&(i="translateX(100%)",e=-e),this.percentOpen=Math.min(1,t/this._width),this.el.style.transform=i+" translateX("+e+"px)",this._overlay.style.opacity=this.percentOpen)}},{key:"_handleDragTargetRelease",value:function(){this.isDragged&&(.2<this.percentOpen?this.open():this._animateOut(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseDrag",value:function(t){var e;this.isOpen&&this.options.draggable&&!this._isCurrentlyFixed()&&!this._verticallyScrolling&&(this.isDragged||this._startDrag(t),this._dragMoveUpdate(t),e=0<(t=this._xPos-this._startingXpos)?"right":"left",t=Math.min(this._width,Math.abs(t)),e=-(t=this.options.edge!==e?0:t),"right"===this.options.edge&&(e=-e),this.percentOpen=Math.min(1,1-t/this._width),this.el.style.transform="translateX("+e+"px)",this._overlay.style.opacity=this.percentOpen)}},{key:"_handleCloseRelease",value:function(){this.isOpen&&this.isDragged&&(.8<this.percentOpen?this._animateIn():this.close(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseTriggerClick",value:function(t){n(t.target).closest(".sidenav-close").length&&!this._isCurrentlyFixed()&&this.close()}},{key:"_handleWindowResize",value:function(){this.lastWindowWidth!==window.innerWidth&&(992<window.innerWidth?this.open():this.close()),this.lastWindowWidth=window.innerWidth,this.lastWindowHeight=window.innerHeight}}
vendor: 7,033 bytes, line 1
1,{key:"_setupClasses",value:function(){"right"===this.options.edge&&(this.el.classList.add("right-aligned"),this.dragTarget.classList.add("right-aligned"))}},{key:"_removeClasses",value:function(){this.el.classList.remove("right-aligned"),this.dragTarget.classList.remove("right-aligned")}},{key:"_setupFixed",value:function(){this._isCurrentlyFixed()&&this.open()}},{key:"_isCurrentlyFixed",value:function(){return this.isFixed&&992<window.innerWidth}},{key:"_createDragTarget",value:function(){var t=document.createElement("div");t.classList.add("drag-target"),document.body.appendChild(t),this.dragTarget=t}},{key:"_preventBodyScrolling",value:function(){document.body.style.overflow="hidden"}},{key:"_enableBodyScrolling",value:function(){document.body.style.overflow=""}},{key:"open",value:function(){!0!==this.isOpen&&(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._isCurrentlyFixed()?(s.remove(this.el),s({targets:this.el,translateX:0,duration:0,easing:"easeOutQuad"}),this._enableBodyScrolling(),this._overlay.style.display="none"):(this.options.preventScrolling&&this._preventBodyScrolling(),this.isDragged&&1==this.percentOpen||this._animateIn()))}},{key:"close",value:function(){var t;!1!==this.isOpen&&(this.isOpen=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._isCurrentlyFixed()?(t="left"===this.options.edge?"-105%":"105%",this.el.style.transform="translateX("+t+")"):(this._enableBodyScrolling(),this.isDragged&&0==this.percentOpen?this._overlay.style.display="none":this._animateOut()))}},{key:"_animateIn",value:function(){this._animateSidenavIn(),this._animateOverlayIn()}},{key:"_animateSidenavIn",value:function(){var t=this,e="left"===this.options.edge?-1:1;this.isDragged&&(e="left"===this.options.edge?e+this.percentOpen:e-this.percentOpen),s.remove(this.el),s({targets:this.el,translateX:[100*e+"%",0],duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}})}},{key:"_animateOverlayIn",value:function(){var t=0;this.isDragged?t=this.percentOpen:n(this._overlay).css({display:"block"}),s.remove(this._overlay),s({targets:this._overlay,opacity:[t,1],duration:this.options.inDuration,easing:"easeOutQuad"})}},{key:"_animateOut",value:function(){this._animateSidenavOut(),this._animateOverlayOut()}},{key:"_animateSidenavOut",value:function(){var t=this,e="left"===this.options.edge?-1:1,i=0;this.isDragged&&(i="left"===this.options.edge?e+this.percentOpen:e-this.percentOpen),s.remove(this.el),s({targets:this.el,translateX:[100*i+"%",105*e+"%"],duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}})}},{key:"_animateOverlayOut",value:function(){var t=this;s.remove(this._overlay),s({targets:this._overlay,opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){n(t._overlay).css("display","none")}})}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Sidenav}},{key:"defaults",get:function(){return t}}]),i);function i(t,e){_classCallCheck(this,i);t=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,t,e));return(t.el.M_Sidenav=t).id=t.$el.attr("id"),t.options=n.extend({},i.defaults,e),t.isOpen=!1,t.isFixed=t.el.classList.contains("sidenav-fixed"),t.isDragged=!1,t.lastWindowWidth=window.innerWidth,t.lastWindowHeight=window.innerHeight,t._createOverlay(),t._createDragTarget(),t._setupEventHandlers(),t._setupClasses(),t._setupFixed(),i._sidenavs.push(t),t}e._sidenavs=[],M.Sidenav=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"sidenav","M_Sidenav")})(cash,M.anime),((o,a)=>{var t={throttle:100,scrollOffset:200,activeClass:"active",getActiveElement:function(t){return'a[href="#'+t+'"]'}},e=(_inherits(u,Component),_createClass(u,[{key:"destroy",value:function(){u._elements.splice(u._elements.indexOf(this),1),u._elementsInView.splice(u._elementsInView.indexOf(this),1),u._visibleElements.splice(u._visibleElements.indexOf(this.$el),1),u._count--,this._removeEventHandlers(),o(this.options.getActiveElement(this.$el.attr("id"))).removeClass(this.options.activeClass),this.el.M_ScrollSpy=void 0}},{key:"_setupEventHandlers",value:function(){var t=M.throttle(this._handleWindowScroll,200);this._handleThrottledResizeBound=t.bind(this),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),1===u._count&&(window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleThrottledResizeBound),document.body.addEventListener("click",this._handleTriggerClick))}},{key:"_removeEventHandlers",value:function(){0===u._count&&(window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleThrottledResizeBound),document.body.removeEventListener("click",this._handleTriggerClick))}},{key:"_handleTriggerClick",value:function(t){for(var e=o(t.target),i=u._elements.length-1;0<=i;i--){var n=u._elements[i];if(e.is('a[href="#'+n.$el.attr("id")+'"]')){t.preventDefault();var s=n.$el.offset().top+1;a({targets:[document.documentElement,document.body],scrollTop:s-n.options.scrollOffset,duration:400,easing:"easeOutCubic"});break}}}},{key:"_handleWindowScroll",value:function(){u._ticks++;for(var t=M.getDocumentScrollTop(),e=M.getDocumentScrollLeft(),i=e+window.innerWidth,n=u._findElements(t,i,t+window.innerHeight,e),s=0;s<n.length;s++){var o=n[s];o.tickId<0&&o._enter(),o.tickId=u._ticks}for(var a=0;a<u._elementsInView.length;a++){var r=u._elementsInView[a],l=r.tickId;0<=l&&l!==u._ticks&&(r._exit(),r.tickId=-1)}u._elementsInView=n}},{key:"_enter",value:function(){u._visibleElements=u._visibleElements.filter(function(t){return 0!=t.height()}),u._visibleElements[0]&&(o(this.options.getActiveElement(u._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),u._visibleElements[0][0].M_ScrollSpy)&&this.id<u._visibleElements[0][0].M_ScrollSpy.id?u._visibleElements.unshift(this.$el):u._visibleElements.push(this.$el),o(this.options.getActiveElement(u._visibleElements[0].attr("id"))).addClass(this.options.activeClass)}},{key:"_exit",value:function(){var e=this;u._visibleElements=u._visibleElements.filter(function(t){return 0!=t.height()}),u._visibleElements[0]&&(o(this.options.getActiveElement(u._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),u._visibleElements=u._visibleElements.filter(function(t){return t.attr("id")!=e.$el.attr("id")}),u._visibleElements[0])&&o(this.options.getActiveElement(u._visibleElements[0].attr("id"))).addClass(this.options.activeClass)}}],[{key:"init",value:function(t,e){return _get(u.__proto__||Object.getPrototypeOf(u),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_ScrollSpy}}
1,{key:"_findElements",value:function(t,e,i,n){for(var s=[],o=0;o<u._elements.length;o++){var a,r,l,h,d=u._elements[o],c=t+d.options.scrollOffset||200;0<d.$el.height()&&(a=d.$el.offset().top,l=(r=d.$el.offset().left)+d.$el.width(),h=a+d.$el.height(),!(e<r||l<n||i<a||h<c))&&s.push(d)}return s}},{key:"defaults",get:function(){return t}}]),u);function u(t,e){_classCallCheck(this,u);t=_possibleConstructorReturn(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,u,t,e));return(t.el.M_ScrollSpy=t).options=o.extend({},u.defaults,e),u._elements.push(t),u._count++,u._increment++,t.tickId=-1,t.id=u._increment,t._setupEventHandlers(),t._handleWindowScroll(),t}e._elements=[],e._elementsInView=[],e._visibleElements=[],e._count=0,e._increment=0,e._ticks=0,M.ScrollSpy=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"scrollSpy","M_ScrollSpy")})(cash,M.anime),(h=>{var t={data:{},limit:1/0,onAutocomplete:null,minLength:1,sortFunction:function(t,e,i){return t.indexOf(i)-e.indexOf(i)}},e=(_inherits(s,Component),_createClass(s,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_Autocomplete=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputBlurBound=this._handleInputBlur.bind(this),this._handleInputKeyupAndFocusBound=this._handleInputKeyupAndFocus.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleContainerMousedownAndTouchstartBound=this._handleContainerMousedownAndTouchstart.bind(this),this._handleContainerMouseupAndTouchendBound=this._handleContainerMouseupAndTouchend.bind(this),this.el.addEventListener("blur",this._handleInputBlurBound),this.el.addEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.addEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("click",this._handleInputClickBound),this.container.addEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.addEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("blur",this._handleInputBlurBound),this.el.removeEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("click",this._handleInputClickBound),this.container.removeEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.removeEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_setupDropdown",value:function(){var e=this;this.container=document.createElement("ul"),this.container.id="autocomplete-options-"+M.guid(),h(this.container).addClass("autocomplete-content dropdown-content"),this.$inputField.append(this.container),this.el.setAttribute("data-target",this.container.id),this.dropdown=M.Dropdown.init(this.el,{autoFocus:!1,closeOnClick:!1,coverTrigger:!1,onItemClick:function(t){e.selectOption(h(t))}}),this.el.removeEventListener("click",this.dropdown._handleClickBound)}},{key:"_removeDropdown",value:function(){this.container.parentNode.removeChild(this.container)}},{key:"_handleInputBlur",value:function(){this._mousedown||(this.close(),this._resetAutocomplete())}},{key:"_handleInputKeyupAndFocus",value:function(t){"keyup"===t.type&&(s._keydown=!1),this.count=0;var e=this.el.value.toLowerCase();13!==t.keyCode&&38!==t.keyCode&&40!==t.keyCode&&(this.oldVal===e||!M.tabPressed&&"focu
1s"===t.type||this.open(),this.oldVal=e)}},{key:"_handleInputKeydown",value:function(t){s._keydown=!0;var e,i=t.keyCode,n=h(this.container).children("li").length;i===M.keys.ENTER&&0<=this.activeIndex?(e=h(this.container).children("li").eq(this.activeIndex)).length&&(this.selectOption(e),t.preventDefault()):i!==M.keys.ARROW_UP&&i!==M.keys.ARROW_DOWN||(t.preventDefault(),i===M.keys.ARROW_UP&&0<this.activeIndex&&this.activeIndex--,i===M.keys.ARROW_DOWN&&this.activeIndex<n-1&&this.activeIndex++,this.$active.removeClass("active"),0<=this.activeIndex&&(this.$active=h(this.container).children("li").eq(this.activeIndex),this.$active.addClass("active")))}},{key:"_handleInputClick",value:function(t){this.open()}},{key:"_handleContainerMousedownAndTouchstart",value:function(t){this._mousedown=!0}},{key:"_handleContainerMouseupAndTouchend",value:function(t){this._mousedown=!1}},{key:"_highlight",value:function(t,e){var i=e.find("img"),n=e.text().toLowerCase().indexOf(""+t.toLowerCase()),t=n+t.length-1,s=e.text().slice(0,n),n=e.text().slice(n,1+t),t=e.text().slice(1+t);e.html("<span>"+s+"<span class='highlight'>"+n+"</span>"+t+"</span>"),i.length&&e.prepend(i)}},{key:"_resetCurrentElement",value:function(){this.activeIndex=-1,this.$active.removeClass("active")}},{key:"_resetAutocomplete",value:function(){h(this.container).empty(),this._resetCurrentElement(),this.oldVal=null,this.isOpen=!1,this._mousedown=!1}},{key:"selectOption",value:function(t){t=t.text().trim();this.el.value=t,this.$el.trigger("change"),this._resetAutocomplete(),this.close(),"function"==typeof this.options.onAutocomplete&&this.options.onAutocomplete.call(this,t)}},{key:"_renderDropdown",value:function(t,i){var e,n=this,s=(this._resetAutocomplete(),[]);for(e in t)if(t.hasOwnProperty(e)&&-1!==e.toLowerCase().indexOf(i)){if(this.count>=this.options.limit)break;var o={data:t[e],key:e};s.push(o),this.count++}this.options.sortFunction&&s.sort(function(t,e){return n.options.sortFunction(t.key.toLowerCase(),e.key.toLowerCase(),i.toLowerCase())});for(var a=0;a<s.length;a++){var r=s[a],l=h("<li></li>");r.data?l.append('<img src="'+r.data+'" class="right circle"><span>'+r.key+"</span>"):l.append("<span>"+r.key+"</span>"),h(this.container).append(l),this._highlight(i,l)}}},{key:"open",value:function(){var t=this.el.value.toLowerCase();this._resetAutocomplete(),t.length>=this.options.minLength&&(this.isOpen=!0,this._renderDropdown(this.options.data,t)),this.dropdown.isOpen?this.dropdown.recalculateDimensions():this.dropdown.open()}},{key:"close",value:function(){this.dropdown.close()}},{key:"updateData",value:function(t){var e=this.el.value.toLowerCase();this.options.data=t,this.isOpen&&this._renderDropdown(t,e)}}],[{key:"init",value:function(t,e){return _get(s.__proto__||Object.getPrototypeOf(s),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Autocomplete}},{key:"defaults",get:function(){return t}}]),s);function s(t,e){_classCallCheck(this,s);t=_possibleConstructorReturn(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,s,t,e));return(t.el.M_Autocomplete=t).options=h.extend({},s.defaults,e),t.isOpen=!1,t.count=0,t.activeIndex=-1,t.oldVal,t.$inputField=t.$el.closest(".input-field"),t.$active=h(),t._mousedown=!1,t._setupDropdown(),t._setupEventHandlers(),t}e._keydown=!1,M.Autocomplete=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"autocomplete","M_Autocomplete")}
vendor: 7,331 bytes, line 1
1)(cash),(h=>{M.updateTextFields=function(){h("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").each(function(t,e){var i=h(this);0<t.value.length||h(t).is(":focus")||t.autofocus||null!==i.attr("placeholder")?i.siblings("label").addClass("active"):t.validity?i.siblings("label").toggleClass("active",!0===t.validity.badInput):i.siblings("label").removeClass("active")})},M.validate_field=function(t){var e=null!==t.attr("data-length"),i=parseInt(t.attr("data-length")),n=t[0].value.length;0!==n||!1!==t[0].validity.badInput||t.is(":required")?t.hasClass("validate")&&(t.is(":valid")&&e&&n<=i||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid"))):t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid"))},M.textareaAutoResize=function(t){var e,i,n,s,o,a,r,l;(t=t instanceof Element?h(t):t).length?((e=h(".hiddendiv").first()).length||(e=h('<div class="hiddendiv common"></div>'),h("body").append(e)),i=t.css("font-family"),l=t.css("font-size"),n=t.css("line-height"),s=t.css("padding-top"),o=t.css("padding-right"),a=t.css("padding-bottom"),r=t.css("padding-left"),l&&e.css("font-size",l),i&&e.css("font-family",i),n&&e.css("line-height",n),s&&e.css("padding-top",s),o&&e.css("padding-right",o),a&&e.css("padding-bottom",a),r&&e.css("padding-left",r),t.data("original-height")||t.data("original-height",t.height()),"off"===t.attr("wrap")&&e.css("overflow-wrap","normal").css("white-space","pre"),e.text(t[0].value+"\n"),l=e.html().replace(/\n/g,"<br>"),e.html(l),0<t[0].offsetWidth&&0<t[0].offsetHeight?e.css("width",t.width()+"px"):e.css("width",window.innerWidth/2+"px"),t.data("original-height")<=e.innerHeight()?t.css("height",e.innerHeight()+"px"):t[0].value.length<t.data("previous-length")&&t.css("height",t.data("original-height")+"px"),t.data("previous-length",t[0].value.length)):console.error("No textarea element found")},h(document).ready(function(){var i="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",t=(h(document).on("change",i,function(){0===this.value.length&&null===h(this).attr("placeholder")||h(this).siblings("label").addClass("active"),M.validate_field(h(this))}),h(document).ready(function(){M.updateTextFields()}),h(document).on("reset",function(t){var e=h(t.target);e.is("form")&&(e.find(i).removeClass("valid").removeClass("invalid"),e.find(i).each(function(t){this.value.length&&h(this).siblings("label").removeClass("active")}),setTimeout(function(){e.find("select").each(function(){this.M_FormSelect&&h(this).trigger("change")})},0))}),document.addEventListener("focus",function(t){h(t.target).is(i)&&h(t.target).siblings("label, .prefix").addClass("active")},!0),document.addEventListener("blur",function(t){var e,t=h(t.target);t.is(i)&&(e=".prefix",0===t[0].value.length&&!0!==t[0].validity.badInput&&null===t.attr("placeholder")&&(e+=", label"),t.siblings(e).removeClass("active"),M.validate_field(t))},!0),h(document).on("keyup","input[type=radio], input[type=checkbox]",function(t){t.which===M.keys.TAB&&(h(this).addClass("tabbed"),h(this).one("blur",function(t){h(this).removeClass("tabbed")}))}),".materialize-textarea");h(t).each(function(){var t=h(this);t.data("original-height",t.height()),t.data("previous-length",this.value.length),M.textareaAutoResize(t)}),h(document).on("keyup",t,function(){M.textareaAutoResize(h(this))}),h(document).on("keydown",t,function(){M.textareaAutoResize(h(this))}),h(document).on("change",'.file-field input[type="file"]',function(){for(var t=h(this).closest(".file-field").find("input.file-path"),e=h(this)[0].files,i=[],n=0;n<e.length;n++)i.push(e[n].name);t[0].value=i.join(", "),t.trigger("change")})})})(cash),((s,n)=>{var t={indicators:!0,height:400,duration:500,interval:6e3},e=(_inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){this.pause(),this._removeIndicators(),this._removeEventHandlers(),this.el.M_Slider=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleIntervalBound=this._handleInterval.bind(this),this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.options.indicators&&this.$indicators.each(function(t){t.addEventListener("click",e._handleIndicatorClickBound)})}},{key:"_removeEventHandlers",value:function(){var e=this;this.options.indicators&&this.$indicators.each(function(t){t.removeEventListener("click",e._handleIndicatorClickBound)})}},{key:"_handleIndicatorClick",value:function(t){t=s(t.target).index();this.set(t)}},{key:"_handleInterval",value:function(){var t=this.$slider.find(".active").index();this.$slides.length===t+1?t=0:t+=1,this.set(t)}},{key:"_animateCaptionIn",value:function(t,e){e={targets:t,opacity:0,duration:e,easing:"easeOutQuad"};s(t).hasClass("center-align")?e.translateY=-100:s(t).hasClass("right-align")?e.translateX=100:s(t).hasClass("left-align")&&(e.translateX=-100),n(e)}},{key:"_setSliderHeight",value:function(){this.$el.hasClass("fullscreen")||(this.options.indicators?this.$el.css("height",this.options.height+40+"px"):this.$el.css("height",this.options.height+"px"),this.$slider.css("height",this.options.height+"px"))}},{key:"_setupIndicators",value:function(){var n=this;this.options.indicators&&(this.$indicators=s('<ul class="indicators"></ul>'),this.$slides.each(function(t,e){var i=s('<li class="indicator-item"></li>');n.$indicators.append(i[0])}),this.$el.append(this.$indicators[0]),this.$indicators=this.$indicators.children("li.indicator-item"))}},{key:"_removeIndicators",value:function(){this.$el.find("ul.indicators").remove()}},{key:"set",value:function(t){var e,i=this;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.activeIndex!=t&&(this.$active=this.$slides.eq(this.activeIndex),e=this.$active.find(".caption"),this.$active.removeClass("active"),n({targets:this.$active[0],opacity:0,duration:this.options.duration,easing:"easeOutQuad",complete:function(){i.$slides.not(".active").each(function(t){n({targets:t,opacity:0,translateX:0,translateY:0,duration:0,easing:"easeOutQuad"})})}}),this._animateCaptionIn(e[0],this.options.duration),this.options.indicators&&(this.$indicators.eq(this.activeIndex).removeClass("active"),this.$indicators.eq(t).addClass("active")),n({targets:this.$slides.eq(t)[0],opacity:1,duration:this.options.duration,easing:"easeOutQuad"}),n({targets:this.$slides.eq(t).find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:this.options.duration,delay:this.options.duration,easing:"easeOutQuad"}),this.$slides.eq(t).addClass("active"),this.activeIndex=t,this.start())}},{key:"pause",value:function(){clearInterval(this.interval)}},{key:"start",value:function(){clearInterval(this.interval),this.interval=setInterval(this._handleIntervalBound,this.options.duration+this.options.interval)}},{key:"next",value:function(){var t=this.activeIndex+1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}},{key:"prev",value:function(){var t=this.activeIndex-1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o
1),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Slider}},{key:"defaults",get:function(){return t}}]),o);function o(t,e){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,t,e));return(i.el.M_Slider=i).options=s.extend({},o.defaults,e),i.$slider=i.$el.find(".slides"),i.$slides=i.$slider.children("li"),i.activeIndex=i.$slides.filter(function(t){return s(t).hasClass("active")}).first().index(),-1!=i.activeIndex&&(i.$active=i.$slides.eq(i.activeIndex)),i._setSliderHeight(),i.$slides.find(".caption").each(function(t){i._animateCaptionIn(t,0)}),i.$slides.find("img").each(function(t){var e="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";s(t).attr("src")!==e&&(s(t).css("background-image",'url("'+s(t).attr("src")+'")'),s(t).attr("src",e))}),i._setupIndicators(),i.$active?i.$active.css("display","block"):(i.$slides.first().addClass("active"),n({targets:i.$slides.first()[0],opacity:1,duration:i.options.duration,easing:"easeOutQuad"}),i.activeIndex=0,i.$active=i.$slides.eq(i.activeIndex),i.options.indicators&&i.$indicators.eq(i.activeIndex).addClass("active")),i.$active.find("img").each(function(t){n({targets:i.$active.find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:i.options.duration,easing:"easeOutQuad"})}),i._setupEventHandlers(),i.start(),i}M.Slider=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"slider","M_Slider")})(cash,M.anime),((n,s)=>{n(document).on("click",".card",function(t){var e,i;n(this).children(".card-reveal").length&&(void 0===(e=n(t.target).closest(".card")).data("initialOverflow")&&e.data("initialOverflow",void 0===e.css("overflow")?"":e.css("overflow")),i=n(this).find(".card-reveal"),n(t.target).is(n(".card-reveal .card-title"))||n(t.target).is(n(".card-reveal .card-title i"))?s({targets:i[0],translateY:0,duration:225,easing:"easeInOutQuad",complete:function(t){t=t.animatables[0].target;n(t).css({display:"none"}),e.css("overflow",e.data("initialOverflow"))}}):(n(t.target).is(n(".card .activator"))||n(t.target).is(n(".card .activator i")))&&(e.css("overflow","hidden"),i.css({display:"block"}),s({targets:i[0],translateY:"-100%",duration:300,easing:"easeInOutQuad"})))})})(cash,M.anime),(s=>{var t={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{},limit:1/0,onChipAdd:null,onChipSelect:null,onChipDelete:null},e=(_inherits(o,Component),_createClass(o,[{key:"getData",value:function(){return this.chipsData}},{key:"destroy",value:function(){this._removeEventHandlers(),this.$chips.remove(),this.el.M_Chips=void 0}},{key:"_setupEventHandlers",value:function(){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",o._handleChipsKeydown),document.addEventListener("keyup",o._handleChipsKeyup),this.el.addEventListener("blur",o._handleChipsBlur,!0),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(){this.el.removeEventListener("click",this._handleChipClickBound),document.removeEventListener("keydown",o._handleChipsKeydown),document.removeEventListener("keyup",o._handleChipsKeyup),this.el.removeEventListener("blur",o._handleChipsBlur,!0),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(t){var e=s(t.target).closest(".chip"),t=s(t.target).is(".close");e.length?(e=e.index(),t?(this.deleteChip(e),this.$input[0].focus()):this.selectChip(e)):this.$input[0].focus()}},{key:"_handleInputFocus",value:function(){this.$el.addClass("focus")}},{key:"_handleInputBlur",value:function(){this.$el.removeClass("focus")}},{key:"_handleInputKeydown",value:function(t){o._keydown=!0,13===t.keyCode?this.hasAutocomplete&&this.autocomplete&&this.autocomplete.isOpen||(t.preventDefault(),this.addChip({tag:this.$input[0].value}),this.$input[0].value=""):8!==t.keyCode&&37!==t.keyCode||""!==this.$input[0].value||!this.chipsData.length||(t.preventDefault(),this.selectChip(this.chipsData.length-1))}},{key:"_renderChip",value:function(t){var e,i,n;if(t.tag)return e=document.createElement("div"),i=document.createElement("i"),e.classList.add("chip"),e.textContent=t.tag,e.setAttribute("tabindex",0),s(i).addClass("material-icons close"),i.textContent="close",t.image&&((n=document.createElement("img")).setAttribute("src",t.image),e.insertBefore(n,e.firstChild)),e.appendChild(i),e}},{key:"_renderChips",value:function(){this.$chips.remove();for(var t=0;t<this.chipsData.length;t++){var e=this._renderChip(this.chipsData[t]);this.$el.append(e),this.$chips.add(e)}this.$el.append(this.$input[0])}},{key:"_setupAutocomplete",value:function(){var e=this;this.options.autocompleteOptions.onAutocomplete=function(t){e.addChip({tag:t}),e.$input[0].value="",e.$input[0].focus()},this.autocomplete=M.Autocomplete.init(this.$input[0],this.options.autocompleteOptions)}}
1,{key:"_setupInput",value:function(){this.$input=this.$el.find("input"),this.$input.length||(this.$input=s("<input></input>"),this.$el.append(this.$input)),this.$input.addClass("input")}},{key:"_setupLabel",value:function(){this.$label=this.$el.find("label"),this.$label.length&&this.$label.setAttribute("for",this.$input.attr("id"))}},{key:"_setPlaceholder",value:function(){void 0!==this.chipsData&&!this.chipsData.length&&this.options.placeholder?s(this.$input).prop("placeholder",this.options.placeholder):(void 0===this.chipsData||this.chipsData.length)&&this.options.secondaryPlaceholder&&s(this.$input).prop("placeholder",this.options.secondaryPlaceholder)}},{key:"_isValid",value:function(t){if(t.hasOwnProperty("tag")&&""!==t.tag){for(var e=!1,i=0;i<this.chipsData.length;i++)if(this.chipsData[i].tag===t.tag){e=!0;break}return!e}return!1}},{key:"addChip",value:function(t){var e;!this._isValid(t)||this.chipsData.length>=this.options.limit||(e=this._renderChip(t),this.$chips.add(e),this.chipsData.push(t),s(this.$input).before(e),this._setPlaceholder(),"function"==typeof this.options.onChipAdd&&this.options.onChipAdd.call(this,this.$el,e))}},{key:"deleteChip",value:function(t){var e=this.$chips.eq(t);this.$chips.eq(t).remove(),this.$chips=this.$chips.filter(function(t){return 0<=s(t).index()}),this.chipsData.splice(t,1),this._setPlaceholder(),"function"==typeof this.options.onChipDelete&&this.options.onChipDelete.call(this,this.$el,e[0])}},{key:"selectChip",value:function(t){t=this.$chips.eq(t);(this._selectedChip=t)[0].focus(),"function"==typeof this.options.onChipSelect&&this.options.onChipSelect.call(this,this.$el,t[0])}}],[{key:"init",value:function(t,e){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Chips}},{key:"_handleChipsKeydown",value:function(t){o._keydown=!0;var e,i=s(t.target).closest(".chips"),n=t.target&&i.length;!s(t.target).is("input, textarea")&&n&&(n=i[0].M_Chips,8===t.keyCode||46===t.keyCode?(t.preventDefault(),i=n.chipsData.length,n._selectedChip&&(e=n._selectedChip.index(),n.deleteChip(e),n._selectedChip=null,i=Math.max(e-1,0)),n.chipsData.length&&n.selectChip(i)):37===t.keyCode?!n._selectedChip||(e=n._selectedChip.index()-1)<0||n.selectChip(e):39===t.keyCode&&n._selectedChip&&((i=n._selectedChip.index()+1)>=n.chipsData.length?n.$input[0].focus():n.selectChip(i)))}},{key:"_handleChipsKeyup",value:function(t){o._keydown=!1}},{key:"_handleChipsBlur",value:function(t){o._keydown||(s(t.target).closest(".chips")[0].M_Chips._selectedChip=null)}},{key:"defaults",get:function(){return t}}]),o);function o(t,e){_classCallCheck(this,o);t=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,t,e));return(t.el.M_Chips=t).options=s.extend({},o.defaults,e),t.$el.addClass("chips input-field"),t.chipsData=[],t.$chips=s(),t._setupInput(),t.hasAutocomplete=0<Object.keys(t.options.autocompleteOptions).length,t.$input.attr("id")||t.$input.attr("id",M.guid()),t.options.data.length&&(t.chipsData=t.options.data,t._renderChips(t.chipsData)),t.hasAutocomplete&&t._setupAutocomplete(),t._setPlaceholder(),t._setupLabel(),t._setupEventHandlers(),t}e._keydown=!1,M.Chips=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"chips","M_Chips"),s(document).ready(function(){s(document.body).on("click",".chip .close",function(){var t=s(this).closest(".chips");t.length&&t[0].M_Chips||s(this).closest(".chip").remove()})})})(cash),(i=>{var t={top:0,bottom:1/0,offset:0,onPositionChange:null},e=(_inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this.el.style.top=null,this._removePinClasses(),this._removeEventHandlers();var t=n._pushpins.indexOf(this);n._pushpins.splice(t,1)}},{key:"_setupEventHandlers",value:function(){document.addEventListener("scroll",n._updateElements)}},{key:"_removeEventHandlers",value:function(){document.removeEventListener("scroll",n._updateElements)}},{key:"_updatePosition",value:function(){var t=M.getDocumentScrollTop()+this.options.offset;this.options.top<=t&&this.options.bottom>=t&&!this.el.classList.contains("pinned")&&(this._removePinClasses(),this.el.style.top=this.options.offset+"px",this.el.classList.add("pinned"),"function"==typeof this.options.onPositionChange)&&this.options.onPositionChange.call(this,"pinned"),t<this.options.top&&!this.el.classList.contains("pin-top")&&(this._removePinClasses(),this.el.style.top=0,this.el.classList.add("pin-top"),"function"==typeof this.options.onPositionChange)&&this.options.onPositionChange.call(this,"pin-top"),t>this.options.bottom&&!this.el.classList.contains("pin-bottom")&&(this._removePinClasses(),this.el.classList.add("pin-bottom"),this.el.style.top=this.options.bottom-this.originalOffset+"px","function"==typeof this.options.onPositionChange)&&this.options.onPositionChange.call(this,"pin-bottom")}},{key:"_removePinClasses",value:function(){this.el.classList.remove("pin-top"),this.el.classList.remove("pinned"),this.el.classList.remove("pin-bottom")}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Pushpin}},{key:"_updateElements",value:function(){for(var t in n._pushpins)n._pushpins[t]._updatePosition()}},{key:"defaults",get:function(){return t}}]),n);function n(t,e){_classCallCheck(this,n);t=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(t.el.M_Pushpin=t).options=i.extend({},n.defaults,e),t.originalOffset=t.el.offsetTop,n._pushpins.push(t),t._setupEventHandlers(),t._updatePosition(),t}e._pushpins=[],M.Pushpin=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"pushpin","M_Pushpin")})(cash),((r,n)=>{var t={direction:"top",hoverEnabled:!0,toolbarEnabled:!1}
vendor: 4,055 bytes, line 1
1,e=(r.fn.reverse=[].reverse,_inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_FloatingActionButton=void 0}},{key:"_setupEventHandlers",value:function(){this._handleFABClickBound=this._handleFABClick.bind(this),this._handleOpenBound=this.open.bind(this),this._handleCloseBound=this.close.bind(this),this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.addEventListener("mouseenter",this._handleOpenBound),this.el.addEventListener("mouseleave",this._handleCloseBound)):this.el.addEventListener("click",this._handleFABClickBound)}},{key:"_removeEventHandlers",value:function(){this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.removeEventListener("mouseenter",this._handleOpenBound),this.el.removeEventListener("mouseleave",this._handleCloseBound)):this.el.removeEventListener("click",this._handleFABClickBound)}},{key:"_handleFABClick",value:function(){this.isOpen?this.close():this.open()}},{key:"_handleDocumentClick",value:function(t){r(t.target).closest(this.$menu).length||this.close()}},{key:"open",value:function(){this.isOpen||(this.options.toolbarEnabled?this._animateInToolbar():this._animateInFAB(),this.isOpen=!0)}},{key:"close",value:function(){this.isOpen&&(this.options.toolbarEnabled?(window.removeEventListener("scroll",this._handleCloseBound,!0),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),this._animateOutToolbar()):this._animateOutFAB(),this.isOpen=!1)}},{key:"_animateInFAB",value:function(){var e=this,i=(this.$el.addClass("active"),0);this.$floatingBtnsReverse.each(function(t){n({targets:t,opacity:1,scale:[.4,1],translateY:[e.offsetY,0],translateX:[e.offsetX,0],duration:275,delay:i,easing:"easeInOutQuad"}),i+=40})}},{key:"_animateOutFAB",value:function(){var e=this;this.$floatingBtnsReverse.each(function(t){n.remove(t),n({targets:t,opacity:0,scale:.4,translateY:e.offsetY,translateX:e.offsetX,duration:175,easing:"easeOutQuad",complete:function(){e.$el.removeClass("active")}})})}},{key:"_animateInToolbar",value:function(){var t,e=this,i=window.innerWidth,n=window.innerHeight,s=this.el.getBoundingClientRect(),o=r('<div class="fab-backdrop"></div>'),a=this.$anchor.css("background-color");this.$anchor.append(o),this.offsetX=s.left-i/2+s.width/2,this.offsetY=n-s.bottom,t=i/o[0].clientWidth,this.btnBottom=s.bottom,this.btnLeft=s.left,this.btnWidth=s.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"}),o.css({"background-color":a}),setTimeout(function(){e.$el.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),e.$anchor.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout(function(){e.$el.css({overflow:"hidden","background-color":a}),o.css({transform:"scale("+t+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),e.$menu.children("li").children("a").css({opacity:1}),e._handleDocumentClickBound=e._handleDocumentClick.bind(e),window.addEventListener("scroll",e._handleCloseBound,!0),document.body.addEventListener("click",e._handleDocumentClickBound,!0)},100)},0)}},{key:"_animateOutToolbar",value:function(){var t=this,e=window.innerWidth,i=window.innerHeight,n=this.$el.find(".fab-backdrop"),s=this.$anchor.css("background-color");this.offsetX=this.btnLeft-e/2+this.btnWidth/2,this.offsetY=i-this.btnBottom,this.$el.removeClass("active"),this.$el.css({"background-color":"transparent",transition:"none"}),this.$anchor.css({transition:"none"}),n.css({transform:"scale(0)","background-color":s}),this.$menu.children("li").children("a").css({opacity:""}),setTimeout(function(){n.remove(),t.$el.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-t.offsetX+"px,0,0)"}),t.$anchor.css({overflow:"",transform:"translate3d(0,"+t.offsetY+"px,0)"}
1),setTimeout(function(){t.$el.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),t.$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(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FloatingActionButton}},{key:"defaults",get:function(){return t}}]),i);function i(t,e){_classCallCheck(this,i);t=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,t,e));return(t.el.M_FloatingActionButton=t).options=r.extend({},i.defaults,e),t.isOpen=!1,t.$anchor=t.$el.children("a").first(),t.$menu=t.$el.children("ul").first(),t.$floatingBtns=t.$el.find("ul .btn-floating"),t.$floatingBtnsReverse=t.$el.find("ul .btn-floating").reverse(),t.offsetY=0,t.offsetX=0,t.$el.addClass("direction-"+t.options.direction),"top"===t.options.direction?t.offsetY=40:"right"===t.options.direction?t.offsetX=-40:"bottom"===t.options.direction?t.offsetY=-40:t.offsetX=40,t._setupEventHandlers(),t}M.FloatingActionButton=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"floatingActionButton","M_FloatingActionButton")})(cash,M.anime),(v=>{var t={autoClose:!1,format:"mmm dd, yyyy",parse:null,defaultDate:null,setDefaultDate:!1,disableWeekends:!1,disableDayFn:null,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,container:null,showClearBtn:!1,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},e=(_inherits(S,Component),_createClass(S,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),v(this.modalEl).remove(),this.destroySelects(),this.el.M_Datepicker=void 0}},{key:"destroySelects",value:function(){var t=this.calendarEl.querySelector(".orig-select-year"),t=(t&&M.FormSelect.getInstance(t).destroy(),this.calendarEl.querySelector(".orig-select-month"));t&&M.FormSelect.getInstance(t).destroy()}},{key:"_insertHTMLIntoDOM",value:function(){this.options.showClearBtn&&(v(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,this.options.container?this.$modalEl.appendTo(this.options.container):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modalEl.id="modal-"+this.id,this.modal=M.Modal.init(this.modalEl,{onCloseEnd:function(){t.isOpen=!1}})}},{key:"toString",value:function(t){var e=this;return t=t||this.options.format,S._isDate(this.date)?t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g).map(function(t){return e.formats[t]?e.formats[t]():t}).join(""):""}},{key:"setDate",value:function(t,e){if(!t)return this.date=null,this._renderDateDisplay(),this.draw();var i,n;"string"==typeof t&&(t=new Date(Date.parse(t))),S._isDate(t)&&(i=this.options.minDate,n=this.options.maxDate,S._isDate(i)&&t<i?t=i:S._isDate(n)&&n<t&&(t=n),this.date=new Date(t.getTime()),this._renderDateDisplay(),S._setToStartOfDay(this.date),this.gotoDate(this.date),e||"function"!=typeof this.options.onSelect||this.options.onSelect.call(this,this.date))}},{key:"setInputValue",value:function(){this.el.value=this.toString(),this.$el.trigger("change",{firedBy:this})}},{key:"_renderDateDisplay",value:function(){var t=S._isDate(this.date)?this.date:new Date,e=this.options.i18n,i=e.weekdaysShort[t.getDay()],e=e.monthsShort[t.getMonth()],n=t.getDate();this.yearTextEl.innerHTML=t.getFullYear(),this.dateTextEl.innerHTML=i+", "+e+" "+n}},{key:"gotoDate",value:function(t){var e,i,n,s=!0;S._isDate(t)&&(this.calendars&&(e=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),n=t.getTime(),i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),s=n<e.getTime()||i.getTime()<n),s&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}]),this.adjustCalendars())}}
1,{key:"adjustCalendars",value:function(){this.calendars[0]=this.adjustCalendar(this.calendars[0]),this.draw()}},{key:"adjustCalendar",value:function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),11<t.month&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t}},{key:"nextMonth",value:function(){this.calendars[0].month++,this.adjustCalendars()}},{key:"prevMonth",value:function(){this.calendars[0].month--,this.adjustCalendars()}},{key:"render",value:function(t,e,i){for(var n=this.options,s=new Date,o=S._getDaysInMonth(t,e),a=new Date(t,e,1).getDay(),r=[],l=[],h=(S._setToStartOfDay(s),0<n.firstDay&&(a-=n.firstDay)<0&&(a+=7),0===e?11:e-1),d=11===e?0:e+1,c=0===e?t-1:t,u=11===e?t+1:t,p=S._getDaysInMonth(c,h),f=o+a,v=f;7<v;)v-=7;f+=7-v;for(var g=!1,m=0,y=0;m<f;m++){var _=new Date(t,e,m-a+1),b=!!S._isDate(this.date)&&S._compareDates(_,this.date),w=S._compareDates(_,s),k=-1!==n.events.indexOf(_.toDateString()),C=m<a||o+a<=m,$=m-a+1,x=e,E=t,T=n.startRange&&S._compareDates(n.startRange,_),M=n.endRange&&S._compareDates(n.endRange,_),O=n.startRange&&n.endRange&&n.startRange<_&&_<n.endRange,$=(C&&(E=m<a?($=p+$,x=h,c):($-=o,x=d,u)),{day:$,month:x,year:E,hasEvent:k,isSelected:b,isToday:w,isDisabled:n.minDate&&_<n.minDate||n.maxDate&&_>n.maxDate||n.disableWeekends&&S._isWeekend(_)||n.disableDayFn&&n.disableDayFn(_),isEmpty:C,isStartRange:T,isEndRange:M,isInRange:O,showDaysInNextAndPreviousMonths:n.showDaysInNextAndPreviousMonths});l.push(this.renderDay($)),7==++y&&(r.push(this.renderRow(l,n.isRTL,g)),y=0,g=!(l=[]))}return this.renderTable(n,r,i)}},{key:"renderDay",value:function(t){var e=[],i="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),i="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+i+'"><button class="datepicker-day-button" type="button" data-year="'+t.year+'" data-month="'+t.month+'" data-day="'+t.day+'">'+t.day+"</button></td>"}},{key:"renderRow",value:function(t,e,i){return'<tr class="datepicker-row'+(i?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"}},{key:"renderTable",value:function(t,e,i){return'<div class="datepicker-table-wrapper"><table cellpadding="0" cellspacing="0" class="datepicker-table" role="grid" aria-labelledby="'+i+'">'+this.renderHead(t)+this.renderBody(e)+"</table></div>"}},{key:"renderHead",value:function(t){for(var e=void 0,i=[],e=0;e<7;e++)i.push('<th scope="col"><abbr title="'+this.renderDayName(t,e)+'">'+this.renderDayName(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?i.reverse():i).join("")+"</tr></thead>"}},{key:"renderBody",value:function(t){return"<tbody>"+t.join("")+"</tbody>"}},{key:"renderTitle",value:function(t,e,i,n,s,o){for(var a,r=void 0,l=void 0,h=void 0,d=this.options,c=i===d.minYear,u=i===d.maxYear,o='<div id="'+o+'" class="datepicker-controls" role="heading" aria-live="assertive">',p=!0,h=[],r=0;r<12;r++)h.push('<option value="'+(i===s?r-e:12+r-e)+'"'+(r===n?' selected="selected"':"")+(c&&r<d.minMonth||u&&r>d.maxMonth?'disabled="disabled"':"")+">"+d.i18n.months[r]+"</option>");for(a='<select class="datepicker-select orig-select-month" tabindex="-1">'+h.join("")+"</select>",l=v.isArray(d.yearRange)?(r=d.yearRange[0],d.yearRange[1]+1):(r=i-d.yearRange,1+i+d.yearRange),h=[];r<l&&r<=d.maxYear;r++)r>=d.minYear&&h.push('<option value="'+r+'" '+(r===i?'selected="selected"':"")+">"+r+"</option>");var f='<select class="datepicker-select orig-select-year" tabindex="-1">'+h.join("")+"</select>";o+='<button class="month-prev" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/><path d="M0-.5h24v24H0z" fill="none"/></svg></button><div class="selects-container">',d.showMonthAfterYear?o+=f+a:o+=a+f,c&&0!==n&&d.minMonth;return(o=o+"</div>"+('<button class="month-next'+((p=u&&(11===n||d.maxMonth<=n)?!1:p)?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/><path d="M0-.25h24v24H0z" fill="none"/></svg></button>'))+"</div>"}},{key:"draw",value:function(t){if(this.isOpen||t){var t=this.options,e=t.minYear,i=t.maxYear,n=t.minMonth,t=t.max
vendor: 21,419 bytes, line 1
1Month,s="";this._y<=e&&(this._y=e,!isNaN(n))&&this._m<n&&(this._m=n),this._y>=i&&(this._y=i,!isNaN(t))&&this._m>t&&(this._m=t);for(var o="datepicker-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),a=0;a<1;a++)this._renderDateDisplay(),s+=this.renderTitle(this,a,this.calendars[a].year,this.calendars[a].month,this.calendars[0].year,o)+this.render(this.calendars[a].year,this.calendars[a].month,o);this.destroySelects(),this.calendarEl.innerHTML=s;e=this.calendarEl.querySelector(".orig-select-year"),n=this.calendarEl.querySelector(".orig-select-month");M.FormSelect.init(e,{classes:"select-year",dropdownOptions:{container:document.body,constrainWidth:!1}}),M.FormSelect.init(n,{classes:"select-month",dropdownOptions:{container:document.body,constrainWidth:!1}}),e.addEventListener("change",this._handleYearChange.bind(this)),n.addEventListener("change",this._handleMonthChange.bind(this)),"function"==typeof this.options.onDraw&&this.options.onDraw(this)}}},{key:"_setupEventHandlers",value:function(){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),this.options.showClearBtn&&(this._handleClearClickBound=this._handleClearClick.bind(this),this.clearBtn.addEventListener("click",this._handleClearClickBound))}},{key:"_setupVariables",value:function(){var e=this;this.$modalEl=v(S._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"),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 e.date.getDate()},dd:function(){var t=e.date.getDate();return(t<10?"0":"")+t},ddd:function(){return e.options.i18n.weekdaysShort[e.date.getDay()]},dddd:function(){return e.options.i18n.weekdays[e.date.getDay()]},m:function(){return e.date.getMonth()+1},mm:function(){var t=e.date.getMonth()+1;return(t<10?"0":"")+t},mmm:function(){return e.options.i18n.monthsShort[e.date.getMonth()]},mmmm:function(){return e.options.i18n.months[e.date.getMonth()]},yy:function(){return(""+e.date.getFullYear()).slice(2)},yyyy:function(){return e.date.getFullYear()}}}},{key:"_removeEventHandlers",value:function(){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(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleCalendarClick",value:function(t){var e;!this.isOpen||(e=v(t.target)).hasClass("is-disabled")||(!e.hasClass("datepicker-day-button")||e.hasClass("is-empty")||e.parent().hasClass("is-disabled")?e.closest(".month-prev").length?this.prevMonth():e.closest(".month-next").length&&this.nextMonth():(this.setDate(new Date(t.target.getAttribute("data-year"),t.target.getAttribute("data-month"),t.target.getAttribute("data-day"))),this.options.autoClose&&this._finishSelection()))}},{key:"_handleClearClick",value:function(){this.date=null,this.setInputValue(),this.close()}},{key:"_handleMonthChange",value:function(t){this.gotoMonth(t.target.value)}},{key:"_handleYearChange",value:function(t){this.gotoYear(t.target.value)}},{key:"gotoMonth",value:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())}},{key:"gotoYear",value:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())}},{key:"_handleInputChange",value:function(t){var e=void 0;t.firedBy!==this&&(e=this.options.parse?this.options.parse(this.el.value,this.options.format):new Date(Date.parse(this.el.value)),S._isDate(e))&&this.setDate(e)}},{key:"renderDayName",value:function(t,e,i){for(e+=t.firstDay;7<=e;)e-=7;return(i?t.i18n.weekdaysAbbrev:t.i18n.weekdays)[e]}},{key:"_finishSelection",value:function(){this.setInputValue(),this.close()}},{key:"open",value:function(){if(!this.isOpen)return this.isOpen=!0,"function"==typeof this.options.onOpen&&this.options.onOpen.call(this),this.draw(),this.modal.open(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,"function"==typeof this.options.onClose&&this.options.onClose.call(this),this.modal.close(),this}}],[{key:"init",value:function(t,e){return _get(S.__proto__||Object.getPrototypeOf(S),"init",this).call(this,this,t,e)}},{key:"_isDate",value:function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())}},{key:"_isWeekend",value:function(t){t=t.getDay();return 0===t||6===t}},{key:"_setToStartOfDay",value:function(t){S._isDate(t)&&t.setHours(0,0,0,0)}},{key:"_getDaysInMonth",value:function(t,e){return[31,S._isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}},{key:"_isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"_compareDates",value:function(t,e){return t.getTime()===e.getTime()}},{key:"_setToStartOfDay",value:function(t){S._isDate(t)&&t.setHours(0,0,0,0)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Datepicker}},{key:"defaults",get:function(){return t}}]),S);function S(t,e){_classCallCheck(this,S);t=_possibleConstructorReturn(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,S,t,e)),(t.el.M_Datepicker=t).options=v.extend({},S.defaults,e),e&&e.hasOwnProperty("i18n")&&"object"==typeof e.i18n&&(t.options.i18n=v.extend({},S.defaults.i18n,e.i18n)),t.options.minDate&&t.options.minDate.setHours(0,0,0,0),t.options.maxDate&&t.options.maxDate.setHours(0,0,0,0),t.id=M.guid(),t._setupVariables(),t._insertHTMLIntoDOM(),t._setupModal(),t._setupEventHandlers(),t.options.defaultDate||(t.options.defaultDate=new Date(Date.parse(t.el.value))),e=t.options.defaultDate;return S._isDate(e)?t.options.setDefaultDate?(t.setDate(e,!0),t.setInputValue()):t.gotoDate(e):t.gotoDate(new Date),t.isOpen=!1,t}e._template=['<div class= "modal datepicker-modal">','<div class="modal-content datepicker-container">','<div class="datepicker-date-display">','<span class="year-text"></span>','<span class="date-text"></span>',"</div>",'<div class="datepicker-calendar-container">','<div class="datepicker-calendar"></div>','<div class="datepicker-footer">','<button class="btn-flat datepicker-clear waves-effect" style="visibility: hidden;" type="button"></button>','<div class="confirmation-btns">','<button class="btn-flat datepicker-cancel waves-effect" type="button"></button>','<button class="btn-flat datepicker-done waves-effect" type="button"></button>',"</div>","</div>","</div>","</div>","</div>"].join(""),M.Datepicker=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"datepicker","M_Datepicker")})(cash),(h=>{var t={dialRadius:135,outerRadius:105,innerRadius:70,tickRadius:20,duration:350,container:null,defaultTime:"now",fromNow:0,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok"},autoClose:!1,twelveHour:!0,vibrate:!0,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onSelect:null},e=(_inherits(l,Component),_createClass(l,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),h(this.modalEl).remove(),this.el.M_Timepicker=void 0}},{key:"_setupEventHandlers",value:function(){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),h(this.spanHours).on("click",this.showView.bind(this,"hours")),h(this.spanMinutes).on("click",this.showView.bind(this,"minutes"))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleClockClickStart",value:function(t){t.preventDefault();var e=this.plate.getBoundingClientRect(),i=e.left,e=e.top,i=(this.x0=i+this.options.dialRadius,this.y0=e+this.options.dialRadius,this.moved=!1,l._Pos(t));this.dx=i.x-this.x0,this.dy=i.y-this.y0,this.setHand(this.dx,this.dy,!1),document.addEventListener("mousemove",this._handleDocumentClickMoveBound),document.addEventListener("touchmove",this._handleDocumentClickMoveBound),document.addEventListener("mouseup",this._handleDocumentClickEndBound),document.addEventListener("touchend",this._handleDocumentClickEndBound)}},{key:"_handleDocumentClickMove",value:function(t){t.preventDefault();var t=l._Pos(t),e=t.x-this.x0,t=t.y-this.y0;this.moved=!0,this.setHand(e,t,!1,!0)}},{key:"_handleDocumentClickEnd",value:function(t){var e=this,t=(t.preventDefault(),document.removeEventListener("mouseup",this._handleDocumentClickEndBound),document.removeEventListener("touchend",this._handleDocumentClickEndBound),l._Pos(t)),i=t.x-this.x0,t=t.y-this.y0;this.moved&&i===this.dx&&t===this.dy&&this.setHand(i,t),"hours"===this.currentView?this.showView("minutes",this.options.duration/2):this.options.autoClose&&(h(this.minutesView).addClass("timepicker-dial-out"),setTimeout(function(){e.done()},this.options.duration/2)),"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,this.hours,this.minutes),document.removeEventListener("mousemove",this._handleDocumentClickMoveBound),document.removeEventListener("touchmove",this._handleDocumentClickMoveBound)}},{key:"_insertHTMLIntoDOM",value:function(){this.$modalEl=h(l._template),this.modalEl=this.$modalEl[0],this.modalEl.id="modal-"+this.id;var t=document.querySelector(this.options.container);this.options.container&&t?this.$modalEl.appendTo(t):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modal=M.Modal.init(this.modalEl,{onOpenStart:this.options.onOpenStart,onOpenEnd:this.options.onOpenEnd,onCloseStart:this.options.onCloseStart,onCloseEnd:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t),t.isOpen=!1}})}},{key:"_setupVariables",value:function(){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(){var t=h('<button class="btn-flat timepicker-clear waves-effect" style="visibility: hidden;" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.clear+"</button>").appendTo(this.footer).on("click",this.clear.bind(this)),t=(this.options.showClearBtn&&t.css({visibility:""}),h('<div class="confirmation-btns"></div>'));h('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.cancel+"</button>").appendTo(t).on("click",this.close.bind(this)),h('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.done+"</button>").appendTo(t).on("click",this.done.bind(this)),t.appendTo(this.footer)}},{key:"_clockSetup",value:function(){this.options.twelveHour&&(this.$amBtn=h('<div class="am-btn">AM</div>'),this.$pmBtn=h('<div class="pm-btn">PM</div>'),this.$amBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm),this.$pmBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm)),this._buildHoursView(),this._buildMinutesView(),this._buildSVGClock()}},{key:"_buildSVGClock",value:function(){var t=this.options.dialRadius,e=this.options.tickRadius,i=2*t,n=l._createSVGEl("svg"),i=(n.setAttribute("class","timepicker-svg"),n.setAttribute("width",i),n.setAttribute("height",i),l._createSVGEl("g")),t=(i.setAttribute("transform","translate("+t+","+t+")"),l._createSVGEl("circle")),s=(t.setAttribute("class","timepicker-canvas-bearing"),t.setAttribute("cx",0),t.setAttribute("cy",0),t.setAttribute("r",4),l._createSVGEl("line")),o=(s.setAttribute("x1",0),s.setAttribute("y1",0),l._createSVGEl("circle"));o.setAttribute("class","timepicker-canvas-bg"),o.setAttribute("r",e),i.appendChild(s),i.appendChild(o),i.appendChild(t),n.appendChild(i),this._canvas.appendChild(n),this.hand=s,this.bg=o,this.bearing=t,this.g=i}},{key:"_buildHoursView",value:function(){var t=h('<div class="timepicker-tick"></div>');if(this.options.twelveHour)for(var e=1;e<13;e+=1){var i=t.clone(),n=e/6*Math.PI,s=this.options.outerRadius;i.css({left:this.options.dialRadius+Math.sin(n)*s-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(n)*s-this.options.tickRadius+"px"}),i.html(0===e?"00":e),this.hoursView.appendChild(i[0])}else for(var o=0;o<24;o+=1){var a=t.clone(),r=o/6*Math.PI,l=0<o&&o<13?this.options.innerRadius:this.options.outerRadius;a.css({left:this.options.dialRadius+Math.sin(r)*l-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(r)*l-this.options.tickRadius+"px"}),a.html(0===o?"00":o),this.hoursView.appendChild(a[0])}}},{key:"_buildMinutesView",value:function(){for(var t=h('<div class="timepicker-tick"></div>'),e=0;e<60;e+=5){var i=t.clone(),n=e/30*Math.PI;i.css({left:this.options.dialRadius+Math.sin(n)*this.options.outerRadius-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(n)*this.options.outerRadius-this.options.tickRadius+"px"}),i.html(l._addLeadingZero(e)),this.minutesView.appendChild(i[0])}}},{key:"_handleAmPmClick",value:function(t){t=h(t.target);this.amOrPm=t.hasClass("am-btn")?"AM":"PM",this._updateAmPmView()}},{key:"_updateAmPmView",value:function(){this.options.twelveHour&&(this.$amBtn.toggleClass("text-primary","AM"===this.amOrPm),this.$pmBtn.toggleClass("text-primary","PM"===this.amOrPm))}},{key:"_updateTimeFromInput",value:function(){var t,e=((this.el.value||this.options.defaultTime||"")+"").split(":");this.options.twelveHour&&void 0!==e[1]&&(0<e[1].toUpperCase().indexOf("AM")?this.amOrPm="AM":this.amOrPm="PM",e[1]=e[1].replace("AM","").replace("PM","")),"now"===e[0]&&(e=[(t=new Date(+new Date+this.options.fromNow)).getHours(),t.getMinutes()],this.options.twelveHour)&&(this.amOrPm=12<=e[0]&&e[0]<24?"PM":"AM"),this.hours=+e[0]||0,this.minutes=+e[1]||0,this.spanHours.innerHTML=this.hours,this.spanMinutes.innerHTML=l._addLeadingZero(this.minutes),this._updateAmPmView()}},{key:"showView",value:function(t,e){"minutes"===t&&h(this.hoursView).css("visibility");var i="hours"===t,n=i?this.hoursView:this.minutesView,s=i?this.minutesView:this.hoursView;this.currentView=t,h(this.spanHours).toggleClass("text-primary",i),h(this.spanMinutes).toggleClass("text-primary",!i),s.classList.add("timepicker-dial-out"),h(n).css("visibility","visible").removeClass("timepicker-dial-out"),this.resetClock(e),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout(function(){h(s).css("visibility","hidden")},this.options.duration)}},{key:"resetClock",value:function(t){var e=this.currentView,i=this[e],e="hours"===e,n=i*(Math.PI/(e?6:30)),e=e&&0<i&&i<13?this.options.innerRadius:this.options.outerRadius,s=Math.sin(n)*e,o=-Math.cos(n)*e,a=this;t?(h(this.canvas).addClass("timepicker-canvas-out"),setTimeout(function(){h(a.canvas).removeClass("timepicker-canvas-out"),a.setHand(s,o)},t)):this.setHand(s,o)}},{key:"setHand",value:function(t,e,i){var n=this,s=Math.atan2(t,-e),o="hours"===this.currentView,a=Math.PI/(o||i?6:30),t=Math.sqrt(t*t+e*e),e=o&&t<(this.options.outerRadius+this.options.innerRadius)/2,t=e?this.options.innerRadius:this.options.outerRadius,r=(this.options.twelveHour&&(t=this.options.outerRadius),s<0&&(s=2*Math.PI+s),Math.round(s/a)),s=r*a,a=(this.options.twelveHour?o?0===r&&(r=12):(i&&(r*=5),60===r&&(r=0)):o?(12===r&&(r=0),r=e?0===r?12:r:0===r?0:r+12):(i&&(r*=5),60===r&&(r=0)),this[this.currentView]!==r&&this.vibrate&&this.options.vibrate&&(this.vibrateTimer||(navigator[this.vibrate](10),this.vibrateTimer=setTimeout(function(){n.vibrateTimer=null},100))),this[this.currentView]=r,o?this.spanHours.innerHTML=r:this.spanMinutes.innerHTML=l._addLeadingZero(r),Math.sin(s)*(t-this.options.tickRadius)),e=-Math.cos(s)*(t-this.options.tickRadius),i=Math.sin(s)*t,o=-Math.cos(s)*t;this.hand.setAttribute("x2",a),this.hand.setAttribute("y2",e),this.bg.setAttribute("cx",i),this.bg.setAttribute("cy",o)}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,this._updateTimeFromInput(),this.showView("hours"),this.modal.open())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.modal.close())}},{key:"done",value:function(t,e){var i=this.el.value,n=e?"":l._addLeadingZero(this.hours)+":"+l._addLeadingZero(this.minutes);this.time=n,!e&&this.options.twelveHour&&(n=n+" "+this.amOrPm),(this.el.value=n)!==i&&this.$el.trigger("change"),this.close(),this.el.focus()}},{key:"clear",value:function(){this.done(null,!0)}}],[{key:"init",value:function(t,e){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,t,e)}},{key:"_addLeadingZero",value:function(t){return(t<10?"0":"")+t}},{key:"_createSVGEl",value:function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}},{key:"_Pos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?{x:t.targetTouches[0].clientX,y:t.targetTouches[0].clientY}:{x:t.clientX,y:t.clientY}}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Timepicker}},{key:"defaults",get:function(){return t}}]),l);function l(t,e){_classCallCheck(this,l);t=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,t,e));return(t.el.M_Timepicker=t).options=h.extend({},l.defaults,e),t.id=M.guid(),t._insertHTMLIntoDOM(),t._setupModal(),t._setupVariables(),t._setupEventHandlers(),t._clockSetup(),t._pickerSetup(),t}e._template=['<div class= "modal timepicker-modal">','<div class="modal-content timepicker-container">','<div class="timepicker-digital-display">','<div class="timepicker-text-container">','<div class="timepicker-display-column">','<span class="timepicker-span-hours text-primary"></span>',":",'<span class="timepicker-span-minutes"></span>',"</div>",'<div class="timepicker-display-column timepicker-display-am-pm">','<div class="timepicker-span-am-pm"></div>',"</div>","</div>","</div>",'<div class="timepicker-analog-display">','<div class="timepicker-plate">','<div class="timepicker-canvas"></div>','<div class="timepicker-dial timepicker-hours"></div>','<div class="timepicker-dial timepicker-minutes timepicker-dial-out"></div>',"</div>",'<div class="timepicker-footer"></div>',"</div>","</div>","</div>"].join(""),M.Timepicker=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"timepicker","M_Timepicker")})(cash),(i=>{var t={},e=(_inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.CharacterCounter=void 0,this._removeCounter()}},{key:"_setupEventHandlers",value:function(){this._handleUpdateCounterBound=this.updateCounter.bind(this),this.el.addEventListener("focus",this._handleUpdateCounterBound,!0),this.el.addEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("focus",this._handleUpdateCounterBound,!0),this.el.removeEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_setupCounter",value:function(){this.counterEl=document.createElement("span"),i(this.counterEl).addClass("character-counter").css({float:"right","font-size":"12px",height:1}),this.$el.parent().append(this.counterEl)}},{key:"_removeCounter",value:function(){i(this.counterEl).remove()}},{key:"updateCounter",value:function(){var t=+this.$el.attr("data-length"),e=this.el.value.length;this.isValidLength=e<=t;
1t&&(e+="/"+t,this._validateInput()),i(this.counterEl).html(e)}},{key:"_validateInput",value:function(){this.isValidLength&&this.isInvalid?(this.isInvalid=!1,this.$el.removeClass("invalid")):this.isValidLength||this.isInvalid||(this.isInvalid=!0,this.$el.removeClass("valid"),this.$el.addClass("invalid"))}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_CharacterCounter}},{key:"defaults",get:function(){return t}}]),n);function n(t,e){_classCallCheck(this,n);t=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(t.el.M_CharacterCounter=t).options=i.extend({},n.defaults,e),t.isInvalid=!1,t.isValidLength=!1,t._setupCounter(),t._setupEventHandlers(),t}M.CharacterCounter=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"characterCounter","M_CharacterCounter")})(cash),(g=>{var t={duration:200,dist:-100,shift:0,padding:0,numVisible:5,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null},e=(_inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Carousel=void 0}},{key:"_setupEventHandlers",value:function(){var i=this,t=(this._handleCarouselTapBound=this._handleCarouselTap.bind(this),this._handleCarouselDragBound=this._handleCarouselDrag.bind(this),this._handleCarouselReleaseBound=this._handleCarouselRelease.bind(this),this._handleCarouselClickBound=this._handleCarouselClick.bind(this),void 0!==window.ontouchstart&&(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),this.showIndicators&&this.$indicators&&(this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.$indicators.find(".indicator-item").each(function(t,e){t.addEventListener("click",i._handleIndicatorClickBound)})),M.throttle(this._handleResize,200));this._handleThrottledResizeBound=t.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){var i=this;void 0!==window.ontouchstart&&(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),this.showIndicators&&this.$indicators&&this.$indicators.find(".indicator-item").each(function(t,e){t.removeEventListener("click",i._handleIndicatorClickBound)}),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleCarouselTap",value:function(t){"mousedown"===t.type&&g(t.target).is("img")&&t.preventDefault(),this.pressed=!0,this.dragged=!1,this.verticalDragged=!1,this.reference=this._xpos(t),this.referenceY=this._ypos(t),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(t){var e,i,n;if(this.pressed)if(e=this._xpos(t),i=this._ypos(t),n=this.reference-e,Math.abs(this.referenceY-i)<30&&!this.verticalDragged)(2<n||n<-2)&&(this.dragged=!0,this.reference=e,this._scroll(this.offset+n));else{if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1;this.verticalDragged=!0}if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1}},{key:"_handleCarouselRelease",value:function(t){if(this.pressed)return this.pressed=!1,clearInterval(this.ticker),this.target=this.offset,(10<this.velocity||this.velocity<-10)&&(this.amplitude=.9*this.velocity,this.target=this.offset+this.amplitude),this.target=Math.round(this.target/this.dim)*this.dim,this.noWrap&&(this.target>=this.dim*(this.count-1)?this.target=this.dim*(this.count-1):this.target<0&&(this.target=0)),this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound),this.dragged&&(t.preventDefault(),t.stopPropagation()),!1}},{key:"_handleCarouselClick",value:function(t){if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1;var e;this.options.fullWidth||(e=g(t.target).closest(".carousel-item").index(),0!=this._wrap(this.center)-e&&(t.preventDefault(),t.stopPropagation()),this._cycleTo(e))}},{key:"_handleIndicatorClick",value:function(t){t.stopPropagation();
1t=g(t.target).closest(".indicator-item");t.length&&this._cycleTo(t.index())}},{key:"_handleResize",value:function(t){this.options.fullWidth?(this.itemWidth=this.$el.find(".carousel-item").first().innerWidth(),this.imageHeight=this.$el.find(".carousel-item.active").height(),this.dim=2*this.itemWidth+this.options.padding,this.offset=2*this.center*this.itemWidth,this.target=this.offset,this._setCarouselHeight(!0)):this._scroll()}},{key:"_setCarouselHeight",value:function(t){var e,i,n=this,s=(this.$el.find(".carousel-item.active").length?this.$el.find(".carousel-item.active"):this.$el.find(".carousel-item")).first(),o=s.find("img").first();o.length?o[0].complete?0<(e=o.height())?this.$el.css("height",e+"px"):(e=o[0].naturalWidth,i=o[0].naturalHeight,e=this.$el.width()/e*i,this.$el.css("height",e+"px")):o.one("load",function(t,e){n.$el.css("height",t.offsetHeight+"px")}):t||(i=s.height(),this.$el.css("height",i+"px"))}},{key:"_xpos",value:function(t){return(t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0]:t).clientX}},{key:"_ypos",value:function(t){return(t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0]:t).clientY}},{key:"_wrap",value:function(t){return t>=this.count?t%this.count:t<0?this._wrap(this.count+t%this.count):t}},{key:"_track",value:function(){var t,e=(t=Date.now())-this.timestamp;this.timestamp=t,t=this.offset-this.frame,this.frame=this.offset,this.velocity=.8*(1e3*t/(1+e))+.2*this.velocity}},{key:"_autoScroll",value:function(){var t;this.amplitude&&(t=Date.now()-this.timestamp,2<(t=this.amplitude*Math.exp(-t/this.options.duration))||t<-2?(this._scroll(this.target-t),requestAnimationFrame(this._autoScrollBound)):this._scroll(this.target))}},{key:"_scroll",value:function(t){var e,i,n,s,o=this,a=(this.$el.hasClass("scrolling")||this.el.classList.add("scrolling"),null!=this.scrollingTimeout&&window.clearTimeout(this.scrollingTimeout),this.scrollingTimeout=window.setTimeout(function(){o.$el.removeClass("scrolling")},this.options.duration),void 0),r=void 0,l=void 0,h=void 0,d=void 0,c=void 0,u=this.center,p=1/this.options.numVisible;for(this.offset="number"==typeof t?t:this.offset,this.center=Math.floor((this.offset+this.dim/2)/this.dim),s=-(n=(i=this.offset-this.center*this.dim)<0?1:-1)*i*2/this.dim,e=this.count>>1,c=this.options.fullWidth?(l="translateX(0)",1):(l="translateX("+(this.el.clientWidth-this.itemWidth)/2+"px) ",l+="translateY("+(this.el.clientHeight-this.itemHeight)/2+"px)",1-p*s),this.showIndicators&&(t=this.center%this.count,(v=this.$indicators.find(".indicator-item.active")).index()!==t)&&(v.removeClass("active"),this.$indicators.find(".indicator-item").eq(t)[0].classList.add("active")),(!this.noWrap||0<=this.center&&this.center<this.count)&&(r=this.images[this._wrap(this.center)],g(r).hasClass("active")||(this.$el.find(".carousel-item").removeClass("active"),r.classList.add("active")),v=l+" translateX("+-i/2+"px) translateX("+n*this.options.shift*s*a+"px) translateZ("+this.options.dist*s+"px)",this._updateItemStyle(r,c,0,v)),a=1;a<=e;++a){var f,d=this.options.fullWidth?(h=this.options.dist,a===e&&i<0?1-s:1):(h=this.options.dist*(2*a+s*n),1-p*(2*a+s*n));(!this.noWrap||this.center+a<this.count)&&(r=this.images[this._wrap(this.center+a)],f=l+" translateX("+(this.options.shift+(this.dim*a-i)/2)+"px) translateZ("+h+"px)",this._updateItemStyle(r,d,-a,f)),d=this.options.fullWidth?(h=this.options.dist,a===e&&0<i?1-s:1):(h=this.options.dist*(2*a-s*n),1-p*(2*a-s*n)),(!this.noWrap||0<=this.center-a)&&(r=this.images[this._wrap(this.center-a)],f=l+" translateX("+(-this.options.shift+(-this.dim*a-i)/2)+"px) translateZ("+h+"px)",this._updateItemStyle(r,d,-a,f))}(!this.noWrap||0<=this.center&&this.center<this.count)&&(r=this.images[this._wrap(this.center)],t=l+" translateX("+-i/2+"px) translateX("+n*this.options.shift*s+"px) translateZ("+this.options.dist*s+"px)",this._updateItemStyle(r,c,0,t));var v=this.$el.find(".carousel-item").eq(this._wrap(this.center));u!==this.center&&"function"==typeof this.options.onCycleTo&&this.options.onCycleTo.call(this,v[0],this.dragged),"function"==typeof this.oneTimeCallback&&(this.oneTimeCallback.call(this,v[0],this.dragged),this.oneTimeCallback=null)}}
vendor: 5,583 bytes, line 1
1,{key:"_updateItemStyle",value:function(t,e,i,n){t.style[this.xform]=n,t.style.zIndex=i,t.style.opacity=e,t.style.visibility="visible"}},{key:"_cycleTo",value:function(t,e){t=this.center%this.count-t;this.noWrap||(t<0?Math.abs(t+this.count)<Math.abs(t)&&(t+=this.count):0<t&&Math.abs(t-this.count)<t&&(t-=this.count)),this.target=this.dim*Math.round(this.offset/this.dim),t<0?this.target+=this.dim*Math.abs(t):0<t&&(this.target-=this.dim*t),"function"==typeof e&&(this.oneTimeCallback=e),this.offset!==this.target&&(this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound))}},{key:"next",value:function(t){void 0!==t&&!isNaN(t)||(t=1);t=this.center+t;if(t>=this.count||t<0){if(this.noWrap)return;t=this._wrap(t)}this._cycleTo(t)}},{key:"prev",value:function(t){void 0!==t&&!isNaN(t)||(t=1);t=this.center-t;if(t>=this.count||t<0){if(this.noWrap)return;t=this._wrap(t)}this._cycleTo(t)}},{key:"set",value:function(t,e){if((t=void 0!==t&&!isNaN(t)?t:0)>this.count||t<0){if(this.noWrap)return;t=this._wrap(t)}this._cycleTo(t,e)}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Carousel}},{key:"defaults",get:function(){return t}}]),n);function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Carousel=i).options=g.extend({},n.defaults,e),i.hasMultipleSlides=1<i.$el.find(".carousel-item").length,i.showIndicators=i.options.indicators&&i.hasMultipleSlides,i.noWrap=i.options.noWrap||!i.hasMultipleSlides,i.pressed=!1,i.dragged=!1,i.offset=i.target=0,i.images=[],i.itemWidth=i.$el.find(".carousel-item").first().innerWidth(),i.itemHeight=i.$el.find(".carousel-item").first().innerHeight(),i.dim=2*i.itemWidth+i.options.padding||1,i._autoScrollBound=i._autoScroll.bind(i),i._trackBound=i._track.bind(i),i.options.fullWidth&&(i.options.dist=0,i._setCarouselHeight(),i.showIndicators)&&i.$el.find(".carousel-fixed-item").addClass("with-indicators"),i.$indicators=g('<ul class="indicators"></ul>'),i.$el.find(".carousel-item").each(function(t,e){i.images.push(t),i.showIndicators&&(t=g('<li class="indicator-item"></li>'),0===e&&t[0].classList.add("active"),i.$indicators.append(t))}),i.showIndicators&&i.$el.append(i.$indicators),i.count=i.images.length,i.options.numVisible=Math.min(i.count,i.options.numVisible),i.xform="transform",["webkit","Moz","O","ms"].every(function(t){t+="Transform";return void 0===document.body.style[t]||(i.xform=t,!1)}),i._setupEventHandlers(),i._scroll(i.offset),i}M.Carousel=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"carousel","M_Carousel")})(cash),(x=>{var t={onOpen:void 0,onClose:void 0},e=(_inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.TapTarget=void 0}},{key:"_setupEventHandlers",value:function(){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 t=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=t.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleTargetClickBound),this.originEl.removeEventListener("click",this._handleOriginClickBound),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleTargetClick",value:function(t){this.open()}},{key:"_handleOriginClick",value:function(t){this.close()}},{key:"_handleResize",value:function(t){this._calculatePositioning()}},{key:"_handleDocumentClick",value:function(t){x(t.target).closest(".tap-target-wrapper").length||(this.close(),t.preventDefault(),t.stopPropagation())}},{key:"_setup",value:function(){this.wrapper=this.$el.parent()[0],this.waveEl=x(this.wrapper).find(".tap-target-wave")[0],this.originEl=x(this.wrapper).find(".tap-target-origin")[0],this.contentEl=this.$el.find(".tap-target-content")[0],x(this.wrapper).hasClass(".tap-target-wrapper")||(this.wrapper=document.createElement("div"),this.wrapper.classList.add("tap-target-wrapper"),this.$el.before(x(this.wrapper)),this.wrapper.append(this.el)),this.contentEl||(this.contentEl=document.createElement("div"),this.contentEl.classList.add("tap-target-content"),this.$el.append(this.contentEl)),this.waveEl||(this.waveEl=document.createElement("div"),this.waveEl.classList.add("tap-target-wave"),this.originEl||(this.originEl=this.$origin.clone(!0,!0),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(){var t="fixed"===this.$origin.css("position");if(!t)for(var e=this.$origin.parents(),i=0;i<e.length&&!(t="fixed"==x(e[i]).css("position"));i++);var n=this.$origin.outerWidth(),s=this.$origin.outerHeight(),o=t?this.$origin.offset().top-M.getDocumentScrollTop():this.$origin.offset().top,a=t?this.$origin.offset().left-M.getDocumentScrollLeft():this.$origin.offset().left,r=window.innerWidth,l=window.innerHeight,h=r/2,d=l/2,c=a<=h,h=h<a,u=o<=d,d=d<o,p=.25*r<=a&&a<=.75*r,f=this.$el.outerWidth(),v=this.$el.outerHeight(),o=o+s/2-v/2,
1s=a+n/2-f/2,a=t?"fixed":"absolute",g=p?f:f/2+n,m=v/2,y=u?v/2:0,p=c&&!p?f/2-n:0,_=n,b=d?"bottom":"top",n=2*n,w=n,k=v/2-w/2,C=f/2-n/2,$={};$.top=u?o+"px":"",$.right=h?r-s-f+"px":"",$.bottom=d?l-o-v+"px":"",$.left=c?s+"px":"",$.position=a,x(this.wrapper).css($),x(this.contentEl).css({width:g+"px",height:m+"px",top:y+"px",right:"0px",bottom:"0px",left:p+"px",padding:_+"px",verticalAlign:b}),x(this.waveEl).css({top:k+"px",left:C+"px",width:n+"px",height:w+"px"})}},{key:"open",value:function(){this.isOpen||("function"==typeof this.options.onOpen&&this.options.onOpen.call(this,this.$origin[0]),this.isOpen=!0,this.wrapper.classList.add("open"),document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound))}},{key:"close",value:function(){this.isOpen&&("function"==typeof this.options.onClose&&this.options.onClose.call(this,this.$origin[0]),this.isOpen=!1,this.wrapper.classList.remove("open"),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound))}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_TapTarget}},{key:"defaults",get:function(){return t}}]),i);function i(t,e){_classCallCheck(this,i);t=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,t,e));return(t.el.M_TapTarget=t).options=x.extend({},i.defaults,e),t.isOpen=!1,t.$origin=x("#"+t.$el.attr("data-target")),t._setup(),t._calculatePositioning(),t._setupEventHandlers(),t}M.TapTarget=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"tapTarget","M_TapTarget")})(cash),(r=>{var t={classes:"",dropdownOptions:{}},e=(_inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_FormSelect=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleSelectChangeBound=this._handleSelectChange.bind(this),this._handleOptionClickBound=this._handleOptionClick.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),r(this.dropdownOptions).find("li:not(.optgroup)").each(function(t){t.addEventListener("click",e._handleOptionClickBound)}),this.el.addEventListener("change",this._handleSelectChangeBound),this.input.addEventListener("click",this._handleInputClickBound)}},{key:"_removeEventHandlers",value:function(){var e=this;r(this.dropdownOptions).find("li:not(.optgroup)").each(function(t){t.removeEventListener("click",e._handleOptionClickBound)}),this.el.removeEventListener("change",this._handleSelectChangeBound),this.input.removeEventListener("click",this._handleInputClickBound)}},{key:"_handleSelectChange",value:function(t){this._setValueToInput()}},{key:"_handleOptionClick",value:function(t){t.preventDefault();var e,i,n=r(t.target).closest("li")[0],s=n.id;r(n).hasClass("disabled")||r(n).hasClass("optgroup")||!s.length||(e=!0,this.isMultiple?((i=r(this.dropdownOptions).find("li.disabled.selected")).length&&(i.removeClass("selected"),i.find('input[type="checkbox"]').prop("checked",!1),this._toggleEntryFromArray(i[0].id)),e=this._toggleEntryFromArray(s)):(r(this.dropdownOptions).find("li").removeClass("selected"),r(n).toggleClass("selected",e)),r(this._valueDict[s].el).prop("selected")!==e&&(r(this._valueDict[s].el).prop("selected",e),this.$el.trigger("change"))),t.stopPropagation()}},{key:"_handleInputClick",value:function(){this.dropdown&&this.dropdown.isOpen&&(this._setValueToInput(),this._setSelectedStates())}},{key:"_setupDropdown",value:function(){var i=this,t=(this.wrapper=document.createElement("div"),r(this.wrapper).addClass("select-wrapper "+this.options.classes),this.$el.before(r(this.wrapper)),this.wrapper.appendChild(this.el),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(),r(this.dropdownOptions).addClass("dropdown-content select-dropdown "+(this.isMultiple?"multiple-select-dropdown":"")),this.$selectOptions.length&&this.$selectOptions.each(function(t){var e;r(t).is("option")?(e=void 0,e=i.isMultiple?i._appendOptionWithIcon(i.$el,t,"multiple"):i._appendOptionWithIcon(i.$el,t),i._addOptionToValueDict(t,e)):r(t).is("optgroup")&&(e=r(t).children("option"),r(i.dropdownOptions).append(r('<li class="optgroup"><span>'+t.getAttribute("label")+"</span></li>")[0]),e.each(function(t){var e=i._appendOptionWithIcon(i.$el,t,"optgroup-option");i._addOptionToValueDict(t,e)}))}),this.$el.after(this.dropdownOptions),this.input=document.createElement("input"),r(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),this.el.disabled&&r(this.input).prop("disabled","true"),this.$el.before(this.input),this._setValueToInput(),r('<svg class="caret" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'));this.$el.before(t[0]),this.el.disabled||((t=r.extend({},this.options.dropdownOptions)).onOpenEnd=function(t){var e=r(i.dropdownOptions).find(".selected").first();e.length&&(M.keyDown=!0,i.dropdown.focusedIndex=e.index(),i.dropdown._focusFocusedItem(),M.keyDown=!1,i.dropdown.isScrollable)&&(e=e[0].getBoundingClientRect().top-i.dropdownOptions.getBoundingClientRect().top,e-=i.dropdownOptions.clientHeight/2,i.dropdownOptions.scrollTop=e)},this.isMultiple&&(t.closeOnClick=!1),this.dropdown=M.Dropdown.init(this.input,t)),this._setSelectedStates()}},{key:"_addOptionToValueDict",value:function(t,e){var i=Object.keys(this._valueDict).length,i=this.dropdownOptions.id+i,n={};e.id=i,n.el=t,n.optionEl=e,this._valueDict[i]=n}},{key:"_removeDropdown",value:function(){r(this.wrapper).find(".caret").remove(),r(this.input).remove(),r(this.dropdownOptions).remove(),r(this.wrapper).before(this.$el),r(this.wrapper).remove()}}
1,{key:"_appendOptionWithIcon",value:function(t,e,i){var n=e.disabled?"disabled ":"",i="optgroup-option"===i?"optgroup-option ":"",s=this.isMultiple?'<label><input type="checkbox"'+n+'"/><span>'+e.innerHTML+"</span></label>":e.innerHTML,o=r("<li></li>"),a=r("<span></span>"),s=(a.html(s),o.addClass(n+" "+i),o.append(a),e.getAttribute("data-icon"));return s&&(n=r('<img alt="" src="'+s+'">'),o.prepend(n)),r(this.dropdownOptions).append(o[0]),o[0]}},{key:"_toggleEntryFromArray",value:function(t){var e=!this._keysSelected.hasOwnProperty(t),i=r(this._valueDict[t].optionEl);return e?this._keysSelected[t]=!0:delete this._keysSelected[t],i.toggleClass("selected",e),i.find('input[type="checkbox"]').prop("checked",e),i.prop("selected",e),e}},{key:"_setValueToInput",value:function(){var t,e=[];this.$el.find("option").each(function(t){r(t).prop("selected")&&(t=r(t).text(),e.push(t))}),e.length||(t=this.$el.find("option:disabled").eq(0)).length&&""===t[0].value&&e.push(t.text()),this.input.value=e.join(", ")}},{key:"_setSelectedStates",value:function(){for(var t in this._keysSelected={},this._valueDict){var e=this._valueDict[t],i=r(e.el).prop("selected");r(e.optionEl).find('input[type="checkbox"]').prop("checked",i),i?(this._activateOption(r(this.dropdownOptions),r(e.optionEl)),this._keysSelected[t]=!0):r(e.optionEl).removeClass("selected")}}},{key:"_activateOption",value:function(t,e){e&&(this.isMultiple||t.find("li.selected").removeClass("selected"),r(e).addClass("selected"))}},{key:"getSelectedValues",value:function(){var t,e=[];for(t in this._keysSelected)e.push(this._valueDict[t].el.value);return e}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FormSelect}},{key:"defaults",get:function(){return t}}]),i);function i(t,e){_classCallCheck(this,i);t=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,t,e));return t.$el.hasClass("browser-default")?_possibleConstructorReturn(t):((t.el.M_FormSelect=t).options=r.extend({},i.defaults,e),t.isMultiple=t.$el.prop("multiple"),t.el.tabIndex=-1,t._keysSelected={},t._valueDict={},t._setupDropdown(),t._setupEventHandlers(),t)}M.FormSelect=e,M.jQueryLoaded&&M.initializeJqueryWrapper(e,"formSelect","M_FormSelect")})(cash),((i,e)=>{var t={},n=(_inherits(s,Component),_createClass(s,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeThumb(),this.el.M_Range=void 0}},{key:"_setupEventHandlers",value:function(){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(){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(){i(this.value).html(this.$el.val()),i(this.thumb).hasClass("active")||this._showRangeBubble();var t=this._calcRangeOffset();i(this.thumb).addClass("active").css("left",t+"px")}},{key:"_handleRangeMousedownTouchstart",value:function(t){i(this.value).html(this.$el.val()),this._mousedown=!0,this.$el.addClass("active"),i(this.thumb).hasClass("active")||this._showRangeBubble(),"input"!==t.type&&(t=this._calcRangeOffset(),i(this.thumb).addClass("active").css("left",t+"px"))}},{key:"_handleRangeInputMousemoveTouchmove",value:function(){var t;this._mousedown&&(i(this.thumb).hasClass("active")||this._showRangeBubble(),t=this._calcRangeOffset(),i(this.thumb).addClass("active").css("left",t+"px"),i(this.value).html(this.$el.val()))}},{key:"_handleRangeMouseupTouchend",value:function(){this._mousedown=!1,this.$el.removeClass("active")}},{key:"_handleRangeBlurMouseoutTouchleave",value:function(){var t;this._mousedown||(t=7+parseInt(this.$el.css("padding-left"))+"px",i(this.thumb).hasClass("active")&&(e.remove(this.thumb),e({targets:this.thumb,height:0,width:0,top:10,easing:"easeOutQuad",marginLeft:t,duration:100})),i(this.thumb).removeClass("active"))}},{key:"_setupThumb",value:function(){this.thumb=document.createElement("span"),this.value=d
1ocument.createElement("span"),i(this.thumb).addClass("thumb"),i(this.value).addClass("value"),i(this.thumb).append(this.value),this.$el.after(this.thumb)}},{key:"_removeThumb",value:function(){i(this.thumb).remove()}},{key:"_showRangeBubble",value:function(){var t=-7+parseInt(i(this.thumb).parent().css("padding-left"))+"px";e.remove(this.thumb),e({targets:this.thumb,height:30,width:30,top:-30,marginLeft:t,duration:300,easing:"easeOutQuint"})}},{key:"_calcRangeOffset",value:function(){var t=this.$el.width()-15,e=parseFloat(this.$el.attr("max"))||100,i=parseFloat(this.$el.attr("min"))||0;return(parseFloat(this.$el.val())-i)/(e-i)*t}}],[{key:"init",value:function(t,e){return _get(s.__proto__||Object.getPrototypeOf(s),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Range}},{key:"defaults",get:function(){return t}}]),s);function s(t,e){_classCallCheck(this,s);t=_possibleConstructorReturn(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,s,t,e));return(t.el.M_Range=t).options=i.extend({},s.defaults,e),t._mousedown=!1,t._setupThumb(),t._setupEventHandlers(),t}M.Range=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"range","M_Range"),n.init(i("input[type=range]"))})(cash,M.anime),$(document).ready(function(){$(".section__top-arrow").click(function(){$("html,body").stop().animate({scrollTop:$(this).next().offset().top},500)}),$("#bankingSelect").length&&($(".BankItem").addClass("hide"),$("."+$("#bankingSelect").val()).removeClass("hide"),$("#bankingSelect").change(function(){var t=$("#bankingSelect").val();"all"===t?$(".BankItem").removeClass("hide"):($(".BankItem").addClass("hide"),setTimeout(function(){$("."+t).removeClass("hide")},250))}),$(".bankIcon").click(function(){var t="."+$(this).attr("name");$(t).toggle("slow")}));$(".loyalty-program-page").length;if(0<$(".rewards-riches-page").length){var i=r(i),n=$(".prize-category"),s=o();function o(){var t=-50;return window.innerWidth<479&&(t=-100),$(".carousel").carousel({indicators:!0,duration:200,numVisible:3,shift:t,onCycleTo:a})}function a(){var t=document.querySelector(".carousel-item.active");t&&((t=$(t.children[0])).hasClass("prize-category__one")?n.removeClass("prize-category_two prize-category_three").addClass("prize-category_one"):t.hasClass("prize-category__two")?n.removeClass("prize-category_one prize-category_three").addClass("prize-category_two"):n.removeClass("prize-category_one prize-category_two").addClass("prize-category_three"),i=r(i))}function r(t){return window.clearInterval(t),setTimeout(l,4e3)}function l(){s&&s.carousel("next")}window.addEventListener("resize",t=>{s&&s.carousel("destroy"),$(".carousel .indicators").remove(),s=o()});var t="http://www.w3.org/2000/svg",h=document.getElementsByClassName("fiveStar");if(h.length)for(var d=0;d<h.length;d++){var c=h[d].getAttribute("data-color");c=c||"#000";for(var u=0;u<5;u++){var p=document.createElement("div"),f=(p.classList.add("star-div"),p.classList.add("aniStar"+(u+1)),p.classList.add("animate-me"),document.createElementNS(t,"svg")),v=document.createElementNS(t,"path");v.setAttributeNS(null,"d","M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"),f.appendChild(v),f.setAttributeNS(null,"height","16px"),f.setAttributeNS(null,"width","16px"),f.setAttributeNS(null,"viewbox","0 0 16 16"),f.setAttributeNS(null,"fill",c),f.classList.add("fivestar-star"),p.appendChild(f),h[d].appendChild(p)}}var g=document.querySelectorAll(".view-animate");let e=new IntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&(t=t.target,e.unobserve(t),t.classList.add("is-in-view"))})});g.forEach(t=>e.observe(t))}var m,y,_,b,e,w,g=!1;function k(){var t=location.hash.slice(1);$("a[name='"+t+"']").closest(".panel.panel-casino-rewards").find(".panel-collapse.collapse").collapse("show")}0<$(".daily-winner-page").length&&(null!==sessionStorage.getItem("auto-scroll-pos")&&/sort=/g.test(location.search)&&(g=!0,$("html,body").scrollTop(sessionStorage.getItem("auto-scroll-pos")||0),sessionStorage.removeItem("auto-scroll-pos")),$(".winner-list-table").on("click","th a",function(){sessionStorage.setItem("auto-scroll-pos",$(document).scrollTop())}),!g)&&/page=/g.test(location.search)&&(g=!0,$("html,body").scrollTop($(".form-section").offset().top)),0<$(".testimonials-page").length&&(m=$("#panelsContainer"),y=2,_=!0,b="",$("#lnkLoadMoreTestimonials").click(function(){var a=$(this);a.addClass("loading"),$.ajax({url:"/HandlerTestimonials/LoadMore/",type:"POST",data:{isTemplateIncluded:_,page:y,cultureName:cultureName}}).done(function(t){y+=1,_&&(b=t.Template,_=!1);for(var e=m.find("[data-id]").get().map(function(t){return $(t).attr("data-id")}),i=t.Testimonials.filter(function(t){return-1===e.indexOf(t.StoryId)}),n="",s=0;s<i.length;s++){var o=b.slice().replace(new RegExp("{{TestimonialId}}","gi"),i[s].TestimonialId).replace(new RegExp("{{Content}}","gi"),i[s].Content.replace(/\$/g,"$$$$")).replace(new RegExp("{{Title}}","gi"),i[s].Title.replace(/\$/g,"$$$$")).replace(new RegExp("{{TestimonialImage}}","gi"),i[s].TestimonialImage).replace(new RegExp("{{BrandUrl}}","gi"),i[s].BrandUrl.replace(/\$/g,"$$$$"));n+=o=i[s].IsLinkable?o:o.replace(/<a href=[\s\S]*?(<img.*?\/>)[\s\S]*?\/a\>/gi,"$1")}$($.parseHTML(n)).insertBefore(a),t.Testimonials.length<20&&a.hide(),window.loadDeferImages()}).fail(function(){}
1).always(function(){a.removeClass("loading")})}),bootstrapAffixHelper.setup($(".cta-section"))),0<$(".millionaires-club-page").length&&($(".read-more + label>span").on("click",function(){var t=$(this),e=t.parent().prev();t.parent().hasClass("status-expanded")?(t.find("span").text(t.data("text-read-more")).parent().parent().removeClass("status-expanded"),e.css("height",e.find(">*").get().reduce(function(t,e){return t+$(e).outerHeight(!0)},0)+"px"),setTimeout(function(){e.css("height","424px")},100)):(t.find("span").text(t.data("text-read-less")).parent().parent().addClass("status-expanded"),e.css("height",e.find(">*").get().reduce(function(t,e){return t+$(e).outerHeight(!0)},0)+"px"),setTimeout(function(){e.css("height","auto")},400))}),$(".section-content__container").each(function(t,e){$(e).attr("data-max-height",$(e).find(">*").get().reduce(function(t,e){return t+$(e).outerHeight(!0)},0))}).filter(function(t,e){return $(e).height()>parseInt($(e).attr("data-max-height"))-120}).removeClass("read-more").siblings("label").remove(),$("#winner-stories video").each(function(){new VJS($(this).parent())})),$("#switch-culture-name").change(function(t){window.location.href="/"+$(this).val()+"/partners/"+window.location.search}),$("#switch-culture-name_instant-banking").change(function(t){window.location.href="/"+$(this).val()+"/instant-banking/"+window.location.search}),0<$(".page-unsubscribe").length&&((e=$("input[type=checkbox][data-id=0]")).change(function(){e.prop("checked")?$("input[type=checkbox]").prop("checked",!0):$("input[type=checkbox]").prop("checked",!1)}),(w=e.closest("ul").find("input[type=checkbox]").filter(function(t,e){return"0"!==$(e).attr("data-id")})).change(function(){e.prop("checked",0===w.filter(function(t,e){return!$(e).prop("checked")}).length)}),$("#updated").fadeTo(1e4,0)),0<$(".faq-page").length&&($(window).on("hashchange",function(){k()}),k()),$(".highest-win-page").length&&$("video.hwrg-explainer").each(function(){new VJS($(this).parent())}),$(".hundred-million-giveaway-page").length&&$("video.hundred-million-giveaway-explainer").each(function(){new VJS($(this).parent())}),$(".cr-25-years-banner").length&&($(window).on("resize",function(){$(".cr-25-years-banner").css("--max-banner-width",$(window).width()+"px")}),window.dispatchEvent(new Event("resize")))}),window.VJS=window.VJS||function(t){var e=this,i=t.find("video"),n=t.attr("data-cover-image"),s=(s=t.attr("data-overlay-text"))||"",o=(o=t.attr("data-vtype"))||"",a=(t.append($("<div class='loading bar-spinner'><div></div><div></div><div></div><div></div><div></div></div><div class='video-cover'><a href='#'><img src='"+n+"'/><div class='overlay"+o+"'><div>"+s+"</div></div></a></div>")),t.on("click",".video-cover a",function(){return e.Start(),!1}),t.find(".loading")),r=t.find(".video-cover img");i[0].onended=function(){i.hide(),r.css("opacity",1);var t=document.fullscreenElement&&null!==document.fullscreenElement||document.webkitFullscreenElement&&null!==document.webkitFullscreenElement||document.mozFullScreenElement&&null!==document.mozFullScreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement;t&&(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen())},this.Start=function(t){setTimeout(function(){i.show(),a.hide(),i[0].play(),r.css("opacity",0)},t)},this.Restart=function(){e.Start(1e3)},a.hide(),setTimeout(function(){a.hide()},2100)};

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