1window.flatStyles = window.flatStyles || '' 2 3 window.lightspeedOptimizeStylesheet = function () { 4 const currentStylesheet = document.querySelector( '.tcb-lightspeed-style:not([data-ls-optimized])' ) 5 6 if ( currentStylesheet ) { 7 try { 8 if ( currentStylesheet.sheet && currentStylesheet.sheet.cssRules ) { 9 if ( window.flatStyles ) { 10 if ( this.optimizing ) { 11 setTimeout( window.lightspeedOptimizeStylesheet.bind( this ), 24 ) 12 } else { 13 this.optimizing = true; 14 15 let rulesIndex = 0; 16 17 while ( rulesIndex < currentStylesheet.sheet.cssRules.length ) { 18 const rule = currentStylesheet.sheet.cssRules[ rulesIndex ] 19 /* remove rules that already exist in the page */ 20 if ( rule.type === CSSRule.STYLE_RULE && window.flatStyles.includes( `${rule.selectorText}{` ) ) { 21 currentStylesheet.sheet.deleteRule( rulesIndex ) 22 } else { 23 rulesIndex ++ 24 } 25 } 26 /* optimize, mark it such, move to the next file, append the styles we have until now */ 27 currentStylesheet.setAttribute( 'data-ls-optimized', '1' ) 28 29 window.flatStyles += currentStylesheet.innerHTML 30 31 this.optimizing = false 32 } 33 } else { 34 window.flatStyles = currentStylesheet.innerHTML 35 currentStylesheet.setAttribute( 'data-ls-optimized', '1' ) 36 } 37 } 38 } catch ( error ) { 39 console.warn( error ) 40 } 41 42 if ( currentStylesheet.parentElement.tagName !== 'HEAD' ) { 43 /* always make sure that those styles end up in the head */ 44 const stylesheetID = currentStylesheet.id; 45 /** 46 * make sure that there is only one copy of the css 47 * e.g display CSS 48 */ 49 if ( ( ! stylesheetID || ( stylesheetID && ! document.querySelector( `head #${stylesheetID}` ) ) ) ) { 50 document.head.prepend( currentStylesheet ) 51 } else { 52 currentStylesheet.remove(); 53 } 54 } 55 } 56 } 57 58 window.lightspeedOptimizeFlat = function ( styleSheetElement ) { 59 if ( document.querySelectorAll( 'link[href*="thrive_flat.css"]' ).length > 1 ) { 60 /* disable this flat if we already have one */ 61 styleSheetElement.setAttribute( 'disabled', true ) 62 } else { 63 /* if this is the first one, make sure he's in head */ 64 if ( styleSheetElement.parentElement.tagName !== 'HEAD' ) { 65 document.head.append( styleSheetElement ) 66 } 67 } 68 }; 69MathJax = { 70 tex: { 71 inlineMath: [['$','$'],['\\(','\\)']], 72 processEscapes: true 73 }, 74 options: { 75 ignoreHtmlClass: 'tex2jax_ignore|editor-rich-text' 76 } 77};; 78/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 79"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.no
79deName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
79,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s}); 80; 81jQuery.uiBackCompat = true; 82; 83/*! jQuery UI - v1.14.2 - 2026-07-15 84* https://jqueryui.com 85* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js 86* Copyright OpenJS Foundation and other contributors; Licensed MIT */ 87!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";x.ui=x.ui||{};x.ui.version="1.14.2"; 88/*! 89 * jQuery UI Widget 1.14.2 90 * https://jqueryui.com 91 * 92 * Copyright OpenJS Foundation and other contributors 93 * Released under the MIT license. 94 * https://jquery.org/license 95 */var o,n,W,C,s,r,l,a,h,i,f=0,c=Array.prototype.hasOwnProperty,u=Array.prototype.slice;x.cleanData=(o=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");o(t)}),x.widget=function(t,i,e){var n,o,s,r,l={},a=t.split(".")[0];return"__proto__"===(t=t.split(".")[1])||"constructor"===t?x.error("Invalid widget name: "+t):(r=a+"-"+t,e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[r.toLowerCase()]=function(t){return!!x.data(t,r)},x[a]=x[a]||{},n=x[a][t],o=x[a][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}l[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},l,{constructor:o,namespace:a,widgetName:t,widgetFullName:r}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o)}
vendor: 16,216 bytes, lines 95-133
95,x.widget.extend=function(t){for(var e,i,n=u.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],c.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=u.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=f++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}}),x.widget;function E(t,e,i){return[parseFloat(t[0])*(h.test(t[0])?e/100:1),parseFloat(t[1])*(h.test(t[1])?i/100:1)]}function P(t,e){return parseInt(x.css(t,e),10)||0}function H(t){return null!=t&&t===t.window} 96/*! 97 * jQuery UI Position 1.14.2 98 * https://jqueryui.com 99 * 100 * Copyright OpenJS Foundation and other contributors 101 * Released under the MIT license. 102 * https://jquery.org/license 103 * 104 * https://api.jqueryui.com/position/ 105 */ 106W=Math.max,C=Math.abs,s=/left|center|right/,r=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,h=/%$/,i=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=H(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(c){var u,d,p,g,m,v,w,y,b,_,t,e;return c&&c.of?(v="string"==typeof(c=x.extend({},c)).of?x(document).find(c.of):x(c.of),w=x.position.getWithinInfo(c.within),y=x.position.getScrollInfo(w),b=(c.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:H(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(c.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(c[this]||"").split(" ");(i=1===i.length?s.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=s.test(i[0])?i[0]:"center",i[1]=r.test(i[1])?i[1]:"center",t=l.exec(i[0]),e=l.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],c[this]=[a.exec(i[0])[0],a.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===c.at[0]?m.left+=d:"center"===c.at[0]&&(m.left+=d/2),"bottom"===c.at[1]?m.top+=p:"center"===c.at[1]&&(m.top+=p/2),u=E(_.at,d,p),m.left+=u[0],m.top+=u[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=P(this,"marginLeft"),n=P(this,"marginTop"),o=l+e+P(this,"marginRight")+y.width,s=a+n+P(this,"marginBottom")+y.height,h=x.extend({},m),f=E(_.my,r.outerWidth(),r.outerHeight());"right"===c.my[0]?h.left-=l:"center"===c.my[0]&&(h.left-=l/2),"bottom"===c.my[1]?h.top-=a:"center"===c.my[1]&&(h.top-=a/2),h.left+=f[0],h.top+=f[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[u[0]+f[0],u[1]+f[1]],my:c.my,at:c.at,within:w,elem:r})}),c.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",c.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):i.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n<e.collisionWidth?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;o<e.collisionHeight?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}};var t,e; 107/*! 108 * jQuery UI :data 1.14.2 109 * https://jqueryui.com 110 * 111 * Copyright OpenJS Foundation and other contributors 112 * Released under the MIT license. 113 * https://jquery.org/license 114 */x.ui.position,x.extend(x.expr.pseudos,{data:x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}})}),x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}), 115/*! 116 * jQuery UI Focusable 1.14.2 117 * https://jqueryui.com 118 * 119 * Copyright OpenJS Foundation and other contributors 120 * Released under the MIT license. 121 * https://jquery.org/license 122 */ 123x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&"visible"===x(t).css("visibility"))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.ui.focusable,x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=x(this.element.prop("form")),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}}, 124/*! 125 * jQuery UI Legacy jQuery Core patches 1.14.2 126 * https://jqueryui.com 127 * 128 * Copyright OpenJS Foundation and other contributors 129 * Released under the MIT license. 130 * https://jquery.org/license 131 * 132 */ 133x.escapeSelector||(x.escapeSelector=function(t){return CSS.escape(t+"")}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+CSS.escape(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),x.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id
133)&&x(this).removeAttr("id")})}});x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}}});; 134/*! 135 * jQuery UI Accordion 1.14.2 136 * https://jqueryui.com 137 * 138 * Copyright OpenJS Foundation and other contributors 139 * Released under the MIT license. 140 * https://jquery.org/license 141 */ 142!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode","../unique-id","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.accordion",{version:"1.14.2",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(e){return e.find("> li > :first-child").add(e.find("> :not(li)").filter(function(e){return e%2==0}))},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=o(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():o()}},_createIcons:function(){var e,t=this.options.icons;t&&(e=o("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+t.header),e.prependTo(this.headers),e=this.active.children(".ui-accordion-header-icon"),this._removeClass(e,t.header)._addClass(e,null,t.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){"active"===e?this._activate(t):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t)&&this._createIcons())},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var t=o.ui.keyCode,i=this.headers.length,a=this.headers.index(e.target),s=!1;switch(e.keyCode){case t.RIGHT:case t.DOWN:s=this.headers[(a+1)%i];break;case t.LEFT:case t.UP:s=this.headers[(a-1+i)%i];break;case t.SPACE:case t.ENTER:this._eventHandler(e);break;case t.HOME:s=this.headers[0];break;case t.END:s=this.headers[i-1]}s&&(o(e.target).attr("tabIndex",-1),o(s).attr("tabIndex",0),o(s).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===o.ui.keyCode.UP&&e.ctrlKey&&o(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=o()):!1===e.active?this._activate(0):this.active.length&&!o.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=o()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var i,e=this.options,t=e.heightStyle,a=this.element.parent();this.active=this._findActive(e.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=o(this),t=e.uniqueId().attr("id"),i=e.next(),a=i.uniqueId().attr("id");e.attr("aria-controls",a),i.attr("aria-labelledby",t)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(e.event),"fill"===t?(i=a.height(),this.element.siblings(":visible").each(function(){var e=o(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=o(this).outerHeight(!0)}),this.headers.next().each(function(){o(this).height(Math.max(0,i-o(this).innerHeight()+o(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.headers.next().each(function(){var e=o(this).is(":visible");e||o(this).show(),i=Math.max(i,o(this).css("height","").height()),e||o(this).hide()}).height(i))},_activate:function(e){e=this._findActive(e)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,preventDefault:o.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):o()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&o.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var t=this.options,i=this.active,a=o(e.currentTarget),s=a[0]===i[0],n=s&&t.collapsible,h=n?o():a.next(),r=i.next(),r={oldHeader:i,oldPanel:r,newHeader:n?o():a,newPanel:h};e.preventDefault(),s&&!t.collapsible||!1===this._trigger("beforeActivate",e,r)||(t.active=!n&&this.headers.index(a),this.active=s?o():a,this._toggle(r),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),t.icons&&(h=i.children(".ui-accordion-header-icon"),this._removeClass(h,null,t.icons.activeHeader)._addClass(h,null,t.icons.header)),s)||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),t.icons&&(e=a.children(".ui-accordion-header-icon"),this._removeClass(e,null,t.icons.header)._addClass(e,null,t.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active"))},_toggle:function(e){var t=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=t,this.prevHide=i,this.options.animate?this._animate(t,i,e):(i.hide(),t.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),t.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):t.length&&this.headers.filter(function(){return 0===parseInt(o(this).attr("tabIndex"),10)}).attr("tabIndex",-1),t.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,i,t){function a(){n._toggleComplete(t)}var s,n=this,h=0,r=e.css("box-sizing"),o=e.length&&(!i.length||e.index()<i.index()),d=this.options.animate||{},o=o&&d.down||d,c=(c="string"==typeof o?o:c)||o.easing||d.easing,l=(l="number"==typeof o?o:l)||o.duration||d.duration;return i.length?e.length?(s=e.show().outerHeight(),i.animate(this.hideProps,{duration:l,easing:c,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:l,easing:c,complete:a,step:function(e,t){t.now=Math.round(e),"height"!==t.prop?"content-box"===r&&(h+=t.now):"content"!==n.options.heightStyle&&(t.now=Math.round(s-i.outerHeight()-h),h=0)}})):i.animate(this.hideProps,l,c,a):e.animate(this.showProps,l,c,a)},_toggleComplete:function(e){var t=e.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),this._trigger("activate",null,e)}})});; 143jQuery(document).ready(function(){window.mbt_email_updates_submit=function(e){var e=jQuery(e);return e.find('input[type="submit"]').attr("disabled","disabled"),e.find(".mbt-email").attr("disabled","disabled"),jQuery.post(ajaxurl,{action:"mbt_email_updates_submit",email:e.find(".mbt-email").val(),post_id:e.find(".mbt-postid").val()},function(t){e.html('<div class="mbt-book-email-updates-message">'+t+"</div>")}),!1},window.mbt_email_updates_mailerlite_submit=function(e){var e=jQuery(e);return e.find('input[type="submit"]').attr("disabled","disabled"),e.find(".mbt-email").attr("disabled","disabled"),jQuery.post(ajaxurl,{action:"mbt_email_updates_mailerlite_submit",email:e.find(".mbt-email").val(),post_id:e.find(".mbt-postid").val()},function(t){e.html('<div class="mbt-book-email-updates-message">'+t+"</div>")}),!1},jQuery(".mbt-display-mode-landingpage .mbt-book-menu").length&&(jQuery(window).scroll(function(){var t=jQuery(window).scrollTop();t==0?jQuery(".mbt-book-menu").removeClass("mbt-book-menu-overlap"):jQuery(".mbt-book-menu").addClass("mbt-book-menu-overlap")}),jQuery(".mbt-book-menu-button").click(function(){jQuery(".mbt-book-menu-sections").toggleClass("mbt-book-menu-expanded")}),jQuery(document).click(function(e){e.target!=jQuery(".mbt-book-menu-button")[0]&&jQuery(".mbt-book-menu-sections").removeClass("mbt-book-menu-expanded")}),jQuery(".mbt-book-menu-sections a, .mbt-book-purchase-button").click(function(){var e=jQuery(this.hash),e=e.length?e:jQuery("[name="+this.hash.slice(1)+"]");if(e.length)return jQuery("html, body").stop().animate({scrollTop:e.offset().top-jQuery(".mbt-book-menu-container").height()-jQuery("#wpadminbar").height()},1e3),!1})),jQuery(".mbt-display-mode-singlecolumn").length&&jQuery(".mbt-book-menu-sections a, .mbt-book-purchase-button").click(function(){var e=jQuery(this.hash),e=e.length?e:jQuery("[name="+this.hash.slice(1)+"]");if(e.length)return jQuery("html, body").stop().animate({scrollTop:jQuery(".mbt-book-purchase-section").offset().top-jQuery("#wpadminbar").height()-100},1e3),!1})}); 144jQuery(function(e){e("header .genesis-nav-menu").addClass("responsive-menu").before('<div id="responsive-menu-icon"></div>'),e("#responsive-menu-icon").click(function(){e("header .genesis-nav-menu").slideToggle()}),e(window).resize(function(){window.innerWidth>768&&e("header .genesis-nav-menu").removeAttr("style")})}); 145/*! For license information please see libs-frontend.min.js.LICENSE.txt */ 146(()=>{var t={155:()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}window.ClipboardJS=function(){var e={686:function(e,n,r){"use strict";r.d(n,{default:function(){return S}});var i=r(279),o=r.n(i),a=r(370),s=r.n(a),l=r(817),u=r.n(l);function c(t){try{return document.execCommand(t)}catch(t){return!1}}var p=function(t){var e=u()(t);return c("cut"),e},f=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var r=u()(n);return c("copy"),n.remove(),r},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=f(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=f(t.value,e):(n=u()(t),c("copy")),n};function d(e){return d="function"==typeof Symbol&&"symbol"==t(Symbol.iterator)?function(e){return t(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},d(e)}function y(e){return y="function"==typeof Symbol&&"symbol"==t(Symbol.iterator)?function(e){return t(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},y(e)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e){return g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},g(t,e)}function m(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function x(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(o,t);var e,n,r,i=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b(t);if(e){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}(o);function o(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(n=i.call(this)).resolveOptions(e),n.listenClick(t),n}return e=o,n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===y(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=s()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,i=t.target,o=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==d(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?h(o,{container:r}):i?"cut"===n?p(i):h(i,{container:r}):void 0}({action:n,container:this.container,target:this.target(e),text:this.text(e)});
vendor: 3,308 bytes, line 146
146this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return x("action",t)}},{key:"defaultTarget",value:function(t){var e=x("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return x("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return h(t,e)}},{key:"cut",value:function(t){return p(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],n&&v(e.prototype,n),r&&v(e,r),o}(o()),S=T},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var r=n(828);function i(t,e,n,r,i){var a=o.apply(this,arguments);return t.addEventListener(n,a,i),{destroy:function(){t.removeEventListener(n,a,i)}}}function o(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=function(t,e,n,r,o){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var r=n(879),i=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(r.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(r.string(t))return function(t,e,n){return i(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}
vendor: 18,736 bytes, line 146
146else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var o=0,a=r.length;o<a;o++)r[o].fn!==e&&r[o].fn._!==e&&i.push(r[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},n={};function r(t){if(n[t])return n[t].exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}return r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r(686)}().default},285:(t,e,n)=>{var r;function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}!function(o,a,s,l){"use strict";function u(t,e,n){return setTimeout(d(t,n),e)}function c(t,e,n){return!!Array.isArray(t)&&(p(t,n[e],n),!0)}function p(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==l)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function f(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),t.apply(this,arguments)}}function h(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&<(r,n)}function d(t,e){return function(){return t.apply(e,arguments)}}function y(t,e){return i(t)==pt?t.apply(e&&e[0]||l,e):t}function v(t,e){return t===l?e:t}function g(t,e,n){p(T(e),(function(e){t.addEventListener(e,n,!1)}))}function m(t,e,n){p(T(e),(function(e){t.removeEventListener(e,n,!1)}))}function b(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function x(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function S(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function w(t){return Array.prototype.slice.call(t,0)}function P(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];S(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function E(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<ut.length;){if((r=(n=ut[o])?n+i:e)in t)return r;o++}return l}function C(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||o}function V(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){y(t.options.enable,[t])&&n.handler(e)},this.init()}function A(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&Pt&&r-i==0,a=e&(Ct|Vt)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=O(e)),i>1&&!n.firstMultiple?n.firstMultiple=O(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=L(r);e.timeStamp=dt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=R(s,l),e.distance=j(s,l),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Pt&&o.eventType!==Ct||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=F(e.deltaX,e.deltaY);var u=N(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=ht(u.x)>ht(u.y)?u.x:u.y,e.scale=a?function(t,e){return j(e[0],e[1],Mt)/j(t[0],t[1],Mt)}(a.pointers,r):1,e.rotation=a?function(t,e){return R(e[1],e[0],Mt)+R(t[1],t[0],Mt)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,k(n,e);var c=t.element;b(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function k(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!=Vt&&(s>wt||a.velocity===l)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,p=N(s,u,c);r=p.x,i=p.y,n=ht(p.x)>ht(p.y)?p.x:p.y,o=F(u,c),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}function O(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:ft(t.pointers[n].clientX),clientY:ft(t.pointers[n].clientY)},n++;return{timeStamp:dt(),pointers:e,center:L(e),deltaX:t.deltaX,deltaY:t.deltaY}}function L(t){var e=t.length;if(1===e)return{x:ft(t[0].clientX),y:ft(t[0].clientY)};for(var n=0,r=0,i=0;e>i;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:ft(n/e),y:ft(r/e)}}function N(t,e,n){return{x:e/t||0,y:n/t||0}}function F(t,e){return t===e?At:ht(t)>=ht(e)?0>t?kt:Ot:0>e?Lt:Nt}function j(t,e,n){n||(n=It);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function R(t,e,n){n||(n=It);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function I(){this.evEl=zt,this.evWin=qt,this.pressed=!1,V.apply(this,arguments)}function M(){this.evEl=Xt,this.evWin=Yt,V.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function H(){this.evTarget=$t,this.evWin=Bt,this.started=!1,V.apply(this,arguments)}function z(t,e){var n=w(t.touches),r=w(t.changedTouches);return e&(Ct|Vt)&&(n=P(n.concat(r),"identifier",!0)),[n,r]}function q(){this.evTarget=Ut,this.targetIds={},V.apply(this,arguments)}function D(t,e){var n=w(t.touches),r=this.targetIds;if(e&(Pt|Et)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=w(t.changedTouches),s=[],l=this.target;if(o=n.filter((function(t){return b(t.target,l)})),e===Pt)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),e&(Ct|Vt)&&delete r[a[i].identifier],i++;return s.length?[P(o.concat(s),"identifier",!0),s]:void 0}function _(){V.apply(this,arguments);var t=d(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new I(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function X(t,e){t&Pt?(this.primaryTouch=e.changedPointers[0].identifier,Y.call(this,e)):t&(Ct|Vt)&&Y.call(this,e)}function Y(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),Qt)}}function W(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(Zt>=o&&Zt>=a)return!0}return!1}function $(t,e){this.manager=t,this.set(e)}function B(t){this.options=lt({},this.defaults,t||{}),this.id=gt++,this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=se,this.simultaneous={},this.requireFail=[]}function G(t){return t&fe?"cancel":t&ce?"end":t&ue?"move":t&le?"start":""}function U(t){return t==Nt?"down":t==Lt?"up":t==kt?"left":t==Ot?"right":""}function Q(t,e){var n=e.manager;return n?n.get(t):t}function Z(){B.apply(this,arguments)}function J(){Z.apply(this,arguments),this.pX=null,this.pY=null}function K(){Z.apply(this,arguments)}function tt(){B.apply(this,arguments),this._timer=null,this._input=null}function et(){Z.apply(this,arguments)}function nt(){Z.apply(this,arguments)}function rt(){B.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function it(t,e){return(e=e||{}).recognizers=v(e.recognizers,it.defaults.preset),new ot(t,e)}function ot(t,e){this.options=lt({},it.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){return new(t.options.inputClass||(bt?M:xt?q:mt?_:I))(t,A)}(this),this.touchAction=new $(this,this.options.touchAction),at(this,!0),p(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function at(t,e){var n,r=t.element;r.style&&(p(t.options.cssProps,(function(i,o){n=E(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}function st(t,e){var n=a.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var lt,ut=["","webkit","Moz","MS","ms","o"],ct=a.createElement("div"),pt="function",ft=Math.round,ht=Math.abs,dt=Date.now;lt="function"!=typeof Object.assign?function(t){if(t===l||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==l&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var yt=f((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===l)&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),vt=f((function(t,e){return yt(t,e,!0)}),"merge","Use `assign`."),gt=1,mt="ontouchstart"in o,bt=E(o,"PointerEvent")!==l,xt=mt&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Tt="touch",St="mouse",wt=25,Pt=1,Et=2,Ct=4,Vt=8,At=1,kt=2,Ot=4,Lt=8,Nt=16,Ft=kt|Ot,jt=Lt|Nt,Rt=Ft|jt,It=["x","y"],Mt=["clientX","clientY"];V.prototype={handler:function(){},init:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(C(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(C(this.element),this.evWin,this.domHandler)}};var Ht={mousedown:Pt,mousemove:Et,mouseup:Ct},zt="mousedown",qt="mousemove mouseup";h(I,V,{handler:function(t){var e=Ht[t.type];e&Pt&&0===t.button&&(this.pressed=!0),e&Et&&1!==t.which&&(e=Ct),this.pressed&&(e&Ct&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:St,srcEvent:t}))}});var Dt={pointerdown:Pt,pointermove:Et,pointerup:Ct,pointercancel:Vt,pointerout:Vt},_t={2:Tt,3:"pen",4:St,5:"kinect"},Xt="pointerdown",Yt="pointermove pointerup pointercancel";o.MSPointerEvent&&!o.PointerEvent&&(Xt="MSPointerDown",Yt="MSPointerMove MSPointerUp MSPointerCancel"),h(M,V,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=Dt[r],o=_t[t.pointerType]||t.pointerType,a=o==Tt,s=S(e,t.pointerId,"pointerId");i&Pt&&(0===t.button||a)?0>s&&(e.push(t),s=e.length-1):i&(Ct|Vt)&&(n=!0),0>s||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var Wt={touchstart:Pt,touchmove:Et,touchend:Ct,touchcancel:Vt},$t="touchstart",Bt="touchstart touchmove touchend touchcancel";h(H,V,{handler:function(t){var e=Wt[t.type];if(e===Pt&&(this.started=!0),this.started){var n=z.call(this,t,e);e&(Ct|Vt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Tt,srcEvent:t})}}});var Gt={touchstart:Pt,touchmove:Et,touchend:Ct,touchcancel:Vt},Ut="touchstart touchmove touchend touchcancel";h(q,V,{handler:function(t){var e=Gt[t.type],n=D.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Tt,srcEvent:t})}});var Qt=2500,Zt=25;h(_,V,{handler:function(t,e,n){var r=n.pointerType==Tt,i=n.pointerType==St;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)X.call(this,e,n);else if(i&&W.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Jt=E(ct.style,"touchAction"),Kt=Jt!==l,te="compute",ee="auto",ne="manipulation",re="none",ie="pan-x",oe="pan-y",ae=function(){if(!Kt)return!1;var t={},e=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||o.CSS.supports("touch-action",n)})),t}();$.prototype={set:function(t){t==te&&(t=this.compute()),Kt&&this.manager.element.style&&ae[t]&&(this.manager.element.style[Jt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return p(this.manager.recognizers,(function(e){y(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(x(t,re))return re;var e=x(t,ie),n=x(t,oe);return e&&n?re:e||n?e?ie:oe:x(t,ne)?ne:ee}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(!this.manager.session.prevented){var r=this.actions,i=x(r,re)&&!ae[re],o=x(r,oe)&&!ae[oe],a=x(r,ie)&&!ae[ie];if(i){var s=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(s&&l&&u)return}return a&&o?void 0:i||o&&n&Ft||a&&n&jt?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var se=1,le=2,ue=4,ce=8,pe=ce,fe=16,he=32;B.prototype={defaults:{},set:function(t){return lt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(c(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Q(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return c(t,"dropRecognizeWith",this)||(t=Q(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(c(t,"requireFailure",this))return this;var e=this.requireFail;return-1===S(e,t=Q(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(c(t,"dropRequireFailure",this))return this;t=Q(t,this);var e=S(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,r=this.state;ce>r&&e(n.options.event+G(r)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),r>=ce&&e(n.options.event+G(r))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=he)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(he|se)))return!1;t++}return!0},recognize:function(t){var e=lt({},t);return y(this.options.enable,[this,e])?(this.state&(pe|fe|he)&&(this.state=se),this.state=this.process(e),void(this.state&(le|ue|ce|fe)&&this.tryEmit(e))):(this.reset(),void(this.state=he))},process:function(t){},getTouchAction:function(){},reset:function(){}},h(Z,B,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=e&(le|ue),i=this.attrTest(t);return r&&(n&Vt||!i)?e|fe:r||i?n&Ct?e|ce:e&le?e|ue:le:he}}),h(J,Z,{defaults:{event:"pan",threshold:10,pointers:1,direction:Rt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Ft&&e.push(oe),t&jt&&e.push(ie),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(e.direction&Ft?(i=0===o?At:0>o?kt:Ot,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?At:0>a?Lt:Nt,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return Z.prototype.attrTest.call(this,t)&&(this.state&le||!(this.state&le)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=U(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),h(K,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[re]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&le)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),h(tt,B,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ee]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(Ct|Vt)&&!i)this.reset();else if(t.eventType&Pt)this.reset(),this._timer=u((function(){this.state=pe,this.tryEmit()}),e.time,this);else if(t.eventType&Ct)return pe;return he},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===pe&&(t&&t.eventType&Ct?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=dt(),this.manager.emit(this.options.event,this._input)))}}),h(et,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[re]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&le)}}),h(nt,Z,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ft|jt,pointers:1},getTouchAction:function(){return J.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Ft|jt)?e=t.overallVelocity:n&Ft?e=t.overallVelocityX:n&jt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&ht(e)>this.options.velocity&&t.eventType&Ct},emit:function(t){var e=U(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),h(rt,B,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ne]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&Pt&&0===this.count)return this.failTimeout();if(r&&i&&n){if(t.eventType!=Ct)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||j(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=u((function(){this.state=pe,this.tryEmit()}
146),e.interval,this),le):pe}return he},failTimeout:function(){return this._timer=u((function(){this.state=he}),this.options.interval,this),he},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==pe&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),it.VERSION="2.0.8",it.defaults={domEvents:!1,touchAction:te,enable:!0,inputTarget:null,inputClass:null,preset:[[et,{enable:!1}],[K,{enable:!1},["rotate"]],[nt,{direction:Ft}],[J,{direction:Ft},["swipe"]],[rt],[rt,{event:"doubletap",taps:2},["tap"]],[tt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ot.prototype={set:function(t){return lt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,r=this.recognizers,i=e.curRecognizer;(!i||i&&i.state&pe)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&n.state&(le|ue|ce)&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof B)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(c(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(c(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=S(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==l&&e!==l){var n=this.handlers;return p(T(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==l){var n=this.handlers;return p(T(t),(function(t){e?n[t]&&n[t].splice(S(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&st(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&at(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},lt(it,{INPUT_START:Pt,INPUT_MOVE:Et,INPUT_END:Ct,INPUT_CANCEL:Vt,STATE_POSSIBLE:se,STATE_BEGAN:le,STATE_CHANGED:ue,STATE_ENDED:ce,STATE_RECOGNIZED:pe,STATE_CANCELLED:fe,STATE_FAILED:he,DIRECTION_NONE:At,DIRECTION_LEFT:kt,DIRECTION_RIGHT:Ot,DIRECTION_UP:Lt,DIRECTION_DOWN:Nt,DIRECTION_HORIZONTAL:Ft,DIRECTION_VERTICAL:jt,DIRECTION_ALL:Rt,Manager:ot,Input:V,TouchAction:$,TouchInput:q,MouseInput:I,PointerEventInput:M,TouchMouseInput:_,SingleTouchInput:H,Recognizer:B,AttrRecognizer:Z,Tap:rt,Pan:J,Swipe:nt,Pinch:K,Rotate:et,Press:tt,on:g,off:m,each:p,merge:vt,extend:yt,assign:lt,inherit:h,bindFn:d,prefixed:E}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=it,void 0===(r=function(){return it}.call(e,n,e,t))||(t.exports=r)}(window,document)},275:()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e;window.Toasts=window.Toasts||{},jQuery,e=jQuery?jQuery.Velocity:Velocity,window.Toasts.init=function(n,r,i,o,a){i=i||"",a=a||"top";var s=document.getElementById("tvd-toast-container-"+a);null===s&&((s=document.createElement("div")).id="tvd-toast-container-"+a,s.className="tvd-toast-container",document.body.appendChild(s));var l=function(n){var r=document.createElement("div");if(r.classList.add("tvd-toast"),i)for(var a=i.split(" "),s=0,l=a.length;s<l;s++)r.classList.add(a[s]);("object"==("undefined"==typeof HTMLElement?"undefined":t(HTMLElement))?n instanceof HTMLElement:n&&"object"==t(n)&&null!==n&&1===n.nodeType&&"string"==typeof n.nodeName)?r.appendChild(n):n instanceof jQuery?r.appendChild(n[0]):r.innerHTML=n;var u=new Hammer(r,{prevent_default:!1});return u.on("pan",(function(t){var n=t.deltaX;r.classList.contains("panning")||r.classList.add("panning");var i=1-Math.abs(n/80);i<0&&(i=0),e(r,{left:n,opacity:i},{duration:50,queue:!1,easing:"easeOutQuad"})})),u.on("panend",(function(t){var n=t.deltaX;Math.abs(n)>80?e(r,{marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof o&&o(),r.parentNode.removeChild(r)}}):(r.classList.remove("panning"),e(r,{left:0,opacity:1},{duration:300,easing:"easeOutExpo",queue:!1}))})),r}(n);n&&s.appendChild(l),l.style.top="top"===a?"-35px":"35px",l.style.opacity=0;var u="top"===a?"-35px":"35px";e(l,{top:"0px",opacity:1},{duration:300,easing:"easeOutCubic",queue:!1});var c=r,p=setInterval((function(){null===l.parentNode&&window.clearInterval(p),l.classList.contains("panning")||(c-=20),c<=0&&(e(l,{opacity:0,top:u},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof o&&o(),this[0].parentNode.removeChild(this[0])}}),window.clearInterval(p))}),20)}},130:(t,e,n)=>{var r,i,o;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}t=n.nmd(t),jQuery.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(function(t){function e(t){var e=t.length,r=n.type(t);return"function"!==r&&!n.isWindow(t)&&(!(1!==t.nodeType||!e)||"array"===r||0===e||"number"==typeof e&&e>0&&e-1 in t)}if(!t.jQuery){var n=function t(e,n){return new t.fn.init(e,n)};n.isWindow=function(t){return null!=t&&t==t.window},n.type=function(t){return null==t?t+"":"object"==a(t)||"function"==typeof t?i[s.call(t)]||"object":a(t)},n.isArray=Array.isArray||function(t){return"array"===n.type(t)},n.isPlainObject=function(t){var e;if(!t||"object"!==n.type(t)||t.nodeType||n.isWindow(t))return!1;try{if(t.constructor&&!o.call(t,"constructor")&&!o.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||o.call(t,e)},n.each=function(t,n,r){var i=0,o=t.length,a=e(t);if(r){if(a)for(;o>i&&!1!==n.apply(t[i],r);i++);else for(i in t)if(!1===n.apply(t[i],r))break}else if(a)for(;o>i&&!1!==n.call(t[i],i,t[i]);i++);else for(i in t)if(!1===n.call(t[i],i,t[i]))break;return t}
vendor: 32,980 bytes, line 146
146,n.data=function(t,e,i){if(void 0===i){var o=(a=t[n.expando])&&r[a];if(void 0===e)return o;if(o&&e in o)return o[e]}else if(void 0!==e){var a=t[n.expando]||(t[n.expando]=++n.uuid);return r[a]=r[a]||{},r[a][e]=i,i}},n.removeData=function(t,e){var i=t[n.expando],o=i&&r[i];o&&n.each(e,(function(t,e){delete o[e]}))},n.extend=function(){var t,e,r,i,o,s,l=arguments[0]||{},u=1,c=arguments.length,p=!1;for("boolean"==typeof l&&(p=l,l=arguments[u]||{},u++),"object"!=a(l)&&"function"!==n.type(l)&&(l={}),u===c&&(l=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(i in o)t=l[i],l!==(r=o[i])&&(p&&r&&(n.isPlainObject(r)||(e=n.isArray(r)))?(e?(e=!1,s=t&&n.isArray(t)?t:[]):s=t&&n.isPlainObject(t)?t:{},l[i]=n.extend(p,s,r)):void 0!==r&&(l[i]=r));return l},n.queue=function(t,r,i){if(t){r=(r||"fx")+"queue";var o=n.data(t,r);return i?(!o||n.isArray(i)?o=n.data(t,r,function(t,n){var r=[];return null!=t&&(e(Object(t))?function(t,e){for(var n=+e.length,r=0,i=t.length;n>r;)t[i++]=e[r++];if(n!=n)for(;void 0!==e[r];)t[i++]=e[r++];t.length=i}(r,"string"==typeof t?[t]:t):[].push.call(r,t)),r}(i)):o.push(i),o):o||[]}},n.dequeue=function(t,e){n.each(t.nodeType?[t]:t,(function(t,r){e=e||"fx";var i=n.queue(r,e),o=i.shift();"inprogress"===o&&(o=i.shift()),o&&("fx"===e&&i.unshift("inprogress"),o.call(r,(function(){n.dequeue(r,e)})))}))},n.fn=n.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function t(){for(var t=this.offsetParent||document;t&&"html"===!t.nodeType.toLowerCase&&"static"===t.style.position;)t=t.offsetParent;return t||document}var e=this[0],t=t.apply(e),r=this.offset(),i=/^(?:body|html)$/i.test(t.nodeName)?{top:0,left:0}:n(t).offset();return r.top-=parseFloat(e.style.marginTop)||0,r.left-=parseFloat(e.style.marginLeft)||0,t.style&&(i.top+=parseFloat(t.style.borderTopWidth)||0,i.left+=parseFloat(t.style.borderLeftWidth)||0),{top:r.top-i.top,left:r.left-i.left}}};var r={};n.expando="velocity"+(new Date).getTime(),n.uuid=0;for(var i={},o=i.hasOwnProperty,s=i.toString,l="Boolean Number String Function Array Date RegExp Object Error".split(" "),u=0;u<l.length;u++)i["[object "+l[u]+"]"]=l[u].toLowerCase();n.fn.init.prototype=n.fn,t.Velocity={Utilities:n}}}(window),o=function(){return function(t,e,n,r){function i(t){return y.isWrapped(t)?t=[].slice.call(t):y.isNode(t)&&(t=[t]),t}function o(t){var e=f.data(t,"velocity");return null===e?r:e}function s(t){return function(e){return Math.round(e*t)*(1/t)}}function l(t,n,r,i){function o(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,n){return((o(e,n)*t+a(e,n))*t+s(e))*t}function u(t,e,n){return 3*o(e,n)*t*t+2*a(e,n)*t+s(e)}function c(e,n){for(var i=0;y>i;++i){var o=u(n,t,r);if(0===o)return n;n-=(l(n,t,r)-e)/o}return n}function p(){for(var e=0;b>e;++e)w[e]=l(e*x,t,r)}function f(e,n,i){var o,a,s=0;do{(o=l(a=n+(i-n)/2,t,r)-e)>0?i=a:n=a}while(Math.abs(o)>g&&++s<m);return a}function h(e){for(var n=0,i=1,o=b-1;i!=o&&w[i]<=e;++i)n+=x;--i;var a=n+(e-w[i])/(w[i+1]-w[i])*x,s=u(a,t,r);return s>=v?c(e,a):0==s?a:f(e,n,n+x)}function d(){P=!0,(t!=n||r!=i)&&p()}var y=4,v=.001,g=1e-7,m=10,b=11,x=1/(b-1),T="Float32Array"in e;if(4!==arguments.length)return!1;for(var S=0;4>S;++S)if("number"!=typeof arguments[S]||isNaN(arguments[S])||!isFinite(arguments[S]))return!1;t=Math.min(t,1),r=Math.min(r,1),t=Math.max(t,0),r=Math.max(r,0);var w=T?new Float32Array(b):new Array(b),P=!1,E=function(e){return P||d(),t===n&&r===i?e:0===e?0:1===e?1:l(h(e),n,i)};E.getControlPoints=function(){return[{x:t,y:n},{x:r,y:i}]};var C="generateBezier("+[t,n,r,i]+")";return E.toString=function(){return C},E}function u(t,e){var n=t;return y.isString(t)?b.Easings[t]||(n=!1):n=y.isArray(t)&&1===t.length?s.apply(null,t):y.isArray(t)&&2===t.length?x.apply(null,t.concat([e])):!(!y.isArray(t)||4!==t.length)&&l.apply(null,t),!1===n&&(n=b.Easings[b.defaults.easing]?b.defaults.easing:m),n}function c(t){if(t){var e=(new Date).getTime(),n=b.State.calls.length;n>1e4&&(b.State.calls=function(t){for(var e=-1,n=t?t.length:0,r=[];++e<n;){var i=t[e];i&&r.push(i)}return r}(b.State.calls));for(var i=0;n>i;i++)if(b.State.calls[i]){var a=b.State.calls[i],s=a[0],l=a[2],u=a[3],h=!!u,d=null;u||(u=b.State.calls[i][3]=e-16);for(var v=Math.min((e-u)/l.duration,1),g=0,m=s.length;m>g;g++){var x=s[g],S=x.element;if(o(S)){var P=!1;for(var E in l.display!==r&&null!==l.display&&"none"!==l.display&&("flex"===l.display&&f.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],(function(t,e){T.setPropertyValue(S,"display",e)})),T.setPropertyValue(S,"display",l.display)),l.visibility!==r&&"hidden"!==l.visibility&&T.setPropertyValue(S,"visibility",l.visibility),x)if("element"!==E){var C,V=x[E],A=y.isString(V.easing)?b.Easings[V.easing]:V.easing;if(1===v)C=V.endValue;else{var k=V.endValue-V.startValue;if(C=V.startValue+k*A(v,l,k),!h&&C===V.currentValue)continue}if(V.currentValue=C,"tween"===E)d=C;else{if(T.Hooks.registered[E]){var O=T.Hooks.getRoot(E),L=o(S).rootPropertyValueCache[O];L&&(V.rootPropertyValue=L)}var N=T.setPropertyValue(S,E,V.currentValue+(0===parseFloat(C)?"":V.unitType),V.rootPropertyValue,V.scrollData);T.Hooks.registered[E]&&(o(S).rootPropertyValueCache[O]=T.Normalizations.registered[O]?T.Normalizations.registered[O]("extract",null,N[1]):N[1]),"transform"===N[0]&&(P=!0)}}l.mobileHA&&o(S).transformCache.translate3d===r&&(o(S).transformCache.translate3d="(0px, 0px, 0px)",P=!0),P&&T.flushTransformCache(S)}}l.display!==r&&"none"!==l.display&&(b.State.calls[i][2].display=!1),l.visibility!==r&&"hidden"!==l.visibility&&(b.State.calls[i][2].visibility=!1),l.progress&&l.progress.call(a[1],a[1],v,Math.max(0,u+l.duration-e),u,d),1===v&&p(i)}}b.State.isTicking&&w(c)}function p(t,e){if(!b.State.calls[t])return!1;for(var n=b.State.calls[t][0],i=b.State.calls[t][1],a=b.State.calls[t][2],s=b.State.calls[t][4],l=!1,u=0,c=n.length;c>u;u++){var p=n[u].element;if(e||a.loop||("none"===a.display&&T.setPropertyValue(p,"display",a.display),"hidden"===a.visibility&&T.setPropertyValue(p,"visibility",a.visibility)),!0!==a.loop&&(f.queue(p)[1]===r||!/\.velocityQueueEntryFlag/i.test(f.queue(p)[1]))&&o(p)){o(p).isAnimating=!1,o(p).rootPropertyValueCache={};var h=!1;f.each(T.Lists.transforms3D,(function(t,e){var n=/^scale/.test(e)?1:0,i=o(p).transformCache[e];o(p).transformCache[e]!==r&&new RegExp("^\\("+n+"[^.]").test(i)&&(h=!0,delete o(p).transformCache[e])})),a.mobileHA&&(h=!0,delete o(p).transformCache.translate3d),h&&T.flushTransformCache(p),T.Values.removeClass(p,"velocity-animating")}if(!e&&a.complete&&!a.loop&&u===c-1)try{a.complete.call(i,i)}catch(t){setTimeout((function(){throw t}),1)}s&&!0!==a.loop&&s(i),o(p)&&!0===a.loop&&!e&&(f.each(o(p).tweensContainer,(function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360),/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)})),b(p,"reverse",{loop:!0,delay:a.delay})),!1!==a.queue&&f.dequeue(p,a.queue)}b.State.calls[t]=!1;for(var d=0,y=b.State.calls.length;y>d;d++)if(!1!==b.State.calls[d]){l=!0;break}!1===l&&(b.State.isTicking=!1,delete b.State.calls,b.State.calls=[])}var f,h=function(){if(n.documentMode)return n.documentMode;for(var t=7;t>4;t--){var e=n.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]><span></span><![endif]--\x3e",e.getElementsByTagName("span").length)return e=null,t}return r}(),d=function(){var t=0;return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(e){var n,r=(new Date).getTime();return n=Math.max(0,16-(r-t)),t=r+n,setTimeout((function(){e(r+n)}),n)}}(),y={isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isNodeList:function(t){return"object"==a(t)&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&t.length!==r&&(0===t.length||"object"==a(t[0])&&t[0].nodeType>0)},isWrapped:function(t){return t&&(t.jquery||e.Zepto&&e.Zepto.zepto.isZ(t))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)return!1;return!0}},v=!1;if(t.fn&&t.fn.jquery?(f=t,v=!0):f=e.Velocity.Utilities,8>=h&&!v)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(7>=h)){var g=400,m="swing",b={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:e.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:f,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:g,easing:m,begin:r,complete:r,progress:r,display:r,visibility:r,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){f.data(t,"velocity",{isSVG:y.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};e.pageYOffset!==r?(b.State.scrollAnchor=e,b.State.scrollPropertyLeft="pageXOffset",b.State.scrollPropertyTop="pageYOffset"):(b.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,b.State.scrollPropertyLeft="scrollLeft",b.State.scrollPropertyTop="scrollTop");var x=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,n,r){var i={x:e.x+r.dx*n,v:e.v+r.dv*n,tension:e.tension,friction:e.friction};return{dx:i.v,dv:t(i)}}function n(n,r){var i={dx:n.v,dv:t(n)},o=e(n,.5*r,i),a=e(n,.5*r,o),s=e(n,r,a),l=1/6*(i.dx+2*(o.dx+a.dx)+s.dx),u=1/6*(i.dv+2*(o.dv+a.dv)+s.dv);return n.x=n.x+l*r,n.v=n.v+u*r,n}return function t(e,r,i){var o,a,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,p=1e-4;for(e=parseFloat(e)||500,r=parseFloat(r)||20,i=i||null,l.tension=e,l.friction=r,a=(o=null!==i)?(c=t(e,r))/i*.016:.016;s=n(s||l,a),u.push(1+s.x),c+=16,Math.abs(s.x)>p&&Math.abs(s.v)>p;);return o?function(t){return u[t*(u.length-1)|0]}:c}}();b.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},f.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],(function(t,e){b.Easings[e[0]]=l.apply(null,e[1])}));var T=b.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t<T.Lists.colors.length;t++){var e="color"===T.Lists.colors[t]?"0 0 0 1":"255 255 255 1";T.Hooks.templates[T.Lists.colors[t]]=["Red Green Blue Alpha",e]}var n,r,i;if(h)for(n in T.Hooks.templates){i=(r=T.Hooks.templates[n])[0].split(" ");var o=r[1].match(T.RegEx.valueSplit);"Color"===i[0]&&(i.push(i.shift()),o.push(o.shift()),T.Hooks.templates[n]=[i.join(" "),o.join(" ")])}for(n in T.Hooks.templates)for(var t in i=(r=T.Hooks.templates[n])[0].split(" ")){var a=n+i[t],s=t;T.Hooks.registered[a]=[n,s]}},getRoot:function(t){var e=T.Hooks.registered[t];return e?e[0]:t},cleanRootPropertyValue:function(t,e){return T.RegEx.valueUnwrap.test(e)&&(e=e.match(T.RegEx.valueUnwrap)[1]),T.Values.isCSSNullValue(e)&&(e=T.Hooks.templates[t][1]),e},extractValue:function(t,e){var n=T.Hooks.registered[t];if(n){var r=n[0],i=n[1];return(e=T.Hooks.cleanRootPropertyValue(r,e)).toString().match(T.RegEx.valueSplit)[i]}return e},injectValue:function(t,e,n){var r=T.Hooks.registered[t];if(r){var i,o=r[0],a=r[1];return(i=(n=T.Hooks.cleanRootPropertyValue(o,n)).toString().match(T.RegEx.valueSplit))[a]=e,i.join(" ")}return n}},Normalizations:{registered:{clip:function(t,e,n){switch(t){case"name":return"clip";case"extract":var r;return T.RegEx.wrappedValueAlreadyExtracted.test(n)?n:(r=n.toString().match(T.RegEx.valueUnwrap))?r[1].replace(/,(\s+)?/g," "):n;case"inject":return"rect("+n+")"}},blur:function(t,e,n){switch(t){case"name":return b.State.isFirefox?"filter":"-webkit-filter";case"extract":var r=parseFloat(n);if(!r&&0!==r){var i=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);r=i?i[1]:0}return r;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(t,e,n){if(8>=h)switch(t){case"name":return"filter";case"extract":var r=n.toString().match(/alpha\(opacity=(.*)\)/i);return r?r[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(t){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){9>=h||b.State.isGingerbread||(T.Lists.transformsBase=T.Lists.transformsBase.concat(T.Lists.transforms3D));for(var t=0;t<T.Lists.transformsBase.length;t++)!function(){var e=T.Lists.transformsBase[t];T.Normalizations.registered[e]=function(t,n,i){switch(t){case"name":return"transform";case"extract":return o(n)===r||o(n).transformCache[e]===r?/^scale/i.test(e)?1:0:o(n).transformCache[e].replace(/[()]/g,"");case"inject":var a=!1;switch(e.substr(0,e.length-1)){case"translate":a=!/(%|px|em|rem|vw|vh|\d)$/i.test(i);break;case"scal":case"scale":b.State.isAndroid&&o(n).transformCache[e]===r&&1>i&&(i=1),a=!/(\d)$/i.test(i);break;case"skew":case"rotate":a=!/(deg|\d)$/i.test(i)}return a||(o(n).transformCache[e]="("+i+")"),o(n).transformCache[e]}}}();for(t=0;t<T.Lists.colors.length;t++)!function(){var e=T.Lists.colors[t];T.Normalizations.registered[e]=function(t,n,i){switch(t){case"name":return e;case"extract":var o;if(T.RegEx.wrappedValueAlreadyExtracted.test(i))o=i;else{var a,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(i)?a=s[i]!==r?s[i]:s.black:T.RegEx.isHex.test(i)?a="rgb("+T.Values.hexToRgb(i).join(" ")+")":/^rgba?\(/i.test(i)||(a=s.black),o=(a||i).toString().match(T.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=h||3!==o.split(" ").length||(o+=" 1"),o;case"inject":return 8>=h?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(8>=h?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,(function(t,e){return e.toUpperCase()}))},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(h||b.State.isAndroid&&!b.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(b.State.prefixMatches[t])return[b.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],n=0,r=e.length;r>n;n++){var i;if(i=0===n?t:e[n]+t.replace(/^\w/,(function(t){return t.toUpperCase()})),y.isString(b.State.prefixElement.style[i]))return b.State.prefixMatches[t]=i,[i,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e;return t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r})),(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return 0==t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){t.classList?t.classList.add(e):t.className+=(t.className.length?" ":"")+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(t,n,i,a){function s(t,n){function i(){c&&T.setPropertyValue(t,"display","none")}var l=0;if(8>=h)l=f.css(t,n);else{var u,c=!1;if(/^(width|height)$/.test(n)&&0===T.getPropertyValue(t,"display")&&(c=!0,T.setPropertyValue(t,"display",T.Values.getDisplayType(t))),!a){if("height"===n&&"border-box"!==T.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var p=t.offsetHeight-(parseFloat(T.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(T.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(T.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(T.getPropertyValue(t,"paddingBottom"))||0);return i(),p}if("width"===n&&"border-box"!==T.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var d=t.offsetWidth-(parseFloat(T.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(T.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(T.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(T.getPropertyValue(t,"paddingRight"))||0);return i(),d}}u=o(t)===r?e.getComputedStyle(t,null):o(t).computedStyle?o(t).computedStyle:o(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===n&&(n="borderTopColor"),(""===(l=9===h&&"filter"===n?u.getPropertyValue(n):u[n])||null===l)&&(l=t.style[n]),i()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(n)){var y=s(t,"position");("fixed"===y||"absolute"===y&&/top|left/i.test(n))&&(l=f(t).position()[n]+"px")}return l}var l;if(T.Hooks.registered[n]){var u=n,c=T.Hooks.getRoot(u);i===r&&(i=T.getPropertyValue(t,T.Names.prefixCheck(c)[0])),T.Normalizations.registered[c]&&(i=T.Normalizations.registered[c]("extract",t,i)),l=T.Hooks.extractValue(u,i)}else if(T.Normalizations.registered[n]){var p,d;"transform"!==(p=T.Normalizations.registered[n]("name",t))&&(d=s(t,T.Names.prefixCheck(p)[0]),T.Values.isCSSNullValue(d)&&T.Hooks.templates[n]&&(d=T.Hooks.templates[n][1])),l=T.Normalizations.registered[n]("extract",t,d)}if(!/^[\d-]/.test(l))if(o(t)&&o(t).isSVG&&T.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=t.getBBox()[n]}catch(t){l=0}else l=t.getAttribute(n);else l=s(t,T.Names.prefixCheck(n)[0]);return T.Values.isCSSNullValue(l)&&(l=0),b.debug>=2&&console.log("Get "+n+": "+l),l},setPropertyValue:function(t,n,r,i,a){var s=n;if("scroll"===n)a.container?a.container["scroll"+a.direction]=r:"Left"===a.direction?e.scrollTo(r,a.alternateValue):e.scrollTo(a.alternateValue,r);else if(T.Normalizations.registered[n]&&"transform"===T.Normalizations.registered[n]("name",t))T.Normalizations.registered[n]("inject",t,r),s="transform",r=o(t).transformCache[n];else{if(T.Hooks.registered[n]){var l=n,u=T.Hooks.getRoot(n);i=i||T.getPropertyValue(t,u),r=T.Hooks.injectValue(l,r,i),n=u}if(T.Normalizations.registered[n]&&(r=T.Normalizations.registered[n]("inject",t,r),n=T.Normalizations.registered[n]("name",t)),s=T.Names.prefixCheck(n)[0],8>=h)try{t.style[s]=r}catch(t){b.debug&&console.log("Browser does not support ["+r+"] for ["+s+"]")}else o(t)&&o(t).isSVG&&T.Names.SVGAttribute(n)?t.setAttribute(n,r):t.style[s]=r;b.debug>=2&&console.log("Set "+n+" ("+s+"): "+r)}return[s,r]},flushTransformCache:function(t){function e(e){return parseFloat(T.getPropertyValue(t,e))}var n="";if((h||b.State.isAndroid&&!b.State.isChrome)&&o(t).isSVG){var r={translate:[e("translateX"),e("translateY")],skewX:[e("skewX")],skewY:[e("skewY")],scale:1!==e("scale")?[e("scale"),e("scale")]:[e("scaleX"),e("scaleY")],rotate:[e("rotateZ"),0,0]};f.each(o(t).transformCache,(function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),r[t]&&(n+=t+"("+r[t].join(" ")+") ",delete r[t])}))}else{var i,a;f.each(o(t).transformCache,(function(e){return i=o(t).transformCache[e],"transformPerspective"===e?(a=i,!0):(9===h&&"rotateZ"===e&&(e="rotate"),void(n+=e+i+" "))})),a&&(n="perspective"+a+" "+n)}T.setPropertyValue(t,"transform",n)}};T.Hooks.register(),T.Normalizations.register(),b.hook=function(t,e,n){var a=r;return t=i(t),f.each(t,(function(t,i){if(o(i)===r&&b.init(i),n===r)a===r&&(a=b.CSS.getPropertyValue(i,e));else{var s=b.CSS.setPropertyValue(i,e,n);"transform"===s[0]&&b.CSS.flushTransformCache(i),a=s}})),a};var S=function t(){function a(){return l?A.promise||null:h}function s(){function t(t){function p(t,e){var n=r,i=r,o=r;return y.isArray(t)?(n=t[0],!y.isArray(t[1])&&/^[\d-]/.test(t[1])||y.isFunction(t[1])||T.RegEx.isHex.test(t[1])?o=t[1]:(y.isString(t[1])&&!T.RegEx.isHex.test(t[1])||y.isArray(t[1]))&&(i=e?t[1]:u(t[1],s.duration),t[2]!==r&&(o=t[2]))):n=t,e||(i=i||s.easing),y.isFunction(n)&&(n=n.call(a,P,w)),y.isFunction(o)&&(o=o.call(a,P,w)),[n||0,i,o]}function h(t,e){var n,r;return r=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,(function(t){return n=t,""})),n||(n=T.Values.getUnitType(t)),[r,n]}function d(){var t={myParent:a.parentNode||n.body,position:T.getPropertyValue(a,"position"),fontSize:T.getPropertyValue(a,"fontSize")},r=t.position===R.lastPosition&&t.myParent===R.lastParent,i=t.fontSize===R.lastFontSize;R.lastParent=t.myParent,R.lastPosition=t.position,R.lastFontSize=t.fontSize;var s=100,l={};if(i&&r)l.emToPx=R.lastEmToPx,l.percentToPxWidth=R.lastPercentToPxWidth,l.percentToPxHeight=R.lastPercentToPxHeight;else{var u=o(a).isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");b.init(u),t.myParent.appendChild(u),f.each(["overflow","overflowX","overflowY"],(function(t,e){b.CSS.setPropertyValue(u,e,"hidden")})),b.CSS.setPropertyValue(u,"position",t.position),b.CSS.setPropertyValue(u,"fontSize",t.fontSize),b.CSS.setPropertyValue(u,"boxSizing","content-box"),f.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],(function(t,e){b.CSS.setPropertyValue(u,e,s+"%")})),b.CSS.setPropertyValue(u,"paddingLeft",s+"em"),l.percentToPxWidth=R.lastPercentToPxWidth=(parseFloat(T.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=R.lastPercentToPxHeight=(parseFloat(T.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=R.lastEmToPx=(parseFloat(T.getPropertyValue(u,"paddingLeft"))||1)/s,t.myParent.removeChild(u)}return null===R.remToPx&&(R.remToPx=parseFloat(T.getPropertyValue(n.body,"fontSize"))||16),null===R.vwToPx&&(R.vwToPx=parseFloat(e.innerWidth)/100,R.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=R.remToPx,l.vwToPx=R.vwToPx,l.vhToPx=R.vhToPx,b.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),a),l}if(s.begin&&0===P)try{s.begin.call(v,v)}catch(t){setTimeout((function(){throw t}),1)}if("scroll"===V){var g,S,E,C=/^x$/i.test(s.axis)?"Left":"Top",k=parseFloat(s.offset)||0;s.container?y.isWrapped(s.container)||y.isNode(s.container)?(s.container=s.container[0]||s.container,E=(g=s.container["scroll"+C])+f(a).position()[C.toLowerCase()]+k):s.container=null:(g=b.State.scrollAnchor[b.State["scrollProperty"+C]],S=b.State.scrollAnchor[b.State["scrollProperty"+("Left"===C?"Top":"Left")]],E=f(a).offset()[C.toLowerCase()]+k),l={scroll:{rootPropertyValue:!1,startValue:g,currentValue:g,endValue:E,unitType:"",easing:s.easing,scrollData:{container:s.container,direction:C,alternateValue:S}},element:a},b.debug&&console.log("tweensContainer (scroll): ",l.scroll,a)}else if("reverse"===V){if(!o(a).tweensContainer)return void f.dequeue(a,s.queue);"none"===o(a).opts.display&&(o(a).opts.display="auto"),"hidden"===o(a).opts.visibility&&(o(a).opts.visibility="visible"),o(a).opts.loop=!1,o(a).opts.begin=null,o(a).opts.complete=null,x.easing||delete s.easing,x.duration||delete s.duration,s=f.extend({},o(a).opts,s);var O=f.extend(!0,{},o(a).tweensContainer);for(var L in O)if("element"!==L){var N=O[L].startValue;O[L].startValue=O[L].currentValue=O[L].endValue,O[L].endValue=N,y.isEmptyObject(x)||(O[L].easing=s.easing),b.debug&&console.log("reverse tweensContainer ("+L+"): "+JSON.stringify(O[L]),a)}l=O}else if("start"===V){for(var F in o(a).tweensContainer&&!0===o(a).isAnimating&&(O=o(a).tweensContainer),f.each(m,(function(t,e){if(RegExp("^"+T.Lists.colors.join("$|^")+"$").test(t)){var n=p(e,!0),i=n[0],o=n[1],a=n[2];if(T.RegEx.isHex.test(i)){for(var s=["Red","Green","Blue"],l=T.Values.hexToRgb(i),u=a?T.Values.hexToRgb(a):r,c=0;c<s.length;c++){var f=[l[c]];o&&f.push(o),u!==r&&f.push(u[c]),m[t+s[c]]=f}delete m[t]}}})),m){var j=p(m[F]),M=j[0],H=j[1],z=j[2];F=T.Names.camelCase(F);var q=T.Hooks.getRoot(F),D=!1;if(o(a).isSVG||"tween"===q||!1!==T.Names.prefixCheck(q)[1]||T.Normalizations.registered[q]!==r){(s.display!==r&&null!==s.display&&"none"!==s.display||s.visibility!==r&&"hidden"!==s.visibility)&&/opacity|filter/.test(F)&&!z&&0!==M&&(z=0),s._cacheValues&&O&&O[F]?(z===r&&(z=O[F].endValue+O[F].unitType),D=o(a).rootPropertyValueCache[q]):T.Hooks.registered[F]?z===r?(D=T.getPropertyValue(a,q),z=T.getPropertyValue(a,F,D)):D=T.Hooks.templates[q][1]:z===r&&(z=T.getPropertyValue(a,F));var _,X,Y,W=!1;if(z=(_=h(F,z))[0],Y=_[1],M=(_=h(F,M))[0].replace(/^([+-\/*])=/,(function(t,e){return W=e,""})),X=_[1],z=parseFloat(z)||0,M=parseFloat(M)||0,"%"===X&&(/^(fontSize|lineHeight)$/.test(F)?(M/=100,X="em"):/^scale/.test(F)?(M/=100,X=""):/(Red|Green|Blue)$/i.test(F)&&(M=M/100*255,X="")),/[\/*]/.test(W))X=Y;else if(Y!==X&&0!==z)if(0===M)X=Y;else{i=i||d();var $=/margin|padding|left|right|width|text|word|letter/i.test(F)||/X$/.test(F)||"x"===F?"x":"y";switch(Y){case"%":z*="x"===$?i.percentToPxWidth:i.percentToPxHeight;break;case"px":break;default:z*=i[Y+"ToPx"]}switch(X){case"%":z*=1/("x"===$?i.percentToPxWidth:i.percentToPxHeight);break;case"px":break;default:z*=1/i[X+"ToPx"]}}switch(W){case"+":M=z+M;break;case"-":M=z-M;break;case"*":M*=z;break;case"/":M=z/M}l[F]={rootPropertyValue:D,startValue:z,currentValue:z,endValue:M,unitType:X,easing:H},b.debug&&console.log("tweensContainer ("+F+"): "+JSON.stringify(l[F]),a)}else b.debug&&console.log("Skipping ["+q+"] due to a lack of browser support.")}l.element=a}l.element&&(T.Values.addClass(a,"velocity-animating"),I.push(l),""===s.queue&&(o(a).tweensContainer=l,o(a).opts=s),o(a).isAnimating=!0,P===w-1?(b.State.calls.push([I,v,s,null,A.resolver]),!1===b.State.isTicking&&(b.State.isTicking=!0,c())):P++)}var i,a=this,s=f.extend({},b.defaults,x),l={};switch(o(a)===r&&b.init(a),parseFloat(s.delay)&&!1!==s.queue&&f.queue(a,s.queue,(function(t){b.velocityQueueEntryFlag=!0,o(a).delayTimer={setTimeout:setTimeout(t,parseFloat(s.delay)),next:t}})),s.duration.toString().toLowerCase()){case"fast":s.duration=200;break;case"normal":s.duration=g;break;case"slow":s.duration=600;break;default:s.duration=parseFloat(s.duration)||1}!1!==b.mock&&(!0===b.mock?s.duration=s.delay=1:(s.duration*=parseFloat(b.mock)||1,s.delay*=parseFloat(b.mock)||1)),s.easing=u(s.easing,s.duration),s.begin&&!y.isFunction(s.begin)&&(s.begin=null),s.progress&&!y.isFunction(s.progress)&&(s.progress=null),s.complete&&!y.isFunction(s.complete)&&(s.complete=null),s.display!==r&&null!==s.display&&(s.display=s.display.toString().toLowerCase(),"auto"===s.display&&(s.display=b.CSS.Values.getDisplayType(a))),s.visibility!==r&&null!==s.visibility&&(s.visibility=s.visibility.toString().toLowerCase()),s.mobileHA=s.mobileHA&&b.State.isMobile&&!b.State.isGingerbread,!1===s.queue?s.delay?setTimeout(t,s.delay):t():f.queue(a,s.queue,(function(e,n){return!0===n?(A.promise&&A.resolver(v),!0):(b.velocityQueueEntryFlag=!0,void t())})),""!==s.queue&&"fx"!==s.queue||"inprogress"===f.queue(a)[0]||f.dequeue(a)}var l,h,d,v,m,x,S=arguments[0]&&(arguments[0].p||f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||y.isString(arguments[0].properties));if(y.isWrapped(this)?(l=!1,d=0,v=this,h=this):(l=!0,d=1,v=S?arguments[0].elements||arguments[0].e:arguments[0]),v=i(v)){S?(m=arguments[0].properties||arguments[0].p,x=arguments[0].options||arguments[0].o):(m=arguments[d],x=arguments[d+1]);var w=v.length,P=0;if(!/^(stop|finish)$/i.test(m)&&!f.isPlainObject(x)){var E=d+1;x={};for(var C=E;C<arguments.length;C++)y.isArray(arguments[C])||!/^(fast|normal|slow)$/i.test(arguments[C])&&!/^\d/.test(arguments[C])?y.isString(arguments[C])||y.isArray(arguments[C])?x.easing=arguments[C]:y.isFunction(arguments[C])&&(x.complete=arguments[C]):x.duration=arguments[C]}var V,A={promise:null,resolver:null,rejecter:null};switch(l&&b.Promise&&(A.promise=new b.Promise((function(t,e){A.resolver=t,A.rejecter=e}))),m){case"scroll":V="scroll";break;case"reverse":V="reverse";break;case"finish":case"stop":f.each(v,(function(t,e){o(e)&&o(e).delayTimer&&(clearTimeout(o(e).delayTimer.setTimeout),o(e).delayTimer.next&&o(e).delayTimer.next(),delete o(e).delayTimer)}));var k=[];return f.each(b.State.calls,(function(t,e){e&&f.each(e[1],(function(n,i){var a=x===r?"":x;return!0!==a&&e[2].queue!==a&&(x!==r||!1!==e[2].queue)||void f.each(v,(function(n,r){r===i&&((!0===x||y.isString(x))&&(f.each(f.queue(r,y.isString(x)?x:""),(function(t,e){y.isFunction(e)&&e(null,!0)})),f.queue(r,y.isString(x)?x:"",[])),"stop"===m?(o(r)&&o(r).tweensContainer&&!1!==a&&f.each(o(r).tweensContainer,(function(t,e){e.endValue=e.currentValue})),k.push(t)):"finish"===m&&(e[2].duration=1))}))}))})),"stop"===m&&(f.each(k,(function(t,e){p(e,!0)})),A.promise&&A.resolver(v)),a();default:if(!f.isPlainObject(m)||y.isEmptyObject(m)){if(y.isString(m)&&b.Redirects[m]){var O=(j=f.extend({},x)).duration,L=j.delay||0;return!0===j.backwards&&(v=f.extend(!0,[],v).reverse()),f.each(v,(function(t,e){parseFloat(j.stagger)?j.delay=L+parseFloat(j.stagger)*t:y.isFunction(j.stagger)&&(j.delay=L+j.stagger.call(e,t,w)),j.drag&&(j.duration=parseFloat(O)||(/^(callout|transition)/.test(m)?1e3:g),j.duration=Math.max(j.duration*(j.backwards?1-t/w:(t+1)/w),.75*j.duration,200)),b.Redirects[m].call(e,e,j||{},t,w,v,A.promise?A:r)})),a()}var N="Velocity: First argument ("+m+") was not a property map, a known action, or a registered redirect. Aborting.";return A.promise?A.rejecter(new Error(N)):console.log(N),a()}V="start"}var F,j,R={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},I=[];if(f.each(v,(function(t,e){y.isNode(e)&&s.call(e)})),(j=f.extend({},b.defaults,x)).loop=parseInt(j.loop),F=2*j.loop-1,j.loop)for(var M=0;F>M;M++){var H={delay:j.delay,progress:j.progress};M===F-1&&(H.display=j.display,H.visibility=j.visibility,H.complete=j.complete),t(v,"reverse",H)}return a()}};(b=f.extend(S,b)).animate=S;var w=e.requestAnimationFrame||d;return b.State.isMobile||n.hidden===r||n.addEventListener("visibilitychange",(function(){n.hidden?(w=function(t){return setTimeout((function(){t(!0)}),16)},c()):w=e.requestAnimationFrame||d})),t.Velocity=b,t!==e&&(t.fn.velocity=S,t.fn.velocity.defaults=b.defaults),f.each(["Down","Up"],(function(t,e){b.Redirects["slide"+e]=function(t,n,i,o,a,s){var l=f.extend({},n),u=l.begin,c=l.complete,p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},h={};l.display===r&&(l.display="Down"===e?"inline"===b.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){for(var n in u&&u.call(a,a),p){h[n]=t.style[n];var r=b.CSS.getPropertyValue(t,n);p[n]="Down"===e?[r,0]:[0,r]}h.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in h)t.style[e]=h[e];
vendor: 10,073 bytes, lines 146-155
146c&&c.call(a,a),s&&s.resolver(a)},b(t,p,l)}})),f.each(["In","Out"],(function(t,e){b.Redirects["fade"+e]=function(t,n,i,o,a,s){var l=f.extend({},n),u={opacity:"In"===e?1:0},c=l.complete;l.complete=i!==o-1?l.begin=null:function(){c&&c.call(a,a),s&&s.resolver(a)},l.display===r&&(l.display="In"===e?"auto":"none"),b(this,u,l)}})),b}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,document)},"object"==a(t)&&"object"==a(t.exports)?t.exports=o():void 0===(i="function"==typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i))}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r](o,o.exports,n),o.loaded=!0,o.exports}n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n(285),n(130),n(275),n(155)})();; 147/*! 148 * jQuery UI Menu 1.14.2 149 * https://jqueryui.com 150 * 151 * Copyright OpenJS Foundation and other contributors 152 * Released under the MIT license. 153 * https://jquery.org/license 154 */ 155!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../unique-id","../version","../widget"],e):e(jQuery)}(function(a){"use strict";return a.widget("ui.menu",{version:"1.14.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(e){var t=a(e.target),i=a(this.document[0].activeElement);!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(e){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(e){var t,i;this.previousFilter||e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:e.clientX,y:e.clientY},t=a(e.target).closest(".ui-menu-item"),i=a(e.currentTarget),t[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=a(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,s,n=!0;switch(e.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(e);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case a.ui.keyCode.HOME:this._move("first","first",e);break;case a.ui.keyCode.END:this._move("last","last",e);break;case a.ui.keyCode.UP:this.previous(e);break;case a.ui.keyCode.DOWN:this.next(e);break;case a.ui.keyCode.LEFT:this.collapse(e);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(e);break;case a.ui.keyCode.ESCAPE:this.collapse(e);break;default:t=this.previousFilter||"",s=n=!1,i=96<=e.keyCode&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),i===t?s=!0:i=t+i,t=this._filterMenuItems(i),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(i=String.fromCharCode(e.keyCode),t=this._filterMenuItems(i)),t.length?(this.focus(e,t),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=a(this),t=e.prev(),i=a("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(e=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=a(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),t=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(t,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){var i;"icons"===e&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,s;this._hasScroll()&&(t=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-t-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),e=e.outerHeight(),t<0?this.activeMenu.scrollTop(i+t):s<t+e&&this.activeMenu.scrollTop(i+t-s+e))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:a(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this._removeClass(e.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=e},i?0:this.delay)},_close:function(e){(e=e||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!a(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;(s=this.active?"first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(e){var t,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(t=a(this)).offset().top-i-s<0}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var t,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHe
155ight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=a(this)).offset().top-i+s}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||a(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var e=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),t=new RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return t.test(String.prototype.trim.call(a(this).children(".ui-menu-item-wrapper").text()))})}})});; 156wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } ); 157; 158/*! This file is auto-generated */ 159(function() { 160"use strict";var wp;(wp||={}).a11y=(()=>{var v=Object.create;var r=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),B=(t,e)=>{for(var o in e)r(t,o,{get:e[o],enumerable:!0})},p=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of E(e))!I.call(t,n)&&n!==o&&r(t,n,{get:()=>e[n],enumerable:!(i=A(e,n))||i.enumerable});return t};var s=(t,e,o)=>(o=t!=null?v(C(t)):{},p(e||!t||!t.__esModule?r(o,"default",{value:t,enumerable:!0}):o,t)),T=t=>p(r({},"__esModule",{value:!0}),t);var c=d((P,l)=>{l.exports=window.wp.domReady});var u=d((_,m)=>{m.exports=window.wp.i18n});var N={};B(N,{setup:()=>g,speak:()=>k});var w=s(c(),1);function a(t="polite"){let e=document.createElement("div");e.id=`a11y-speak-${t}`,e.className="a11y-speak-region",e.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;word-break:normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");let{body:o}=document;return o&&o.appendChild(e),e}var f=s(u(),1);function x(){let t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=(0,f.__)("Notifications"),t.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;word-break:normal !important;"),t.setAttribute("hidden","");let{body:e}=document;return e&&e.appendChild(t),t}function y(){let t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text");for(let o=0;o<t.length;o++)t[o].textContent="";e&&e.setAttribute("hidden","hidden")}var h="";function b(t){return t=t.replace(/<[^<>]+>/g," "),h===t&&(t+="\xA0"),h=t,t}function k(t,e){y(),t=b(t);let o=document.getElementById("a11y-speak-intro-text"),i=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");i&&e==="assertive"?i.textContent=t:n&&(n.textContent=t),o&&o.removeAttribute("hidden")}function g(){let t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");t===null&&x(),e===null&&a("assertive"),o===null&&a("polite")}(0,w.default)(g);return T(N);})(); 161(window.wp ||= {}).a11y = wp.a11y; 162})(); 163; 164/*! 165 * jQuery UI Autocomplete 1.14.2 166 * https://jqueryui.com 167 * 168 * Copyright OpenJS Foundation and other contributors 169 * Released under the MIT license. 170 * https://jquery.org/license 171 */ 172!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.14.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&"true"===this.element.prop("contentEditable"),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value(
172)},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var t=t.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=i),!1!==this._trigger("select",e,{item:t})&&this._value(t.value),this.term=this._value(),this.close(e),this.selectedItem=t}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});; 173/*! This file is auto-generated */ 174/*! 175 * imagesLoaded PACKAGED v5.0.0 176 * JavaScript is all like "You images are done yet or what?" 177 * MIT License 178 */ 179!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})), 180/*! 181 * imagesLoaded v5.0.0 182 * JavaScript is all like "You images are done yet or what?" 183 * MIT License 184 */ 185function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;
vendor: 4,185 bytes, lines 185-186
185function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));; 186/*! This file is auto-generated */
vendor: 24,103 bytes, lines 187-195
187/*! 188 * Masonry PACKAGED v4.2.2 189 * Cascading grid layout library 190 * https://masonry.desandro.com 191 * MIT License 192 * by David DeSandro 193 */ 194 195!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,n,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
195; 196/*! 197 * Masonry v2 shim 198 * to maintain backwards compatibility 199 * as of Masonry v3.1.2 200 * 201 * Cascading grid layout library 202 * http://masonry.desandro.com 203 * MIT License 204 * by David DeSandro 205 */ 206!function(a){"use strict";var b=a.Masonry;b.prototype._remapV2Options=function(){this._remapOption("gutterWidth","gutter"),this._remapOption("isResizable","isResizeBound"),this._remapOption("isRTL","isOriginLeft",function(a){return!a});var a=this.options.isAnimated;if(void 0!==a&&(this.options.transitionDuration=a?this.options.transitionDuration:0),void 0===a||a){var b=this.options.animationOptions,c=b&&b.duration;c&&(this.options.transitionDuration="string"==typeof c?c:c+"ms")}},b.prototype._remapOption=function(a,b,c){var d=this.options[a];void 0!==d&&(this.options[b]=c?c(d):d)};var c=b.prototype._create;b.prototype._create=function(){var a=this;this._remapV2Options(),c.apply(this,arguments),setTimeout(function(){jQuery(a.element).addClass("masonry")},0)};var d=b.prototype.layout;b.prototype.layout=function(){this._remapV2Options(),d.apply(this,arguments)};var e=b.prototype.option;b.prototype.option=function(){e.apply(this,arguments),this._remapV2Options()};var f=b.prototype._itemize;b.prototype._itemize=function(a){var b=f.apply(this,arguments);return jQuery(a).addClass("masonry-brick"),b};var g=b.prototype.measureColumns;b.prototype.measureColumns=function(){var a=this.options.columnWidth;a&&"function"==typeof a&&(this.getContainerWidth(),this.columnWidth=a(this.containerWidth)),g.apply(this,arguments)},b.prototype.reload=function(){this.reloadItems.apply(this,arguments),this.layout.apply(this)};var h=b.prototype.destroy;b.prototype.destroy=function(){var a=this.getItemElements();jQuery(this.element).removeClass("masonry"),jQuery(a).removeClass("masonry-brick"),h.apply(this,arguments)}}(window);; 207(()=>{var t={41523(t){!function(e,o){const i=[];o.addResizeCallback=function(t,e){return-1===i.indexOf(t)&&(t.$$scope=e,i.push(t)),o},t.exports=function(){let t=o.$window.width();o.$window.off("resize.tar").on("resize.tar",function(){o.$window.width()!==t&&(e.each(i,function(t,e){e.call(e.$$scope||this)}),t=o.$window.width())})}}(ThriveGlobal.$j,TCB_Front)},49110(t){!function(e,o){const i=[];o.add_scroll_callback=function(t,e){return-1===i.indexOf(t)&&(t.$$scope=e,i.push(t)),o},t.exports=function(){let t=o.$document.scrollTop(),n="";o.$window.off("scroll.tar").on("scroll.tar",function(){const s=o.$document.scrollTop(),r=s>=t?"down":"up",a=n!==r;t=s,n=r,e.each(i,function(t,e){e.call(e.$$scope||this,s,r,a)})}),o.$window.trigger("scroll")}}(ThriveGlobal.$j,TCB_Front)},11481(){!function(t){"use strict";const e=function(e,o){this.el=t(e),this.options=t.extend({},t.fn.typed.defaults,o),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};e.prototype={constructor:e,init(t){void 0===t&&(t="delete");const e=this;function o(){for(let t=0;t<e.strings.length;++t)e.sequence[t]=t;e.shuffle&&(e.sequence=e.shuffleArray(e.sequence)),"delete"===t?(e.strPos=e.strings[e.sequence[e.arrayPos]].length,e.options.highlightClass?e.highlight(e.strings[e.sequence[e.arrayPos]],e.strPos):e.backspace(e.strings[e.sequence[e.arrayPos]],e.strPos)):(e.strPos=0,e.typewrite(e.strings[e.sequence[e.arrayPos]],e.strPos))}"delete"===t?e.timeout=setTimeout(o,e.startDelay):o()},build(){const e=this;if(!0===this.showCursor&&(this.cursor=t('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement){e.strings=[],this.stringsElement.hide();const o=this.stringsElement.find("p");t.each(o,function(o,i){e.strings.push(t(i).html())})}this.init()},typewrite(t,e){if(!0===this.stop)return;const o=this.typeSpeed,i=this;i.timeout=setTimeout(function(){let o=0,n=t.substr(e);if("^"===n.charAt(0)){let i=1;/^\^\d+/.test(n)&&(n=/\d+/.exec(n)[0],i+=n.length,o=parseInt(n)),t=t.substring(0,e)+t.substring(e+i)}if("html"===i.contentType){const o=t.substr(e).charAt(0);if("<"===o||"&"===o){const i="<"===o?">":";";for(;t.substr(e).charAt(0)!==i;)e++;e++}}i.timeout=setTimeout(function(){if(e===t.length){if(i.options.onStringTyped(i.arrayPos),i.arrayPos===i.strings.length-1&&(i.options.callback(),i.curLoop++,!1===i.loop||i.curLoop===i.loopCount))return;i.timeout=setTimeout(function(){i.options.highlightClass?i.highlight(t,e):i.backspace(t,e)},i.backDelay)}else{0===e&&i.options.preStringTyped(i.arrayPos);const o=t.substr(0,e+1);i.attr?i.el.attr(i.attr,o):i.isInput?i.el.val(o):"html"===i.contentType?i.el.html(o):i.el.text(
207o),e++,i.typewrite(t,e)}},o)},o)},highlight(t,e){if(!0===this.stop)return;const o=this.backSpeed,i=this;i.timeout=setTimeout(function(){if("html"===i.contentType&&">"===t.substr(e).charAt(0)){for(;"<"!==t.substr(e).charAt(0);)e--;e--}const o=t.substr(0,e),n=t.substr(e);i.attr?i.el.attr(i.attr,o):i.el.html(o+'<span class="'+i.options.highlightClass+'" style="'+(i.options.highlightStyle||"")+'">'+n+"</span>"),e>i.stopNum?(e--,i.highlight(t,e)):e<=i.stopNum&&setTimeout(function(){i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.init("write")):i.typewrite(i.strings[i.sequence[i.arrayPos]],e)},200)},o)},backspace(e,o){if(!0===this.stop)return;const i=this.backSpeed,n=this,s=t(n.el);n.timeout=setTimeout(function(){if("html"===n.contentType&&">"===e.substr(o).charAt(0)){for(;"<"!==e.substr(o).charAt(0);)o--;o--}const t=e.substr(0,o);n.attr?n.el.attr(n.attr,t):n.isInput?n.el.val(t):"html"===n.contentType?n.el.html(t):n.el.text(t),o>n.stopNum?(o--,n.backspace(e,o)):o<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.shuffle&&(n.sequence=n.shuffleArray(n.sequence)),n.init("write")):n.typewrite(n.strings[n.sequence[n.arrayPos]],o),n.options.highlightClass&&s.is("."+n.options.highlightClass)&&s.removeClass(n.options.highlightClass))},i)},shuffleArray(t){let e,o,i=t.length;if(i)for(;--i;)o=Math.floor(Math.random()*(i+1)),e=t[o],t[o]=t[i],t[i]=e;return t},pause(){this.stop=!0,clearInterval(this.timeout)},start(){!1!==this.stop&&(this.stop=!1,this.init())},reset(){clearInterval(this.timeout);const t=this.el.attr("id");this.el.after('<span id="'+t+'"/>'),this.el.remove(),void 0!==this.cursor&&this.cursor.remove(),this.options.resetCallback()}},t.fn.typed=function(o){return this.each(function(){const i=t(this),n="object"==typeof o&&o;let s=i.data("typed");s||(s=new e(this,n),i.data("typed",s)),"string"==typeof o&&s[o]()})},t.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback(){},preStringTyped(){},onStringTyped(){},resetCallback(){}}}(window.jQuery)},46967(t){t.exports={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode(t){let e,o,i,n,s,r,a,l="",c=0;for(t=this._utf8_encode(t);c<t.length;)e=t.charCodeAt(c++),o=t.charCodeAt(c++),i=t.charCodeAt(c++),n=e>>2,s=(3&e)<<4|o>>4,r=(15&o)<<2|i>>6,a=63&i,isNaN(o)?r=a=64:isNaN(i)&&(a=64),l=l+this._keyStr.charAt(n)+this._keyStr.charAt(s)+this._keyStr.charAt(r)+this._keyStr.charAt(a);return l},decode(t){let e,o,i,n,s,r,a,l="",c=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<t.length;)n=this._keyStr.indexOf(t.charAt(c++)),s=this._keyStr.indexOf(t.charAt(c++)),r=this._keyStr.indexOf(t.charAt(c++)),a=this._keyStr.indexOf(t.charAt(c++)),e=n<<2|s>>4,o=(15&s)<<4|r>>2,i=(3&r)<<6|a,l+=String.fromCharCode(e),64!=r&&(l+=String.fromCharCode(o)),64!=a&&(l+=String.fromCharCode(i));return l=this._utf8_decode(l),l},_utf8_encode(t){t=t.replace(/\r\n/g,"\n");let e="";for(let o=0;o<t.length;o++){const i=t.charCodeAt(o);i<128?e+=String.fromCharCode(i):i>127&&i<2048?(e+=String.fromCharCode(i>>6|192),e+=String.fromCharCode(63&i|128)):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128),e+=String.fromCharCode(63&i|128))}return e},_utf8_decode(t){let e="",o=0,i=0,n=0,s=0;for(;o<t.length;)i=t.charCodeAt(o),i<128?(e+=String.fromCharCode(i),o++):i>191&&i<224?(n=t.charCodeAt(o+1),e+=String.fromCharCode((31&i)<<6|63&n),o+=2):(n=t.charCodeAt(o+1),s=t.charCodeAt(o+2),e+=String.fromCharCode((15&i)<<12|(63&n)<<6|63&s),o+=3);return e}}},41954(t){!function(e,o){function i(t=o.$body){t.find(".thrv_wrapper > div[data-clip-id]").each((o,i)=>{const n=getComputedStyle(i).getPropertyValue("clip-path"),s=e(i.parentElement);s.removeClass("safari-ios-decoration-fix");try{n&&"none"!==n&&!n.includes("#null")&&t.find(n.match(/"(#[^']+)"/)[1]).length>0&&(s.closest(".tve_ea_thrive_animation").length>0||s.addClass("safari-ios-decoration-fix"))}catch(t){}})}function n(){if(!this.dataset.href||this.dataset.href.includes("javascript:void(0)")||this.classList.contains("tcb-during-drag"))return!0;
207if("_blank"===this.dataset.target)window.open(this.dataset.href,"_blank","noopener");else{let t;if(this.dataset.hash)try{t=e(this.dataset.hash)}catch(t){}t&&t.length?TCB_Front.jumpScrollTo(t,this):location.href=this.dataset.href}return!1}t.exports=function(t){tve_frontend_options.is_editor_page||(function(){if(!document.getElementById("tve-frontend-compat-css")){const t=document.createElement("style");let e=".thrv-page-section.safari-ios-decoration-fix, .thrv-content-box.safari-ios-decoration-fix { -webkit-transform: translate3d(0, 0, 0) !important;}";TCB_Front.browser&&(TCB_Front.browser.mozilla?e=".safari-ios-decoration-fix .tve-page-section-out[data-clip-id], .safari-ios-decoration-fix .tve-content-box-background[data-clip-id]{transform: unset !important}":(TCB_Front.browser.safari||TCB_Front.browser.ios)&&(e+=".tve_ea_thrive_animation > a.tcb-button-link {-webkit-mask-image: -webkit-radial-gradient(#fff, #fff);-webkit-mask-size: 100%, 100%; -webkit-mask-position: 0, 0; }",e+=".tcb-flex-col .tcb-col .thrv_wrapper.thrv_icon {max-height: var(--tve-icon-size, 25px);}",TCB_Front.browser.version&&parseFloat(TCB_Front.browser.version)<16&&(e+=".slick-list{overflow-x: hidden;}"))),e+=".thrv_wrapper + #thrive-header { position: static;}",t.type="text/css",t.id="tve-frontend-compat-css",t.appendChild(document.createTextNode(e)),document.head.appendChild(t)}}(),i(t),o.addResizeCallback(i),function(t){t.find("a > .tcb-col, a > .thrv-content-box").each(function(){const t=this.parentNode,o={"data-href":t.href,"data-hash":t.hash,"jump-animation":t.getAttribute("jump-animation"),"data-target":t.getAttribute("target")||""};t.classList.contains("tve-dynamic-link")&&(o["data-shortcode-id"]=t.getAttribute("data-shortcode-id"),o["data-dynamic-link"]=t.getAttribute("data-dynamic-link")),e(this).unwrap().css("cursor","pointer").off("click.tcb-block").on("click.tcb-block",n).toggleClass("tve-jump-scroll",t.classList.contains("tve-jump-scroll")).attr(o)}),TCB_Front.$document.trigger("unwrapBlockLinks")}(t),function(t){const e=t.find(".thrv-search-form");e.length&&!TCB_Front.js_modules["search-form"]&&e.find(".thrv-sf-input").show(),t.find('[style*="--tve-border-width"]').each((t,e)=>{o.inlineCssVariable(e,"--tve-border-width","")})}(t))}}(ThriveGlobal.$j,TCB_Front)},18684(t){var e;e=ThriveGlobal.$j,t.exports=function(t=TCB_Front.$body){if(tve_frontend_options.is_editor_page)return;const o=e("#wpadminbar").height()||0,i=t.find(".thrv_footer"),n=i.parents("#tve_editor"),s=()=>{const e=i.height();i.length&&t.height()>0&&(i.css({position:"",top:""}),n.css({"min-height":"","padding-bottom":"","box-sizing":""}),document.documentElement.clientHeight-t.height()-o>1&&(i.css({position:"absolute",bottom:0,"padding-bottom":0,"z-index":3}),n.css({"min-height":"calc( 100vh - "+e+"px ) ","padding-bottom":e,"box-sizing":"unset"}),t.css("overflow-x","visible")))};"undefined"!=typeof ResizeObserver?new ResizeObserver(()=>{s()}).observe(window.document.body):s()}},43569(t){!function(e,o){const i="tve-default-state",n="tve-scroll-state",s="-1000px";let r,a,l,c,d=e();function h(t){if(function(){const t=d.data("scroll_config");return!t||!t.disabled.includes(TCB_Front.getDisplayType())}()){const e={opacity:0,"z-index":c-1,overflow:"hidden"},o={opacity:1,"z-index":c,overflow:"",top:0};let i="";t>=r?(l.css(e),a.css(o),i=a.outerHeight()):(a.css(e),l.css(o),d.data("cloneSticky")&&d.data("cloneSticky")[0].style.setProperty("height",`${l.outerHeight()}px`)),d[0]&&d[0].style.setProperty("height",i?`${i}px`:"")}}function p(){r=o.getMediaAttr(l,"data-switch-on-scroll",TCB_Front.getDisplayType()),o.add_scroll_callback(h)}function u(t){if(0===parseInt(t.currentTarget.style.opacity)){t.currentTarget.style.top=s;const o=e(t.currentTarget).find(".tve-m-trigger");o.length>0&&o.each((t,o)=>{const i=e(o);i.hasClass("tve-triggered-icon")&&i.trigger("click")})}}t.exports=function(t){if(d=t.find(".thrv_header"),d.data("init")||!d.length)return;d.data("init",1),l=d.find(".thrive-symbol-shortcode"),a=l.clone(),l.addClass(i),c=l.css("z-index")||15;const r=o.getMediaAttr(l,"data-switch-on-scroll",TCB_Front.getDisplayType());if(r&&!isNaN(r)){a.addClass(n).removeClass(i);const t={position:"absolute",opacity:0,width:"100%","box-sizing":"border-box",left:0,top:s};a.css(t).addClass("thrive-symbol-shortcode-scroll").insertAfter(l),a=d.find(".thrive-symbol-shortcode.thrive-symbol-shortcode-scroll"),e(`.${n}`).removeClass(i),a.find(`.${i}`).remove(),a.find(`.${n}`).css("display",""),l.find(`.${n}`).remove(),d.addClass(`${i} ${n}`),d.find(".thrive-symbol-shortcode").css("transition","opacity .4s ease-in-out").on("transitionend webkitTransitionEnd oTransitionEnd",u),o.addResizeCallback(p
207),p(),d.on("tcb.sticky.ensure_placeholder",function(){if("mobile"!==TCB_Front.getDisplayType())return;const t=d.data("cloneSticky");if(!t||!t.length)return;const e=l.outerHeight();"number"!=typeof e||e<=0||(t[0].style.setProperty("height",`${e}px`),d.hasClass("tve-sticky-default")&&d[0].style.setProperty("height",`${e}px`))})}TCB_Front.event_triggers(d)}}(ThriveGlobal.$j,TCB_Front)},89322(t){t.exports=()=>new class{constructor(){this.filterCallbacks={},this.actionCallbacks={}}addFilter(t,e,o=10){void 0===this.filterCallbacks[t]&&(this.filterCallbacks[t]=[]),this.filterCallbacks[t].push({fn:e,priority:parseInt(o)})}applyFilters(t,e){if(arguments.length<1)return void 0!==e?e:null;if(this.CURRENT_FILTERS=this.CURRENT_FILTERS||[],this.hasFilter(t)){this.CURRENT_FILTERS.push(t);let o=[];arguments.length>2&&(o=Array.prototype.slice.call(arguments,2)),this.filterCallbacks[t].sort((t,e)=>t.priority-e.priority).forEach(t=>{if(t.fn)switch(t.fn){case"__return_true":e=!0;break;case"__return_false":e=!1;break;case"__return_null":e=null;break;case"__return_empty_string":e="";break;default:e=t.fn.apply(null,[e,...o])}}),this.CURRENT_FILTERS.pop()}return e}hasFilter(t){return this.filterCallbacks&&this.filterCallbacks[t]&&this.filterCallbacks[t].length}addAction(t,e,o=10){return this.actionCallbacks[t]||(this.actionCallbacks[t]=[]),this.actionCallbacks[t].push({fn:e,priority:parseInt(o)}),this}doAction(t){if(this.CURRENT_ACTIONS=this.CURRENT_ACTIONS||[],this.hasAction(t)){const e=arguments.length>1?Array.prototype.slice.call(arguments,1):[];this.CURRENT_ACTIONS.push(t),this.actionCallbacks[t].sort((t,e)=>t.priority-e.priority).forEach(t=>{t.fn&&t.fn.apply(null,e)}),this.CURRENT_ACTIONS.pop()}}hasAction(t){return this.actionCallbacks&&this.actionCallbacks[t]&&this.actionCallbacks[t].length}}},64743(){var t,e;t=ThriveGlobal.$j,e=TCB_Front,t.fn.tve_form_loading=function(t){const o=this,i=o.find("[type=submit]").parent();let n=o.find(".tcb-form-loader");return void 0!==t&&t?(n.fadeOut(),o.find("input,select,textarea").removeAttr("disabled"),i.find("button").fadeIn(),o.find(".tve-form-button .tve-form-button-submit").fadeIn(),i.find(".thrv_icon").fadeIn(),this):(n.length||(n=ThriveGlobal.$j('<div class="tcb-form-loader"><span class="tcb-form-loader-icon thrv-svg-icon">'+e.icons.get("spinner9")+"</span></div>").appendTo(i),i.css({position:"relative",width:i.width()+"px",height:i.height()+"px"})),i.find("button").hide(),o.find(".tve-form-button .tve-form-button-submit").hide(),i.find(".thrv_icon").hide(),n.show(),this)}},74468(){!function(t,e){if(e.$document.on("click","a.tve-jump-scroll",function(o){if(this.hash.includes("comments")&&this.href!==this.hash)return!0;if(t(this).hasClass("tve-toc-anchor"))return!0;let i;o.preventDefault(),o.stopPropagation();const n=t(this),s=t(o.target).closest(".tve-item-dropdown-trigger").length,r=n.closest("li.menu-item");try{i=t(this.hash)}catch(t){}if(r.length){if(s){const e=t.Event("click");return e.clickedTarget=o.target,void r.trigger(e)}r.trigger("menu_item_anchor_clicked")}if(i&&i.length){if(history&&history.pushState){let t=location.href;t.indexOf("#")>-1&&(t=t.substring(0,t.lastIndexOf("#"))),history.pushState({},document.title,t+this.hash)}return e.jumpScrollTo(i,this),!1}}),e.$document.on("click",".tve-jump-scroll[data-target]",function(o){let i;o.preventDefault(),o.stopPropagation();const n=this.getAttribute("data-target");try{i=t(n)}catch(t){}if(i&&i.length){if(history&&history.pushState){let t=location.href;t.indexOf("#")>-1&&(t=t.substring(0,t.lastIndexOf("#"))),history.pushState({},document.title,t+n)}return e.jumpScrollTo(i,this),!1}}),TCB_Front.jumpScrollTo=(o,i)=>{const n=t(i.closest(".tve_lb_open.tve-scroll")),s="smooth"===i.getAttribute("jump-animation")?1500:100,r=o.offset().left,a=t(".thrv_header.tve-scroll-sticky"),l=(a.length?a.outerHeight():0)+(t("#wpadminbar").outerHeight()||0);let c=null,d=!1,h=l,p=t(),u=t("html, body");function f(){const i=o.offset().top;h=l,p.each(function(){const e=t(this),o=e.hasClass("tve-sticky-element"),n=o?e.data("stop-target"):t(),s=n.length?n.offset().top:0,a=e.offset().left+e.outerWidth();(!o||o&&s>i)&&r<=a&&(h=Math.max(h,e.data("scroll_config").top+e.outerHeight()))}),c&&(d?(c.end=i-e.$body.offset().top-h,d=!1):c.end=c.initial_end-h)}n.length&&n.find(o).length&&(u=n),e.$body.off("tcb-sticky-remove tcb-sticky-add tcb-sticky-scroll-down").on("tcb-sticky-add",function(t,e){(e=e.filter(":not(.tve-toc)")).length>0&&o.closest(e.data("append-target")).length>0&&(p=p.add(e)),f()}).on("tcb-sticky-remove",(t,e)=>{p=p.not(e),f()}),e.$body.off("tcb.body.resize").on("tcb.body.resize",()=>{d=!0,f()}),(t=>
207{if(0===t.closest(".tve-state-expanded").length&&t.hasClass("thrv_toggle_title")){const e=t.closest(".thrv_toggle");e.hasClass("tve-toggle-auto-collapse")&&e.find(".thrv_toggle_title").tcbToggle("hide")}else if(t.closest(".tve_tab_content:not(.tve-tc-visible)").length){const e=t.closest(".tve_tab_content:not(.tve-tc-visible)").index();t.closest(".thrv-tabbed-content").find(".tve_scT li").eq(e-1).tcbTabsToggle()}})(o),u.stop(!0,!1).animate({scrollTop:o.offset().top-e.$body.offset().top-l},{duration:s,step:(t,e)=>{e.initial_end||(e.initial_end=e.end+l);const o=!c;c=c||e,o&&f()}}).promise().then(()=>{0===o.closest(".tve-state-expanded").length&&(o.hasClass("thrv_toggle_title")?o.trigger("click"):o.is(".tve_tab_title_item")&&o.tcbTabsToggle()),e.$body.trigger("tcb-jumplink-done",[o,i])})},!TCB_Front.Utils.isEditorPage()){const o=function(){if(!location.hash)return;let o;try{o=t(location.hash)}catch(t){return}if(o&&o.length){const t={getAttribute:()=>null,closest:()=>null,classList:{contains:()=>!1}};e.jumpScrollTo(o,t)}};location.hash&&t(window).on("load",function(){setTimeout(o,100)}),t(window).on("hashchange",function(){setTimeout(o,100)});let i=!1,n=0,s=null;t(window).on("blur",function(){i=!0,n=Date.now()}).on("focus",function(){const t=Date.now(),e=n&&t-n<2e3;i&&location.hash&&e?(i=!1,n=0,null!==s&&clearTimeout(s),s=setTimeout(function(){s=null,o()},150)):i=!1})}}(ThriveGlobal.$j,TCB_Front)},91806(t){var e;e=ThriveGlobal.$j,t.exports=function(t,o){if(0===t.length||t.hasClass("tve_lb_open")||t.hasClass("tve_lb_opening"))return;const i=e("body"),n=e("html"),s="tve-o-hidden tve-l-open tve-hide-overflow",r=TCB_Front.Utils.getBrowserScrollSize().width,a=parseInt(i.css("padding-right"));function l(t,o){TCB_Front.$window.trigger("tve_after_content_toggle",[t,!1]),e(window).trigger("tcb_before_lightbox_close",t),void 0===o&&1===e(".tve_lb_open").length&&(i.removeClass(s).css("padding-right",""),n.removeClass(s),t.data("doc-scroll-top")?(document.documentElement.scrollTop=t.data("doc-scroll-top"),t.data("doc-scroll-top","")):t.data("bdy-scroll-top")&&(document.body.scrollTop=t.data("bdy-scroll-top"),t.data("doc-scroll-top",""))),t.removeClass("tve_lb_open tve_lb_opening").addClass("tve_lb_closing"),setTimeout(function(){t.removeClass("tve_lb_closing").css("display","none").find("tve_p_lb_content").trigger("tve.lightbox-close")},300),e("#tve-lg-error-container").hide()}function c(o){const i=t.find(".tve_p_lb_content"),n=TCB_Front.$window.height(),s=void 0!==o&&o?"animate":"css",r=i.outerHeight(!0),a=(n-r)/2;e(window).trigger("tcb_before_lightbox_reposition"),t.find(".tve_p_lb_overlay")[s]({height:r+80+"px","min-height":n+"px"},200),i[s]({top:(a<40?40:a)+"px"},200),r+40>n&&t.addClass("tve-scroll")}if(t.off().on("click",".tve_p_lb_close",function(){return l(t),!1}),i.off("keyup.tve_lb_close").on("keyup.tve_lb_close",function(e){if(27===e.which)return l(t),!1}),t.children(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",function(){return l(t),!1}),l(e(".tve_p_lb_background.tve_lb_open"),!0),"instant"!==o&&t.addClass("tve_p_lb_background tve_lb_anim_"+o),t.data("doc-scroll-top",document.documentElement.scrollTop),t.data("bdy-scroll-top",document.body.scrollTop),i.addClass(s),n.addClass(s),TCB_Front.$window.height()<TCB_Front.$document.height()&&i.css("padding-right",a+r+"px"),t.find(".tve_scT").length&&(TCB_Front.Utils.isEditorPage()||t.find(".tve_scT").each(function(){const t=e(this),o=parseInt(t.attr("data-selected"));if(!TCB_Front.Utils.isEditorPage()){let e=t.find("> ul li").eq(isNaN(o)?0:o);e.length||(e=t.find("> ul li").first()),e.tcbTabsToggle()}})),setTimeout(function(){t.css("display",""),t.addClass("tve_lb_opening"),setTimeout(function(){"instant"===o&&t.addClass("tve_p_lb_background tve_lb_anim_"+o),c(),TCB_Front.$window.trigger("tve_after_content_toggle",[t])},0)},20),t.find(".tve_p_lb_content").trigger("tve.before-lightbox-open"),"none"===t.css("display")||t.hasClass("tve_lb_closing")?(t.removeClass("tve_lb_open"),i.removeClass(s).css("padding-right",""),n.removeClass(s)):setTimeout(function(){t.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open"),t.find("form").each(function(){e(this).find('input[required], textarea[required], select[required], input[data-required="true"], textarea[data-required="true"], select[data-required="true"]').each(function(){const t=e(this);"none"===t.css("display")&&t.css("display",""),"hidden"===t.css("visibility")&&t.css("visibility",""),t.parentsUntil(".tve_p_lb_content").filter(function(){return"none"===e(this).css("display")||"hidden"===e(this).css("visibility")}).css("display","").css("visibility","");const o=t.attr("tabindex");o&&parseInt(o)<0&&t.removeAttr("tabindex")})})}
207,300),TCB_Front.$window.resize(function(){c()}),t.on("lbresize",function(){c(!0)}),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(()=>{c(!0)});t.find("iframe").each(function(){e.observe(this)})}else t.find("iframe").each(function(){this.src=this.src,this.onload=()=>{c(!0)}});e(window).trigger("tcb_after_lightbox_open",t)}},15039(t){var e,o;e=ThriveGlobal.$j,o=TCB_Front,t.exports=class{constructor(){if(this.position="top-center",this.$customNotificationWrapper=e(".notifications-content-wrapper"),this.isCustomNotification=this.$customNotificationWrapper.length>0,this.$notificationWrapper=this.isCustomNotification?this.$customNotificationWrapper:e(".tvd-toast"),this.isCustomNotification){const t=this.$notificationWrapper.attr("data-animation");t&&"none"!==t&&this.$notificationWrapper.addClass("tcb-animated")}(!this.isNotificationPage()||this.isNotificationPage()&&!this.isEditorPage())&&this.render(),this.isNotificationPage()&&this.isEditorPage()&&this.$notificationWrapper.addClass("notification-edit-mode")}isNotificationPage(){let t="tve_notifications"===tve_frontend_options.post_type;return this.isEditorPage()&&(t=TVE.apply_filters("tcb.is_notification_editor_page",t)),t}isEditorPage(){return!!tve_frontend_options.is_editor_page}
207render(){this.$notificationWrapper.hide(),this.$notificationWrapper.removeClass("tcb-permanently-hidden animated");const t=o.queryString.get("content_template");o.queryString.get("preview")&&(this.isNotificationPage()||t&&t.includes("notification"))&&this.toggle()}toggle(t="",e="",o){this.$notificationWrapper.show(),this.isCustomNotification?this.toggleCustomNotification(t,e,o):this.toggleDefaultNotification(t,e,o)}toggleCustomNotification(t,o,i){const n=this.$notificationWrapper.attr("data-animation"),s=this.$notificationWrapper.attr("data-timer"),r=e(`.notification-${o} .thrv-notification_message`);t&&r.length>0&&r.empty().append(t),o&&this.$notificationWrapper.attr("data-state",o),this.$notificationWrapper.removeAttr("data-animation"),setTimeout(()=>{n&&"none"!==n?this.$notificationWrapper.attr("data-animation",n):this.$notificationWrapper.hide(),"function"==typeof i&&i()},s)}toggleDefaultNotification(t,o,i){const n=e(".tve-toast-message-container"),s=e(".tve-toast-icon-container");switch(t&&n.empty().append(t),s.removeClass("tve-toast-error"),s.find(".thrv-svg-icon").empty(),o){case"success":s.find(".thrv-svg-icon").append(TCB_Front.icons.get("checkmark"));break;case"warning":case"error":s.find(".thrv-svg-icon").append(TCB_Front.icons.get("cross")),s.addClass("tve-toast-error")}setTimeout(()=>
207{this.$notificationWrapper.hide(),"function"==typeof i&&i()},3e3)}}},69810(t){"undefined"==typeof URLSearchParams&&(window.URLSearchParams=function(t){const e=this;e.searchString=t,e.get=function(t){const o=new RegExp("[?&]"+t+"=([^&#]*)").exec(e.searchString);return null===o?null:decodeURI(o[1])||0}}),t.exports={get:t=>("string"!=typeof t&&(t=""),new URLSearchParams(window.location.search).get(t)),setUrlParam(t,e,o){const i=new URL(t);return Array.isArray(o)?o.forEach((t,o)=>i.searchParams.append(`${e}[${o}]`,t)):o?i.searchParams.set(e,o):i.searchParams.delete(e),i.toString()}}},68382(t){t.exports=["attachment","attachment_id","author","author_name","calendar","cat","category","category__and","category__in","category__not_in","category_name","comments_per_page","comments_popup","custom","customize_messenger_channel","customized","cpage","day","debug","embed","error","exact","feed","fields","hour","link_category","m","minute","monthnum","more","name","nav_menu","nonce","nopaging","offset","order","orderby","p","page","page_id","paged","pagename","pb","perm","post","post__in","post__not_in","post_format","post_mime_type","post_status","post_tag","post_type","posts","posts_per_archive_page","posts_per_page","preview","robots","s","search","second","sentence","showposts","static","status","subpost","subpost_id","tag","tag__and","tag__in","tag__not_in","tag_id","tag_slug__and","tag_slug__in","taxonomy","tb","term","terms","theme","title","type","types","w","withcomments","withoutcomments","year"]},5540(t){var e,o;e=ThriveGlobal.$j,o=TCB_Front,t.exports={init(t){tve_frontend_options.is_editor_page?(t.find("input[data-hide],textarea[data-hide]").each((t,e)=>{this.handleInput(e,!1)}),TVE.add_action("tve.conditional_display.activate",t=>this.handleSmartComplete(t))):(setTimeout(()=>this.handleSmartComplete(t)),o.$document.on("switchstate",(t,e)=>{this.handleSmartComplete(e)}),e(window).on("tcb_after_lightbox_open",(t,o)=>{this.handleSmartComplete(e(o))}),e(window).on("tl_after_lightbox_open",(t,o)=>{this.handleSmartComplete(e(o))}))},handleSmartComplete(t){t.find("[default-value]:not([data-complete-type])").each((t,e)=>{e.value=e.getAttribute("default-value")}),t.find("[data-complete-type]").each((t,e)=>{let i=e.dataset.completeValue;switch(e.dataset.completeType){case"user":if(e.dataset.completeValue)if(e.dataset.completeValue.includes("wp"))i=tve_frontend_options.current_user[e.dataset.completeValue.replace("wp.","")];else if("ip"===e.dataset.completeValue)i=tve_frontend_options.ip;else{const t=TCB_Front.detectBrowser();i=Object.keys(t).filter(e=>t[e]&&"webkit"!==e).toString(),i.includes("version")&&(i=i.replace("version",TCB_Front.browser.version))}break;case"time":i=this.convertDate((e.dataset.completeValue||"")+" HH:mm:ss");break;case"query":i=TCB_Front.queryString.get(e.dataset.completeValue);break;case"post":i=tve_frontend_options.post_request_data[e.dataset.completeValue];break;case"cookie":i=o.getCookie(e.dataset.completeValue);break;case"content":i=tve_frontend_options[e.dataset.completeValue];break;case"source":i=document.referrer;break;case"shortcode":e.parentNode.dataset.completeValue&&(i=e.parentNode.dataset.completeValue),i=i.replace(/\[(.*?)\]/g,"")}!i&&e.getAttribute("data-hide")&&this.handleInput(e,!1),i=i||e.getAttribute("default-value"),i&&(e.value=i)}),t.find('[type="radio"][default-value]').each(function(){this.checked=this.value===this.getAttribute("default-value")}),t.find('[type="checkbox"][default-value]').each(function(){this.checked="checked"===this.getAttribute("default-value")})},handleInput(t,e=!0){const o=e?"add":"remove",i=t.closest("form").querySelector(`[data-label-for="${t.parentElement.getAttribute("data-label")}"]`);t.parentElement.classList[o]("tcb-permanently-hidden"),t.parentElement.previousElementSibling&&"label"===t.parentElement.previousElementSibling.tagName.toLowerCase()&&t.parentElement.previousElementSibling.classList[o]("tcb-permanently-hidden"),i&&i.classList[o]("tcb-permanently-hidden")},convertDate(t){const e=new Date;function o(t,e){let o=t+"";for(e=e||2;o.length<e;)o="0"+o;return o}const i=e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+i)).replace(/(^|[^\\])yy/g,"$1"+i.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+i);const n=e.getMonth()+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+["\0","January","February","March","April","May","June","July","August","September","October","November","December"][n])).replace(/(^|[^\\])MMM/g,"$1"+["�","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n])).replace(/(^|[^\\])MM/g,"$1"+
207o(n))).replace(/(^|[^\\])M/g,"$1"+n);const s=e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+["�","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][s])).replace(/(^|[^\\])ddd/g,"$1"+["�","Sun","Mon","Tue","Wed","Thu","Fri","Sat"][s])).replace(/(^|[^\\])dd/g,"$1"+o(s))).replace(/(^|[^\\])d/g,"$1"+s);const r=e.getHours();let a;a=r>12?r-12:0===parseInt(r)?12:r,t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+o(r))).replace(/(^|[^\\])H/g,"$1"+r)).replace(/(^|[^\\])hh+/g,"$1"+o(a));const l=e.getMinutes();t=t.replace(/(^|[^\\])mm+/g,"$1"+o(l));const c=e.getSeconds();return t.replace(/(^|[^\\])ss+/g,"$1"+o(c))}}},98079(t){function e(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,i)}return o}function o(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?e(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function i(t,e,o){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}!function(e,i){i.identifiers=o(o({},i.identifiers||{}),{},{parentStickyParent:".tcb-col,.tve-cb,.tve-page-section-in,#tve_editor",pageStickyParent:"#tve_editor,.symbol-section-in,.thrv_wrapper.section,.thrive-symbol-shortcode,.tcb-post-list",stickyParentType:".tcb-col,.tve-cb,.tve-page-section-in",parentZindexFix:""});const n={boxSizing:"",marginTop:"",marginLeft:"",height:"",top:"",bottom:"",position:"",opacity:"",minWidth:"",maxWidth:"",textDecoration:"",zIndex:""},s=function(){return window.visualViewport?window.visualViewport.height:window.innerHeight},r=function(t){return s()-t.data("defaultTop")-t.outerHeight()},a=function(t,e){const o=r(t);return o!==t.data("previousTop")&&(t[0].style.setProperty("top",`${o}px`),t.data("previousTop",o),e.top=o,!0)},l=function(t,e){let o;return function(){const i=arguments,n=this;clearTimeout(o),b?t.apply(n,i):o=setTimeout(function(){t.apply(n,i)},e)}},c=l(function(t,e){t&&t.stop().animate(e,200)},200);let d,h,p,u,f,g,_,m=e(),b=!1,v=!1,y=0,w="",T="left";const C={},$={};function k(t){return Math.min(h.top+d.data("$$position").top+t-g.top+d.data("marginTop"),(d.data("append-target")||d.parent()).height()-d.outerHeight())}function x(t,e,o){b=o,m.each(function(){if(j(this),!function(){if(!h.disabled||!h.disabled.length)return!0;if(_){let t=!0;return h.disabled.forEach(e=>{("desktop"===e&&!TCB_Front.$body.is(".preview-tablet,.preview-mobile")||i.$body.hasClass(`preview-${e}`))&&(t=!1)}),t}const t=i.$window.width();return t<=767?-1===h.disabled.indexOf("mobile"):t<=1023?-1===h.disabled.indexOf("tablet"):-1===h.disabled.indexOf("desktop")}()||v||!d.hasClass(`tve-sticky-${h.end}-hidden`)&&!d.is(":visible"))return v&&d.removeData("clone-sticky"),C.on_scroll_up_default(t,!0),"parallax"===h.mode&&S(d,v),void d.removeClass(`tve-scroll-${h.mode}`);"parallax"!==h.mode&&(u||(d.data("$$offset",d.offset()),d.data("marginTop",Number(d.css("margin-top").replace("px",""))),d.data("$$position",d.position()),d.data("$$scroll",t),"element"===h.end&&d.data("$$stop-offset",d.data("stop-target").offset()||{top:1e6})),g=d.data("$$offset")),C["on_scroll_"+e+"_"+h.end].call(C,t)})}function S(t=i.$body,e=!1){t.each((t,o)=>{i.inlineCssVariable(o,{"--parallaxR":e?"":"0","--parallaxB":e?"":"0","--parallaxS":e?"":"1","--parallaxO":e?"":"1","--parallaxTX":e?"":"0","--parallaxTY":e?"":"0","--parallaxRY":e?"":"0","--parallaxP":e?"":"1000px"})})}function B(){const t=TCB_Front.$body.hasClass("visible-off-screen-sidebar");m.each(function(){const o=e(this),n=o.data("scroll_config")||{};if("parallax"===n.mode)return;const s=n.end||"default",r="tve-sticky-"+s;if(!o.hasClass(r))return;const a=o.data("clone-sticky");if(!a||!a.length)return;if(o.hasClass("thrv_header")&&i.$body.hasClass("tcb-full-header"))return;const l="fixed"===o.css("position")?function(t,e,o,n){if(n&&"over"===w&&"right"!==T)return parseInt(y);if(t[0].classList.contains("tcb-window-width"))return function(t){"function"==typeof TCB_Front.resizePageSection&&TCB_Front.resizePageSection(t)}(t),0;if("center"===(t.css("--tve-alignment")||"").trim()&&"default"===o){const e=function(t){let e=t.data("append-target");return e&&e.length?e:(e=t.closest(i.identifiers.pageStickyParent),e&&e.length?e:i.$body)}(t),o=e[0].getBoundingClientRect();return Math.max(0,Math.round(o.left+(o.width-t.outerWidth())/2))}return(e.offset()||{left:0}).left}(o,a,s,t):function(t,e,o){const i=t.offsetParent(),n=i&&i.length,s=n&&i.offset()?i.offset():{left:0}
207,r=(e.offset()||{left:0}).left-s.left;if("center"===(t.css("--tve-alignment")||"").trim()&&"parent"===o&&n){const e=i.innerWidth(),o=t.outerWidth(),n=Math.max(0,Math.round((e-o)/2)),s=function(t){try{const e=window.getComputedStyle(t[0]).transform;if(!e||"none"===e)return 0;const o=e.match(/^matrix\(([^)]+)\)$/);if(!o)return 0;const i=o[1].split(",").map(t=>parseFloat(t));if(6!==i.length)return 0;const n=i[4];return isNaN(n)?0:n}catch(t){return 0}}(t),r=Math.abs(s+o/2)<3?Math.round(o/2):0;return Math.max(0,n+r)}return r}(o,a,s);"number"==typeof l&&(o.css("left",`${l}px`),o.css({"margin-left":"","margin-right":"",right:""}))})}function F(t=!0,e="default"){const o=d;if(t&&o.hasClass(`tve-sticky-${e}-hidden`))return void o[0].style.setProperty("display","none","important");const i={duration:600,complete:()=>{const e=t?"none":o.data("defaultDisplay");o[0].style.setProperty("display",e,"important"),o[0].style.setProperty("position","fixed","important")}},n=`tve-sticky-${e}-hidden`;t?o.addClass(n).fadeOut(i):o.removeClass(n).fadeIn(i)}function j(t){d=e(t),h=d.data("scroll_config")||{},"parallax"!==h.mode?("bottom"===h.stickyPosition&&(h.top=r(d),d.data("scroll_config",h)),p="tve-sticky-"+h.end,u=t.classList.contains(p),f=d.data("clone-sticky")||e()):f=e()}e(window).on("resize",function(){void 0!==f&&f.css({height:d.outerHeight()})}),C.on_scroll_down_default=function(t,o){let n=0,r=!0;const l=(o=o||{}).position||"fixed";"appear"===h.mode&&(o.top=-d.outerHeight(),n=-o.top);let _=t+h.top>g.top+n;if(d.hasClass("thrv_header")){if(i.$body.hasClass("tve-tl-gr-anim"))return void C.on_scroll_up_default(t,!0);_=t+h.top>
207=g.top+n}if(_&&i.$body.trigger("tcb-sticky-initialized",d),"bottom"===h.stickyPosition&&(_=t+s()>g.top+d.height()+Number(d.data("defaultTop")),r=!1,i.isBottomScroll(t)&&F(!0,"default"),u&&!i.isBottomScroll(t)&&a(d,h)),u)return"appear"===h.mode&&c(d,o),void(r&&i.$body.trigger("tcb-sticky-add",[d]));if(_){!function(){if(f=d.data("clone-sticky"),!f){let t=d.outerHeight();d.parent().hasClass("tcb-clear")&&(t=d.parent().outerHeight()),f=e('<div class="thrv_wrapper"></div>').css({boxSizing:"border-box",padding:0,width:d.outerWidth(),height:t,marginTop:d.css("margin-top"),marginBottom:d.css("margin-bottom"),marginLeft:d.css("margin-left"),marginRight:d.css("margin-right"),position:d.css("position"),left:d.css("left"),float:d.css("float")}),d.data("clone-sticky",f),d.trigger("tcb.sticky.ensure_placeholder")}}(),d.addClass(p),delete o.position,d.before(f);const t=f.offset(),n=TCB_Front.$body.hasClass("visible-off-screen-sidebar"),s=d.prevAll("[data-position=top]");let a;a=n&&"over"===w&&"right"!==T?parseInt(y):d[0].classList.contains("tcb-window-width")?0:t.left,e(f).remove(),d.data("$$offset",t),d.data("saved_props",{offset:t,width:d[0].style.width||"",left:d[0].style.left||""});let c=d.width();const g=d.hasClass("thrv_header")&&i.$body.hasClass("tcb-full-header");n&&(d.hasClass("tcb-window-width")||g)&&(c=Math.max(f.width(),c));const _={width:c,height:d.height(),top:`calc(${h.top}px + var(--tcb-header-extra-offset,0px))`};g||(_.left=`${a}px`),d.css(e.extend(_,o));let m="0px";if("parent"===h.end){const t=d.css("margin-left");t===d.css("margin-left")&&(m=t)}g||d[0].style.setProperty("margin-left",m,"important"),d[0].style.setProperty("margin-top","0px","important"),d[0].style.setProperty("min-width","0","important"),d[0].style.setProperty("max-width","none","important"),d[0].style.setProperty("position",l,"important"),d[0].style.setProperty("box-sizing","content-box","important");const b=Number(d.css("z-index"));d[0].style.setProperty("z-index",isNaN(b)?"14":Math.max(b,14),"important"),d.closest(i.identifiers.parentZindexFix).css("z-index",isNaN(b)?"14":Math.max(b,14)),d.before(f),u=!0,d.data("append-target")&&(d.appendTo(d.data("append-target")),d.data("$parent").is("a")&&(d.wrap(d.data("$parent").clone().empty().addClass("tcb-sticky-anchor")),d[0].style.setProperty("text-decoration","inherit","important"))),d.hasClass("thrv_header")&&d[0].style.setProperty("z-index",90,"important"),r&&i.$body.trigger("tcb-sticky-add",[d]),s.length>0&&s.css("z-index","91"),B()}},C.on_scroll_up_default=function(t,e){if(!f||!f.length||!u)return;(e=!!e)||"appear"!==h.mode||c(d,{top:h.top});let o=f.offset().top||0;d.data("saved_props")&&(o=d.data("saved_props").offset.top);let r=t+h.top<=o,l=!0;d.hasClass("thrv_header")&&(r=t+h.top<o),"bottom"===h.stickyPosition&&(u&&a(d,h),r=t+s()<=o+d.height()+Number(d.data("defaultTop")),l=!1,F(i.isBottomScroll(t))),e||r?(u=!1,d.removeClass(p).stop().css(Object.assign({},n,d.data("saved_props"))),document.contains(f[0])&&d.data("append-target")&&f.before(d),f.detach(),i.$body.find(".tcb-sticky-anchor:empty").remove(),l&&i.$body.trigger("tcb-sticky-remove",d),d.hasClass("tcb-window-width")&&TCB_Front.resizePageSection(d)):l&&i.$body.trigger("tcb-sticky-add",[d])},C.on_scroll_down_parent=function(t){const o=d.data("prevTop"),n=o||0,s=k(t);if(t&&"bottom"===h.stickyPosition&&s&&s===n&&(F(!0,"parent"),d.data("hideTop",s)),o&&d.data("prevTop",o?s:"0"),u)d.css({top:s}),"bottom"!==h.stickyPosition&&i.$body.trigger("tcb-sticky-add",[d]);else{const o=d.data("appendTarget")||e(),n=o.length&&(o.is(d.data("$parent"))||o.is(i.identifiers.stickyParentType))||["left","right"].includes(d.css("float"));C.on_scroll_down_default(t,{position:"absolute",left:d.data(n?"$$position":"$$offset").left,top:s})}},C.on_scroll_up_parent=function(t){if(!f||!f.length||!u)return;const e=k(t);e<=d.data("$$position").top+d.data("marginTop")?C.on_scroll_up_default(t):("bottom"===h.stickyPosition&&d.hasClass("tve-sticky-parent-hidden")&&(d.data("hideTop")!==e?(F(!1,"parent"),d.data("prevTop",0),d.data("hideTop",0)):d[0].style.setProperty("display","none","important")),d.css("top",e),"bottom"!==h.stickyPosition&&i.$body.trigger("tcb-sticky-add",[d]))},C.on_scroll_down_element=function(t){const e=d.data("$$stop-offset").top-t-d.outerHeight(),o=Math.min(h.top,e),n={top:o};t&&"bottom"===h.stickyPosition&&o&&o===e&&F(!0,"element"),u?(d.css("top",n.top),"bottom"!==h.stickyPosition&&i.$body.trigger("tcb-sticky-add",[d])):C.on_scroll_down_default(t,n)},C.on_scroll_up_element=function(t){if(C.on_scroll_up_default(t),u){const e=Math.min(h.top,d.data("$$stop-offset").top-t-d.outerHeight());d.css("top",e),"bottom"===h.stickyPosition?d.hasClass("tve-sticky-element-hidden")&&e===h.top&&F(!1,"element"):i.$body.trigger("tcb-sticky-add",[d])}},C.on_scroll_down_parallax=C.on_scroll_up_parallax=t=>{const e=d.data("elem_data"),o=d.data("parallaxSettings");if(!o||!Object.keys(o).length||!e)return;const n=[],r=function(t,e){const o=e.top-t-s();return 100/e.elementRange*(-1*o)}(t,e);let a;function l(t,e){return t*e/100}
207Object.keys(o).forEach(t=>{const e=o[t];let s="";if(r>e.start){let o;a=Number(r>e.end?e.end:r);const c=function(t,e){let o,i=e.direction;if(["in-out","out-in"].includes(i)&&(i=i.split("-")[t<=e.middle?"0":"1"],"in-out"===e.direction)){const o=e.middle-e.start;"in"===i?t+=o:t-=o,t===e.middle&&(t="in"===i?-1:101)}var n;return t<e.start?o="in"===i?0:100:t<e.end?(n=e.end-e.start,o=+((t-e.start)/n*100).toFixed(2),"out"===i&&(o=100-o)):o="out"===i?0:100,o}(a,e);switch(t){case"vertical":case"horizontal":case"rotate":a="in"===e.direction?-1*a:a,o=function(t,e){return t*e}(a,e.speed);break;case"scale":o=1+e.speed*c/1e3;break;case"blur":o=e.speed-l(e.speed,c);break;case"transparency":const t=e.speed/10;o=1-t+l(t,c);break;case"3dperspective":e.perspective=Number(e.perspective),"from"===e.direction?o=(1e3-e.perspective)*(a-e.start)/100*e.speed+e.perspective:(a=100-a,o=Math.max(e.perspective,e.perspective*a/100*e.speed)),o=Math.max(o,100),i.inlineCssVariable(d,"--parallaxRY")!==`${e.degrees}deg`&&n.push({key:"RY",value:`${e.degrees}deg`})}s=`${o}${e.settings.um}`}n.push({key:e.settings.key,value:s})}),n.length&&n.forEach(t=>{i.inlineCssVariable(d,`--parallax${t.key}`,t.value)})};const P=l(function(){m.each(function(){j(this),C.on_scroll_up_default(0,!0);const t=e(this).data("clone-sticky");t&&t.css({width:d.outerWidth()})}),x(i.$document.scrollTop(),"down",!0),B(),setTimeout(function(){B()},50)},50),E=l(B,16);$.initSticky=function(t=i.$body,o=!1){_=o,function(t,o=!1){(t=t[o?"filter":"find"]("[data-tve-scroll]")).filter(`:not(.tcb-${i.getDisplayType()}-hidden)`).each(function(){try{const t=JSON.parse(this.dataset.tveScroll);let o=e(this);if(o.hasClass("thrive-symbol-shortcode")&&(o=o.parent()),o.addClass(`tve-scroll-${t.mode}`),"parallax"===t.mode){if(!t.parallax||!Object.keys(t.parallax).length)return;const e=o.offset(),i=o.outerHeight(),n={width:o.outerWidth(),height:i,top:e.top,left:e.left,elementRange:i/2+s()};o.data("parallaxSettings",t.parallax),o.data("elem_data",n)}else if(_)return;if(o.data("$parent",o.parent()),t.top=parseInt(t.top||"0"),t.end=t.end||"default",t.stickyPosition=t.stickyPosition||"top","bottom"===t.stickyPosition){let e=o.css("display").trim();"none"===e&&(e="block"),o.data("defaultTop",t.top),o.data("previousTop",t.top),o.data("defaultDisplay",e),t.top=s()-t.top-o.outerHeight()}else t.top+=i.body_offset?i.body_offset.top:e("body").offset().top;"desktop"!==i.getDisplayType()&&(t.top=t.top-(e("#wpadminbar").height()||0)),o.data("scroll_config",t).data("append-target",function(t,e){return!(t.find("iframe,video").length||t.find(".tcb-video-background-el").length||t.hasClass("thrv_header"))&&("parent"===e?t.parent().closest(i.identifiers.parentStickyParent):t.closest(i.identifiers.pageStickyParent))}(o,t.end)),"element"===t.end&&o.data("stop-target",e("#"+(t.el_id&&t.el_id.replace("#","")||"some-not-found-id"))),_||delete this.dataset.tveScroll,m=m.add(o)}catch(t){console.warn(t)}})}(t),m.length&&(S(),_||(i.$body[0].style.overflowX="hidden")),i.add_scroll_callback(x),i.addResizeCallback(P),TCB_Front.$window.on("orientationchange",l(P,100)),window.visualViewport&&window.visualViewport.addEventListener("resize",l(function(){x(i.$document.scrollTop(),"down",!0)},16)),i.$body.on("tcb.body.resize",E),i.$body.on("tcb-sticky-add tcb-sticky-remove",E),i.$body.length&&(y=i.inlineCssVariable(i.$body,"--off-screen-sidebar-size")),w=i.$body.attr("data-off-screen-type"),T=i.$body.attr("data-off-screen-side")},$.destroyScrollBehavior=function(){v=!0,TCB_Front.$window.trigger("scroll"),m=e(),v=!1},$.resetElementsPosition=()=>{v=!0,TCB_Front.$window.trigger("scroll"),v=!1,TCB_Front.$window.trigger("scroll")},$.forceAddElement=function(t){m=m.add(t)},$.updateStickyLeftOffsets=B,t.exports=$}(ThriveGlobal.$j,TCB_Front)},73771(t){(e=>{const o={get(t){const e=this.icons[t]||"";return e?'<svg xmlns="http://www.w3.org/2000/svg" class="tcb-{icon}" viewBox="{viewbox}">{html}</svg>'.replace("{viewbox}",e.viewbox||"0 0 32 32").replace("{icon}",t).replace("{html}",e.html||e):""},render(t,e,o="html",i=!0){t[o](this.get(e)),i&&t.addClass("thrv-svg-icon")},migrate(t){const o=["cross","forward"],i={tve_s_fb_share:"facebook",tve_s_x_share:"x",tve_s_in_share:"linkedin",tve_s_pin_share:"pinterest",tve_s_xing_share:"xing",tve_s_bluesky_share:"bluesky"};
207t.find('[class^="thrv-icon-"], [class*=" thrv-icon-"], .tve_s_item').not(".thrv-svg-icon").each((t,n)=>{o.some(t=>!!n.className.includes(t)&&(this.render(e(n),t),!0))||Object.keys(i).forEach(t=>{n.className.includes(t)&&!n.querySelector(".tcb-icon")&&this.render(e(n).find(".tve_s_icon"),i[t])})}),this.render(t.find(".rv_button_rounded_rectangle_light .overlay_play_button:empty"),"yt-play")},icons:{spinner9:'<path d="M16 0c-8.711 0-15.796 6.961-15.995 15.624 0.185-7.558 5.932-13.624 12.995-13.624 7.18 0 13 6.268 13 14 0 1.657 1.343 3 3 3s3-1.343 3-3c0-8.837-7.163-16-16-16zM16 32c8.711 0 15.796-6.961 15.995-15.624-0.185 7.558-5.932 13.624-12.995 13.624-7.18 0-13-6.268-13-14 0-1.657-1.343-3-3-3s-3 1.343-3 3c0 8.837 7.163 16 16 16z"></path>',cross:'<path d="M31.708 25.708c-0-0-0-0-0-0l-9.708-9.708 9.708-9.708c0-0 0-0 0-0 0.105-0.105 0.18-0.227 0.229-0.357 0.133-0.356 0.057-0.771-0.229-1.057l-4.586-4.586c-0.286-0.286-0.702-0.361-1.057-0.229-0.13 0.048-0.252 0.124-0.357 0.228 0 0-0 0-0 0l-9.708 9.708-9.708-9.708c-0-0-0-0-0-0-0.105-0.104-0.227-0.18-0.357-0.228-0.356-0.133-0.771-0.057-1.057 0.229l-4.586 4.586c-0.286 0.286-0.361 0.702-0.229 1.057 0.049 0.13 0.124 0.252 0.229 0.357 0 0 0 0 0 0l9.708 9.708-9.708 9.708c-0 0-0 0-0 0-0.104 0.105-0.18 0.227-0.229 0.357-0.133 0.355-0.057 0.771 0.229 1.057l4.586 4.586c0.286 0.286 0.702 0.361 1.057 0.229 0.13-0.049 0.252-0.124 0.357-0.229 0-0 0-0 0-0l9.708-9.708 9.708 9.708c0 0 0 0 0 0 0.105 0.105 0.227 0.18 0.357 0.229 0.356 0.133 0.771 0.057 1.057-0.229l4.586-4.586c0.286-0.286 0.362-0.702 0.229-1.057-0.049-0.13-0.124-0.252-0.229-0.357z"></path>',checkmark:'<path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"></path>',forward:{viewbox:"0 0 18 18",html:'<path d="M16.711 8.29l-6-5.996c-0.391-0.391-1.026-0.391-1.417 0s-0.391 1.025 0 1.417l4.293 4.29h-11.59c-0.553 0-1.001 0.448-1.001 1s0.448 1 1.001 1h11.59l-4.292 4.29c-0.391 0.391-0.391 1.025 0.001 1.417s1.026 0.391 1.417 0l6-5.997c0.196-0.196 0.294-0.453 0.294-0.71s-0.097-0.514-0.294-0.71z"></path>'},sort:{viewbox:"0 0 16 28",html:'<path d="M16 17q0 0.406-0.297 0.703l-7 7q-0.297 0.297-0.703 0.297t-0.703-0.297l-7-7q-0.297-0.297-0.297-0.703t0.297-0.703 0.703-0.297h14q0.406 0 0.703 0.297t0.297 0.703zM16 11q0 0.406-0.297 0.703t-0.703 0.297h-14q-0.406 0-0.703-0.297t-0.297-0.703 0.297-0.703l7-7q0.297-0.297 0.703-0.297t0.703 0.297l7 7q0.297 0.297 0.297 0.703z"></path>'},"sort-desc":{viewbox:"0 0 16 28",html:'<path d="M16 17q0 0.406-0.297 0.703l-7 7q-0.297 0.297-0.703 0.297t-0.703-0.297l-7-7q-0.297-0.297-0.297-0.703t0.297-0.703 0.703-0.297h14q0.406 0 0.703 0.297t0.297 0.703z"></path>'},"sort-asc":{viewbox:"0 0 16 28",html:'<path d="M16 11q0 0.406-0.297 0.703t-0.703 0.297h-14q-0.406 0-0.703-0.297t-0.297-0.703 0.297-0.703l7-7q0.297-0.297 0.703-0.297t0.703 0.297l7 7q0.297 0.297 0.297 0.703z"></path>'},facebook:{viewbox:"0 0 16 28",html:'<path d="M14.984 0.187v4.125h-2.453q-1.344 0-1.813 0.562t-0.469 1.687v2.953h4.578l-0.609 4.625h-3.969v11.859h-4.781v-11.859h-3.984v-4.625h3.984v-3.406q0-2.906 1.625-4.508t4.328-1.602q2.297 0 3.563 0.187z"></path>'},x:{viewbox:"0 0 24 24",html:'<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path>'},linkedin:{viewbox:"0 0 28 28",html:'<path d="M5.453 9.766v15.484h-5.156v-15.484h5.156zM5.781 4.984q0.016 1.141-0.789 1.906t-2.117 0.766h-0.031q-1.281 0-2.063-0.766t-0.781-1.906q0-1.156 0.805-1.914t2.102-0.758 2.078 0.758 0.797 1.914zM24 16.375v8.875h-5.141v-8.281q0-1.641-0.633-2.57t-1.977-0.93q-0.984 0-1.648 0.539t-0.992 1.336q-0.172 0.469-0.172 1.266v8.641h-5.141q0.031-6.234 0.031-10.109t-0.016-4.625l-0.016-0.75h5.141v2.25h-0.031q0.313-0.5 0.641-0.875t0.883-0.812 1.359-0.68 1.789-0.242q2.672 0 4.297 1.773t1.625 5.195z"></path>'},pinterest:'<path d="M16 0c-8.837 0-16 7.163-16 16 0 6.778 4.217 12.568 10.169 14.899-0.14-1.266-0.266-3.208 0.055-4.59 0.291-1.249 1.876-7.953 1.876-7.953s-0.479-0.958-0.479-2.375c0-2.225 1.29-3.886 2.895-3.886 1.365 0 2.024 1.025 2.024 2.254 0 1.373-0.874 3.425-1.325 5.327-0.377 1.593 0.799 2.892 2.369 2.892 2.844 0 5.030-2.999 5.030-7.327 0-3.831-2.753-6.509-6.683-6.509-4.552 0-7.225 3.415-7.225 6.943 0 1.375 0.53 2.85 1.191 3.651 0.131 0.158 0.15 0.297 0.111 0.459-0.121 0.506-0.391 1.593-0.444 1.815-0.070 0.293-0.232 0.355-0.535 0.214-1.998-0.93-3.248-3.852-3.248-6.198 0-5.047 3.667-9.682 10.572-9.682 5.55 0 9.864 3.955 9.864 9.241 0 5.514-3.477 9.952-8.302 9.952-1.621 0-3.145-0.842-3.667-1.837 0 0-0.802 3.055-0.997 3.803-0.361 1.39-1.337 3.132-1.989 4.195 1.497 0.463 3.088 0.713 4.738 0.713 8.836-0 16-7.163 16-16s-7.163-16-16-16z"></path>',xing:{viewbox:"0 0 22 28",html:'<path d="M9.328 10.422q-0.156 0.281-4.016 7.125-0.422 0.719-1.016 0.719h-3.734q-0.328 0-0.484-0.266t0-0.562l3.953-7q0.016 0 0-0.016l-2.516-4.359q-0.187-0.344-0.016-0.578 0.141-0.234 0.5-0.234h3.734q0.625 0 1.031 0.703zM21.922 0.391q0.172 0.25 0 0.578l-8.25 14.594v0.016l5.25 9.609q0.172 0.313 0.016 0.578-0.156 0.234-0.5 0.234h-3.734q-0.656 0-1.031-0.703l-5.297-9.719q0.281-0.5 8.297-14.719 0.391-0.703 1-0.703h3.766q0.344 0 0.484 0.234z"></path>'},"yt-play":{viewbox:"0 0 28 28",html:'<path d="M20 14q0-0.578-0.469-0.844l-8-5q-0.484-0.313-1.016-0.031-0.516 0.281-0.516 0.875v10q0 0.594 0.516 0.875 0.25 0.125 0.484 0.125 0.313 0 0.531-0.156l8-5q0.469-0.266 0.469-0.844zM28 14q0 1.5-0.016 2.344t-0.133 2.133-0.352 2.305q-0.25 1.141-1.078 1.922t-1.937 0.906q-3.469 0.391-10.484 0.391t-10.484-0.391q-1.109-0.125-1.945-0.906t-1.086-1.922q-0.219-1.016-0.336-2.305t-0.133-2.133-0.016-2.344 0.016-2.344 0.133-2.133 0.352-2.305q0.25-1.141 1.078-1.922t1.937-0.906q3.469-0.391 10.484-0.391t10.484 0.391q1.109 0.125 1.945 0.906t1.086 1.922q0.219 1.016 0.336 2.305t0.133 2.133 0.016 2.344z"></path>'},"arrow-left":{viewbox:"0 0 12 22",html:'<path d="M14.653 43.496l9.92-9.919c.379-.379.379-.992 0-1.37l-9.92-9.92c-.613-.613-1.653-.178-1.653.685v19.839c0 .863 1.04 1.298 1.653.685z" transform="translate(-19573 -418) translate(19560 396) matrix(-1 0 0 1 37.857 0)"/>'},"arrow-right":{viewbox:"0 0 12 22",html:'<path d="M14.653 43.496l9.92-9.919c.379-.379.379-.992 0-1.37l-9.92-9.92c-.613-.613-1.653-.178-1.653.685v19.839c0 .863 1.04 1.298 1.653.685z" transform="translate(-20901 -418) matrix(-1 0 0 1 20926 396) matrix(-1 0 0 1 37.857 0)"/>'},"chevron-left-solid":{viewbox:"0 0 320 512",html:'<path d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"></path>'},"chevron-right-solid":{viewbox:"0 0 320 512",html:'<path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522
207-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>'},dot:{viewbox:"0 0 24 24",html:'<path d="M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8Z"/>'},star:{viewbox:"0 0 576 512",html:'<path d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"></path>'}}};t.exports=o})(ThriveGlobal.$j)},22138(t){!function(e,o){function i(t){try{n.each(function(){const i=e(this);if(!i.data("typed"))return;const n=o.$window.height();t+n>=i.offset().top&&i.offset().top>t||"start"===i.attr("data-typefocus")?i.typed("start"):(i.attr("data-typefocus"),i.typed("pause"))})}catch(t){console.log(t)}}let n=e();t.exports=function(t){n=n.add(t.find(".tve_typefocus")),setTimeout(function(){try{n.each(function(){let t=[];const o=e(this);if(0===o.attr("data-typist").length)return;const i=parseInt(o.attr("data-speed")),n=o.attr("data-colors");t.push(o.text()),t=t.concat(o.attr("data-typist").split("|")),o.typed({strings:t,loop:!0,typeSpeed:125,backSpeed:50,highlightClass:1===parseInt(o.attr("data-highlight"))?"tve_selected_typist":"",highlightStyle:1===parseInt(o.attr("data-highlight"))&&n?"background-color:"+n:"",backDelay:i,contentType:"text",startDelay:800,showCursor:o.hasClass("tve_typefocus_cursor")})})}catch(t){console.log(t)}},1e3),o.add_scroll_callback(i)}}(ThriveGlobal.$j,TCB_Front)},66640(t){(e=>{class o{static isEditorPage(){return tve_frontend_options.is_editor_page}static isExternal(t){return o.getDomain(location.href)!==o.getDomain(t)}static getDomain(t){return t.replace("http://","").replace("https://","").split("/")[0]}static restAjax({type:t="POST",route:o="",data:i}){return e.ajax({headers:{"X-WP-Nonce":tve_frontend_options.nonce},url:o,type:t,data:i})}static handleContent(t,o=!0){e(window).trigger(o?"tcb_on_content_show":"tcb_on_content_hide"),e(window).trigger("tve_after_content_toggle",[t,o])}static jsonParse(t,e,o=null,i={}){if(null==o){let o;try{o=JSON.parse(t.attr(e)||JSON.stringify(i))}catch(e){console.warn("Could not get json data for element:",t),o=i}return o}return t.attr(e,JSON.stringify(o))}static toast(t,e,o){"string"!=typeof t&&(t=t.message||t.error||t.success),e||(e=!1),TCB_Front.notificationElement.toggle(t,e?"error":"success",o)}static windowWidth(){let t,e;try{e=window.parent&&window.parent.TVE&&window.parent.TVE.main,t=e&&window.parent.TVE.main.$frame.width()||TCB_Front.$window[0].innerWidth}catch(o){t=TCB_Front.$window[0].innerWidth,e=!1}let o=window.screen.width;return window.matchMedia("(orientation:landscape)").matches&&window.screen.height>o&&(o=window.screen.height),e||t>o+20&&t>window.outerWidth+20&&(t=o),t}static getBrowserScrollSize(){const t={border:"none",height:"200px",margin:"0",padding:"0",width:"200px"},o=e("<div>").css(e.extend({},t)),i=e("<div>").css(e.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},t)).append(o).appendTo("body").scrollLeft(1e3).scrollTop(1e3),n={height:i.offset().top-o.offset().top||0,width:i.offset().left-o.offset().left||0};return i.remove(),n}static hasAdminBar(){return e("#wpadminbar").length>0}static appendFormParamsToURL(t,i){return!Array.isArray(i)&&i.jquery&&(i=o.buildFormParams(i)),t+(t.split("?")[1]?"&":"?")+e.param(i)}static buildFormParams(t){let e=[];return t.find(".tve_lg_input_container input:not([name=user_consent]), .tve_lg_input_container textarea").not("input[type=hidden]").not("input[type=password]").each((t,o)=>{const i=ThriveGlobal.$j(o).serializeArray();if(i[0]){o.dataset.name&&(i[0].name=o.dataset.name.replace(/\s/g,"_")),TCB_Front.reservedTerms.includes(i[0].name.toLowerCase())&&(i[0].name="tve_"+i[0].name);const t=e.findIndex(t=>t.name===i[0].name);t>=0?e[t].value=e[t].value+", "+i[0].value:e=e.concat(i)}}),e}static appendRandomParamToURL(t){return t+(t.split("?")[1]?"&":"?")+"_="+Math.floor(1e3*Math.random())}static isEmail(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}static addHttp(t){return!(t=t.trim())||0===t.indexOf("#")||/^mailto/.test(t)||/^tel/.test(t)||/^(?:f|ht)tps?\:\/\//.test(t)||(t="https://"+t),t}static unserialize(t){const e="undefined"!=typeof window?window:globalThis,o=function(t){let e=t.length;for(let o=t.length-1;o>=0;o--){const i=t.charCodeAt(o);i>127&&i<=2047?e++:i>2047&&i<=65535&&(e+=2),i>=56320&&i<=57343&&o--}return e-1},i=function(t,o,i,n){throw new e[t](o,i,n)},n=function(t,e,o){const n=[];let s=2,r=t.slice(e,e+1);for(;r!==o;)s+e>t.length&&i("Error","Invalid"),n.push(r),r=t.slice(e+(s-1),e+s),s+=1;return[n.length,n.join("")]};return function t(e,s){let r,a,l,c,d,h,p,u,f,g,_,m,b,v,y,w,T,C=0,$=function(t){return t};const k=e.slice(s,s+1).toLowerCase();switch(s||(s=0),r=s+2,k){case"i":$=function(t){return parseInt(t,10)},u=n(e,r,";"),C=u[0],p=u[1],r+=C+1;break;case"b":$=function(t){return 0!==parseInt(t,10)},u=n(e,r,";"),C=u[0],p=u[1],r+=C+1;break;case"d":$=function(t){return parseFloat(t)},u=n(e,r,";"),C=u[0],p=u[1],r+=C+1;break;case"n":p=null;break;
207case"s":f=n(e,r,":"),C=f[0],g=f[1],r+=C+2,u=function(t,e,i){const n=[];let s,r;for(s=0;s<i;s++)r=t.slice(e+(s-1),e+s),n.push(r),i-=o(r);return[n.length,n.join("")]}(e,r+1,parseInt(g,10)),C=u[0],p=u[1],r+=C+2,C!==parseInt(g,10)&&C!==p.length&&i("SyntaxError","String length mismatch");break;case"a":for(p={},a=n(e,r,":"),C=a[0],l=a[1],r+=C+2,d=parseInt(l,10),c=!0,_=0;_<d;_++)b=t(e,r),v=b[1],m=b[2],r+=v,y=t(e,r),w=y[1],T=y[2],r+=w,m!==_&&(c=!1),p[m]=T;if(c){for(h=new Array(d),_=0;_<d;_++)h[_]=p[_];p=h}r+=1;break;default:i("SyntaxError","Unknown / Unhandled data type(s): "+k)}return[k,r-s,$(p)]}(t+"",0)[2]}static validateImageUrl(t){return!!t.match(/.*\.(gif|jpe?g|bmp|png)$/gim)}static getQueryStrings(){return window.location.search.replace("?","").split("&").reduce((t,e)=>{const o=e.split("=");return t[o[0]]=o[1],t},{})}static parseJwt(t){const[,e=""]=t.split("."),o=e.replace(/-/g,"+").replace(/_/g,"/");let i;try{i=JSON.parse(decodeURIComponent(window.atob(o).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch(t){i={}}return i}static insertHeadScripts(t,e,o){const i=document.getElementsByTagName("head")[0],n=document.createElement("script");n.async=!0,"function"==typeof o&&(n.onload=n.onreadystatechange=o),void 0!==e&&(n.id=e),n.src=t,i.insertBefore(n,i.firstChild)}static insertStylesheet(t,e){const o=document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.id=e,i.type="text/css",i.href=t,o.insertBefore(i,o.firstChild)}static hasResource(t,e){return null!==document.getElementById(t)||null!==document.querySelector(`[src="${e}"],[href="${e}"]`)}static getAttr(t){const o={};return e.each(t[0].attributes,function(t,e){o[e.name]=e.value}),o}}o.checkCustomHtmlPreview=function(){ThriveGlobal.$j(".thrv_custom_html_shortcode").each(function(){const t=ThriveGlobal.$j(this),e=t.find(".tve_shortcode_overlay");if(!o.isEditorPage||!o.isEditorPage())return void(e.length&&e.remove());e.length&&e.remove();const i=t.clone();i.find("script, style, .tve_shortcode_overlay, code.tve_js_placeholder, code.tve_css_placeholder").remove();const n=i.text().trim(),s=t.find("img").filter(function(){return 0===ThriveGlobal.$j(this).closest("code.tve_noscript").length}).length>0;n.length>0||s||t.append('<div class="tve_shortcode_overlay" data-tcb-preview-overlay="1"><span>No preview available.</span></div>')})},function(){if("undefined"==typeof window)return;const t=o.isEditorPage&&o.isEditorPage(),e=ThriveGlobal.$j(document);e.ready(function(){o.checkCustomHtmlPreview()}),t&&(e.on("tcb:template:loaded tcb:content:changed",function(){setTimeout(o.checkCustomHtmlPreview,50)}),ThriveGlobal.$j(window).on("load",function(){setTimeout(o.checkCustomHtmlPreview,100)}))}(),t.exports=o,window.TCB_Front.toast=o.toast,window.tve_is_email=o.isEmail,window.TCB_Front.checkCustomHtmlPreview=o.checkCustomHtmlPreview})(ThriveGlobal.$j)}};const e={};function o(i){const n=e[i];if(void 0!==n)return n.exports;const s=e[i]={exports:{}};return t[i](s,s.exports,o),s.exports}if(!window.ThriveGlobal||!window.ThriveGlobal.$j){const t=window.$;window.ThriveGlobal={$j:jQuery.noConflict()},t&&(window.$=t)}window.TCB_Front=window.TCB_Front||{},TCB_Front.Hooks=o(89322)(ThriveGlobal.$j),window.addEventListener("load",function(){tve_frontend_options.is_editor_page||(TCB_Front.sticky.initSticky(TCB_Front.$body,!!tve_frontend_options.is_editor_page),TCB_Front.add_scroll_callback(TCB_Front.showDataElements,TCB_Front))}),void 0===TCB_Front.js_modules&&(TCB_Front.js_modules={}),ThriveGlobal.$j.extend(window.TCB_Front,{browser:null,detectBrowser(){const t={},e=function(){let t,e,o=-1;return"Microsoft Internet Explorer"===navigator.appName?(t=navigator.userAgent,e=new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})"),null!==e.exec(t)&&(o=parseFloat(RegExp.$1))):"Netscape"===navigator.appName&&(t=navigator.userAgent,e=new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})"),null!==e.exec(t)&&(o=parseFloat(RegExp.$1))),o}();if(e>0)t.msie=!0;else{const e=navigator.userAgent.toLowerCase(),o=/(edge)[ \/]([\w.]+)/.exec(e)||/(edg)[ \/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],i={browser:o[1]||"",version:o[2]||"0"};"edg"===i.browser&&(i.browser="edge"),o[1]&&(t[i.browser]=!0),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0)}return t.msie&&(t.version=e),t.ios=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,t.version||(t.version=this.getBrowserVersion(t)),t},getBrowserVersion(t={}){const e=navigator.userAgent;let o="";return o=t.chrome?/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i:t.mozilla?/(?:firefox|fxios)\/(\d+(\.?_?\d+)+)/i:/version\/(\d+(\.?_?\d+)+)/i,(t=>{const o=e.match(t);return o&&o.length>0&&o[1]||""})(o)},getCookie(t){const e=`${t}=`,o=document.cookie.split(";");for(let t=0;t<o.length;t++){let i=o[t];for(;" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},setCookie(t,e,o){if("number"==typeof o.expires){const t=o.expires,e=o.expires=new Date;e.setTime(+e+864e5*t)}return document.cookie=[encodeURIComponent(t),"=",encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")},isInViewport(t,e=0,o=!1){(t instanceof ThriveGlobal.$j||t.jquery)&&(t=t[0]);const i=t.getBoundingClientRect();let n=!(i.bottom<0||i.top>window.innerHeight-e);return o&&n&&(n=t.offsetLeft>0&&t.offsetLeft+i.width<window.innerHeight),n},isBottomScroll(t){const e=t+window.innerHeight,o=ThriveGlobal.$j(document).height();return window.innerHeight>0&&o-e<=100},inlineCssVariable(t,e,o,i=""){t=t.jquery?t[0]:t;const n=window.getComputedStyle(t,i);if(Array.isArray(e)){const t={};
207return e.forEach(e=>t[e]=n.getPropertyValue(e)),t}if("string"==typeof e)return void 0!==o?void t.style.setProperty(e,o,i):n.getPropertyValue(e);ThriveGlobal.$j.isPlainObject(e)&&Object.keys(e).forEach(o=>t.style.setProperty(o,e[o],i))},bodyOffsetTop(){const t=TCB_Front.$body.find("#mm-preview-settings-bar");let e=TCB_Front.$body.length?TCB_Front.$body.offset().top:0;return t.length&&(e+=t.height()),e||0},handleIframes(t=TCB_Front.$body,e=!0){const o=e?"src":"data-src",i=e?"data-src":"src",n=e?"remove":"add",s=["iframe"+(e&&!tve_frontend_options.allow_video_src?":visible":""),`.tcb-lazy-load[data-type="external"]${e?":visible":""} source`];t.find(s.join(", ")).not(".thrv_social_default iframe").each(function(){if(!e&&this.classList.contains("tcb-dr-done"))return;if(TCB_Front.Hooks.applyFilters("tcb.is_iframe_load_prevented",!1,this,e))return;const t=this.getAttribute(i);t&&"null"!==t&&(this.setAttribute(o,t),e&&"SOURCE"===this.tagName&&ThriveGlobal.$j(this).closest("video")[0].load()),this.removeAttribute(i),this.classList[n]("tcb-dr-done")}),t.find(".thrv_wrapper.thrv-google-map-embedded-code > iframe:not(:visible)").each(function(){const t=ThriveGlobal.$j(this).attr("src");t&&!t.includes("google.com/maps")&&ThriveGlobal.$j(this).attr("src","")})},getMediaAttr(t,e,o=this.getDisplayType()){const i=[o];let n=t.attr(e+o.charAt(0));switch(o){case"tablet":i.push("desktop");break;case"mobile":i.push("tablet"),i.push("desktop")}for(;(void 0===n||!n.length)&&i.length;)n=t.attr(`${e}-${i.shift().charAt(0)}`);return void 0===n&&(n=t.attr(e)),n},getDisplayType(){let t="desktop";if(tve_frontend_options.is_editor_page)TVE&&TVE.main&&TVE.main.device?t=TVE.main.device:TCB_Front.$body.is(".preview-tablet")?t="tablet":TCB_Front.$body.is(".preview-mobile")&&(t="mobile");else{const e=this.Utils.windowWidth();e<=767?t="mobile":e<=1023&&(t="tablet")}return t},isValidUrl:t=>/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(t),pageSectionHeight(){const t=TCB_Front.$window;ThriveGlobal.$j(".pdfbg.pdwbg").css({"box-sizing":"border-box",height:t.height()+"px"}),ThriveGlobal.$j(".pddbg").css("max-width",t.width()+"px"),ThriveGlobal.$j(".pddbg.pdfbg").each(function(){const t=ThriveGlobal.$j(this).css("height",""),e=t.attr("data-height"),o=t.attr("data-width");if(void 0!==e&&void 0!==o){const i=t.parent().width(),n=i*e/o;i<=o?t.css("min-height",n+"px"):t.css({"min-height":e+"px"})}})},openLightbox:o(91806),event_triggers(t){!tve_frontend_options.is_editor_page&&window.TVE_Event_Manager_Registered_Callbacks&&t.find(".tve_evt_manager_listen").each(function(){const t=ThriveGlobal.$j(this);let e=t.attr("data-tcb-events");if(e||(e=t.closest(".thrv_wrapper").attr("data-tcb-events")),e)try{e=JSON.parse(e.replace("__TCB_EVENT_","").replace("_TNEVE_BCT__","")),ThriveGlobal.$j.each(e,function(e,o){if(TVE_Event_Manager_Registered_Callbacks[o.a]){const e="mouseover"===o.t?"mouseenter":o.t;t.off(e+".tcbevt"+o.t).on(e+".tcbevt"+o.t,function(){return TVE_Event_Manager_Registered_Callbacks[o.a].call(t[0],o.t,o.a,o.config||o.c||{})})}})}catch(t){console.warn(t,"Could not parse events!")}})},showDataElements(t){ThriveGlobal.$j(".thrv_data_element").not(".thrv_data_element_start").each(function(){const e=ThriveGlobal.$j(this),o=TCB_Front.$window.height();t+o>=e.offset().top+e.outerHeight()&&"hidden"!==e.css("visibility")&&e.addClass("thrv_data_element_start").trigger("tve.start-animation")})},onDOMReady(t){if(this.$body=ThriveGlobal.$j("body"),this.isRTL="rtl"===ThriveGlobal.$j("html").attr("dir"),this.body_offset=this.$body.offset(),void 0===t&&(t=this.$body),this.notificationElement=new this.notification,TCB_Front.$window.on("tve_after_content_toggle",(t,e,o=!0)=>{setTimeout(()=>{TCB_Front.handleIframes(e,o)},100)}),TCB_Front.$window.trigger("tve_after_content_toggle",[t]),this.icons.migrate(t),this.$body.addClass(`tve-${this.getDisplayType()}-browser`),Object.keys(TCB_Front.browser).length&&Object.keys(TCB_Front.browser).forEach(t=>{-1===t.indexOf("webkit")&&TCB_Front.browser[t]&&this.$body.addClass(`tve-${t}-browser`)}),this.smartComplete.init(t),tve_frontend_options.is_editor_page&&ThriveGlobal.$j("head").append('<div id="tve-clipboard-container" style="display:none !important;"></div>'),tve_frontend_options.is_editor_page||(this.add_scroll_callback(this.showDataElements,this),this.header(t),this.sticky.initSticky(t,!!tve_frontend_options.is_editor_page)),this.fix_compat_issues(t),this.replaceDynamicContent(),tve_frontend_options.is_editor_page||("undefined"!=typeof ResizeObserver?new ResizeObserver(()=>{this.$body.trigger("tcb.body.resize"),TCB_Front.resizePageSection()}).observe(document.body):TCB_Front.addResizeCallback(TCB_Front.resizePageSection)),tve_frontend_options.is_editor_page)try{ThriveGlobal.$j("html").getNiceScroll().remove()}catch(t){}else{if(void 0===window.tcb_autofill){window.tcb_autofill=TCB_Front.getCookie("account_create_fields");try{window.tcb_autofill&&(window.tcb_autofill=decodeURIComponent(window.tcb_autofill),window.tcb_autofill=JSON.parse(window.tcb_autofill))}catch(t){window.tcb_autofill=null}window.tcb_autofill||(window.tcb_autofill=null)}window.tcb_autofill&&ThriveGlobal.$j.isArray(window.tcb_autofill)&&(ThriveGlobal.$j.each(window.tcb_autofill,function(e,o){-1===o.name.indexOf("[]")&&t.find("input[name="+o.name+"]").each(function(){const t=ThriveGlobal.$j(this);t.data("tcb-autofill")||(t.val(o.value).hide(),t.parent().append('<div class="tve-editable-field"><p>'+o.value+'</p><span class="tve_sc_icon icon-lock tve-edit-field"></span></div>'),t.data("tcb-autofill",1))})}),setTimeout(function(){TCB_Front.setCookie("account_create_fields",null,{path:"/"})},2500)),ThriveGlobal.$j("input[type=password], input[name=confirm_password]").on("keyup",function(){const t=ThriveGlobal.$j(this),o=this.value.trim(),i=t.siblings(".tve-password-strength-wrapper");let n,s="#e3ecef",r="";if(i.find(".tve-password-strength").css({"background-color":"#e3ecef"}),!o)return void i.find(".tve-password-strength").css("background-color","");const a=e(o);a<30?(s="#ef5350",r="Weak",n=i.find(".tve-password-strength:lt(1)")):a>=30&&a<60?(s="#ffa726",r="So-so",n=i.find(".tve-password-strength:lt(2)")):a>=60&&a<80?(s="#8bc34a",r="Good",n=i.find(".tve-password-strength:lt(3)")):(s="#4caf50",r="Great!",n=i.find(".tve-password-strength:lt(4)")),n.each(function(){ThriveGlobal.$j(this).css({"background-color":s})}),i.attr("data-score",a).find(".tve-password-strength-text").text(r).css({color:s})});const e=function(t){let e=0;if(!t||t.length<5||/(passwd|mypass|password|wordpress)/g.test(t))return e;e=5*String.prototype.concat(...new Set(t)).length,/[a-z]/.test(t)&&(e+=10),/[A-Z]/.test(t)&&(e+=10);const o=t.match(/\d/g);o&&(e+=2*o.length);const i=t.match(/\W/g);return i&&(e+=10*i.length),parseInt(e)};TCB_Front.$document.on("click",".tve-edit-field",function(){ThriveGlobal.$j(this).parent().hide().prev().show()}),TCB_Front.$document.on("click",".tve-close-error-message",function(){ThriveGlobal.$j(this).parent().hide().prev().show()}),TCB_Front.$document.on("click",".tve-image-overlay",function(){const t=ThriveGlobal.$j(this).parent();t.is("a")||t.find("img").trigger("click")}),TCB_Front.$document.on("mouseenter mouseout",".tve-image-overlay",function(t){ThriveGlobal.$j(this).parent().find("img").trigger(t.type)}
207),TCB_Front.queryString.get("tcb_lightbox")||TCB_Front.$window.trigger("tve_after_content_toggle",[ThriveGlobal.$j(".tve_p_lb_content"),!1]),this.init_typefocus(t)}if(TCB_Front.remove_empty_symbols(t),TCB_Front.footer_styling(t),!tve_frontend_options.is_editor_page){const t=ThriveGlobal.$j(".tve-fb-comments");t.length&&(ThriveGlobal.$j("#fb-root").length&&ThriveGlobal.$j("head").append('<div id="fb-root"></div>'),t.each(function(){const t=this.parentNode;""===this.getAttribute("data-href")&&(this.setAttribute("data-href",window.location.href.split("?")[0]),this.setAttribute("data-width","100%")),this.classList.add("fb-comments"),setTimeout(()=>{FB.XFBML.parse(t)},200)}));const e=ThriveGlobal.$j(".thrv_disqus_comments #disqus_thread");e.length&&(window.disqus_shortname=e.attr("data-disqus_shortname"),""===e.attr("data-disqus_url")?window.disqus_url=window.location:window.disqus_url=e.attr("data-disqus_url"),window.disqus_identifier=window.disqus_url,"undefined"==typeof DISQUS&&ThriveGlobal.$j.getScript("//"+disqus_shortname+".disqus.com/embed.js"))}window.mejs&&ThriveGlobal.$j(".tcb-video-shortcode").not(".mejs-container").filter(function(){return!ThriveGlobal.$j(this).parent().hasClass(".mejs-mediaelement")}).mediaelementplayer(),this.resizePageSection(),setTimeout(()=>{try{window.dispatchEvent(new CustomEvent("resize",{detail:{fromTcb:!0}}))}catch(t){}}),this.init_scroll(),this.initResize(),this.enableHighlightViewportAnimations(t),TCB_Front.add_scroll_callback(e=>{e>0&&this.enableHighlightViewportAnimations(t)}),this.handleAds(),setTimeout(this.handleAds,5e3),ThriveGlobal.$j(window).trigger("tcb_after_dom_ready")},handleAds(){TCB_Front.$body.find('ins[data-adsbygoogle-status="done"]').each((t,e)=>{ThriveGlobal.$j(e).parentsUntil("body").each((t,e)=>{e.style.setProperty("height",""),e.style.setProperty("min-height","")})})},enableHighlightViewportAnimations(t){t.find('[data-tcb-highlight-animation^="viewport"]').each((t,e)=>{const o=ThriveGlobal.$j(e),i=o.data("tcb-highlight-animation"),n=e.classList.contains("tcb-animated");TCB_Front.isInViewport(e)?(n||tve_frontend_options.is_editor_page||this.refreshCachedSvg(o),o.addClass("tcb-animated")):n&&"viewport_repeat"===i&&e.classList.remove("tcb-animated")})},refreshCachedSvg(t){let e=t.css("--tve-highlight-background");void 0!==e&&e.length&&(e=decodeURIComponent(e.replace('url("data:image/svg+xml,',"").replace('")',"")),e=e.replace("</svg>",`<span id="tcb-${Math.random()}"></span></svg>`),t.css("--tve-highlight-background",`url("data:image/svg+xml,${encodeURIComponent(e)}")`))},replaceDynamicContent(){const t=TCB_Front.detectBrowser();ThriveGlobal.$j(".tve-browser-data").text(Object.keys(t).filter(e=>t[e]&&"webkit"!==e).toString())},resizePageSection(t){void 0===t&&(t=ThriveGlobal.$j(".tcb-window-width"));const e=!!TCB_Front.$body.length&&TCB_Front.inlineCssVariable(TCB_Front.$body,"--off-screen-sidebar-size");let o=tve_frontend_options.is_editor_page?TCB_Front.$body.outerWidth():TCB_Front.$window.width(),i=0;e&&("left"===TCB_Front.$body.attr("data-off-screen-side")?(i=parseInt(TCB_Front.$body.css("padding-left")),o-=i):o-=parseInt(TCB_Front.$body.css("padding-right"))),o+="px",t.each((t,e)=>{const n=ThriveGlobal.$j(e);let s=n.css("left");s="auto"===s?0:Number(n.css("left").replace("px","")),s=s+i-n.offset().left,n.css({width:o,left:s+"px"})})},remove_empty_symbols(t){t.find("div.thrv_symbol").each(function(){const t=jQuery(this);if(t.closest(".tve-symbol-container").length)return;const e=t.clone();e.find(".thrive-shortcode-config").remove(),""===e.html()&&t.remove()})},footer_styling:o(18684),init_scroll:o(49110),initResize:o(41523),sticky:o(98079),fix_compat_issues:o(41954),reservedTerms:o(68382),init_typefocus:o(22138),header:o(43569),queryString:o(69810),smartComplete:o(5540),icons:o(73771),notification:o(15039)}),"undefined"!=typeof ThriveGlobal&&(TCB_Front.$window=ThriveGlobal.$j(window),TCB_Front.$document=ThriveGlobal.$j(document),TCB_Front.$body=ThriveGlobal.$j("body"),TCB_Front.browser=TCB_Front.detectBrowser(),TCB_Front.$document.ready(function(){setTimeout(function t(){if(void 0!==Object.values(TCB_Front.js_modules).find(t=>!t.loaded))return console.log("Thrive Architect - not all JS modules are loaded, re-trying in 20ms..."),void setTimeout(t,20);let e=ThriveGlobal.$j(tve_frontend_options.is_editor_page?"#tve_editor":"body");"undefined"!=typeof TVE&&"function"==typeof TVE.apply_filters&&(e=TVE.apply_filters("editor_wrapper",e)),TCB_Front.$
207window.trigger("tve_after_content_toggle",[e]),tve_frontend_options.is_editor_page||"undefined"!=typeof TVE_Event_Manager_Registered_Callbacks&&(TCB_Front.event_triggers(e),tve_frontend_options.page_events&&ThriveGlobal.$j.each(tve_frontend_options.page_events,function(t,e){TVE_Event_Manager_Registered_Callbacks[e.a]&&TCB_Front.$document.on("tve-page-event-"+e.t,function(t,o){let i=!0;return"timer"===e.t&&o&&e.config&&e.config.t_delay!==o&&(i=!1),!!i&&TVE_Event_Manager_Registered_Callbacks[e.a].call(document,e.t,e.a,e.config?e.config:{})})})),"undefined"==typeof ThriveApp&&(TCB_Front.pageSectionHeight(),TCB_Front.addResizeCallback(TCB_Front.pageSectionHeight)),TCB_Front.onDOMReady()})})),TCB_Front.isModuleLoaded=t=>TCB_Front.js_modules[t]&&TCB_Front.js_modules[t].loaded,TCB_Front.setModuleLoadedStatus=(t,e)=>{void 0===TCB_Front.js_modules[t]&&(TCB_Front.js_modules[t]={}),TCB_Front.js_modules[t].loaded=e},TCB_Front.Utils=o(66640),TCB_Front.Base64=o(46967),o(64743),o(11481),o(74468)})();; 208window.ajaxurl = "https://andrewmilivojevich.com/wp-admin/admin-ajax.php";; 209document.cookie = 'quads_browser_width='+screen.width;; 210( ( dropdownId ) => { 211 const dropdown = document.getElementById( dropdownId ); 212 function onSelectChange() { 213 setTimeout( () => { 214 if ( 'escape' === dropdown.dataset.lastkey ) { 215 return; 216 } 217 if ( dropdown.value && parseInt( dropdown.value ) > 0 && dropdown instanceof HTMLSelectElement ) { 218 dropdown.parentElement.submit(); 219 } 220 }, 250 ); 221 } 222 function onKeyUp( event ) { 223 if ( 'Escape' === event.key ) { 224 dropdown.dataset.lastkey = 'escape'; 225 } else { 226 delete dropdown.dataset.lastkey; 227 } 228 } 229 function onClick() { 230 delete dropdown.dataset.lastkey; 231 } 232 dropdown.addEventListener( 'keyup', onKeyUp ); 233 dropdown.addEventListener( 'click', onClick ); 234 dropdown.addEventListener( 'change', onSelectChange ); 235})( "cat" ); 236 237; 238( ( dropdownId ) => { 239 const dropdown = document.getElementById( dropdownId ); 240 function onSelectChange() { 241 setTimeout( () => { 242 if ( 'escape' === dropdown.dataset.lastkey ) { 243 return; 244 } 245 if ( dropdown.value ) { 246 document.location.href = dropdown.value; 247 } 248 }, 250 ); 249 } 250 function onKeyUp( event ) { 251 if ( 'Escape' === event.key ) { 252 dropdown.dataset.lastkey = 'escape'; 253 } else { 254 delete dropdown.dataset.lastkey; 255 } 256 } 257 function onClick() { 258 delete dropdown.dataset.lastkey; 259 } 260 dropdown.addEventListener( 'keyup', onKeyUp ); 261 dropdown.addEventListener( 'click', onClick ); 262 dropdown.addEventListener( 'change', onSelectChange ); 263})( "archives-dropdown-3" ); 264 265; 266( ( dropdownId ) => { 267 const dropdown = document.getElementById( dropdownId ); 268 function onSelectChange() { 269 setTimeout( () => { 270 if ( 'escape' === dropdown.dataset.lastkey ) { 271 return; 272 } 273 if ( dropdown.value && parseInt( dropdown.value ) > 0 && dropdown instanceof HTMLSelectElement ) { 274 dropdown.parentElement.submit(); 275 } 276 }, 250 ); 277 } 278 function onKeyUp( event ) { 279 if ( 'Escape' === event.key ) { 280 dropdown.dataset.lastkey = 'escape'; 281 } else { 282 delete dropdown.dataset.lastkey; 283 } 284 } 285 function onClick() { 286 delete dropdown.dataset.lastkey; 287 } 288 dropdown.addEventListener( 'keyup', onKeyUp ); 289 dropdown.addEventListener( 'click', onClick ); 290 dropdown.addEventListener( 'change', onSelectChange ); 291})( "categories-dropdown-5" ); 292 293; 294( $ => { 295 /** 296 * Displays toast message from storage, it is used when the user is redirected after login 297 */ 298 if ( window.sessionStorage ) { 299 $( window ).on( 'tcb_after_dom_ready', () => { 300 const message = sessionStorage.getItem( 'tcb_toast_message' ); 301 302 if ( message ) { 303 tcbToast( sessionStorage.getItem( 'tcb_toast_message' ), false ); 304 sessionStorage.removeItem( 'tcb_toast_message' ); 305 } 306 } ); 307 } 308 309 /** 310 * Displays toast message 311 * 312 * @param {string} message - message to display 313 * @param {Boolean} error - whether the message is an error or not 314 * @param {Function} callback - callback function to be called after the message is closed 315 */ 316 function tcbToast( message, error, callback ) { 317 /* Also allow "message" objects */ 318 if ( typeof message !== 'string' ) { 319 message = message.message || message.error || message.success; 320 } 321 if ( ! error ) { 322 error = false;
323 } 324 TCB_Front.notificationElement.toggle( message, error ? 'error' : 'success', callback ); 325 } 326} )( typeof ThriveGlobal === 'undefined' ? jQuery : ThriveGlobal.$j );; 327(function(e,t){typeof define=="function"&&define.amd?define("sifter",t):typeof exports=="object"?module.exports=t():e.Sifter=t()})(this,function(){var e,n,s,o,i,a,r,c,t=function(e,t){this.items=e,this.settings=t||{diacritics:!0}};return t.prototype.tokenize=function(t){if(t=r(String(t||"").toLowerCase()),!t||!t.length)return[];var n,s,o,a,l=[],i=t.split(/ +/);for(n=0,a=i.length;n<a;n++){if(s=c(i[n]),this.settings.diacritics)for(o in e)e.hasOwnProperty(o)&&(s=s.replace(new RegExp(o,"g"),e[o]));l.push({string:i[n],regex:new RegExp(s,"i")})}return l},t.prototype.iterator=function(e,t){var s;n(e)?s=Array.prototype.forEach||function(e){for(var t=0,n=this.length;t<n;t++)e(this[t],t,this)}:s=function(e){for(var t in this)this.hasOwnProperty(t)&&e(this[t],t,this)},s.apply(e,[t])},t.prototype.getScoreFunction=function(e,t){r=this,e=r.prepareSearch(e,t);var r,o=e.tokens,i=e.options.fields,n=o.length,c=e.options.nesting,l=function(e,t){var n,s;return e?(e=String(e||""),s=e.search(t.regex),s===-1?0:(n=t.string.length/e.length,s===0&&(n+=.5),n)):0},a=function(){var e=i.length;return e?e===1?function(e,t){return l(s(t,i[0],c),e)}:function(t,n){for(var o=0,a=0;o<e;o++)a+=l(s(n,i[o],c),t);return a/e}:function(){return 0}}();return n?n===1?function(e){return a(o[0],e)}:e.options.conjunction==="and"?function(e){for(var t,s=0,i=0;s<n;s++){if(t=a(o[s],e),t<=0)return 0;i+=t}return i/n}:function(e){for(var t=0,s=0;t<n;t++)s+=a(o[t],e);return s/n}:function(){return 0}},t.prototype.getSortFunction=function(e,t){var n,i,a,r,c,l,d,u,h,f,m=this;if(e=m.prepareSearch(e,t),c=!e.query&&t.sort_empty||t.sort,r=function(e,n){return e==="$score"?n.score:s(m.items[n.id],e,t.nesting)},i=[],c)for(n=0,a=c.length;n<a;n++)(e.query||c[n].field!=="$score")&&i.push(c[n]);if(e.query){h=!0;for(n=0,a=i.length;n<a;n++)if(i[n].field==="$score"){h=!1;break}h&&i.unshift({field:"$score",direction:"desc"})}else for(n=0,a=i.length;n<a;n++)if(i[n].field==="$score"){i.splice(n,1);break}d=[];for(n=0,a=i.length;n<a;n++)d.push(i[n].direction==="desc"?-1:1);return l=i.length,l?l===1?(u=i[0].field,f=d[0],function(e,t){return f*o(r(u,e),r(u,t))}):function(e,t){var n,s,a,c,u;for(n=0;n<l;n++)if(a=i[n].field,s=d[n]*o(r(a,e),r(a,t)),s)return s;return 0}:null},t.prototype.prepareSearch=function(e,t){if(typeof e=="object")return e;t=a({},t);var s=t.fields,o=t.sort,i=t.sort_empty;return s&&!n(s)&&(t.fields=[s]),o&&!n(o)&&(t.sort=[o]),i&&!n(i)&&(t.sort_empty=[i]),{options:t,query:String(e||"").toLowerCase(),tokens:this.tokenize(e),total:0,items:[]}},t.prototype.search=function(e,t){var o,i,a,r,c,s=this,n=this.prepareSearch(e,t);return t=n.options,e=n.query,a=t.score||s.getScoreFunction(n),e.length?s.iterator(s.items,function(e,s){o=a(e),(t.filter===!1||o>0)&&n.items.push({score:o,id:s})}):s.iterator(s.items,function(e,t){n.items.push({score:1,id:t})}),i=s.getSortFunction(n,t),i&&n.items.sort(i),n.total=n.items.length,typeof t.limit=="number"&&(n.items=n.items.slice(0,t.limit)),n},o=function(e,t){return typeof e=="number"&&typeof t=="number"?e>t?1:e<t?-1:0:(e=i(String(e||"")),t=i(String(t||"")),e>t?1:t>e?-1:0)},a=function(e){var n,s,o,i;for(s=1,i=arguments.length;s<i;s++){if(n=arguments[s],!n)continue;for(o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e},s=function(e,t,n){if(!e||!t)return;if(!n)return e[t];for(var s=t.split(".");s.length&&(e=e[s.shift()]););return e},r=function(e){return(e+"").replace(/^\s+|\s+$|/g,"")},c=function(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},n=Array.isArray||typeof $!="undefined"&&$.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},e={a:"[aá¸á¸ÄÄÃâÇÇȺⱥȦȧẠạÃäÃà ÃáÄÄÃÃ£Ã Ã¥Ä ÄÃÄ Ä]",b:"[bâ¢Î²ÎB฿ðá]",c:"[cÄÄÄÄÄÄÄÄCÌcÌÃçá¸á¸È»È¼ÆÆÉá´ï¼£ï½]",d:"[dÄÄá¸á¸á¸á¸á¸á¸á¸á¸á¸á¸ÄÄD̦d̦ÆÉÆÉÆÆáµá¶á¶È¡á´ Dï½Ã°]",e:"[eÃéÃèÃêá¸á¸ÄÄÄÄẼẽá¸á¸áººáº»ÄÄÃëÄÄȨȩÄÄá¶ÉÉÈÈ áº¾áº¿á»á»á»á» á»á»á¸á¸á¸á¸á¸á¸ÈÈẸẹá»á»â±¸á´ï¼¥ï½ ÉÇÆÆÎµ]",f:"[fÆÆá¸á¸]",g:"[gÉ¢â²Ç¤Ç¥ÄÄÄÄĢģÆÉ Ä Ä¡]",h:"[hĤĥĦħḨḩáºáºá¸¤á¸¥á¸¢á¸£É¦Ê°Ç¶Æ]",i:"[iÃÃÃìĬÄÃîÇÇÃïḮḯĨĩĮįĪīá»á»ÈÈÈÈá»á»á¸¬á¸ÆÉ¨É¨Ìáµ»á¶Ä°iIıɪIï½]",j:"[jȷĴĵÉÉÊÉʲ]",k:"[kÆÆêêḰḱǨǩḲḳḴḵκϰâ]",l:"[lÅÅĽľĻļĹĺḶḷḸḹḼḽḺḻĿÅȽÆâ± ⱡⱢɫɬᶠÉÈ´ÊLï½]",n:"[nÅÅǸǹÅÅÃñá¹á¹ Å Åá¹á¹á¹á¹á¹á¹NÌnÌÆÉ²È Æáµ°á¶É³ÈµÉ´ï¼®ï½ÅÅ]",o:"[oÃøÃöÃóÃòÃôÇÇÅÅÅÅȮȯá»á»ÆÉµÆ Æ¡á»á»ÅÅ
327ÃõǪǫÈÈÕÖ
]",p:"[pá¹á¹á¹á¹â±£áµ½Æ¤Æ¥áµ±]",q:"[qêêÊ ÉÉêêqÌ]",r:"[rÅÅÉÉÅÅÅÅá¹á¹ÈÈÈÈá¹á¹â±¤É½]",s:"[sÅÅṠṡṢṣê¨ê©ÅÅÅ Å¡ÅÅÈÈSÌsÌ]",t:"[tÅ¤Å¥á¹ªá¹«Å¢Å£á¹¬á¹Æ®ÊÈÈṰṱṮṯƬÆ]",u:"[uŬÅÉÊỤụÃüÃúÃùÃûÇÇŰűŬů¯Æ°á»¦á»§ÅªÅ«Å¨Å©Å²Å³ÈÈâª]",v:"[vṼṽṾṿƲÊêêâ±±Ê]",w:"[wáºáºáºáºÅ´Åµáºáº
áºáºáºáº]",x:"[xáºáºáºáºÏ]",y:"[yÃýỲỳŶŷŸÿỸỹáºáºá»´á»µÉÉÆ³Æ´]",z:"[zŹźáºáºÅ½Å¾Å»Å¼áºáºáºáºÆµÆ¶]"},i=function(){var t,n,s,o,r,i="",a={};for(t in e)if(e.hasOwnProperty(t)){s=e[t].substring(2,e[t].length-1),i+=s;for(n=0,o=s.length;n<o;n++)a[s.charAt(n)]=t}return r=new RegExp("["+i+"]","g"),function(e){return e.replace(r,function(e){return a[e]}).toLowerCase()}}(),t}),function(e,t){typeof define=="function"&&define.amd?define("microplugin",t):typeof exports=="object"?module.exports=t():e.MicroPlugin=t()}(this,function(){var t,e={};return e.mixin=function(e){e.plugins={},e.prototype.initializePlugins=function(e){var n,s,a,i=this,o=[];if(i.plugins={names:[],settings:{},requested:{},loaded:{}},t.isArray(e))for(n=0,a=e.length;n<a;n++)typeof e[n]=="string"?o.push(e[n]):(i.plugins.settings[e[n].name]=e[n].options,o.push(e[n].name));else if(e)for(s in e)e.hasOwnProperty(s)&&(i.plugins.settings[s]=e[s],o.push(s));for(;o.length;)i.require(o.shift())},e.prototype.loadPlugin=function(t){var n=this,s=n.plugins,o=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');s.requested[t]=!0,s.loaded[t]=o.fn.apply(n,[n.plugins.settings[t]||{}]),s.names.push(t)},e.prototype.require=function(e){var t=this,n=t.plugins;if(!t.plugins.loaded.hasOwnProperty(e)){if(n.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');t.loadPlugin(e)}return n.loaded[e]},e.define=function(t,n){e.plugins[t]={name:t,fn:n}}},t={isArray:Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},e}),function(e,t){typeof define=="function"&&define.amd?define("selectize",["jquery","sifter","microplugin"],t):typeof exports=="object"?module.exports=t(require("jquery"),require("sifter"),require("microplugin")):e.Selectize=t(e.jQuery,e.Sifter,e.MicroPlugin)}(this,function(e,t,n){"use strict";var s,o,i,a,r,c,l,d,u,h,m,f,p,g,v,b,j,y,_,w,O,x,C,E,k,A,S,M,F,T,z,D,N,L,R,P,H,I=function(e,t){if(typeof t=="string"&&!t.length)return;var n=typeof t=="string"?new RegExp(t,"i"):t,s=function(e){var t,o,i,a,c,l,d,r=0;if(e.nodeType===3)a=e.data.search(n),a>=0&&e.data.length>0&&(c=e.data.match(n),i=document.createElement("span"),i.className="highlight",t=e.splitText(a),d=t.splitText(c[0].length),l=t.cloneNode(!0),i.appendChild(l),t.parentNode.replaceChild(i,t),r=1);else if(e.nodeType===1&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.className!=="highlight"||e.tagName!=="SPAN"))for(o=0;o<e.childNodes.length;++o)o+=s(e.childNodes[o]);return r};return e.each(function(){s(this)})};return e.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()},c=function(){},c.prototype={on:function(e,t){this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t)},off:function(e,t){var n=arguments.length;if(n===0)return delete this._events;if(n===1)return delete this._events[e];if(this._events=this._events||{},e in this._events===!1)return;this._events[e].splice(this._events[e].indexOf(t),1)},trigger:function(e){if(this._events=this._events||{},e in this._events===!1)return;for(var t=0;t<this._events[e].length;t++)this._events[e][t].apply(this,Array.prototype.slice.call(arguments,1))}},c.mixin=function(e){for(var n=["on","off","trigger"],t=0;t<n.length;t++)e.prototype[n[t]]=c.prototype[n[t]]},a=/Mac/.test(navigator.userAgent),E=65,P=188,T=13,S=27,h=37,k=38,j=80,f=39,C=40,x=78,r=8,m=46,w=16,_=a?91:17,M=a?18:17,b=9,l=1,O=2,g=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,p=function(e){return typeof e!="undefined"},o=function(e){return typeof e=="undefined"||e===null?null:typeof e=="boolean"?e?"1":"0":e+""},i=function(e){return(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},H=function(e){return(e+"").replace(/\$/g,"$$$$")},d={},d.before=function(e,t,n){var s=e[t];e[t]=function(){return n.apply(e,arguments),s.apply(e,arguments)}},d.after=function(e,t,n){var s=e[t];e[t]=function(){var t=s.apply(e,arguments);return n.apply(e,arguments),t}},y=function(e){var t=!1;return function(){if(t)return;t=!0,e.apply(this,arguments)}},F=function(e,t){var n;return function(){var s=this,o=arguments;window.clearTimeout(n),n=window.setTimeout(function(){e.apply(s,o)},t)}},v=function(e,t,n){var o,i=e.trigger,s={};e.trigger=function(){var n=arguments[0];if(t.indexOf(n)!==-1)s[n]=arguments;else return i.apply(e,arguments)},n.apply(e,[]),e.trigger=i;for(o in s)s.hasOwnProperty(o)&&i.apply(e,s[o])},z=function(e,t,n,s){e.on(t,n,function(t){for(var n=t.target;n&&n.parentNode!==e[0];)n=n.parentNode;return t.currentTarget=n,s.apply(this,[t])})},u=function(e){var n,s,t={};return"selectionStart"in e?(t.start=e.selectionStart,t.length=e.selectionEnd-t.start):document.selection&&(e.focus(),n=document.selection.createRange(),s=document.selection.createRange().text.length,n.moveStart("character",-e.value.length),t.start=n.text.length-s,t.length=s),t},N=function(e,t,n){var s,i,o={};if(n)for(s=0,i=n.length;s<i;s++)o[n[s]]=e.css(n[s]);else o=e.css();t.css(o)},L=function(t,n){return t?(s.$testInput||(s.$testInput=e("<span />").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).appendTo("body")),s.$testInput.text(t),N(n,s.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),s.$testInput.width()):0},R=function(e){var t=null,n=function(n,s){var o,i,a,c,l,d,h,f;if(n=n||window.event||{},s=s||{},n.metaKey||n.altKey)return;if(!s.force&&e.data("grow")===!1)return;o=e.val(),n.type&&n.type.toLowerCase()==="keydown"&&(i=n.keyCode,h=i>=48&&i<=57||i>=65&&i<=90||i>=96&&i<=111||i>=186&&i<=222||i===32,i===m||i===r?(a=u(e[0]),a.length?o=o.substring(0,a.start)+o.substring(a.start+a.length):i===r&&a.start?o=o.substring(0,a.start-1)+o.substring(a.start+1):i===m&&typeof a.start!="undefined"&&(o=o.substring(0,a.start)+o.substring(a.start+1))):h&&(f=n.shiftKey,c=String.fromCharCode(n.keyCode),f?c=c.toUpperCase():c=c.toLowerCase(),o+=c)),d=e.attr("placeholder"),!o&&d&&(o=d),l=L(o,e)+4,l!==t&&(t=l,e.width(l),e.triggerHandler("resize"))};
327e.on("keydown keyup update blur",n),n()},D=function(e){var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML},A=function(e,t){t||(t={});var n="Selectize";console.error(n+": "+e),t.explanation&&(console.group&&console.group(),console.error(t.explanation),console.group&&console.groupEnd())},s=function(n,o){var a,c,d,u,h,i=this,r=n[0];if(r.selectize=i,u=window.getComputedStyle&&window.getComputedStyle(r,null),d=u?u.getPropertyValue("direction"):r.currentStyle&&r.currentStyle.direction,d=d||n.parents("[dir]:first").attr("dir")||"",e.extend(i,{order:0,settings:o,$input:n,tabIndex:n.attr("tabindex")||"",tagType:r.tagName.toLowerCase()==="select"?l:O,rtl:/rtl/i.test(d),eventNS:".selectize"+ ++s.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:o.loadThrottle===null?i.onSearchChange:F(i.onSearchChange,o.loadThrottle)}),i.sifter=new t(this.options,{diacritics:o.diacritics}),i.settings.options){for(a=0,c=i.settings.options.length;a<c;a++)i.registerOption(i.settings.options[a]);delete i.settings.options}if(i.settings.optgroups){for(a=0,c=i.settings.optgroups.length;a<c;a++)i.registerOptionGroup(i.settings.optgroups[a]);delete i.settings.optgroups}i.settings.mode=i.settings.mode||(i.settings.maxItems===1?"single":"multi"),typeof i.settings.hideSelected!="boolean"&&(i.settings.hideSelected=i.settings.mode==="multi"),i.initializePlugins(i.settings.plugins),i.setupCallbacks(),i.setupTemplates(),i.setup()},c.mixin(s),typeof n!="undefined"?n.mixin(s):A("Dependency MicroPlugin is missing",{explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'}),e.extend(s.prototype,{setup:function(){var d,m,b,O,x,t=this,s=t.settings,r=t.eventNS,v=e(window),h=e(document),n=t.$input,f=t.settings.mode,p=n.attr("class")||"",c=e("<div>").addClass(s.wrapperClass).addClass(p).addClass(f),u=e("<div>").addClass(s.inputClass).addClass("items").appendTo(c),o=e('<input type="text" autocomplete="off" />').appendTo(u).attr("tabindex",n.is(":disabled")?"-1":t.tabIndex),y=e(s.dropdownParent||c),i=e("<div>").addClass(s.dropdownClass).addClass(f).hide().appendTo(y),j=e("<div>").addClass(s.dropdownContentClass).appendTo(i);(d=n.attr("id"))&&(o.attr("id",d+"-selectized"),e("label[for='"+d+"']").attr("for",d+"-selectized")),t.settings.copyClassesToDropdown&&i.addClass(p),c.css({width:n[0].style.width}),t.plugins.names.length&&(m="plugin-"+t.plugins.names.join(" plugin-"),c.addClass(m),i.addClass(m)),(s.maxItems===null||s.maxItems>1)&&t.tagType===l&&n.attr("multiple","multiple"),t.settings.placeholder&&o.attr("placeholder",s.placeholder),!t.settings.splitOn&&t.settings.delimiter&&(b=t.settings.delimiter.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),t.settings.splitOn=new RegExp("\\s*"+b+"+\\s*")),n.attr("autocorrect")&&o.attr("autocorrect",n.attr("autocorrect")),n.attr("autocapitalize")&&o.attr("autocapitalize",n.attr("autocapitalize")),o[0].type=n[0].type,t.$wrapper=c,t.$control=u,t.$control_input=o,t.$dropdown=i,t.$dropdown_content=j,i.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",function(e){e.stopImmediatePropagation()}),i.on("mouseenter","[data-selectable]",function(){return t.onOptionHover.apply(t,arguments)}),i.on("mousedown click","[data-selectable]",function(){return t.onOptionSelect.apply(t,arguments)}),z(u,"mousedown","*:not(input)",function(){return t.onItemSelect.apply(t,arguments)}),R(o),u.on({mousedown:function(){return t.onMouseDown.apply(t,arguments)},click:function(){return t.onClick.apply(t,arguments)}}),o.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return t.onKeyDown.apply(t,arguments)},keyup:function(){return t.onKeyUp.apply(t,arguments)},keypress:function(){return t.onKeyPress.apply(t,arguments)},resize:function(){t.positionDropdown.apply(t,[])},blur:function(){return t.onBlur.apply(t,arguments)},focus:function(){return t.ignoreBlur=!1,t.onFocus.apply(t,arguments)},paste:function(){return t.onPaste.apply(t,arguments)}}),h.on("keydown"+r,function(e){t.isCmdDown=e[a?"metaKey":"ctrlKey"],t.isCtrlDown=e[a?"altKey":"ctrlKey"],t.isShiftDown=e.shiftKey}),h.on("keyup"+r,function(e){e.keyCode===M&&(t.isCtrlDown=!1),e.keyCode===w&&(t.isShiftDown=!1),e.keyCode===_&&(t.isCmdDown=!1)}),h.on("mousedown"+r,function(e){if(t.isFocused){if(e.target===t.$dropdown[0]||e.target.parentNode===t.$dropdown[0])return!1;!t.$control.has(e.target).length&&e.target!==t.$control[0]&&t.blur(e.target)}}),v.on(["scroll"+r,"resize"+r].join(" "),function(){t.isOpen&&t.positionDropdown.apply(t,arguments)}),v.on("mousemove"+r,function(){t.ignoreHover=!1}),this.revertSettings={$children:n.children().detach(),tabindex:n.attr("tabindex")},n.attr("tabindex",-1).hide().after(t.$wrapper),e.isArray(s.items)&&(t.setValue(s.items),delete s.items),g&&n.on("invalid"+r,function(e){e.preventDefault(),t.isInvalid=!0,t.refreshState()}),t.updateOriginalInput(),t.refreshItems(),t.refreshState(),t.updatePlaceholder(),t.isSetup=!0,n.is(":disabled")&&t.disable(),t.on("change",this.onChange),n.data("selectize",t),n.addClass("selectized"),t.trigger("initialize"),s.preload===!0&&t.onSearchChange("")},setupTemplates:function(){var t=this,n=t.settings.labelField,s=t.settings.optgroupLabelField,o={optgroup:function(e){return'<div class="optgroup">'+e.html+"</div>"},optgroup_header:function(e,t){return'<div class="optgroup-header">
327'+t(e[s])+"</div>"},option:function(e,t){return'<div class="option">'+t(e[n])+"</div>"},item:function(e,t){return'<div class="item">'+t(e[n])+"</div>"},option_create:function(e,t){return'<div class="create">Add <strong>'+t(e.input)+"</strong>…</div>"}};t.settings.render=e.extend({},o,t.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)n.hasOwnProperty(e)&&(t=this.settings[n[e]],t&&this.on(e,t))},onClick:function(e){var t=this;(!t.isFocused||!t.isOpen)&&(t.focus(),e.preventDefault())},onMouseDown:function(t){var n=this,s=t.isDefaultPrevented(),o=e(t.target);if(n.isFocused){if(t.target!==n.$control_input[0])return n.settings.mode==="single"?n.isOpen?n.close():n.open():s||n.setActiveItem(null),!1}else s||window.setTimeout(function(){n.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var n=this;if(n.isFull()||n.isInputHidden||n.isLocked){t.preventDefault();return}n.settings.splitOn&&setTimeout(function(){if(t=n.$control_input.val(),!t.match(n.settings.splitOn))return;for(var t,o=e.trim(t).split(n.settings.splitOn),s=0,i=o.length;s<i;s++)n.createItem(o[s])},0)},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var t=String.fromCharCode(e.keyCode||e.which);if(this.settings.create&&this.settings.mode==="multi"&&t===this.settings.delimiter)return this.createItem(),e.preventDefault(),!1},onKeyDown:function(e){var n,s,o=e.target===this.$control_input[0],t=this;if(t.isLocked){e.keyCode!==b&&e.preventDefault();return}switch(e.keyCode){case E:if(t.isCmdDown){t.selectAll();return}break;case S:t.isOpen&&(e.preventDefault(),e.stopPropagation(),t.close());return;case x:if(!e.ctrlKey||e.altKey)break;case C:!t.isOpen&&t.hasOptions?t.open():t.$activeOption&&(t.ignoreHover=!0,n=t.getAdjacentOption(t.$activeOption,1),n.length&&t.setActiveOption(n,!0,!0)),e.preventDefault();return;case j:if(!e.ctrlKey||e.altKey)break;case k:t.$activeOption&&(t.ignoreHover=!0,s=t.getAdjacentOption(t.$activeOption,-1),s.length&&t.setActiveOption(s,!0,!0)),e.preventDefault();return;case T:t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),e.preventDefault());return;case h:t.advanceSelection(-1,e);return;case f:t.advanceSelection(1,e);return;case b:t.settings.selectOnTab&&t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),t.isFull()||e.preventDefault()),t.settings.create&&t.createItem()&&e.preventDefault();return;case r:case m:t.deleteSelection(e);return}if((t.isFull()||t.isInputHidden)&&!(a?e.metaKey:e.ctrlKey)){e.preventDefault();return}},onKeyUp:function(e){var n,t=this;if(t.isLocked)return e&&e.preventDefault();n=t.$control_input.val()||"",t.lastValue!==n&&(t.lastValue=n,t.onSearchChange(n),t.refreshOptions(),t.trigger("type",n))},onSearchChange:function(e){var t=this,n=t.settings.load;if(!n)return;if(t.loadedSearches.hasOwnProperty(e))return;t.loadedSearches[e]=!0,t.load(function(s){n.apply(t,[e,s])})},onFocus:function(e){var t=this,n=t.isFocused;if(t.isDisabled)return t.blur(),e&&e.preventDefault(),!1;if(t.ignoreFocus)return;t.isFocused=!0,t.settings.preload==="focus"&&t.onSearchChange(""),n||t.trigger("focus"),t.$activeItems.length||(t.showInput(),t.setActiveItem(null),t.refreshOptions(!!t.settings.openOnFocus)),t.refreshState()},onBlur:function(e,t){var s,n=this;if(!n.isFocused)return;if(n.isFocused=!1,n.ignoreFocus)return;if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0]){n.ignoreBlur=!0,n.onFocus(e);return}s=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),t&&t.focus&&t.focus(),n.isBlurring=!1,n.ignoreFocus=!1,n.trigger("blur")},n.isBlurring=!0,n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,s):s()},onOptionHover:function(e){if(this.ignoreHover)return;this.setActiveOption(e.currentTarget,!1)},onOptionSelect:function(t){var s,o,i,n=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),o=e(t.currentTarget),o.hasClass("create")?n.createItem(null,function(){n.settings.closeAfterSelect&&n.close()}):(s=o.attr("data-value"),typeof s!="undefined"&&(n.lastQuery=null,n.setTextboxValue(""),n.addItem(s),n.settings.closeAfterSelect?n.close():!n.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&n.setActiveOption(n.getOption(s))))},onItemSelect:function(e){var t=this;if(t.isLocked)return;t.settings.mode==="multi"&&(e.preventDefault(),t.setActiveItem(e.currentTarget,e))},load:function(e){var t=this,n=t.$wrapper.addClass(t.settings.loadingClass);t.loading++,e.apply(t,[function(e){t.loading=Math.max(t.loading-1,0),e&&e.length&&(t.addOption(e),t.refreshOptions(t.isFocused&&!t.isInputHidden)),t.loading||n.removeClass(t.settings.loadingClass),t.trigger("load",e)}])},setTextboxValue:function(e){var t=this.$control_input,n=t.val()!==e;n&&(t.val(e).triggerHandler("update"),this.lastValue=e)},getValue:function(){return this.tagType===l&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(e,t){var n=t?[]:["change"];v(this,n,function(){this.clear(t),this.addItems(e,t)})},setActiveItem:function(t,n){var o,i,a,r,c,l,d,u,s=this;if(s.settings.mode==="single")return;if(t=e(t),!t.length){e(s.$activeItems).removeClass("active"),s.$activeItems=[],s.isFocused&&s.showInput();return}if(a=n&&n.type.toLowerCase(),a==="mousedown"&&s.isShiftDown&&s.$activeItems.length){u=s.$control.children(".active:last"),o=Array.prototype.indexOf.apply(s.$control[0].childNodes,[u[0]]),i=Array.prototype.indexOf.apply(s.$control[0].childNodes,[t[0]]),o>i&&(d=o,o=i,i=d);for(r=o;r<=i;r++)c=s.$control[0].childNodes[r],s.$activeItems.indexOf(c)===-1&&(e(c).addClass("active"),s.$activeItems.push(c));n.preventDefault()}else a==="mousedown"&&s.isCtrlDown||a==="keydown"&&this.isShiftDown?t.hasClass("active")?(l=s.$activeItems.indexOf(t[0]),s.$activeItems.splice(l,1),t.removeClass("active")):s.$activeItems.push(t.addClass("active")[0]):(e(s.$activeItems).removeClass("active"),s.$activeItems=[t.addClass("active")[0]]);s.hideInput(),this.isFocused||s.focus()}
327,setActiveOption:function(t,n,s){var i,a,r,c,l,o=this;if(o.$activeOption&&o.$activeOption.removeClass("active"),o.$activeOption=null,t=e(t),!t.length)return;o.$activeOption=t.addClass("active"),(n||!p(n))&&(a=o.$dropdown_content.height(),r=o.$activeOption.outerHeight(!0),n=o.$dropdown_content.scrollTop()||0,i=o.$activeOption.offset().top-o.$dropdown_content.offset().top+n,c=i,l=i-a+r,i+r>a+n?o.$dropdown_content.stop().animate({scrollTop:l},s?o.settings.scrollDuration:0):i<n&&o.$dropdown_content.stop().animate({scrollTop:c},s?o.settings.scrollDuration:0))},selectAll:function(){var e=this;if(e.settings.mode==="single")return;e.$activeItems=Array.prototype.slice.apply(e.$control.children(":not(input)").addClass("active")),e.$activeItems.length&&(e.hideInput(),e.close()),e.focus()},hideInput:function(){var e=this;e.setTextboxValue(""),e.$control_input.css({opacity:0,position:"absolute",left:e.rtl?1e4:-1e4}),e.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var e=this;if(e.isDisabled)return;e.ignoreFocus=!0,e.$control_input[0].focus(),window.setTimeout(function(){e.ignoreFocus=!1,e.onFocus()},0)},blur:function(e){this.$control_input[0].blur(),this.onBlur(null,e)},getScoreFunction:function(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())},getSearchOptions:function(){var e=this.settings,t=e.sortField;return typeof t=="string"&&(t=[{field:t}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t,nesting:e.nesting}},search:function(t){var s,i,a,l,d,n=this,r=n.settings,c=this.getSearchOptions();if(r.score&&(a=n.settings.score.apply(this,[t]),typeof a!="function"))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==n.lastQuery?(n.lastQuery=t,s=n.sifter.search(t,e.extend(c,{score:a})),n.currentResults=s):s=e.extend(!0,{},n.currentResults),r.hideSelected)for(i=s.items.length-1;i>=0;i--)n.items.indexOf(o(s.items[i].id))!==-1&&s.items.splice(i,1);return s},refreshOptions:function(t){typeof t=="undefined"&&(t=!0);var s,i,c,l,u,h,m,f,p,g,v,b,j,_,w,n=this,y=e.trim(n.$control_input.val()),r=n.search(y),d=n.$dropdown_content,O=n.$activeOption&&o(n.$activeOption.attr("data-value")),a=r.items.length;typeof n.settings.maxOptions=="number"&&(a=Math.min(a,n.settings.maxOptions)),l={},u=[];for(i=0;i<a;i++){j=n.options[r.items[i].id],_=n.render("option",j),s=j[n.settings.optgroupField]||"",f=e.isArray(s)?s:[s];for(v=0,w=f&&f.length;v<w;v++)s=f[v],n.optgroups.hasOwnProperty(s)||(s=""),l.hasOwnProperty(s)||(l[s]=document.createDocumentFragment(),u.push(s)),l[s].appendChild(_)}this.settings.lockOptgroupOrder&&u.sort(function(e,t){var s=n.optgroups[e].$order||0,o=n.optgroups[t].$order||0;return s-o}),m=document.createDocumentFragment();for(i=0,a=u.length;i<a;i++)s=u[i],n.optgroups.hasOwnProperty(s)&&l[s].childNodes.length?(h=document.createDocumentFragment(),h.appendChild(n.render("optgroup_header",n.optgroups[s])),h.appendChild(l[s]),m.appendChild(n.render("optgroup",e.extend({},n.optgroups[s],{html:D(h),dom:h})))):m.appendChild(l[s]);if(d.html(m),n.settings.highlight&&(d.removeHighlight(),r.query.length&&r.tokens.length))for(i=0,a=r.tokens.length;i<a;i++)I(d,r.tokens[i].regex);if(!n.settings.hideSelected)for(i=0,a=n.items.length;i<a;i++)n.getOption(n.items[i]).addClass("selected");b=n.canCreate(y),b&&(d.prepend(n.render("option_create",{input:y})),g=e(d[0].childNodes[0])),n.hasOptions=r.items.length>0||b,n.hasOptions?(r.items.length>0?(p=O&&n.getOption(O),p&&p.length?c=p:n.settings.mode==="single"&&n.items.length&&(c=n.getOption(n.items[0])),(!c||!c.length)&&(g&&!n.settings.addPrecedence?c=n.getAdjacentOption(g,1):c=d.find("[data-selectable]:first"))):c=g,n.setA
327ctiveOption(c),t&&!n.isOpen&&n.open()):(n.setActiveOption(null),t&&n.isOpen&&n.close())},addOption:function(t){var s,o,i,n=this;if(e.isArray(t)){for(s=0,i=t.length;s<i;s++)n.addOption(t[s]);return}(o=n.registerOption(t))&&(n.userOptions[o]=!0,n.lastQuery=null,n.trigger("option_add",o,t))},registerOption:function(e){var t=o(e[this.settings.valueField]);return!(typeof t=="undefined"||t===null||this.options.hasOwnProperty(t))&&(e.$order=e.$order||++this.order,this.options[t]=e,t)},registerOptionGroup:function(e){var t=o(e[this.settings.optgroupValueField]);return!!t&&(e.$order=e.$order||++this.order,this.optgroups[t]=e,t)},addOptionGroup:function(e,t){t[this.settings.optgroupValueField]=e,(e=this.registerOptionGroup(t))&&this.trigger("optgroup_add",e,t)},removeOptionGroup:function(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.renderCache={},this.trigger("optgroup_remove",e))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,n){var i,a,r,c,l,d,u,s=this;if(t=o(t),i=o(n[s.settings.valueField]),t===null)return;if(!s.options.hasOwnProperty(t))return;if(typeof i!="string")throw new Error("Value must be set in option data");u=s.options[t].$order,i!==t&&(delete s.options[t],d=s.items.indexOf(t),d!==-1&&s.items.splice(d,1,i)),n.$order=n.$order||u,s.options[i]=n,a=s.renderCache.item,r=s.renderCache.option,a&&(delete a[t],delete a[i]),r&&(delete r[t],delete r[i]),s.items.indexOf(i)!==-1&&(c=s.getItem(t),l=e(s.render("item",n)),c.hasClass("active")&&l.addClass("active"),c.replaceWith(l)),s.lastQuery=null,s.isOpen&&s.refreshOptions(!1)},removeOption:function(e,t){var s,i,n=this;e=o(e),s=n.renderCache.item,i=n.renderCache.option,s&&delete s[e],i&&delete i[e],delete n.userOptions[e],delete n.options[e],n.lastQuery=null,n.trigger("option_remove",e),n.removeItem(e,t)},clearOptions:function(){var n,t=this;t.loadedSearches={},t.userOptions={},t.renderCache={},n=t.options,e.each(t.options,function(e){t.items.indexOf(e)==-1&&delete n[e]}),t.options=t.sifter.items=n,t.lastQuery=null,t.trigger("option_clear")},getOption:function(e){return this.getElementWithValue(e,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,n){var s=this.$dropdown.find("[data-selectable]"),o=s.index(t)+n;return o>=0&&o<s.length?s.eq(o):e()},getElementWithValue:function(t,n){if(t=o(t),typeof t!="undefined"&&t!==null)for(var s=0,i=n.length;s<i;s++)if(n[s].getAttribute("data-value")===t)return e(n[s]);return e()},getItem:function(e){return this.getElementWithValue(e,this.$control.children())},addItems:function(t,n){this.buffer=document.createDocumentFragment();for(o=this.$control[0].childNodes,s=0;s<o.length;s++)this.buffer.appendChild(o[s]);for(var o,i,a=e.isArray(t)?t:[t],s=0,r=a.length;s<r;s++)this.isPending=s<r-1,this.addItem(a[s],n);i=this.$control[0],i.insertBefore(this.buffer,i.firstChild),this.buffer=null},addItem:function(t,n){var s=n?[]:["change"];v(this,s,function(){var a,r,c,l,d,u,h,s=this,i=s.settings.mode;if(t=o(t),s.items.indexOf(t)!==-1){i==="single"&&s.close();return}if(!s.options.hasOwnProperty(t))return;if(i==="single"&&s.clear(n),i==="multi"&&s.isFull())return;a=e(s.render("item",s.options[t])),d=s.isFull(),s.items.splice(s.caretPos,0,t),s.insertAtCaret(a),(!s.isPending||!d&&s.isFull())&&s.refreshState(),s.isSetup&&(l=s.$dropdown_content.find("[data-selectable]"),s.isPending||(c=s.getOption(t),r=s.getAdjacentOption(c,1).attr("data-value"),s.refreshOptions(s.isFocused&&i!=="single"),r&&s.setActiveOption(s.getOption(r))),!l.length||s.isFull()?s.close():s.isPending||s.positionDropdown(),s.updatePlaceholder(),s.trigger("item_add",t,a),s.isPending||s.updateOriginalInput({silent:n}))})},removeItem:function(t,n){var a,r,s=this,i=t instanceof e?t:s.getItem(t);t=o(i.attr("data-value")),a=s.items.indexOf(t),a!==-1&&(i.remove(),i.hasClass("active")&&(r=s.$activeItems.indexOf(i[0]),s.$activeItems.splice(r,1)),s.items.splice(a,1),s.lastQuery=null,!s.settings.persist&&s.userOptions.hasOwnProperty(t)&&s.removeOption(t,n),a<s.caretPos&&s.setCaret(s.caretPos-1),s.refreshState(),s.updatePlaceholder(),s.updateOriginalInput({silent:n}),s.positionDropdown(),s.trigger("item_remove",t,i))},createItem:function(t,n){var i,a,r,c,s=this,l=s.caretPos;return t=t||e.trim(s.$control_input.val()||""),i=arguments[arguments.length-1],typeof i!="function"&&(i=function(){}),typeof n!="boolean"&&(n=!0),s.canCreate(t)?(s.lock(),c=typeof s.settings.create=="function"?this.settings.create:function(e){var t={};return t[s.settings.labelField]=e,t[s.settings.valueField]=e,t},a=y(function(e){if(s.unlock(),!e||typeof e!="object")return i();var t=o(e[s.settings.valueField]);if(typeof t!="string")return i();s.setTextboxValue(""),s.addOption(e),s.setCaret(l),s.addItem(t),s.refreshOptions(n&&s.settings.mode!=="single"),i(e)}),r=c.apply(this,[t,a]),typeof r!="undefined"&&a(r),!0):(i(),!1)},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var e=!this.items.length;this.isInvalid=e,this.$control_input.prop("required",e),this.$input.prop("required",!e)},refreshClasses:function(){var t=this,n=t.isFull(),s=t.isLocked;t.$wrapper.toggleClass("rtl",t.rtl),t.$control.toggleClass("focus",t.isFocused).toggleClass("disabled",t.isDisabled).toggleClass("required",t.isRequired).toggleClass("invalid",t.isInvalid).toggleClass("locked",s).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",t.isFocused&&!t.isInputHidden).toggleClass("dropdown-active",t.isOpen).toggleClass("has-options",!e.isEmptyObject(t.options)).toggleClass("has-items",t.items.length>0),t.$control_input.data("grow",!n&&!s)},isFull:function(){return this.settings.maxItems!==null&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(e){var n,s,o,a,t=this;if(e=e||{},t.tagType===l){s=[];for(n=0,o=t.items.length;n<o;n++)a=t.options[t.items[n]][t.settings.labelField]||"",s.push('<option value="'+i(t.items[n])+'" selected="selected">'+i(a)+"</option>");!s.length&&!this.$input.attr("multiple")&&s.push('<option value="" selected="selected"></option>'),t.$input.html(s.join(""))}else t.$input.val(t.getValue()),t.$input.attr("value",t.$input.val());t.isSetup&&(e.silent||t.trigger("change",t.$input.val()))},updatePlaceholder:function(){if(!this.settings.placeholder)return;var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})},open:function(){var e=this;
327if(e.isLocked||e.isOpen||e.settings.mode==="multi"&&e.isFull())return;e.focus(),e.isOpen=!0,e.refreshState(),e.$dropdown.css({visibility:"hidden",display:"block"}),e.positionDropdown(),e.$dropdown.css({visibility:"visible"}),e.trigger("dropdown_open",e.$dropdown)},close:function(){var e=this,t=e.isOpen;e.settings.mode==="single"&&e.items.length&&(e.hideInput(),e.isBlurring||e.$control_input.blur()),e.isOpen=!1,e.$dropdown.hide(),e.setActiveOption(null),e.refreshState(),t&&e.trigger("dropdown_close",e.$dropdown)},positionDropdown:function(){var e=this.$control,t=this.settings.dropdownParent==="body"?e.offset():e.position();t.top+=e.outerHeight(!0),this.$dropdown.css({width:e[0].getBoundingClientRect().width,top:t.top,left:t.left})},clear:function(e){var t=this;if(!t.items.length)return;t.$control.children(":not(input)").remove(),t.items=[],t.lastQuery=null,t.setCaret(0),t.setActiveItem(null),t.updatePlaceholder(),t.updateOriginalInput({silent:e}),t.refreshState(),t.showInput(),t.trigger("clear")},insertAtCaret:function(e){var n=Math.min(this.caretPos,this.items.length),s=e[0],t=this.buffer||this.$control[0];n===0?t.insertBefore(s,t.firstChild):t.insertBefore(s,t.childNodes[n]),this.setCaret(n+1)},deleteSelection:function(t){var s,o,a,l,d,h,m,n=this,i=t&&t.keyCode===r?-1:1,c=u(n.$control_input[0]);if(n.$activeOption&&!n.settings.hideSelected&&(l=n.getAdjacentOption(n.$activeOption,-1).attr("data-value")),s=[],n.$activeItems.length){m=n.$control.children(".active:"+(i>0?"last":"first")),a=n.$control.children(":not(input)").index(m),i>0&&a++;for(o=0,h=n.$activeItems.length;o<h;o++)s.push(e(n.$activeItems[o]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())}else(n.isFocused||n.settings.mode==="single")&&n.items.length&&(i<0&&c.start===0&&c.length===0?s.push(n.items[n.caretPos-1]):i>0&&c.start===n.$control_input.val().length&&s.push(n.items[n.caretPos]));if(!s.length||typeof n.settings.onDelete=="function"&&n.settings.onDelete.apply(n,[s])===!1)return!1;for(typeof a!="undefined"&&n.setCaret(a);s.length;)n.removeItem(s.pop());return n.showInput(),n.positionDropdown(),n.refreshOptions(!0),l&&(d=n.getOption(l),d.length&&n.setActiveOption(d)),!0},advanceSelection:function(e,t){var s,o,i,a,r,c,n=this;if(e===0)return;n.rtl&&(e*=-1),r=e>0?"last":"first",s=u(n.$control_input[0]),n.isFocused&&!n.isInputHidden?(i=n.$control_input.val().length,c=e<0?s.start===0&&s.length===0:s.start===i,c&&!i&&n.advanceCaret(e,t)):(a=n.$control.children(".active:"+r),a.length&&(o=n.$control.children(":not(input)").index(a),n.setActiveItem(null),n.setCaret(e>0?o+1:o)))},advanceCaret:function(e,t){var s,o,n=this;if(e===0)return;o=e>0?"next":"prev",n.isShiftDown?(s=n.$control_input[o](),s.length&&(n.hideInput(),n.setActiveItem(s),t&&t.preventDefault())):n.setCaret(n.caretPos+e)},setCaret:function(t){var s,o,i,a,r,n=this;if(n.settings.mode==="single"?t=n.items.length:t=Math.max(0,Math.min(n.items.length,t)),!n.isPending){o=n.$control.children(":not(input)");for(s=0,a=o.length;s<a;s++)i=e(o[s]).detach(),s<t?n.$control_input.before(i):n.$control.append(i)}n.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var e=this;e.$input.prop("disabled",!0),e.$control_input.prop("disabled",!0).prop("tabindex",-1),e.isDisabled=!0,e.lock()},enable:function(){var e=this;e.$input.prop("disabled",!1),e.$control_input.prop("disabled",!1).prop("tabindex",e.tabIndex),e.isDisabled=!1,e.unlock()},destroy:function(){var t=this,n=t.eventNS,o=t.revertSettings;t.trigger("destroy"),t.off(),t.$wrapper.remove(),t.$dropdown.remove(),t.$input.html("").append(o.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:o.tabindex}).show(),t.$control_input.removeData("grow"),t.$input.removeData("selectize"),--s.count==0&&s.$testInput&&(s.$testInput.remove(),s.$testInput=0[0]),e(window).off(n),e(document).off(n),e(document.body).off(n),delete t.$input[0].selectize},render:function(t,n){var r,l,d,a="",c=!1,s=this,u=/^[\t \r\n]*<([a-z][a-z0-9-_]*(?::[a-z][a-z0-9-_]*)?)/i;return(t==="option"||t==="item")&&(r=o(n[s.settings.valueField]),c=!!r),c&&(p(s.renderCache[t])||(s.renderCache[t]={}),s.renderCache[t].hasOwnProperty(r))?s.renderCache[t][r]:(a=e(s.settings.render[t].apply(this,[n,i])),t==="option"||t==="option_create"?n[s.settings.disabledField]||a.attr("data-selectable",""):t==="optgroup"&&(l=n[s.settings.optgroupValueField]||"",a.attr("data-group",l),n[s.settings.disabledField]&&a.attr("data-disabled","")),(t==="option"||t==="item")&&a.attr("data-value",r||""),c&&(s.renderCache[t][r]=a[0]),a[0])},clearCache:function(e){var t=this;typeof e=="undefined"?t.renderCache={}:delete t.renderCache[e]},canCreate:function(e){var t,n=this;return!!n.settings.create&&(t=n.settings.createFilter,e.length&&(typeof t!="function"||t.apply(n,[e]))&&(typeof t!="string"||new RegExp(t).test(e))&&(!(t instanceof RegExp)||t.test(e)))}}),s.count=0,s.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,
327createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},e.fn.selectize=function(t){var d=e.fn.selectize.defaults,n=e.extend({},d,t),r=n.dataAttr,c=n.labelField,a=n.valueField,l=n.disabledField,i=n.optgroupField,u=n.optgroupLabelField,h=n.optgroupValueField,m=function(t,s){var o,i,l,d,u,h=t.attr(r);if(h){s.options=JSON.parse(h);for(o=0,l=s.options.length;o<l;o++)s.items.push(s.options[o][a])}else{if(u=e.trim(t.val()||""),!n.allowEmptyOption&&!u.length)return;i=u.split(n.delimiter);for(o=0,l=i.length;o<l;o++)d={},d[c]=i[o],d[a]=i[o],s.options.push(d);s.items=i}},f=function(t,s){var d,m,p,g,_=0,j=s.options,f={},v=function(e){var t=r&&e.attr(r);return typeof t=="string"&&t.length?JSON.parse(t):null},b=function(t,r){t=e(t);var d,h,u=o(t.val());if(!u&&!n.allowEmptyOption)return;if(f.hasOwnProperty(u)){r&&(h=f[u][i],h?e.isArray(h)?h.push(r):f[u][i]=[h,r]:f[u][i]=r);return}d=v(t)||{},d[c]=d[c]||t.text(),d[a]=d[a]||u,d[l]=d[l]||t.prop("disabled"),d[i]=d[i]||r,f[u]=d,j.push(d),t.is(":selected")&&s.items.push(u)},y=function(t){var n,o,i,a,r;t=e(t),n=t.attr("label"),n&&(o=v(t)||{},o[u]=n,o[h]=n,o[l]=t.prop("disabled"),s.optgroups.push(o)),a=e("option",t);for(i=0,r=a.length;i<r;i++)b(a[i],n)};s.maxItems=t.attr("multiple")?null:1,m=t.children();for(d=0,g=m.length;d<g;d++)p=m[d].tagName.toLowerCase(),p==="optgroup"?y(m[d]):p==="option"&&b(m[d])};return this.each(function(){if(this.selectize)return;var i,r,o=e(this),c=this.tagName.toLowerCase(),a=o.attr("placeholder")||o.attr("data-placeholder");!a&&!n.allowEmptyOption&&(a=o.children('option[value=""]').text()),i={placeholder:a,options:[],optgroups:[],items:[]},c==="select"?f(o,i):m(o,i),r=new s(o,e.extend(!0,{},d,i,t))})},e.fn.selectize.defaults=s.defaults,e.fn.selectize.support={validity:g},s.define("drag_drop",function(){if(!e.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if(this.settings.mode!=="multi")return;var n=this;n.lock=function(){var e=n.lock;return function(){var t=n.$control.data("sortable");return t&&t.disable(),e.apply(n,arguments)}}(),n.unlock=function(){var e=n.unlock;return function(){var t=n.$control.data("sortable");return t&&t.enable(),e.apply(n,arguments)}}(),n.setup=function(){var t=n.setup;return function(){t.apply(this,arguments);var s=n.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:n.isLocked,start:function(e,t){t.placeholder.css("width",t.helper.css("width")),s.css({overflow:"visible"})},stop:function(){s.css({overflow:"hidden"});var o=n.$activeItems?n.$activeItems.slice():null,t=[];s.children("[data-value]").each(function(){t.push(e(this).attr("data-value"))}),n.setValue(t),n.setActiveItem(o)}})}}()}),s.define("dropdown_header",function(t){var n=this;t=e.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(e){return'<div class="'+e.headerClass+'"><div class="'+e.titleRowClass+'"><span class="'+e.labelClass+'">'+e.title+'</span><a href="javascript:void(0)" class="'+e.closeClass+'">×</a></div></div>'}},t),n.setup=function(){var s=n.setup;return function(){s.apply(n,arguments),n.$dropdown_header=e(t.html(t)),n.$dropdown.prepend(n.$dropdown_header)}}()}),s.define("optgroup_columns",function(t){var s,o,n=this;t=e.extend({equalizeWidth:!0,equalizeHeight:!0},t),this.getAdjacentOption=function(t,n){var s=t.closest("[data-group]").find("[data-selectable]"),o=s.index(t)+n;return o>=0&&o<s.length?s.eq(o):e()},this.onKeyDown=function(){var e=n.onKeyDown;return function(t){var s,o,i,a;if(this.isOpen&&(t.keyCode===h||t.keyCode===f)){n.ignoreHover=!0,s=this.$activeOption.closest("[data-group]"),a=s.find("[data-selectable]").index(this.$activeOption),t.keyCode===h?s=s.prev("[data-group]"):s=s.next("[data-group]"),i=s.find("[data-selectable]"),o=i.eq(Math.min(i.length-1,a)),o.length&&this.setActiveOption(o);return}return e.apply(this,arguments)}}(),s=function(){var e,t=s.width,n=document;return typeof t=="undefined"&&(e=n.createElement("div"),e.innerHTML='<div style="width:50px;height:50px;position:absolute;
327left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,n.body.appendChild(e),t=s.width=e.offsetWidth-e.clientWidth,n.body.removeChild(e)),t},o=function(){var a,r,c,l,d,i=e("[data-group]",n.$dropdown_content),o=i.length;if(!o||!n.$dropdown_content.width())return;if(t.equalizeHeight){r=0;for(a=0;a<o;a++)r=Math.max(r,i.eq(a).height());i.css({height:r})}t.equalizeWidth&&(l=n.$dropdown_content.innerWidth()-s(),c=Math.round(l/o),i.css({width:c}),o>1&&(d=l-c*(o-1),i.eq(o-1).css({width:d})))},(t.equalizeHeight||t.equalizeWidth)&&(d.after(this,"positionDropdown",o),d.after(this,"refreshOptions",o))}),s.define("remove_button",function(t){t=e.extend({label:"×",title:"Remove",className:"remove",append:!0},t);var n=function(t,n){n.className="remove-single";var s=t,o='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+i(n.title)+'">'+n.label+"</a>",a=function(t,n){return e("<span>").append(t).append(n)};t.setup=function(){var i=s.setup;return function(){if(n.append){var r=e(s.$input.context).attr("id"),l=e("#"+r),c=s.settings.render.item;s.settings.render.item=function(){return a(c.apply(t,arguments),o)}}i.apply(t,arguments),t.$control.on("click","."+n.className,function(e){if(e.preventDefault(),s.isLocked)return;s.clear()})}}()},s=function(t,n){var s=t,o='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+i(n.title)+'">'+n.label+"</a>",a=function(e,t){var n=e.search(/(<\/[^>]+>\s*)$/);return e.substring(0,n)+t+e.substring(n)};t.setup=function(){var i=s.setup;return function(){if(n.append){var r=s.settings.render.item;s.settings.render.item=function(){return a(r.apply(t,arguments),o)}}i.apply(t,arguments),t.$control.on("click","."+n.className,function(t){if(t.preventDefault(),s.isLocked)return;var n=e(t.currentTarget).parent();s.setActiveItem(n),s.deleteSelection()&&s.setCaret(s.items.length)})}}()};if(this.settings.mode==="single"){n(this,t);return}s(this,t)}),s.define("restore_on_backspace",function(e){var t=this;e.text=e.text||function(e){return e[this.settings.labelField]},this.onKeyDown=function(){var n=t.onKeyDown;return function(t){var s,o;if(t.keyCode===r&&this.$control_input.val()===""&&!this.$activeItems.length&&(s=this.caretPos-1,s>=0&&s<this.items.length)){o=this.options[this.items[s]],this.deleteSelection(t)&&(this.setTextboxValue(e.text.apply(this,[o])),this.refreshOptions(!0)),t.preventDefault();return}return n.apply(this,arguments)}}()}),s}); 328(function(e){"use strict";var t,o,u=/^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/,n=/^([a-zA-Z0-9_.+-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,s=sc_country_select_states.sc_states,d=sc_country_select_states.sc_country;e(".sc-open-modal").click(function(t){t.preventDefault();var n=e(this).data("item-id");e("#"+n).addClass("opened")}),e(".closemodal").click(function(t){t.preventDefault();var n=e(this).closest(".opened");n.removeClass("opened")}),e(document).on("click",'a[href*="sc-upsell-offer=yes"]',function(e){if(e.preventDefault(),"undefined"!=typeof studiocart.is_preview&&"1"==studiocart.is_preview){e.stopPropagation();return}return!1}),e(document).on("click",'a[href*="sc-upsell-offer=no"]',function(e){if(e.preventDefault(),"undefined"!=typeof studiocart.is_preview&&"1"==studiocart.is_preview){e.stopPropagation();return}return window.location.href=studiocart.upsell_decline,!1}),e(document).on("click",".sc-accept-upsell-link, .sc-decline-upsell-link",function(t){if("undefined"!=typeof studiocart.is_preview&&"1"==studiocart.is_preview)return t.preventDefault(),t.stopPropagation(),!1;if(e(this).hasClass("sc-accept-upsell-link")){if(e(this).css({"pointer-events":"none",opacity:.85}).text(sc_translate_frontend.processing+"..."),typeof studiocart.pay_method!="undefined"&&studiocart.pay_method!="stripe"&&studiocart.pay_method!="cod")return e(this).trigger("studiocart/upsell/accept/"+studiocart.pay_method),!1;var n=e(this).attr("href"),o=e(".sc-decline-upsell-link").attr("href"),s="sc-oto",i={action:"sc_process_upsell","sc-order":studiocart.sc_order,"sc-nonce":studiocart.sc_nonce,step:studiocart.step};return"undefined"!=typeof studiocart.is_downsell&&"1"==studiocart.is_downsell&&(i.downsell=1,s="sc-oto-2"),e.post(studiocart.ajax,i,function(t){if(isNaN(t)){i=JSON.parse(t),"undefined"!=typeof i.message&&(alert(i.message),window.location.href=o);
328var i,a=Stripe(stripe_key[0]),r=i.intentId;return a.confirmCardPayment(i.clientSecret,{payment_method:i.paymentMethod}).then(function(t){if(t.error)alert(t.error.message),window.location.href=o;else{var i={action:"save_order_to_db","sc-order":studiocart.sc_order,"sc-nonce":studiocart.sc_nonce,intent_id:r,intent_status:t.paymentIntent.status};"undefined"!=typeof studiocart.is_downsell&&"1"==studiocart.is_downsell&&(i.downsell=1,s="sc-oto-2"),e.post(studiocart.ajax,i,function(e){if(!isNaN(e))return n+="&"+s+"="+e,window.location.href=n,!1;alert(e),window.location.href=o})}}),!1}return n+="&"+s+"="+t,window.location.href=n,!1}),!1}});function i(t){let n=[];return e.each(t,function(e,t){let s={state_key:e,state_value:t};n.push(s)}),n}function a(e){return/^\d{7,}$/.test(e.replace(/[\s()+\-.]|ext/gi,""))}function r(e){var t,n=/[a-z]/g;return!!e.match(n)&&(t=/[0-9]/g,!!e.match(t)&&!(!e.length>=8))}function c(){e(".sc-form-wrap").each(function(){let a,r,c=e(this),n="#"+c.attr("id");if(e("#state",n).length&&(r=e("#state",n).val()),e("#country",n).length<1?a=d:(a=e("#country",n).val(),e("#country",n).selectize()[0].selectize.destroy(),o=e("#country",n).selectize({onChange:function(o){if(!o.length)return;if(e("#state",n).length>0){e("#state",n).selectize()[0].selectize.clearOptions(),e("#state",n).selectize()[0].selectize.destroy();let c=i(s[o]),a=e("#state",n).attr("placeholder"),r="";jQuery("#state",n).hasClass("required")&&(r="required"),e("#state option",n).length>0&&(a=e('#state option[value=""]',n).text()),c.length===0?e("#state",n).replaceWith('<input id="state" name="state" type="text" class="form-control '+r+'" placeholder="'+a+'" value="" aria-label="State">'):(e("#state",n).replaceWith('<select id="state" name="state" class="form-control '+r+'" style="display: block;"><option value="" selected>'+a+"</option></select>"),t=e("#state",n).selectize({valueField:"state_key",labelField:"state_value",searchField:"state_value",options:c,onChange:function(t){if(t.length>=1){var s=e("#state",n);s.removeClass("invalid").closest(".form-group").find(".error").remove(),s.closest(".form-group").find(".selectize-input").removeClass("invalid")}}}))}}}),o[0].selectize.setValue(a)),e("#state",n).length>0){let o=i(s[a]);o.length===0?e("#state",n).replaceWith('<input id="state" name="state" type="text" class="form-control required" placeholder="State" value="'+r+'" aria-label="State">'):(t=e("#state",n).selectize({valueField:"state_key",labelField:"state_value",searchField:"state_value",options:o}),t[0].selectize.setValue(r))}})}e(document).ready(function(){var t,s,i,l,m,f,p,g,b,y,_,w,x,C,o=async function(t){t=t.replace("#",""),e(".sc-stripe-express","#"+t).hide(),i=e("input[name=sc_product_option]:checked","#"+t),i.closest(".item").hasClass("sc-selected")||(e("input[name=sc_product_option]","#"+t).each(function(){e(this).closest(".item").removeClass("sc-selected")}),i.closest(".item").addClass("sc-selected"));let a=document.getElementById(t);if(a=a.getElementsByTagName("form")[0],r=new FormData(a),r.set("action","sc_update_cart_amount"),typeof sc_tax_settings!="undefined"&&e('select[name="country"]',"#"+t).val()!=""){var s,o,i,r,n={},c={};n.country=e('select[name="country"]',"#"+t).val()?e('select[name="country"]',"#"+t).val():"",n.city=e('input[name="city"]',"#"+t).val()?e('input[name="city"]',"#"+t).val():"",n.state=e('select[name="state"]',"#"+t).val()?e('select[name="state"]',"#"+t).val():"",n.zip=e('input[name="zip"]',"#"+t).val()?e('input[name="zip"]',"#"+t).val():"",n.vat_number=e('input[name="vat-number"]',"#"+t).val()?e('input[name="vat-number"]',"#"+t).val():"",n.nonce=sc_tax_settings.nonce,n.action="get_match_tax_rate",e.ajax({type:"post",dataType:"json",url:studiocart.ajax,data:n,success:function(s){c=s.rates,e(".vat_container","#"+t).hide();let o="Invalid VAT Number";e("#vat_number","#"+t).removeClass("valid invalid"),e("#vat_number","#"+t).parent().find(".error").remove(),s.is_valid_vat?n.vat_number!=""&&e("#vat_number","#"+t).addClass("valid"):(e("#vat_number","#"+t).addClass("invalid"),s.vat_error!=""&&(o=s.vat_error),e("#vat_number","#"+t).parent().find(".error").length==0?e("#vat_number","#"+t).parent().append('<div class="error">'+o+"</div>"):e("#vat_number","#"+t).parent().find(".error").html(o)),s.is_vat&&e(".vat_container","#"+t).show()}})}try{const n=await fetch(studiocart.ajax,{method:"POST",body:r});if(n.ok){const i=await n.json();return i.order_summary_items&&(s=e("#"+t).find(".summary-items"),o=e("#"+t).find(".total"),s.empty(),o.empty(),e('input[name="sc_amount"]',"#"+t).val(i.total),i.total==0&&typeof i.sub_summary=="undefined"?e(".pay-info","#"+t).hide():e(".pay-info","#"+t).show(),i.total!=0&&e(".sc-stripe-express","#"+t).show(),i.order_summary_items.length===0?(e(".sc-stripe-express","#"+t).hide(),e("#sc_card_button","#"+t).hide(),s.append('<div class="item"><span class="sc-label">'+i.empty+"</span></div>")):(e("#sc_card_button","#"+t).show(),i.order_summary_items.forEac
328h(e=>{Number(e.quantity)>1&&(e.name+=" x "+e.quantity),s.append('<div class="item '+e.type+'"><span class="sc-label">'+e.name+'</span><span class="price">'+e.subtotal+"</span></div>")}),o.append(i.total_html),typeof i.sub_summary!="undefined"&&o.append("<small>"+i.sub_summary+"</small>"))),F("#"+t),i.success}alert("Something went wrong.")}catch{alert("Something went wrong.")}return!1};e(document).on("click",".studiocart .coupon-code input[type='button']",function(t){t.preventDefault();var n="#"+e(this).closest("form").parent().attr("id");e(this).attr("disabled","disabled"),E(n),e("#discount-code",n).val()==""?e(".coupon-code input[type='button']",n).removeAttr("disabled"):O(e("#discount-code",n).val(),n)}),e(document).on("change","#sc-credit",function(){var t="#"+e(this).closest("form").parent().attr("id");e(this).is(":checked")?O("sc-credit",t):(E(t),e(".coupon-code input[type='button']",t).removeAttr("disabled"))}),e(document).on("click",".sc-password-toggle",function(){var t=e(this).parent().prev(".sc-password");e(this).is(":checked")?t.attr("type","text"):t.attr("type","password")}),e(document).on("change",'input[name="pay-method"]',function(){var t="#"+e(this).closest("form").parent().attr("id");T(t)}),e(document).on("click","#sc-coupon-toggle",function(){var t="#"+e(this).closest("form").parent().attr("id");return e("#sc-coupon-form",t).fadeToggle(),!1}),typeof sc_popup=="undefined"||!sc_popup.is_popup||sc_popup.is_popup=="false"?c():jQuery(document).on("elementor/popup/show",()=>{c()});function T(t){var n=e('[name="pay-method"]:checked',t).val();n!="stripe"?e(".sc-stripe",t).fadeOut():(e(".sc-stripe",t).fadeIn(),e("#paypal-button-container",t).fadeOut())}function N(e){var t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3)+(?!\d))/g,sc_currency.thousep),t.join(sc_currency.decisep)}function d(e){var t;return sc_currency.position!="right"&&sc_currency.position!="right-space"&&(t=sc_currency.symbol,sc_currency.position=="left-space"&&(t+=" "),t+=N(parseFloat(e).toFixed(sc_currency.decinum))),(sc_currency.position=="right"||sc_currency.position=="right-space")&&(t=N(parseFloat(e).toFixed(sc_currency.decinum)),sc_currency.position=="right-space"&&(t+=" "),t+=sc_currency.symbol),t}e(document).on("change","input[name=sc_product_option]",function(){var t="#"+e(this).closest("form").parent().attr("id");S(t)});function S(t){var s=e("input[name=sc_product_option]:checked",t).attr("data-val"),o=e("input[name=sc_product_option]:checked",t).attr("data-price"),i=e("input[name=sc_product_option]:checked",t).attr("id"),n=e("input[name=sc_product_option]:checked",t).val();e(".pwyw-input",t).fadeOut(),s&&s=="pwyw"?(e("#"+i,t).data("price",o),e("#pwyw-amount-input-"+n,t).val(o),e("#pwyw-input-block-"+n,t).fadeIn().focus()):e("#pwyw-input-block-"+n,t).fadeOut()}function H(e,t){let n;return function(){const s=this,o=arguments;clearTimeout(n),n=setTimeout(()=>e.apply(s,o),t)}}e(document).on("change blur focusout",'input[name^="pwyw_amount"]',function(){var t=e(this).val(),s=e(this).attr("min"),n=e("input[name=sc_product_option]:checked").attr("id"),i=e(this).closest("form").parent().attr("id");parseFloat(t)<parseFloat(s)&&(e(this).addClass("invalid"),e(this).closest(".item").find(".error").length==0&&e(this).closest(".item").append('<div class="error">Please enter an amount greater than or equal to '+d(parseFloat(s).toFixed(2))+"</div>")),t&&(e(this).closest(".item").remove(".error"),e("#"+n).attr("data-price",t),e("#"+n).data("price",t),e("#"+n).parent().find(".price").html('<span class="sc-Price-currencySymbol">$</span>'+parseFloat(e("#"+n).attr("data-price")).toFixed(2)),o(i))}),e(document).on("input",'input[name^="pwyw_amount"]',H(function(){var t="#"+e(this).closest("form").parent().attr("id");F(t)},1e3)),e(document).on("change",'#sc_qty, .sc_qty, input[name=sc_product_option], #sc-orderbump, .sc_orderbump, input[data-scq-price],select[name="country"], select[name="state"], input[name="city"], input[name="zip"], input[name="vat-number"]',function(){var t=e(this).closest("form").parent().attr("id");o(t)}),e("#discount-code").keydown(function(){e("#coupon-status").text("").hide()}),e(".coupon-code.applied").on("click","button.coupon",function(t){var n=e(this).closest("form").parent();t.preventDefault(),n.find(".coupon-code").show()});
328function E(t){e(".coupon-code.applied, .cart-discount",t).hide(),e("#sc-coupon-id",t).val("").removeData("type","amount","plans"),e("#coupon-status",t).delay(3e3).fadeOut(),e("#sc-coupon-id",t).data("type"),e("#sc-payment-form .products .item",t).each(function(){var t=e(this).find('input[type="radio"]'),n=t.data("og-price");typeof t.data("og-price")!="undefined"&&(e(this).find(".price").html(d(n)),t.data("price",n)),e(this).find(".coup-confirm").remove()}),o(t)}function O(t,n){var s,a=e("input[name=sc-nonce]",n).val(),r=e("input[name=sc_product_id]",n).val(),i={action:"sc_validate_coupon",prod_id:r,coup_code:t,nonce:a,ip:sc_user[0],email:e("#email",n).val()};!e("#email").val()&&typeof sc_user[1]!="undefined"&&(i.email=sc_user[1]),e.ajax({type:"post",dataType:"json",url:studiocart.ajax,data:i,success:function(t){if(t.error)e("#coupon-status",n).text(t.error).fadeIn(),e("#sc-coupon-id",n).val(""),e(".coupon-code input[type='button']",n).length>0?e(".coupon-code input[type='button']",n).show():e("#coupon-status",n).delay(3e3).fadeOut("normal",function(){e(this).remove()}),E(n),e("#sc-payment-form",n).trigger("studiocart/orderform/coupon_rejected");else{let o=!0;if(e("#sc-payment-form .products .item",n).length){let o=!1;e("#sc-payment-form .products .item",n).each(function(){var c,u,a=e(this).find('input[type="radio"]'),l=a.data("og-price")?a.data("og-price"):a.data("price"),h=a.data("installments"),r=t.amount;if(t.plan&&!t.plan.includes(a.val()))return;if(s=d(t.amount),l<=0&&(t.type=="percent"||t.type=="fixed"))return;o=!0,(t.type=="percent"||t.type=="cart-percent")&&(s=t.amount+"%"),t.type=="percent"?r=l*(r/100):h&&t.amount_recurring&&(r=t.amount_recurring),c=(l-r).toFixed(2),c<0&&(c=0..toFixed(2)),t.type!="cart-percent"&&t.type!="cart-fixed"&&(typeof t.duration!="undefined"&&h?(a.data("duration",t.duration),a.data("discount",r)):a.removeData("duration"),e(this).find(".price").html("<s>"+d(l)+"</s> "+d(c)),a.data("price",c).data("og-price",l)),t.plan?(t.type!="cart-percent"&&t.type!="percent"?u=d(r):u=t.amount+"%",s=t.code+" (-"+u+")",e(this).find("coup-confirm").remove(),e(this).find("label").append('<span class="coup-confirm">'+s+"</span>")):(typeof t.success_text!="undefined"&&t.success_text!=null?s=t.success_text:s=sc_translate_frontend.you_got+" "+s+" "+sc_translate_frontend.off,e(".coupon-code.applied .coup-confirm",n).html(s).parent().fadeIn())})}o&&(e("#sc-coupon-id",n).val(t.code),(t.type=="cart-percent"||t.type=="cart-fixed")&&e("#sc-coupon-id",n).data("type",t.type).data("amount",t.amount),t.plan&&e("#sc-coupon-id",n).data("plans",t.plan),e("#sc-payment-form",n).trigger("studiocart/orderform/coupon_applied",[t]))}e(".coupon-code input[type='button']",n).removeAttr("disabled"),o(n)}})}e(document).on("click",".qty-dec, .qty-inc",function(t){t.preventDefault();var n=e(this).closest(".my-4").find("input"),s=n.val(),i=e(this).closest("form").parent().attr("id");return e(this).hasClass("qty-dec")&&parseInt(s)>0?(n.val(parseInt(s)-1),o(i)):e(this).hasClass("qty-inc")&&(n.val(parseInt(s)+1),o(i)),!1}),e(document).on("change",'input[name="vat-number-available"]',function(){this.checked?e(".vat_number_field").fadeIn(0):e(".vat_number_field").fadeOut(0)}),e(document).on("focus","#sc-payment-form input, #sc-payment-form select",function(){e(this).closest(".checkbox-wrap").removeClass("invalid").siblings(".error").remove(),e(this).removeClass("invalid valid").siblings(".error").remove(),e(this).closest(".form-group").find("input").removeClass("invalid"),e(this).closest(".form-group").find(".error").remove(),e(this).attr("id")=="address1"&&e(".sc-address-2 .error").remove(),e(this).hasClass("selectized")&&e(this).next(".selectize-control").find(".selectize-input").removeClass("invalid")});function k(t,n){if(t.removeClass("invalid").siblings(".error").remove(),t.attr("type")=="checkbox"&&!t.is(":checked"))t.closest(".checkbox-wrap").addClass("invalid").append('<div class="error">'+n+"</div>");else{var s=t;t.attr("id")=="address1"&&e(".single-sc_product").length>0&&(s=e("#sc-payment-form #address2")),t.addClass("invalid"),s.closest(".form-group").append('<div class="error">'+n+"</div>"),t.hasClass("selectized")&&t.next(".selectize-control").find(".selectize-input").addClass("invalid"),t.closest("#customer-details.sc-checkout-step").length>0&&e(".step-two").hasClass("sc-current")&&e(".steps.step-one a").click()}}e(document).on("blur","#sc-payment-form input.required",function(){if(e(this).removeClass("invalid").siblings(".error").remove(),e(this).attr("type")=="checkbox"&&!e(this).is(":checked"))e(this).closest(".checkbox-wrap").addClass("invalid").append('<div class="error">'+sc_translate_frontend.field_required+"</div>");else if(e(this).val().length<1){var t=e(this);
328e(this).attr("id")=="address1"&&e(".single-sc_product").length>0&&(t=e("#sc-payment-form #address2")),e(this).addClass("invalid"),t.closest(".form-group").append('<div class="error">'+sc_translate_frontend.field_required+"</div>")}}),e(document).on("blur","#sc-wpuserid",function(){e(this).removeClass("invalid valid").siblings(".error").remove(),e(this).val().length>0&&M(e(this))}),e(document).on("click",".sc-checkout-form-steps .steps",async function(t){t.preventDefault();var s,n=e(this).closest(".sc-form-wrap").attr("id");if(e(this).hasClass("step-two")){if(s=await u(n),s)return!1;e('[name="sc-lead-captured"]',"#"+n).length||L(n)}return!e(this).hasClass("sc-current")&&(e("#sc-payment-form","#"+n).toggleClass("step-1 step-2"),e(".sc-checkout-form-steps .steps","#"+n).toggleClass("sc-current"),!1)});async function M(t){t.removeClass("valid");var n=new FormData;n.append("name",t.val()),n.append("sc-nonce",e("input[name=sc-nonce]").val()),n.append("action","sc_check_username");try{const s=await fetch(studiocart.ajax,{method:"POST",body:n});if(s.ok){const n=await s.json();return n.success?(t.addClass("valid"),e("#sc_card_button, .sc-next-btn").removeAttr("disabled")):(t.addClass("invalid"),t.closest(".form-group").append('<div class="error">'+n.data.error+"</div>"),e("#sc_card_button, .sc-next-btn").attr("disabled",!0)),n.success}alert("Something went wrong."),t.addClass("invalid"),e("#sc_card_button, .sc-next-btn").attr("disabled",!0)}catch{alert("Something went wrong."),t.addClass("invalid"),e("#sc_card_button, .sc-next-btn").attr("disabled",!0)}return!1}e(document).on("blur",'#sc-payment-form input[type="email"]',function(){if(e(this).val().length<1)return;var t=e(this).val(),s=n.test(t);s||e(this).addClass("invalid").closest(".form-group").append('<div class="error">'+sc_translate_frontend.invalid_email+"</div>")}),e(document).on("blur",'#sc-payment-form input[type="tel"]',function(){if(e(this).val().length<1)return;var t=e(this).val(),n=a(t);n||e(this).addClass("invalid").closest(".form-group").append('<div class="error">'+sc_translate_frontend.invalid_phone+"</div>")}),e(document).on("blur","#sc-payment-form input.sc-password",function(){var n,t=e(this).val();t.length&&(n=r(t),n||e(this).addClass("invalid").closest(".form-group").append('<div class="error">'+sc_translate_frontend.invalid_pass+"</div>"))}),x=e('a[href*="sc-upsell-offer=yes"]'),x.length>0&&"undefined"!=typeof studiocart.upsell_accept&&(x.addClass("sc-accept-upsell-link"),x.attr("href",studiocart.upsell_accept),e(".sc-accept-upsell-link").trigger("studiocart/upsell/ready/accept_link")),_=e('a[href*="sc-upsell-offer=no"]'),_.length>0&&"undefined"!=typeof studiocart.upsell_decline&&(_.addClass("sc-decline-upsell-link"),_.attr("href",studiocart.upsell_decline),e(".sc-decline-upsell-link").trigger("studiocart/upsell/ready/decline_link"));async function u(t){var o,i,c,s=!1;return e(".elementor-editor-active").length>0?s:(e(".error").remove(),e("#"+t+" input").removeClass("invalid"),i=e("#"+t+" input.required:visible, #"+t+" select.required:visible, #"+t+" select.required.selectized"),i.each(function(){if(e(this).attr("type")=="checkbox"&&!e(this).is(":checked"))e(this).attr("name").endsWith("[]")?e("#"+t+' input[name="'+e(this).attr("name")+'"]:checked').length<1&&(e(this).addClass("invalid"),e(this).closest(".form-group").find(".error").length==0&&e(this).closest(".form-group").append('<div class="error">'+sc_translate_frontend.field_required+"</div>"),s=!0):(e(this).closest(".checkbox-wrap").addClass("invalid").append('<div class="error">'+sc_translate_frontend.field_required+"</div>"),s=!0);else if(e(this).attr("type")=="radio"&&!e(this).is(":checked")&&e("#"+t+' input[name="'+e(this).attr("name")+'"]:checked').length<1)e(this).addClass("invalid"),e(this).closest(".form-group").find(".error").length==0&&e(this).closest(".form-group").append('<div class="error">'+sc_translate_frontend.field_required+"</div>"),s=!0;else if(e(this).attr("name")=="pwyw_amount"){var n,i=e(this).val(),o=e(this).attr("min");parseFloat(i)<parseFloat(o)&&(e(this).addClass("invalid"),e(this).closest(".form-group").find(".error").length==0&&e(this).closest(".form-group").append('<div class="error">Please enter an amount greater thank or equal to <span class="sc-Price-currencySymbol">$</span>'+parseFloat(o).toFixed(2)+"</div>"),s=!0)}else e(this).val().length<1&&(n=e(this),e(this).attr("id")=="address1"&&e(".
328single-sc_product").length>0&&(n=e("#"+t+" #address2")),e(this).addClass("invalid"),n.closest(".form-group").append('<div class="error">'+sc_translate_frontend.field_required+"</div>"),e(this).hasClass("selectized")&&e(this).next(".selectize-control").find(".selectize-input").addClass("invalid"),s=!0)}),e("#"+t+" #sc-wpuserid").length>0&&(o=e("#"+t+" #sc-wpuserid"),o.val().length>0&&(c=await M(o),c==!1&&(s=!0))),e("#"+t+' input[type="email"]').each(function(){if(e(this).val().length){var t=n.test(e(this).val());t||(e(this).addClass("invalid").closest(".form-group").append('<div class="error">'+sc_translate_frontend.invalid_email+"</div>"),s=!0)}}),e("#"+t+' input[type="phone"]').each(function(){if(e(this).val().length){var t=a(e(this).val());t||(e(this).addClass("invalid").closest(".form-group").append('<div class="error">'+sc_translate_frontend.invalid_phone+"</div>"),s=!0)}}),e("#"+t+" input.sc-password").each(function(){if(e(this).val().length){var t=r(e(this).val());t||(e(this).addClass("invalid").closest(".form-group").append('<div class="error">'+sc_translate_frontend.invalid_pass+"</div>"),s=!0)}}),e("#"+t+" input").closest(".form-group").find(".error").length>0&&(s=!0),s)}e(document).on("click",".sc-next-btn",async function(){var t=e(this).data("form-wrapper"),n=await u(t);if(n)return;e('[name="sc-lead-captured"]',"#"+t).length||L(t),e("#sc-payment-form","#"+t).toggleClass("step-1 step-2"),e(".sc-checkout-form-steps .steps","#"+t).toggleClass("sc-current")});function L(t){var s="#"+t,n={};return e.each(e("#sc-payment-form",s).serializeArray(),function(e,t){n[t.name]=t.value}),n.action="sc_capture_lead",e.post(studiocart.ajax,n,function(n){if(n=="OK"){e("#sc-payment-form",o).trigger("studiocart/orderform/lead_captured");var s,o=document.getElementById(t);o=o.getElementsByTagName("form")[0],s=document.createElement("input"),s.setAttribute("type","hidden"),s.setAttribute("name","sc-lead-captured"),s.setAttribute("value",1),o.appendChild(s)}}),!0}(e(".sc-stripe #card-element").length>0||e(".sc-stripe-express #express-pay-element").length>0)&&(s=Stripe(stripe_key[0]),t={}),e(".sc-form-wrap").each(function(){let r=e(this).attr("id"),a="#"+r;T(a),typeof sc_coupon!="undefined"?O(sc_coupon[0],a):(S(a),o(a));var n=e("#sc_card_button",a);i=e("#sc-payment-form",a),e(".sc-stripe #card-element",a).length>0&&e(".sc-stripe #card-element",a).each(function(){let e=r;var i,a=s.elements();let n="#"+e+" #card-element";i={base:{color:"#32325d",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}},t[e]=a.create("card",{style:i}),t[e].mount(n),t[e].addEventListener("change",function(t){var n=document.querySelector("#"+e+" #card-errors");t.error?n.textContent=t.error.message:n.textContent=""}),jQuery(document).on("elementor/popup/show",()=>{t[e].unmount(n),t[e].mount(n),t[e].addEventListener("change",function(t){var n=document.querySelector("#"+e+" #card-errors");t.error?n.textContent=t.error.message:n.textContent=""}),setTimeout(()=>{typeof sc_coupon!="undefined"?O(sc_coupon[0],"#"+e):(S("#"+e),o(e))},100)})});function c(){grecaptcha.ready(function(){var t=e(".sc-grtoken").attr("data-sitekey");grecaptcha.execute(t,{action:"submit"}).then(function(t){e(".sc-grtoken",a).val(t)})})}e(document).on("click",a+" #sc_card_button",async function(t){n=e(this),p=n.find("span.text").text(),n.addClass("running").attr("disabled",!0),n.find("span.text").text(sc_translate_frontend.loading_processing),t.preventDefault();var a,o=n.data("form-wrapper"),r=await u(o),s="#"+o;if(r)return alert(sc_translate_frontend.missing_required),n.removeClass("running").removeAttr("disabled"),n.find("span.text").text(p),!1;jQuery(".g-recaptcha",s).length>0&&(a=jQuery(".g-recaptcha",s).attr("data-size"),a=="invisible"&&grecaptcha.ready(function(){grecaptcha.execute()})),e(".sc-grtoken",s).length>0&&grecaptcha.ready(function(){var t=e(".sc-grtoken",s).attr("data-sitekey");grecaptcha.execute(t,{action:"submit"}).then(function(t){e(".sc-grtoken",s).val(t)})}),setTimeout(function(){if(r=e(".ob-sub:checked",s).length||e('input[name="sc_product_option"]:checked',s).data("installments")&&!e(".ob-replace:checked",s).length,e('#sc-payment-form [name="pay-method"]',s).length>0&&e('[name="pay-method"]:checked',s).val()!="stripe"&&(e('[name="sc_amount"]',s).val()!=0||r)&&e('[name="pay-method"]:checked',s).val()!="cod")return e("#sc-payment-form",s).trigger("studiocart/orderform/submit"),!1;var a,r,t=e("#sc-payment-form",s).serializeArray(),c=e('#sc-payment-form [name="pay-method"]:checked',s).val()=="cod",d=e("input[name=sc_product_option]:checked",s);if(e('[name="sc_amount"]',s).val()==0&&!r||c)return t.push({name:"action",value:"save_order_to_db"},{name:"pay-method",value:"cod"}),e.post(studiocart.ajax,t,function(t){var a,o=JSON.parse(t);"undefined"!=typeof o.error?(alert(o.error),"undefined"!=typeof o.fields&&e.each(o.fields,function(t,n){k(e('[name="'+n.field+'"]',s),n.message)}),n=e("#sc_card_button",s),n.removeClass("running").removeAttr("disabled"),n.find("span.text").text(p)):"undefined"!=typeof o.redirect?window.location.href=o.redirect:("undefined"!=typeof o.formAction&&(i=e("#sc-payment-form",s),i.attr("action",o.formAction)),a=document.createElement("input"),a.setAttribute("type","hidden"),a.setAttribute("name","sc_order_id"),a.setAttribute("value",o.order_id),i.append(a),i.submit())}),!1;if(t.push({name:"action",value:"create_payment_intent"}),l)if(a={clientSecret:b,intent_id:l,customer_id:f,amount:g,prod_id:w,sc_temp_order_id:C},r){const e=localStorage.getItem("latestInvoicePaymentIntentStatus");if(e==="requires_payment_method"||e==="requires_action"){const e=localStorage.getItem("latestInvoiceId"),t=!0;h(a,t,e,o)}else h(a,!1,!1,o)}else e("input[name=order_id]").length==0?v(a,o):(g||(t.action="update_payment_intent_amt",t.intent_id=a.intent_id,e.post(studiocart.ajax,t,function(e){isNaN(e)||(g=e,a.amount=e)}
328)),A(a,o));else e.post(studiocart.ajax,t,function(t){var i=JSON.parse(t);if("undefined"!=typeof i.error)return alert(i.error),"undefined"!=typeof i.fields&&e.each(i.fields,function(t,n){k(e('[name="'+n.field+'"]',s),n.message)}),n.removeClass("running").removeAttr("disabled"),n.find("span.text").text(p),!1;"undefined"!=typeof i.redirect?window.location.href=i.redirect:(b=i.clientSecret,l=i.intent_id,f=i.customer_id,g=i.amount,C=i.sc_temp_order_id,w=i.prod_id,r?h(i,!1,!1,o):v(i,o))})},1e3)})}),e(".sc_cancel_sub").click(function(){if(confirm(sc_translate_frontend.confirm_cancel_sub)){var n=studiocart.ajax,t=e(this),s=t.data("id"),o=jQuery("#sc_nonce").val(),i=t.data("item-id")?t.data("item-id"):e("#sc_payment_intent").val(),a=jQuery("#sc_payment_method").val(),r=jQuery("#sc_product_id").val(),c={action:"sc_unsubscribe_customer",prod_id:r,subscription_id:i,nonce:o,id:s,payment_method:a};jQuery.post(n,c,function(e){console.log(e),e=="OK"?(alert(sc_translate_frontend.sub_cancel),location.reload()):alert(e)}).fail(function(){alert(response.fail)})}else return!1}),e(".sc_pause_restart_sub").click(function(){var o,i,a,r,c,l,d,t=sc_translate_frontend.confirm_pause_sub,n=sc_translate_frontend.sub_paused,s=e(this).data("action");if(s=="started"&&(t=sc_translate_frontend.confirm_activate_sub,n=sc_translate_frontend.sub_started),confirm(t))o=studiocart.ajax,i=e(this),a=i.data("id"),r=jQuery("#sc_nonce").val(),c=jQuery("#sc_payment_method").val(),l=jQuery("#sc_product_id").val(),d={action:"sc_pause_restart_subscription",prod_id:l,nonce:r,id:a,payment_method:c,type:s},jQuery.post(o,d,function(e){console.log(e),e=="OK"?(alert(n),location.reload()):alert(e)}).fail(function(){alert(response.fail)});else return!1}),e('input.required, select.required, input[type="checkbox"].required').on("keyup change",async function(){var s,t=e(this).closest("form").parent().attr("id");let n="#"+t+" #express-pay-element";s=await u(t),s?e(n).css("pointer-events","none"):e(n).css("pointer-events","")});function F(n){e(".sc-stripe-express #express-pay-element",n).length>0&&e(".sc-stripe-express #express-pay-element",n).each(function(){e(this).hide();let o=n+" #express-pay-element";const d=s.elements(),i=n.replace("#","");var p=e(n+' [name="sc_product_name"]').val(),a=Math.round(parseFloat(e("input[name=sc_amount]",n).val())*100),r=e("input[name=sc_currency_country_code]",n).val().toUpperCase(),c=e("input[name=sc_currency_code]",n).val().toLowerCase();if(c&&r){const g=s.paymentRequest({country:r,currency:c,total:{label:p,amount:a},requestPayerName:!0,requestPayerEmail:!0});e(o).css("pointer-events","none"),t[n]=d.create("paymentRequestButton",{paymentRequest:g,style:{paymentRequestButton:{type:"default",theme:"dark",height:"45px"}}}),g.canMakePayment().then(s=>{if(console.log("Can make payment result ::",s),s&&s.link)t[n].mount(o),e(o).show();else{e(o).hide();var i="Sorry, Express Payment is not supported in your region.";e("#payment-method-message",n).text(i).show(),e("#sc_card_button",n).prop("disabled",!0)}}).catch(t=>{console.error("Error checking payment capability:",t),e(o).hide(),e("#payment-method-message",n).text("An error occurred while processing your payment options. Please try again.").show()}),g.on("paymentmethod",async t=>{try{e(o).css("pointer-events","none"),e("#sc_card_button",n).addClass("running").attr("disabled","disabled");var s,r=await u(i);if(r)return e(o).css("pointer-events",""),e("#sc_card_button",n).removeClass("running").removeAttr("disabled"),alert(sc_translate_frontend.missing_required),t.complete("fail");jQuery(".g-recaptcha",n).length>0&&(s=jQuery(".g-recaptcha",n).attr("data-size"),s=="invisible"&&grecaptcha.ready(function(){grecaptcha.execute()})),e(".sc-grtoken",n).length>0&&grecaptcha.ready(function(){var t=e(".sc-grtoken",n).attr("data-sitekey");grecaptcha.execute(t,{action:"submit"}).then(function(t){e(".sc-grtoken",n).val(t)})}),setTimeout(function(){var r,c=e(".ob-sub:checked",n).length||e('input[name="sc_product_option"]:checked',n).data("installments")&&!e(".ob-replace:checked",n).length,s=e("#sc-payment-form",n).serializeArray(),d=t.paymentMethod;if(m=d.id,s.push({name:"action",value:"create_payment_intent"}),s.push({name:"sc_payment_method_id",value:m}),s.find(e=>e.name=="pay-method").value="stripe",l)if(r={clientSecret:b,intent_id:l,customer_id:f,amount:a,prod_id:w,sc_temp_order_id:C,paymentMethodId:m},c){const e=localStorage.getItem("latestInvoicePaymentIntentStatus");if(e==="requires_payment_method"||e==="requires_action"){const e=localStorage.getItem("latestInvoiceId"),n=!0;h(r,n,e,i,t)}else h(r,!1,!1,i,t)}else e("input[name=order_id]").length==0?(y=e(n+" #sc_card_button").data("form-wrapper"),v(r,y,!0,t)):(a||(s.action="update_payment_intent_amt",s.intent_id=r.intent_id,e.post(studiocart.ajax,s,function(e){isNaN(e)||(a=e,r.amount=e)})),A(r,i,!0,t));else e.post(studiocart.ajax,s,function(s){var o=JSON.parse(s);o.paymentMethodId=m,"undefined"!=typeof o.redirect?window.location.href=o.redirect:(b=o.clientSecret,l=o.intent_id,f=o.customer_id,a=o.amount,C=o.sc_temp_order_id,w=o.prod_id,c?z(f,m,!1,i,t):(y=e(n+" #sc_card_button").data("form-wrapper"),v(o,y,!0,t)))}).fail(function(s,i,a){t.complete("fail"),e(o).css("pointer-events",""),e("#sc_card_button",n).removeClass("running").removeAttr("disabled"),console.error("Error confirming the payment method:",i,a),alert("An unexpected error occurred.")})},1e3)}catch(s){console.error("Error confirming the payment method:",s),t.complete("fail"),e(o).css("pointer-events",""),e("#sc_card_button",n).removeClass("running").removeAttr("disabled"),alert("An unexpected error occurred.")}})}})}function v(e,t,n,s){A(e,t,n,s)}function z(e,t,n,s,o){var i=document.getElementById(s),i=i.getElementsByTagName("form")[0];const a=new FormData(i);a.set("action","create_subscription"),a.set("customerId",e),a.set("paymentMethodId",t),n&&a.set("invoiceId",n);
328const r=new URLSearchParams(a);return fetch(studiocart.ajax,{method:"post",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:r}).then(e=>e.json()).then(e=>{if(e.error)throw e.error;return e}).then(e=>{"undefined"!=typeof e.formAction&&i.setAttribute("action",e.formAction);var n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name","sc_order_id"),n.setAttribute("value",e.sc_order_id),i.appendChild(n),{subscription:e,paymentMethodId:t}}).then(D).then(P).then(function(){o&&o.complete("success"),i.submit()}).catch(e=>{o&&o.complete("fail"),j(e,s)})}function R(e,t,n,s){var a=document.getElementById(s),a=a.getElementsByTagName("form")[0];const o=new FormData(a);o.set("action","create_subscription"),o.set("customerId",e),o.set("paymentMethodId",t),n&&o.set("invoiceId",n);const r=new URLSearchParams(o);return fetch(studiocart.ajax,{method:"post",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:r}).then(e=>e.json()).then(e=>{if(e.error)throw e;return e}).then(e=>({invoice:e,paymentMethodId:t,isRetry:!0})).then(D).then(function(){ev&&ev.complete("success"),i.submit()}).catch(e=>{ev&&ev.complete("fail"),j(e,s)})}function D({subscription:e,invoice:t,priceId:n,paymentMethodId:o,isRetry:i}){let a=t?t.payment_intent:e.latest_invoice.payment_intent;return a?a.status==="requires_action"||i===!0&&a.status==="requires_payment_method"?s.confirmCardPayment(a.client_secret,{payment_method:o}).then(s=>{if(s.error)throw s;if(s.paymentIntent.status==="succeeded")return{priceId:n,subscription:e,invoice:t,paymentMethodId:o}}):{subscription:e,priceId:n,paymentMethodId:o}:{subscription:e,priceId:n,paymentMethodId:o}}function P({subscription:e,paymentMethodId:t,priceId:n}){if(e.status==="active"||e.status==="trialing")return{subscription:e,priceId:n,paymentMethodId:t};if(e.latest_invoice.payment_intent.status==="requires_payment_method")throw localStorage.setItem("latestInvoiceId",e.latest_invoice.id),localStorage.setItem("latestInvoicePaymentIntentStatus",e.latest_invoice.payment_intent.status),{error:{message:"Your card was declined."}};return{subscription:e,priceId:n,paymentMethodId:t}}function h(n,o=!1,i=!1,a=!1,r){var c=e("#first_name","#".form_wrapper).val()+" "+e("#last_name","#".form_wrapper).val(),l=e("#email","#".form_wrapper).val();s.createPaymentMethod({type:"card",card:t[a],billing_details:{name:c,email:l}}).then(e=>{e.error?j(e,a):o?R(n.customer_id,e.paymentMethod.id,i,a,r):z(n.customer_id,e.paymentMethod.id,!1,a,r)})}function j(t,n){t.error?alert(t.error.message):t&&alert(t),e("#sc_card_button","#"+n).removeClass("running").removeAttr("disabled"),e("#express-pay-element","#"+n).css("pointer-events","")}function A(n,o,i,a){var r,c=e("#first_name").val()+" "+e("#last_name").val(),l=e("#email").val();i?r=s.confirmCardPayment(n.clientSecret,{payment_method:n.paymentMethodId},{handleActions:!1}):r=s.confirmCardPayment(n.clientSecret,{payment_method:{card:t[o],billing_details:{name:c,email:l}},setup_future_usage:"off_session"}),r.then(function(t){if(t.error)i?(a.complete("fail"),e("#express-pay-element","#"+o).css("pointer-events",""),e("#sc_card_button","#"+o).removeClass("running").removeAttr("disabled")):j(t,o);else{var s={};e.each(e("#sc-payment-form").serializeArray(),function(e,t){t.name!="sc-orderbump[]"&&(s[t.name]=t.value,t.name=="pay-method"&&i&&(s[t.name]="stripe"))}),e('input[name="sc-orderbump[]"]').each(function(t){this.checked&&(s["sc-orderbump["+t+"]"]=e(this).val())}),n.sc_temp_order_id&&(s.sc_temp_order_id=n.sc_temp_order_id),s.customer_id=n.customer_id,s.intent_id=n.intent_id,s.amount=n.amount,e.post(studiocart.ajax,s,function(s){var c,r=JSON.parse(s);if("error"in r)return alert(r.error),"undefined"!=typeof r.fields&&e.each(r.fields,function(t,n){k(e('[name="'+n.field+'"]'),n.message)}),i&&a.complete("fail"),e("#sc_card_button","#"+o).find("span.text").text(p),e("#sc_card_button","#"+o).removeClass("running").removeAttr("disabled"),!1;t.paymentIntent&&(c={paymentIntent:t.paymentIntent,action:"update_stripe_order_status",response:r,intent_id:n.intent_id,"sc-nonce":e("input[name=sc-nonce]").val()},jQuery('input[name="sc-auto-login"]').length==1&&(c["sc-auto-login"]=1),e.post(studiocart.ajax,c,function(e){i&&a.complete("success");var s,r,c=JSON.parse(e),t=document.getElementById(o),t=t.getElementsByTagName("form")[0];"undefined"!=typeof c.formAction&&t.setAttribute("action",c.formAction),s=document.createElement("input"),s.setAttribute("type","hidden"),s.setAttribute("name","sc_order_id"),s.setAttribute("value",c.order_id),t.appendChild(s),r=document.createElement("input"),r.setAttribute("type","hidden"),r.setAttribute("name","
328intent_id"),r.setAttribute("value",n.intent_id),t.appendChild(r),n.amount==!1&&(n.amount=c.amount),t.submit()}))})}})}studiocart.pay_method=="paypal"&&(e(document).on("studiocart/upsell/ready/accept_link",".sc-accept-upsell-link",function(){e('a[href*="sc-upsell-offer=yes"],.sc-accept-upsell-link').attr("href","#")}),e(document).on("studiocart/upsell/ready/decline_link",".sc-decline-upsell-link",function(){e('a[href*="sc-upsell-offer=no"],.sc-decline-upsell-link').attr("href",studiocart.upsell_decline+"&sc-pp=1")})),e(document).on("studiocart/upsell/accept/paypal",".sc-accept-upsell-link",function(){let n={action:"paypal_process_upsell","sc-order":studiocart.sc_order,"sc-nonce":studiocart.sc_nonce,cancel_url:window.location.href,return_url:studiocart.upsell_accept};return"undefined"!=typeof studiocart.is_downsell&&"1"==studiocart.is_downsell&&(n.downsell=1),e.post(studiocart.ajax,n,function(e){var t=JSON.parse(e);"undefined"!=typeof t.error?(alert(t.error),window.location.href=studiocart.upsell_decline+"&sc-pp=1"):window.location.href=t.url}),!1}),e(document).on("studiocart/orderform/submit","#sc-payment-form",function(){var s,n="#"+e(this).parent().attr("id");if(e(".pay-methods",n).length>0&&e('[name="pay-method"]:checked',n).val()!="paypal")return!1;s=e("#sc-payment-form",n).serializeArray(),s.push({name:"sc_page_id",value:studiocart.page_id},{name:"action",value:"sc_paypal_request"},{name:"cancel_url",value:window.location.href}),e.post(studiocart.ajax,s,function(t){var s=JSON.parse(t);"undefined"!=typeof s.error?(alert(s.error),e("#sc_card_button",n).removeClass("running").removeAttr("disabled")):window.location.href=s.url})})}),jQuery(".ncs-nav-tabs li a").click(function(){var e=jQuery(this).attr("href");jQuery(".ncs-nav-tabs li a").removeClass("active"),jQuery(".tabcontent").removeClass("active"),jQuery(this).addClass("active"),jQuery("#"+e).addClass("active")}),jQuery("ul.tabs-left li.tablinks").click(function(){var e=jQuery(this).attr("data-tab");jQuery("ul.tabs-left li.tablinks").removeClass("active"),jQuery(".tabcontent").removeClass("active"),jQuery(this).addClass("active"),jQuery("#"+e).addClass("active")}),jQuery(".ncs-nav-tabs li a").click(function(e){e.preventDefault();var t=jQuery(this).parents(".ncs-account-list");return t.find(".ncs-nav-tabs li a").removeClass("active"),jQuery(this).addClass("active"),!1}),jQuery("#editProfile").click(function(){jQuery(".ep_disabled").prop("disabled",!1),jQuery(".ep_disabled").addClass("enable-input"),jQuery("#editProfileCancel, #all-subscription-address-wrap").show(),jQuery("#newPasswordDiv, #confirmNewPasswordDiv").show(),jQuery(this).hide(),jQuery("#updateProfile").show()}),jQuery("#editProfileCancel").click(function(){l()}),jQuery("#updateProfile").click(function(){jQuery("#sc-loader").show(),jQuery(this).prop("disabled",!0);var t=jQuery("#updateProfileForm").serialize();let n={action:"update_user_profile",form_data:t};e.post(studiocart.ajax,n,function(e){"undefined"!=typeof e.error?jQuery("#p-alert").text(e.error).addClass("alert-error"):(jQuery("#p-alert").removeClass("alert-error"),jQuery("#p-alert").text(e.message).addClass("alert-success"),l()),jQuery("#updateProfile").prop("disabled",!1),jQuery("#sc-loader").hide()})});function l(){jQuery(".ep_disabled").removeClass("enable-input"),jQuery(".ep_disabled").prop("disabled",!0),jQuery("#editProfileCancel, #all-subscription-address-wrap").hide(),jQuery("#editProfile").show(),jQuery("#newPasswordDiv, #confirmNewPasswordDiv").hide(),jQuery("#updateProfile").hide()}})(jQuery); 329/*! This file is auto-generated */ 330window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,i="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){o(),e&&new e(d).observe(E.body,{childList:!0,subtree:!0})}function o(e){if(i&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,d=n.length;o<d;o++)n[o].addEventListener("click",r)}}function l(e){var t,n,o=g(b.temporaryFormId);
330o&&h&&(g(b.parentIdFieldId).value="0",t=o.textContent,o.parentNode.replaceChild(h,o),this.style.display="none",n=(o=(o=g(b.commentReplyTitleId))&&o.firstChild)&&o.nextSibling,o&&o.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),o.textContent=t),e.preventDefault())}function r(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,o=a(n,"belowelement"),d=a(n,"commentid"),i=a(n,"respondelement"),l=a(n,"postid"),n=a(n,"replyto")||t;o&&d&&i&&l&&!1===v.addComment.moveForm(o,d,i,l,n)&&e.preventDefault()}function d(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void o()}function a(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return i&&"loading"!==E.readyState?t():i&&v.addEventListener("DOMContentLoaded",t,!1),{init:o,moveForm:function(e,t,n,o,d){var i,l,r,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===d&&(d=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),o&&y&&(y.value=o),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=d),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],l=!1,"getComputedStyle"in v?r=v.getComputedStyle(i):E.documentElement.currentStyle&&(r=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===r.visibility)&&(l=!0),"hidden"!==i.type&&!i.disabled&&!l){i.focus();break}}catch(e){}return!1}}}}(window);; 331!function(){"use strict";function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(r){var a=function(r,a){if("object"!=t(r)||!r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var e=n.call(r,a||"default");if("object"!=t(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(r)}(r,"string");return"symbol"==t(a)?a:a+""}function a(t,a,n){return(a=r(a))in t?Object.defineProperty(t,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[a]=n,t}var n={d:(t,r)=>{for(var a in r)n.o(r,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:r[a]})},o:(t,r)=>Object.prototype.hasOwnProperty.call(t,r)},e={};n.d(e,{S:()=>_});var o,i={top:"paddingBottom",bottom:"paddingTop",left:"paddingRight",right:"paddingLeft"};function c(t,r,a){var n=void 0===a?{}:a,e=n.placement,o=void 0===e?"right-start":e,c=n.offset,v=void 0===c?0:c,s=n.autoFlip,d=void 0===s||s,l=n.autoShift,h=void 0===l||l;r.style.padding="0";var u=t.getBoundingClientRect(),_=r.getBoundingClientRect(),g=u.top+scrollY,f=u.bottom+scrollY,m=u.right+scrollX,p=u.left+scrollX,w=u.top,b=innerHeight-u.bottom,k=u.left,y=innerWidth-u.right,j=0,S=0,O=o.split("-"),L=O[0],x=O[1];if(v=Math.max(0,v),d){var C=_.height+v,I=_.width+v;"top"===L&&w<C&&b>w?L="bottom":"bottom"===L&&b<C&&w>b?L="top":"left"===L&&k<I&&y>k?L="right":"right"===L&&y<I&&k>y&&(L="left")}if(h){var H=_.height-u.height,M=_.width-u.width,P=H/2,T=M/2;"top"!==L&&"bottom"!==L||("start"===x&&y<M?x=y<T?"end":void 0:"end"===x&&k<M?x=k<T?"start":void 0:void 0===x&&(y<T||k<T)&&(x=y>k?"start":"end")),"right"!==L&&"left"!==L||("start"===x&&b<H?x=b<P?"end":void 0:"end"===x&&w<H?x=w<P?"start":void 0:void 0===x&&(b<P||w<P)&&(x=b>w?"start":"end"))}"top"===L||"bottom"===L?(j=p+u.width/2-_.width/2,S="top"===L?g-_.height-v:f,"start"===x&&(j=p),"end"===x&&(j=m-_.width)):(j="right"===L?m:p-_.width-v,S=g+u.height/2-_.height/2,"start"===x&&(S=g),"end"===x&&(S=f-_.height)),r.style.position="absolute",r.style.left=j+"px",r.style.top=S+"px",r.style[i[L]]=v+"px"}function v(t){var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};return t.replace(/&(amp|lt|gt|quot|#39|x60);|[\&<>"'`]/g,(function(t){return"&"===t[0]?t:r[t]}))}function s(t){return encodeURI(t)}function d(t,r,a){var n=t.split("?"),e=n[0],o=n[1],i=new URLSearchParams(o||"");return i.set(r,a),e+"?"+i.toString()}function l(t,r){return t[r]||r}function h(){return h=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var n in a)({}).hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},h.apply(null,arguments)}var u=document,_=function(){function t(t){var r=this,a=void 0===t?{}:t,n=a.placement,e=void 0===n?"right-start":n,o=a.offset,i=void 0===o?10:o,c=a.autoFlip,v=void 0===c||c,s=a.autoShift,d=void 0===s||s,l=a.hideOnTargetClick,h=void 0!==l&&l,_=a.delayToShow,g=void 0===_?500:_,f=a.delayToHide,m=void 0===f?300:f,p=a.additionalClass,w=void 0===p?"":p,b=a.myHash,k=void 0===b?"":b,y=a.onQueryHovercardRef,j=void 0===y?function(t){return t}:y,S=a.onFetchProfileStart,O=void 0===S?function(){}:S,L=a.onFetchProfileSuccess,x=void 0===L?function(){}:L,C=a.onFetchProfileFailure,I=void 0===C?function(){}:C,H=a.onHovercardShown,M=void 0===H?function(){}:H,P=a.onHovercardHidden,T=void 0===P?function(){}:P,U=a.onCanShowHovercard,A=void 0===U?function(){return!0}:U,R=a.i18n,E=void 0===R?{}:R;this.t={},this.i=[],this.v=new Map,this.l=new Map,this.u=new Map,this.attach=function(t,a){var n=void 0===a?{}:a,e=n.dataAttributeName,o=void 0===e?"gravatar-hash":e,i=n.ignoreSelector;
331t&&(r.detach(),r._(t,o,i).forEach((function(t){t.ref.addEventListener("mouseenter",t.onEnter),t.ref.addEventListener("mouseleave",t.onLeave),t.ref.addEventListener("click",t.onClick)})))},this.detach=function(){r.i.length&&(r.i.forEach((function(t){var a;t.ref.removeEventListener("mouseenter",t.onEnter),t.ref.removeEventListener("mouseleave",t.onLeave),t.ref.removeEventListener("click",t.onClick),clearInterval(r.v.get(t.id)),null==(a=u.getElementById(t.id))||a.remove()})),r.i=[])},this.m=e,this.p=i,this.k=v,this.j=d,this.O=h,this.L=g,this.C=m,this.I=w,this.H=k,this.M=j,this.P=O,this.T=x,this.U=I,this.A=M,this.R=T,this.B=A,this.t=E}var r=t.prototype;return r._=function(t,r,a){var n=this,e=[],o=r.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()})),i=a?Array.from(u.querySelectorAll(a)):[],c="gravatar.com/avatar/";return o&&t.dataset[o]||"IMG"===t.tagName&&t.src.includes(c)?e=[t]:(e=Array.from(t.querySelectorAll('img[src*="'+c+'"]')),r&&(e=[].concat(e.filter((function(t){return!t.hasAttribute("data-"+r)})),Array.from(t.querySelectorAll("[data-"+r+"]"))))),this.i=e.map((function(t,r){if(i.includes(t))return null;var a,e,c=t.dataset[o];if(c){var v=c.split("?");a=v[0],e=v.length>1?v[1]:""}else if("IMG"===t.tagName){var s=t.src.split("/").pop().split("?");a=s[0],e=s.length>1?s[1]:""}if(!a)return null;var d=new URLSearchParams(e),l=d.get("d")||d.get("default"),h=d.get("f")||d.get("forcedefault"),u=d.get("r")||d.get("rating"),_=d.get("initials"),g=d.get("name"),f=d.get("txt_color"),m=d.get("bg_color");return{id:"gravatar-hovercard-"+a+"-"+r,hash:a,params:(e=[l&&"d="+l,h&&"f="+h,u&&"r="+u,_&&"initials="+_,g&&"name="+g,f&&"txt_color="+f,m&&"bg_color="+m].filter(Boolean).join("&"))?"?"+e:"",ref:n.M(t)||t}})).filter(Boolean).map((function(t){return h({},t,{onEnter:function(r){return n.F(r,t)},onLeave:function(r){return n.G(r,t)},onClick:function(){return n.N(t)}})})),this.i},t.q=function(t,r,a){return'\n\t\t\t<div class="gravatar-hovercard__drawer" data-drawer-name="'+t+'">\n\t\t\t\t<div class="gravatar-hovercard__drawer-backdrop" data-target-drawer="'+t+'"></div>\n\t\t\t\t<div class="gravatar-hovercard__drawer-card">\n\t\t\t\t\t<div class="gravatar-hovercard__drawer-header">\n\t\t\t\t\t\t<h2 class="gravatar-hovercard__drawer-title">'+r+'</h2>\n\t\t\t\t\t\t<button class="gravatar-hovercard__drawer-close" data-target-drawer="'+t+'">\n\t\t\t\t\t\t\t<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t\t<path d="M12 13.0607L15.7123 16.773L16.773 15.7123L13.0607 12L16.773 8.28772L15.7123 7.22706L12 10.9394L8.28771 7.22705L7.22705 8.28771L10.9394 12L7.22706 15.7123L8.28772 16.773L12 13.0607Z" fill="#101517"></path>\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<ul class="gravatar-hovercard__drawer-items">\n\t\t\t\t\t\t'+a+"\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t"},t.D=function(t,r){var a=r.querySelector('.gravatar-hovercard__drawer[data-drawer-name="'+t.dataset.targetDrawer+'"]');a&&a.classList.add("gravatar-hovercard__drawer--open")},t.W=function(t,r){var a=r.querySelector('.gravatar-hovercard__drawer[data-drawer-name="'+t.dataset.targetDrawer+'"]');a&&(a.classList.add("gravatar-hovercard__drawer--closing"),a.classList.remove("gravatar-hovercard__drawer--open"),setTimeout((function(){a.classList.remove("gravatar-hovercard__drawer--closing")}),300))},t.X=function(t,r){var a=(void 0===r?{}:r).i18n,n=void 0===a?{}:a,e={email:"icons/mail.svg",home_phone:"icons/home-phone.svg",work_phone:"icons/work-phone.svg",cell_phone:"icons/mobile-phone.svg",contact_form:"icons/envelope.svg",calendar:"icons/calendar.svg",calendly:"icons/calendly.svg"},o={email:l(n,"Email"),home_phone:l(n,"Home Phone"),work_phone:l(n,"Work Phone"),cell_phone:l(n,"Cell Phone"),contact_form:l(n,"Contact Form"),calendar:l(n,"Calendar")};return t.map((function(t){var r,a=t[0],n=t[1],i=function(t,r){switch(t){case"email":return"mailto:"+r;case"contact_form":case"calendar":case"calendly":return r.startsWith("http")?r:"https://"+r;default:return null}}(a,n),c=n.replace(/^(https?:\/\/)?(www\.)?/,"");return c=c.endsWith("/")?c.slice(0,-1):c,i&&(c='<a class="gravatar-hovercard__drawer-item-link" href="'+i+'" target="_blank">'+c+"</a>"),'\n\t\t\t\t<li class="gravatar-hovercard__drawer-item">\n\t\t\t\t\t<img\n\t\t\t\t\t\tclass="gravatar-hovercard__drawer-item-icon"\n\t\t\t\t\t\twidth="24"\n\t\t\t\t\t\theight="24"\n\t\t\t\t\t\tsrc="https://s.gravatar.com/'+e[a]+'"\n\t\t\t\t\t\talt=""\n\t\t\t\t\t>\n\t\t\t\t\t<div class="gravatar-hovercard__drawer-item-info">\n\t\t\t\t\t\t<span class="gravatar-hovercard__drawer-item-label">'+(null!=(r=o[a])?r:a.replace("_"," "))+'</span>\n\t\t\t\t\t\t<span class="gravatar-hovercard__drawer-item-text">'+c+"</span>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t"})).join("")},t.Y=function(t){var r,a,n=[];return null==(r=t.links)||r.forEach((function(t){n.push('\n\t\t\t\t<li class="gravatar-hovercard__drawer-item">\n\t\t\t\t\t<img class="gravatar-hovercard__drawer-item-icon" width="24" height="24" src="https://s.gravatar.com/icons/link.svg" alt="">\n\t\t\t\t\t<div class="gravatar-hovercard__drawer-item-info">\n\t\t\t\t\t\t<span class="gravatar-hovercard__drawer-item-label">'+t.label+'</span>\n\t\t\t\t\t\t<span class="gravatar-hovercard__drawer-item-text">\n\t\t\t\t\t\t\t<a class="gravatar-hovercard__drawer-item-link" href="'+t.url+'" target="_blank">\n\t\t\t\t\t\t\t\t'+t.url.replace(/^(https?:\/\/)/,"")+"\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t")})),null==(a=t.crypto_wallets)||a.forEach((function(t){n.push('\n\t\t\t\t<li class="gravatar-hovercard__drawer-item">\n\t\t\t\t\t<img class="gravatar-hovercard__drawer-item-icon" width="24" height="24" src="https://s.gravatar.com/icons/link.svg" alt="">\n\t\t\t\t\t<div class="gravatar-hovercard__drawer-item-info">\n\t\t\t\t\t\t<span class="gravatar-hovercard__drawer-item-label">'+t.label+'</span>\n\t\t\t\t\t\t<span class="gravatar-hovercard__drawer-item-text">'+t.address+"</span>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t")})),n.join("")},r.J=function(r){var a=this,n=r.id,e=r.hash,o=r.params,i=r.ref,v=setTimeout((function(){if(!u.getElementById(n)&&a.B(e)){var r,v=new URLSearchParams(o);v.delete("size"),v.set("s","256"),o="?"+v.toString();var s={placement:a.m,offset:a.p,autoFlip:a.k,autoShift:a.j};if(a.u.has(e)){var _=a.u.get(e);r=t.createHovercard(h({},_,{avatarUrl:_.avatarUrl+o}),{additionalClass:a.I,myHash:a.H,i18n:a.t}),a.A(e,r)}else r=t.createHovercardSkeleton({additionalClass:a.I}),a.P(e),fetch(d("https://api.gravatar.com/v3/profiles/"+e,"source","hovercard")).then((function(t){if(200!==t.status)throw t.status;return t.json()})).then((function(n){var v;a.u.set(e,{hash:n.hash,avatarUrl:n.avatar_url,profileUrl:n.profile_url,displayName:n.display_name,location:n.location,description:n.description,jobTitle:n.job_title,company:n.company,headerImage:n.header_image,hideDefaultHeaderImage:n.hide_default_header_image,backgroundColor:n.background_color,verifiedAccounts:null==(v=n.verified_accounts)?void 0:v.map((function(t){return{type:t.service_type,label:t.service_label,icon:t.service_icon,url:t.url,isHidden:t.is_hidden}})),contactInfo:n.contact_info,payments:n.payments});var d=a.u.get(e),l=t.createHovercard(h({},d,{avatarUrl:d.avatarUrl+o}),{additionalClass:a.I,myHash:a.H,i18n:a.t}).firstElementChild;r.classList.remove("gravatar-hovercard--skeleton"),r.replaceChildren(l),c(i,r,s),a.T(e,a.u.get(e)),a.A(e,r)}
331)).catch((function(n){var i=l(a.t,"Sorry, we are unable to load this Gravatar profile.");switch(n){case 403:i=l(a.t,"This profile is private.");break;case 404:i=l(a.t,"Gravatar not found.");break;case 429:i=l(a.t,"Too Many Requests.");break;case 500:i=l(a.t,"Internal Server Error.")}var c=404===n?'\n\t\t\t\t\t\t\t\t<i class="gravatar-hovercard__error-message gravatar-hovercard__error-message--claim-gravatar">\n\t\t\t\t\t\t\t\t\t'+l(a.t,"Is this you?")+' \n\t\t\t\t\t\t\t\t\t<a href="https://gravatar.com/signup?utm_source=hovercard" target="_blank">\n\t\t\t\t\t\t\t\t\t\t'+l(a.t,"Claim your free profile.")+"\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</i>\n\t\t\t\t\t\t\t\t":"",v=t.createHovercardError("https://0.gravatar.com/avatar/"+e+o,i,{additionalClass:a.I,additionalMessage:c}).firstElementChild;r.classList.add("gravatar-hovercard--error"),r.classList.remove("gravatar-hovercard--skeleton"),r.replaceChildren(v),a.U(e,{code:n,message:i})}));r.id=n,r.addEventListener("mouseenter",(function(){return clearInterval(a.l.get(n))})),r.addEventListener("mouseleave",(function(){return a.V(n)})),u.body.appendChild(r),c(i,r,s)}}),this.L);this.v.set(n,v)},r.V=function(t,r){var a=this;void 0===r&&(r=this.C);var n=setTimeout((function(){var r=u.getElementById(t);r&&(r.remove(),a.R(t,r))}),r);this.l.set(t,n)},r.F=function(t,r){"ontouchstart"in u||(t.stopImmediatePropagation(),clearInterval(this.l.get(r.id)),this.J(r))},r.G=function(t,r){var a=r.id;"ontouchstart"in u||(t.stopImmediatePropagation(),clearInterval(this.v.get(a)),this.V(a))},r.N=function(t){var r=t.id;!("ontouchstart"in u)&&this.O&&(clearInterval(this.v.get(r)),this.V(r,0))},t}();o=_,_.createHovercard=function(t,r){var a,n,e=void 0===r?{}:r,i=e.additionalClass,c=e.myHash,h=e.i18n,_=void 0===h?{}:h,g=t.hash,f=t.avatarUrl,m=t.profileUrl,p=t.displayName,w=t.location,b=t.description,k=t.jobTitle,y=t.company,j=t.headerImage,S=t.hideDefaultHeaderImage,O=t.verifiedAccounts,L=void 0===O?[]:O,x=t.payments,C=t.contactInfo,I=t.backgroundColor,H=u.createElement("div");H.className="gravatar-hovercard"+(i?" "+i:"");var M=L.find((function(t){return"calendly"===t.type&&!t.isHidden}));C&&M&&(C.calendly=M.url);var P=s(d(m,"utm_source","hovercard")),T=v(p),U=!b&&c===g,A=[k,y].filter(Boolean).join(", "),R=(null==x||null==(a=x.links)?void 0:a.length)||(null==x||null==(n=x.crypto_wallets)?void 0:n.length),E=Object.entries(C||{}).filter((function(t){t[0];return!!t[1]})),B=L.slice(0,3).reduce((function(t,r){var a=r.label,n=r.icon,e=r.url,o=r.type;return r.isHidden||t.push('\n\t\t\t\t\t<a class="gravatar-hovercard__social-link" href="'+s(e)+'" target="_blank" data-service-name="'+o+'">\n\t\t\t\t\t\t<img class="gravatar-hovercard__social-icon" src="'+s(n)+'" width="32" height="32" alt="'+v(a)+'" />\n\t\t\t\t\t</a>\n\t\t\t\t'),t}),[]).join(""),F="",G="",N="",q="";if(j||!S){var z='<img class="gravatar-hovercard__header-image-img" src="'+s(f)+'" alt=""/>';F='<div class="gravatar-hovercard__header-image">'+(j?"":z)+"</div>"}(E.length||R)&&(E.length&&(G+='\n\t\t\t\t\t<button class="gravatar-hovercard__button" data-target-drawer="contact">'+l(_,"Contact")+"</button>\n\t\t\t\t",N=o.q("contact",l(_,"Contact"),o.X(E,{i18n:_}))),R&&(G+='\n\t\t\t\t\t<button class="gravatar-hovercard__button" data-target-drawer="send-money">'+l(_,"Send money")+"</button>\n\t\t\t\t",q=o.q("send-money",l(_,"Send money"),o.Y(x))),G='\n\t\t\t\t<div class="gravatar-hovercard__buttons">'+G+"</div>\n\t\t\t"),H.innerHTML='\n\t\t\t<div class="gravatar-hovercard__inner">\n\t\t\t\t'+F+'\n\t\t\t\t<div class="gravatar-hovercard__header">\n\t\t\t\t\t<a class="gravatar-hovercard__avatar-link" href="'+P+'" target="_blank">\n\t\t\t\t\t\t<img class="gravatar-hovercard__avatar" src="'+s(f)+'" width="104" height="104" alt="'+T+'" />\n\t\t\t\t\t</a>\n\t\t\t\t\t<a class="gravatar-hovercard__personal-info-link" href="'+P+'" target="_blank">\n\t\t\t\t\t\t<h4 class="gravatar-hovercard__name">'+T+"</h4>\n\t\t\t\t\t\t"+(A?'<p class="gravatar-hovercard__job">'+v(A)+"</p>":"")+"\n\t\t\t\t\t\t"+(w?'<p class="gravatar-hovercard__location">'+v(w)+"</p>":"")+"\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t\t"+(b?'<div class="gravatar-hovercard__body">\n\t\t\t\t\t\t\t\t<p class="gravatar-hovercard__description">'+v(b)+"</p>\n\t\t\t\t\t\t\t</div>":"")+'\n\t\t\t\t<div class="gravatar-hovercard__social-links">\n\t\t\t\t\t<a class="gravatar-hovercard__social-link" href="'+P+'" target="_blank" data-service-name="gravatar">\n\t\t\t\t\t\t<img class="gravatar-hovercard__social-icon" src="https://s.gravatar.com/icons/gravatar.svg" width="32" height="32" alt="Gravatar" />\n\t\t\t\t\t</a>\n\t\t\t\t\t'+B+"\n\t\t\t\t</div>\n\t\t\t\t"+G+'\n\t\t\t\t<div class="gravatar-hovercard__footer">\n\t\t\t\t\t<a class="gravatar-hovercard__profile-url" title="'+m+'" href="'+P+'" target="_blank">\n\t\t\t\t\t\t'+m.replace("https://","")+'\n\t\t\t\t\t</a>\n\t\t\t\t\t<a\n\t\t\t\t\t\tclass="gravatar-hovercard__profile-link'+(U?" gravatar-hovercard__profile-link--edit":"")+'"\n\t\t\t\t\t\thref="'+(U?"https://gravatar.com/profiles/edit?utm_source=hovercard":P)+'"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t>\n\t\t\t\t\t\t'+l(_,U?"Edit your profile â":"View profile â")+"\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t\t"+N+"\n\t\t\t\t"+q+"\n\t\t\t\t"+(I?'<div class="gravatar-hovercard__profile-color"></div>':"")+"\n\t\t\t</div>\n\t\t";var D=H.querySelector(".gravatar-hovercard__inner"),W=D.querySelector(".gravatar-hovercard__header-image"),X=D.querySelector(".gravatar-hovercard__profile-color");return j&&W&&(W.style.background=j),I&&X&&(X.style.background=I),D.querySelectorAll(".gravatar-hovercard__button").forEach((function(t){t.addEventListener("click",(function(){return o.D(t,D)}))})),D.querySelectorAll(".gravatar-hovercard__drawer-close").forEach((function(t){t.addEventListener("click",(function(){return o.W(t,D)}))})),D.querySelectorAll(".gravatar-hovercard__drawer-backdrop").forEach((function(t){t.addEventListener("click",(function(){return o.W(t,D)}))})),H},_.createHovercardSkeleton=function(t){var r=(void 0===t?{}:t).additionalClass,a=u.createElement("div");return a.className="gravatar-hovercard gravatar-hovercard--skeleton"+(r?" "+r:""),a.innerHTML='\n\t\t\t<div class="gravatar-hovercard__inner">\n\t\t\t\t<div class="gravatar-hovercard__header">\n\t\t\t\t\t<div class="gravatar-hovercard__avatar-link"></div>\n\t\t\t\t\t<div class="gravatar-hovercard__personal-info-link"></div>\n\t\t\t\t</div>\n\t\t\t\t<div class="gravatar-hovercard__social-links">\n\t\t\t\t\t<div class="gravatar-hovercard__social-link"></div>\n\t\t\t\t\t<div class="gravatar-hovercard__social-link"></div>\n\t\t\t\t</div>\n\t\t\t\t<div class="gravatar-hovercard__footer">\n\t\t\t\t\t<div class="gravatar-hovercard__profile-url"></div>\n\t\t\t\t\t<div class="gravatar-hovercard__profile-link"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',a},_.createHovercardError=function(t,r,a){var n=void 0===a?{}:a,e=n.avatarAlt,o=void 0===e?"Avatar":e,i=n.additionalClass,c=n.additionalMe
331ssage,v=void 0===c?"":c,s=u.createElement("div");return s.className="gravatar-hovercard gravatar-hovercard--error"+(i?" "+i:""),s.innerHTML='\n\t\t\t<div class="gravatar-hovercard__inner">\n\t\t\t\t<img class="gravatar-hovercard__avatar" src="'+t+'" width="104" height="104" alt="'+o+'" />\n\t\t\t\t<div class="gravatar-hovercard__error-message-wrapper">\n\t\t\t\t\t<i class="gravatar-hovercard__error-message">'+r+"</i>\n\t\t\t\t\t"+v+"\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t",s};var g,f=e.S,m=JSON.parse('{"El":{"h":"^0.16.0"}}');function p(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.push.apply(a,n)}return a}function w(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?p(Object(n),!0).forEach((function(r){a(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}var b="".concat(null===(g=m.El.h)||void 0===g?void 0:g.replace(/^[\^~]/,""),"-1");function k(t){new Image(1,1).src="https://pixel.wp.com/g.gif?v=wpcom2&x_grav-hover=".concat(t,"&rand=").concat(Math.random(),"-").concat((new Date).getTime())}window.Gravatar={version:m.El.h,my_hash:"",profile_cb:function(){},createHovercard:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f.createHovercard(t,w({additionalClass:"wp-hovercard"},r))},init:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",a=arguments.length>1?arguments[1]:void 0,n=document;if(new f(w(w({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),{},{myHash:this.my_hash,additionalClass:"wp-hovercard",onQueryHovercardRef:function(t){var r;return t.classList.add("wp-hovercard-attachment"),t.classList.add("grav-hashed"),"A"!==(null===(r=t.parentElement)||void 0===r?void 0:r.tagName)&&t.classList.add("grav-hijack"),t.onmouseover=function(){return k("hover")},t},onHovercardShown:function(r,a){t.profile_cb(r,a.id);var n=a.querySelector(".gravatar-hovercard__profile-link");n&&(n.onclick=function(){return k("click_view_profile")});var e=a.querySelector(".gravatar-hovercard__profile-link--edit");e&&(e.onclick=function(){return k("click_edit_profile")});var o=a.querySelector('[data-target-drawer="contact"]'),i=a.querySelector('[data-target-drawer="send-money"]');o&&(o.onclick=function(){return k("click_contact_btn")}),i&&(i.onclick=function(){return k("click_send_money_btn")});var c=a.querySelector(".gravatar-hovercard__avatar-link");c&&(c.onclick=function(){return k("to_profile")});var v=a.querySelector(".gravatar-hovercard__name-location-link");v&&(v.onclick=function(){return k("to_profile")}),a.querySelectorAll(".gravatar-hovercard__social-link").forEach((function(t){t.onclick=function(){return k("click_".concat(t.dataset.serviceName))}})),k("show")},onFetchProfileSuccess:function(){return k("fetch")},onFetchProfileFailure:function(t,r){var a=r.code;return k("profile_".concat(a))}})).attach(n.querySelector(r),{dataAttributeName:"",ignoreSelector:a?"".concat(a,' img[src*="gravatar.com/"]'):""}),!n.querySelector('link[href*="hovercards.min.css"]')){var e,o=n.querySelector('script[src*="/js/hovercards/hovercards"]'),i=o?null===(e=o.getAttribute("src"))||void 0===e?void 0:e.split("?")[1]:"ver=".concat(b);n.head.insertAdjacentHTML("beforeend",'<link rel="stylesheet" id="gravatar-card-css" href="https://0.gravatar.com/js/hovercards/hovercards.min.css?'.concat(i,'" />'))}}}}();; 332(function(){var e,t=function(e){e=e||{};for(var n,t=1;t<arguments.length;t++){if(!arguments[t])continue;for(n in arguments[t])Object.hasOwn(arguments[t],n)&&(e[n]=arguments[t][n])}return e};WPGroHo=t({my_hash:"",data:{},renderers:{},syncProfileData:function(e,t){if(!WPGroHo.data[e]){WPGroHo.data[e]={},n=document.querySelectorAll("div.grofile-hash-map-"+e+" span");for(var n,s=0;s<n.length;s++)WPGroHo.data[e][n[s].className]=n[s].innerText}WPGroHo.appendProfileData(WPGroHo.data[e],e,t)},appendProfileData:function(e,t,n){for(s in e){if("function"==typeof WPGroHo.renderers[s])return WPGroHo.renderers[s](e[s],t,n,s);var s,o,i,a=document.getElementById(n);a&&(i=a.querySelector("h4"),i&&(o=document.createElement("p"),o.className="grav-extra "+s,o.innerHTML=e[s],i.insertAdjacentElement("afterend",o)))}}},WPGroHo||{}),e=function(){if("undefined"==typeof Gravatar)return;Gravatar.profile_cb=function(e,t){WPGroHo.syncProfileData(e,t)},Gravatar.my_hash=WPGroHo.my_hash,Gravatar.init("body","#wpadminbar")},document.readyState==="interactive"||document.readyState==="complete"?e():document.addEventListener("DOMContentLoaded",e)})(); 333(()=>
333{if(window.TVE_Dash=window.TVE_Dash||{},!e||!e.$j){var a=window.$,e={$j:jQuery.noConflict()};a&&(window.$=a)}!function(a){TVE_Dash.ajax_sent=!1;var t={},s={};TVE_Dash.add_load_item=function(e,n,o){var r;if("function"!=typeof o&&(o=a.noop),TVE_Dash.ajax_sent){var i={},_={};return i[e]=n,_[e]=o,this.send_ajax(i,_),!0}return n?(t[e]&&"function"==typeof(null===(r=console)||void 0===r?void 0:r.warn)&&console.warn(e+" ajax action already defined"),t[e]=n,s[e]=o,!0):(console.error&&console.error("missing ajax data"),!1)},TVE_Dash.ajax_load_css=function(e){a.each(e,function(e,t){a("link#"+(e+="-css")).length||a('<link rel="stylesheet" id="'+e+'" type="text/css" href="'+t+'"/>').appendTo("head")})},TVE_Dash.ajax_load_js=function(e){var t=document.body;a.each(e,function(s,n){if(-1!==s.indexOf("_before"))return!0;var o=document.createElement("script");e[s+"_before"]&&a('<script type="text/javascript">'+e[s+"_before"]+"<\/script>").after(t.lastChild),s&&(o.id=s+"-script"),o.src=n,t.appendChild(o)})},TVE_Dash.send_ajax=function(t,s){a.ajax({url:tve_dash_front.ajaxurl,xhrFields:{withCredentials:!0},data:{post_id:tve_dash_front.post_id,action:"tve_dash_front_ajax",tve_dash_data:t},dataType:"json",type:"post"}).done(function(t){t&&a.isPlainObject(t)&&(t.__resources&&(t.__resources.css&&TVE_Dash.ajax_load_css(t.__resources.css),t.__resources.js&&TVE_Dash.ajax_load_js(t.__resources.js),delete t.__resources),a.each(t,function(a,e){if("function"!=typeof s[a])return!0;s[a].call(null,e,t)}),e.$j(window).trigger("tve_after_ajax_load"))})},TVE_Dash.forceImageLoad=function(a){Array.prototype.forEach.call(a.getElementsByTagName("img"),a=>{a.getAttribute("src").includes("data:image")&&a.setAttribute("src",a.getAttribute("data-opt-src")||a.getAttribute("data-src"))})},a(function(){window.TVE_Dash=window.TVE_Dash||TVE_Dash,setTimeout(function(){var e=new a.Event("tve-dash.load");return a(document).trigger(e),!a.isEmptyObject(t)&&!(!tve_dash_front.force_ajax_send&&tve_dash_front.is_crawler)&&(TVE_Dash.send_ajax(t,s),void(TVE_Dash.ajax_sent=!0))})})}(e.$j)})();; 334/*! This file is auto-generated */ 335!function(n,t){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):(n="undefined"!=typeof globalThis?globalThis:n||self,r=n._,(e=n._=t()).noConflict=function(){return n._=r,e})}(this,function(){var n="1.13.8",t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,V=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=V.toString,q=V.hasOwnProperty,r="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=r&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,i){return i=null==i?u.length-1:+i,function(){for(var n=Math.max(arguments.length-i,0),t=Array(n),r=0;r<n;r++)t[r]=arguments[r+i];switch(i){case 0:return u.call(this,t);case 1:return u.call(this,arguments[0],t);case 2:return u.call(this,arguments[0],arguments[1],t)}for(var e=Array(i+1),r=0;r<i;r++)e[r]=arguments[r];return e[i]=t,u.apply(this,e)}}function i(n){var t=typeof n;return"function"==t||"object"==t&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function o(n){var t="[object "+n+"]";return function(n){return s.call(n)===t}}var X=o("String"),Y=o("Number"),Z=o("Date"),nn=o("RegExp"),tn=o("Error"),rn=o("Symbol"),en=o("ArrayBuffer"),a=o("Function"),t=t.document&&t.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof t?function(n){return"function"==typeof n||!1}:a,t=o("Object"),un=u&&(!/\[native code\]/.test(String(DataView))||t(new DataView(new ArrayBuffer(8)))),a="undefined"!=typeof Map&&t(new Map),u=o("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,c=U||o("Array");function v(n,t){return null!=n&&q.call(n,t)}var on=o("Arguments"),an=(!function(){on(arguments)||(on=function(n){return v(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(t){return function(n){n=t(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(t){return function(n){return null==n?void 0:n[t]}}var y=sn("byteLength"),pn=ln(y),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=r?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),d=sn("length");function yn(n,t){t=function(t){for(var r={},n=t.length,e=0;e<n;++e)r[t[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(n){return r[n]=!0,t.push(n)}}}(t);var r=J.length,e=n.constructor,u=p(e)&&e.prototype||V,i="constructor";for(v(n,i)&&!t.contains(i)&&t.push(i);r--;)(i=J[r])in n&&n[i]!==u[i]&&!t.contains(i)&&t.push(i)}function g(n){if(!i(n))return[];if(W)return W(n);var t,r=[];for(t in n)v(n,t)&&r.push(t);return K&&yn(n,r),r}function dn(n,t){var r=g(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;i<e;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0}function b(n){return n instanceof b?n:this instanceof b?void(this._wrapped=n):new b(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,y(n))}b.VERSION=n,b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function m(n){if(!i(n))return[];var t,r=[];for(t in n)r.push(t);return K&&yn(n,r),r}function mn(e){var u=d(e);return function(n){if(null==n)return!1;var t=m(n);if(d(t))return!1;for(var r=0;r<u;r++)if(!p(n[e[r]]))return!1;return e!==wn||!p(n[jn])}}
vendor: 13,632 bytes, line 335
335var jn="forEach",t=["clear","delete"],u=["get","has","set"],U=t.concat(jn,u),wn=t.concat(u),r=["add"].concat(t,jn,"has"),u=a?mn(U):o("Map"),t=a?mn(wn):o("WeakMap"),U=a?mn(r):o("Set"),a=o("WeakSet");function j(n){for(var t=g(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=n[t[u]];return e}function _n(n){for(var t={},r=g(n),e=0,u=r.length;e<u;e++)t[n[r[e]]]=r[e];return t}function An(n){var t,r=[];for(t in n)p(n[t])&&r.push(t);return r.sort()}function xn(f,c){return function(n){var t=arguments.length;if(c&&(n=Object(n)),!(t<2||null==n))for(var r=1;r<t;r++)for(var e=arguments[r],u=f(e),i=u.length,o=0;o<i;o++){var a=u[o];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var Sn=xn(m),w=xn(g),On=xn(m,!0);function Mn(n){var t;return i(n)?z?z(n):((t=function(){}).prototype=n,n=new t,t.prototype=null,n):{}}function En(n){return c(n)?n:[n]}function _(n){return b.toPath(n)}function Bn(n,t){for(var r=t.length,e=0;e<r;e++){if(null==n)return;n=n[t[e]]}return r?n:void 0}function Nn(n,t,r){n=Bn(n,_(t));return H(n)?r:n}function kn(n){return n}function A(t){return t=w({},t),function(n){return dn(n,t)}}function In(t){return t=_(t),function(n){return Bn(n,t)}}function x(u,i,n){if(void 0===i)return u;switch(null==n?3:n){case 1:return function(n){return u.call(i,n)};case 3:return function(n,t,r){return u.call(i,n,t,r)};case 4:return function(n,t,r,e){return u.call(i,n,t,r,e)}}return function(){return u.apply(i,arguments)}}function Tn(n,t,r){return null==n?kn:p(n)?x(n,t,r):(i(n)&&!c(n)?A:In)(n)}function Dn(n,t){return Tn(n,t,1/0)}function S(n,t,r){return b.iteratee!==Dn?b.iteratee(n,t):Tn(n,t,r)}function Rn(){}function Vn(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}b.toPath=En,b.iteratee=Dn;var O=Date.now||function(){return(new Date).getTime()};function Fn(t){function r(n){return t[n]}var n="(?:"+g(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,r):n}}var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Pn=Fn(r),r=Fn(_n(r)),qn=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Un=/(.)^/,Wn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},zn=/\\|'|\r|\n|\u2028|\u2029/g;function Ln(n){return"\\"+Wn[n]}var $n=/^\s*(\w|\$)+\s*$/;var Cn=0;function Kn(n,t,r,e,u){return e instanceof t?(e=Mn(n.prototype),i(t=n.apply(e,u))?t:e):n.apply(r,u)}var M=l(function(u,i){function o(){for(var n=0,t=i.length,r=Array(t),e=0;e<t;e++)r[e]=i[e]===a?arguments[n++]:i[e];for(;n<arguments.length;)r.push(arguments[n++]);return Kn(u,o,this,this,r)}var a=M.placeholder;return o}),Jn=(M.placeholder=b,l(function(t,r,e){var u;if(p(t))return u=l(function(n){return Kn(t,u,r,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(d);function B(n,t,r){t||0===t||(t=1/0);for(var e=[],u=0,i=0,o=d(n)||0,a=[];;){if(o<=i){if(a.length){var f=a.pop(),i=f.i,o=d(n=f.v);continue}break}f=n[i++];t<=a.length?e[u++]=f:E(f)&&(c(f)||an(f))?(a.push({i:i,v:n}),i=0,o=d(n=f)):r||(e[u++]=f)}return e}var Gn=l(function(n,t){var r=(t=B(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var e=t[r];n[e]=Jn(n[e],n)}return n});var Hn=l(function(n,t,r){return setTimeout(function(){return n.apply(null,r)},t)}),Qn=M(Hn,b,1);function Xn(n){return function(){return!n.apply(this,arguments)}}function Yn(n,t){var r;return function(){return 0<--n&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}}var Zn=M(Yn,2);function nt(n,t,r){t=S(t,r);for(var e,u=g(n),i=0,o=u.length;i<o;i++)if(t(n[e=u[i]],e,n))return e}function tt(i){return function(n,t,r){t=S(t,r);for(var e=d(n),u=0<i?0:e-1;0<=u&&u<e;u+=i)if(t(n[u],u,n))return u;return-1}}var rt=tt(1),et=tt(-1);function ut(n,t,r,e){for(var u=(r=S(r,e,1))(t),i=0,o=d(n);i<o;){var a=Math.floor((i+o)/2);r(n[a])<u?i=a+1:o=a}return i}function it(i,o,a){return function(n,t,r){var e=0,u=d(n);if("number"==typeof r)0<i?e=0<=r?r:Math.max(r+u,e):u=0<=r?Math.min(r+1,u):r+u+1;else if(a&&r&&u)return n[r=a(n,t)]===t?r:-1;if(t!=t)return 0<=(r=o(f.call(n,e,u),fn))?r+e:-1;for(r=0<i?e:u-1;0<=r&&r<u;r+=i)if(n[r]===t)return r;return-1}}var ot=it(1,rt,ut),at=it(-1,et);function ft(n,t,r){t=(E(n)?rt:nt)(n,t,r);if(void 0!==t&&-1!==t)return n[t]}function N(n,t,r){if(t=x(t,r),E(n))for(u=0,i=n.length;u<i;u++)t(n[u],u,n);else for(var e=g(n),u=0,i=e.length;u<i;u++)t(n[e[u]],e[u],n);return n}function k(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=Array(u),o=0;o<u;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i}function ct(f){return function(n,t,r,e){var u=3<=arguments.length;return function(n,t,r,e){var u=!E(n)&&g(n),i=(u||n).length,o=0<f?0:i-1;for(e||(r=n[u?u[o]:o],o+=f);0<=o&&o<i;o+=f){var a=u?u[o]:o;r=t(r,n[a],a,n)}return r}(n,x(t,e,4),r,u)}}var lt=ct(1),st=ct(-1);function I(n,e,t){var u=[];return e=S(e,t),N(n,function(n,t,r){e(n,t,r)&&u.push(n)}),u}function pt(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0}function ht(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1}function T(n,t,r,e){return E(n)||(n=j(n)),0<=ot(n,t,r="number"==typeof r&&!e?r:0)}var vt=l(function(n,r,e){var u,i;return p(r)?i=r:(r=_(r),u=r.slice(0,-1),r=r[r.length-1]),k(n,function(n){var t=i;if(!t){if(null==(n=u&&u.length?Bn(n,u):n))return;t=n[r]}return null==t?t:t.apply(n,e)})});function yt(n,t){return k(n,In(t))}function dt(n,e,t){var r,u,i=-1/0,o=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&i<r&&(i=r);else e=S(e,t),N(n,function(n,t,r){u=e(n,t,r),(o<u||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i}var gt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function bt(n){return n?c(n)?f.call(n):X(n)?n.match(gt):E(n)?k(n,kn):j(n):[]}function mt(n,t,r){if(null==t||r)return(n=E(n)?n:j(n))[Vn(n.length-1)];for(var e=bt(n),r=d(e),u=(t=Math.max(Math.min(t,r),0),r-1),i=0;i<t;i++){var o=Vn(i,u),a=e[i];e[i]=e[o],e[o]=a}return e.slice(0,t)}function D(i,t){return function(r,e,n){var u=t?[[],[]]:{};return e=S(e,n),N(r,function(n,t){t=e(n,t,r);i(u,n,t)}),u}}var jt=D(function(n,t,r){v(n,r)?n[r].push(t):n[r]=[t]}),wt=D(function(n,t,r){n[r]=t}),_t=D(function(n,t,r){v(n,r)?n[r]++:n[r]=1}),At=D(function(n,t,r){n[r?0:1].push(t)},!0);function xt(n,t,r){return t in r}var St=l(function(n,t){var r={},e=t[0];if(null!=n){p(e)?(1<t.length&&(e=x(e,t[1])),t=m(n)):(e=xt,t=B(t,!1,!1),n=Object(n));for(var u=0,i=t.length;u<i;u++){var o=t[u],a=n[o];e(a,o,n)&&(r[o]=a)}}return r}),Ot=l(function(n,r){var t,e=r[0];return p(e)?(e=Xn(e),1<r.length&&(t=r[1])):(r=k(B(r,!1,!1),String),e=function(n,t){return!T(r,t)}),St(n,e,t)});function Mt(n,t,r){return f.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))}function Et(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[0]:Mt(n,n.length-t)}function R(n,t,r){return f.call(n,null==t||r?1:t)}var Bt=l(function(n,t){return t=B(t,!0,!0),I(n,function(n){return!T(t,n)})}),Nt=l(function(n,t){return Bt(n,t)});function kt(n,t,r,e){Q(t)||(e=r,r=t,t=!1),null!=r&&(r=S(r,e));for(var u=[],i=[],o=0,a=d(n);o<a;o++){var f=n[o],c=r?r(f,o,n):f;t&&!r?(o&&i===c||u.push(f),i=c):r?T(i,c)||(i.push(c),u.push(f)):T(u,f)||u.push(f)}return u}var It=l(function(n){return kt(B(n,!0,!0))});function Tt(n){for(var t=n&&dt(n,d).length||0,r=Array(t),e=0;e<t;e++)r[e]=yt(n,e);return r}var Dt=l(Tt);function Rt(n,t){return n._chain?b(t).chain():t}function Vt(r){return N(An(r),function(n){var t=b[n]=r[n];b.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Rt(this,t.apply(b,n))}}),b}N(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];b.prototype[t]=function(){var n=this._wrapped;return null!=n&&(r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Rt(this,n)}}),N(["concat","join","slice"],function(n){var t=e[n];b.prototype[n]=function(){var n=this._wrapped;return Rt(this,n=null!=n?t.apply(n,arguments):n)}});n=Vt({__proto__:null,VERSION:n,restArguments:l,isObject:i,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:tn,isSymbol:rn,isArrayBuffer:en,isDataView:h,isArray:c,isFunction:p,isArguments:an,isFinite:function(n){return!rn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var t;return null==n||("number"==typeof(t=d(n))&&(c(n)||X(n)||an(n))?0===t:0===d(g(n)))},isMatch:dn,isEqual:function(n,t){for(var r=[{a:n,b:t}],e=[],u=[];r.length;){var i=r.pop();if(!0===i)e.pop(),u.pop();else{if((n=i.a)===(t=i.b)){if(0!==n||1/n==1/t)continue;return!1}if(null==n||null==t)return!1;if(n!=n){if(t!=t)continue;return!1}i=typeof n;if("function"!=i&&"object"!=i&&"object"!=typeof t)return!1;n instanceof b&&(n=n._wrapped),t instanceof b&&(t=t._wrapped);i=s.call(n);if(i!==s.call(t))return!1;if(un&&"[object Object]"==i&&h(n)){if(!h(t))return!1;i=bn}switch(i){case"[object RegExp]":case"[object String]":if(""+n==""+t)continue;return!1;case"[object Number]":r.push({a:+n,b:+t});continue;case"[object Date]":case"[object Boolean]":if(+n==+t)continue;return!1;case"[object Symbol]":if(F.valueOf.call(n)===F.valueOf.call(t))continue;return!1;case"[object ArrayBuffer]":case bn:r.push({a:gn(n),b:gn(t)});continue}i="[object Array]"===i;if(!i&&vn(n)){if(y(n)!==y(t))return!1;if(n.buffer===t.buffer&&n.byteOffset===t.byteOffset)continue;i=!0}if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}for(var f=e.length;f--;)if(e[f]===n){if(u[f]===t)break;return!1}if(!(0<=f))if(e.push(n),u.push(t),r.push(!0),i){if((f=n.length)!==t.length)return!1;for(;f--;)r.push({a:n[f],b:t[f]})}else{var c,l=g(n),f=l.length;if(g(t).length!==f)return!1;for(;f--;){if(!v(t,c=l[f]))return!1;r.push({a:n[c],b:t[c]})}}}}return!0},isMap:u,isWeakMap:t,isSet:U,isWeakSet:a,keys:g,allKeys:m,values:j,pairs:function(n){for(var t=g(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=[t[u],n[t[u]]];return e},invert:_n,functions:An,methods:An,extend:Sn,extendOwn:w,assign:w,defaults:On,create:function(n,t){return n=Mn(n),t&&w(n,t),n},clone:function(n){return i(n)?c(n)?n.slice():Sn({},n):n},tap:function(n,t){return t(n),n},get:Nn,has:function(n,t){for(var r=(t=_(t)).length,e=0;e<r;e++){var u=t[e];if(!v(n,u))return!1;n=n[u]}return!!r},mapObject:function(n,t,r){t=S(t,r);for(var e=g(n),u=e.length,i={},o=0;o<u;o++){var a=e[o];i[a]=t(n[a],a,n)}return i},identity:kn,constant:cn,noop:Rn,toPath:En,property:In,propertyOf:function(t){return null==t?Rn:function(n){return Nn(t,n)}},matcher:A,matches:A,times:function(n,t,r){var e=Array(Math.max(0,n));t=x(t,r,1);for(var u=0;u<n;u++)e[u]=t(u);return e},random:Vn,now:O,escape:Pn,unescape:r,templateSettings:qn,template:function(i,n,t){n=On({},n=!n&&t?t:n,b.templateSettings);var r,t=RegExp([(n.escape||Un).source,(n.interpolate||Un).source,(n.evaluate||Un).source].join("|")+"|$","g"),o=0,a="__p+='";if(i.replace(t,function(n,t,r,e,u){return a+=i.slice(o,u).replace(zn,Ln),o=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",t=n.variable){if(!$n.test(t))throw new Error("variable is not a bare identifier: "+t)}else a="with(obj||{}){\n"+a+"}\n",t="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t,"_",a)}catch(n){throw n.source=a,n}function e(n){return r.call(this,n,b)}return e.source="function("+t+"){\n"+a+"}",e},result:function(n,t,r){var e=(t=_(t)).length;if(!e)return p(r)?r.call(n):r;for(var u=0;u<e;u++){var i=null==n?void 0:n[t[u]];void 0===i&&(i=r,u=e),n=p(i)?i.call(n):i}return n},uniqueId:function(n){var t=++Cn+"";return n?n+t:t},chain:function(n){return(n=b(n))._chain=!0,n},iteratee:Dn,partial:M,bind:Jn,bindAll:Gn,memoize:function(e,u){function i(n){var t=i.cache,r=""+(u?u.apply(this,arguments):n);return v(t,r)||(t[r]=e.apply(this,arguments)),t[r]}return i.cache={},i},delay:Hn,defer:Qn,throttle:function(r,e,u){function i(){l=!1===u.leading?0:O(),o=null,c=r.apply(a,f),o||(a=f=null)}function n(){var n=O(),t=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,t<=0||e<t?(o&&(clearTimeout(o),o=null),l=n,c=r.apply(a,f),o||(a=f=null)):o||!1===u.trailing||(o=setTimeout(i,t)),c}var o,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(o),l=0,o=a=f=null},n},debounce:function(t,r,e){function u(){var n=O()-o;n<r?i=setTimeout(u,r-n):(i=null,e||(f=t.apply(c,a)),i||(a=c=null))}var i,o,a,f,c,n=l(function(n){return c=this,a=n,o=O(),i||(i=setTimeout(u,r),e&&(f=t.apply(c,a))),f});return n.cancel=function(){clearTimeout(i),i=a=c=null},n},wrap:function(n,t){return M(t,n)},negate:Xn,compose:function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},after:function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},before:Yn,once:Zn,findKey:nt,findIndex:rt,findLastIndex:et,sortedIndex:ut,indexOf:ot,lastIndexOf:at,find:ft,detect:ft,findWhere:function(n,t){return ft(n,A(t))},each:N,forEach:N,map:k,collect:k,reduce:lt,foldl:lt,inject:lt,reduceRight:st,foldr:st,filter:I,select:I,reject:function(n,t,r){return I(n,Xn(S(t)),r)},every:pt,all:pt,some:ht,any:ht,contains:T,includes:T,include:T,invoke:vt,pluck:yt,where:function(n,t){return I(n,A(t))},max:dt,min:function(n,e,t){var r,u,i=1/0,o=1/0;
335if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&r<i&&(i=r);else e=S(e,t),N(n,function(n,t,r){((u=e(n,t,r))<o||u===1/0&&i===1/0)&&(i=n,o=u)});return i},shuffle:function(n){return mt(n,1/0)},sample:mt,sortBy:function(n,e,t){var u=0;return e=S(e,t),yt(k(n,function(n,t,r){return{value:n,index:u++,criteria:e(n,t,r)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(e<r||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")},groupBy:jt,indexBy:wt,countBy:_t,partition:At,toArray:bt,size:function(n){return null==n?0:(E(n)?n:g(n)).length},pick:St,omit:Ot,first:Et,head:Et,take:Et,initial:Mt,last:function(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[n.length-1]:R(n,Math.max(0,n.length-t))},rest:R,tail:R,drop:R,compact:function(n){return I(n,Boolean)},flatten:function(n,t){return B(n,t,!1)},without:Nt,uniq:kt,unique:kt,union:It,intersection:function(n){for(var t=[],r=arguments.length,e=0,u=d(n);e<u;e++){var i=n[e];if(!T(t,i)){for(var o=1;o<r&&T(arguments[o],i);o++);o===r&&t.push(i)}}return t},difference:Bt,unzip:Tt,transpose:Tt,zip:Dt,object:function(n,t){for(var r={},e=0,u=d(n);e<u;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},range:function(n,t,r){null==t&&(t=n||0,n=0),r=r||(t<n?-1:1);for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;i<e;i++,n+=r)u[i]=n;return u},chunk:function(n,t){if(null==t||t<1)return[];for(var r=[],e=0,u=n.length;e<u;)r.push(f.call(n,e,e+=t));return r},mixin:Vt,default:b});return n._=n});; 336/*! This file is auto-generated */ 337!function(n){var s="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(t,e,i){s.Backbone=n(s,i,t,e)});else if("undefined"!=typeof exports){var t,e=require("underscore");try{t=require("jquery")}catch(t){}n(s,exports,e,t)}else s.Backbone=n(s,{},s._,s.jQuery||s.Zepto||s.ender||s.$)}(function(t,h,b,e){function a(t,e,i,n,s){var r,o=0;if(i&&"object"==typeof i){void 0!==n&&"context"in s&&void 0===s.context&&(s.context=n);for(r=b.keys(i);o<r.length;o++)e=a(t,e,r[o],i[r[o]],s)}else if(i&&l.test(i))for(r=i.split(l);o<r.length;o++)e=t(e,r[o],n,s);else e=t(e,i,n,s);return e}function x(t,e,i){i=Math.min(Math.max(i,0),t.length);for(var n=Array(t.length-i),s=e.length,r=0;r<n.length;r++)n[r]=t[r+i];for(r=0;r<s;r++)t[r+i]=e[r];for(r=0;r<n.length;r++)t[r+s+i]=n[r]}function s(i,n,t,s){b.each(t,function(t,e){n[e]&&(i.prototype[e]=function(n,t,s,r){switch(t){case 1:return function(){return n[s](this[r])};case 2:return function(t){return n[s](this[r],t)};case 3:return function(t,e){return n[s](this[r],T(t,this),e)};case 4:return function(t,e,i){return n[s](this[r],T(t,this),e,i)};default:return function(){var t=u.call(arguments);return t.unshift(this[r]),n[s].apply(n,t)}}}(n,t,e,s))})}var o,i=t.Backbone,u=Array.prototype.slice,e=(h.VERSION="1.6.1",h.$=e,h.noConflict=function(){return t.Backbone=i,this},h.emulateHTTP=!1,h.emulateJSON=!1,h.Events={}),l=/\s+/,n=(e.on=function(t,e,i){return this._events=a(n,this._events||{},t,e,{context:i,ctx:this,listening:o}),o&&(((this._listeners||(this._listeners={}))[o.id]=o).interop=!1),this},e.listenTo=function(t,e,i){if(t){var n=t._listenId||(t._listenId=b.uniqueId("l")),s=this._listeningTo||(this._listeningTo={}),r=o=s[n],s=(r||(this._listenId||(this._listenId=b.uniqueId("l")),r=o=s[n]=new g(this,t)),c(t,e,i,this));if(o=void 0,s)throw s;r.interop&&r.on(e,i)}return this},function(t,e,i,n){var s,r;return i&&(e=t[e]||(t[e]=[]),s=n.context,r=n.ctx,(n=n.listening)&&n.count++,e.push({callback:i,context:s,ctx:s||r,listening:n})),t}),c=function(t,e,i,n){try{t.on(e,i,n)}catch(t){return t}},r=(e.off=function(t,e,i){return this._events&&(this._events=a(r,this._events,t,e,{context:i,listeners:this._listeners})),this},e.stopListening=function(t,e,i){var n=this._listeningTo;if(n){for(var s=t?[t._listenId]:b.keys(n),r=0;r<s.length;r++){var o=n[s[r]];if(!o)break;o.obj.off(e,i,this),o.interop&&o.off(e,i)}b.isEmpty(n)&&(this._listeningTo=void 0)}return this}
337,function(t,e,i,n){if(t){var s,r=n.context,o=n.listeners,h=0;if(e||r||i){for(s=e?[e]:b.keys(t);h<s.length;h++){var a=t[e=s[h]];if(!a)break;for(var u=[],l=0;l<a.length;l++){var c=a[l];i&&i!==c.callback&&i!==c.callback._callback||r&&r!==c.context?u.push(c):(c=c.listening)&&c.off(e,i)}u.length?t[e]=u:delete t[e]}return t}for(s=b.keys(o);h<s.length;h++)o[s[h]].cleanup()}}),d=(e.once=function(t,e,i){var n=a(d,{},t,e,this.off.bind(this));return this.on(n,e="string"==typeof t&&null==i?void 0:e,i)},e.listenToOnce=function(t,e,i){e=a(d,{},e,i,this.stopListening.bind(this,t));return this.listenTo(t,e)},function(t,e,i,n){var s;return i&&((s=t[e]=b.once(function(){n(e,s),i.apply(this,arguments)}))._callback=i),t}),f=(e.trigger=function(t){if(this._events){for(var e=Math.max(0,arguments.length-1),i=Array(e),n=0;n<e;n++)i[n]=arguments[n+1];a(f,this._events,t,void 0,i)}return this},function(t,e,i,n){var s,r;return t&&(s=t[e],r=t.all,s&&(r=r&&r.slice()),s&&p(s,n),r)&&p(r,[e].concat(n)),t}),p=function(t,e){var i,n=-1,s=t.length,r=e[0],o=e[1],h=e[2];switch(e.length){case 0:for(;++n<s;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r);return;case 2:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o);return;case 3:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o,h);return;default:for(;++n<s;)(i=t[n]).callback.apply(i.ctx,e);return}},g=function(t,e){this.id=t._listenId,this.listener=t,this.obj=e,this.interop=!0,this.count=0,this._events=void 0},v=(g.prototype.on=e.on,g.prototype.off=function(t,e){t=this.interop?(this._events=a(r,this._events,t,e,{context:void 0,listeners:void 0}),!this._events):(this.count--,0===this.count);t&&this.cleanup()},g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},e.bind=e.on,e.unbind=e.off,b.extend(h,e),h.Model=function(t,e){var i=t||{},n=(e=e||{},this.preinitialize.apply(this,arguments),this.cid=b.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),b.result(this,"defaults")),i=b.defaults(b.extend({},n,i),n);this.set(i,e),this.changed={},this.initialize.apply(this,arguments)}),m=(b.extend(v.prototype,e,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(t){return b.clone(this.attributes)},sync:function(){return h.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return b.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!b.iteratee(t,this)(this.attributes)},set:function(t,e,i){if(null!=t){var n;if("object"==typeof t?(n=t,i=e):(n={})[t]=e,!this._validate(n,i=i||{}))return!1;var s,r,o=i.unset,t=i.silent,h=[],a=this._changing,u=(this._changing=!0,a||(this._previousAttributes=b.clone(this.attributes),this.changed={}),this.attributes),l=this.changed,c=this._previousAttributes;for(s in n)e=n[s],b.isEqual(u[s],e)||h.push(s),b.isEqual(c[s],e)?delete l[s]:l[s]=e,o?delete u[s]:u[s]=e;if(this.idAttribute in n&&(r=this.id,this.id=this.get(this.idAttribute),this.id!==r)&&this.trigger("changeId",this,r,i),!t){h.length&&(this._pending=i);for(var d=0;d<h.length;d++)this.trigger("change:"+h[d],this,u[h[d]],i)}if(!a){if(!t)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);this._pending=!1,this._changing=!1}}return this},unset:function(t,e){return this.set(t,void 0,b.extend({},e,{unset:!0}))},clear:function(t){var e,i={};for(e in this.attributes)i[e]=void 0;return this.set(i,b.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!b.isEmpty(this.changed):b.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&b.clone(this.changed);var e,i,n=this._changing?this._previousAttributes:this.attributes,s={};for(i in t){var r=t[i];b.isEqual(n[i],r)||(s[i]=r,e=!0)}return!!e&&s},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return b.clone(this._previousAttributes)},fetch:function(i){i=b.extend({parse:!0},i);var n=this,s=i.success;return i.success=function(t){var e=i.parse?n.parse(t,i):t;if(!n.set(e,i))return!1;s&&s.call(i.context,n,t,i),n.trigger("sync",n,t,i)},N(this,i),this.sync("read",this,i)}
337,save:function(t,e,i){null==t||"object"==typeof t?(n=t,i=e):(n={})[t]=e;var n,s=(i=b.extend({validate:!0,parse:!0},i)).wait;if(n&&!s){if(!this.set(n,i))return!1}else if(!this._validate(n,i))return!1;var r=this,o=i.success,h=this.attributes,t=(i.success=function(t){r.attributes=h;var e=i.parse?r.parse(t,i):t;if((e=s?b.extend({},n,e):e)&&!r.set(e,i))return!1;o&&o.call(i.context,r,t,i),r.trigger("sync",r,t,i)},N(this,i),n&&s&&(this.attributes=b.extend({},h,n)),this.isNew()?"create":i.patch?"patch":"update"),e=("patch"!=t||i.attrs||(i.attrs=n),this.sync(t,this,i));return this.attributes=h,e},destroy:function(e){e=e?b.clone(e):{};function i(){n.stopListening(),n.trigger("destroy",n,n.collection,e)}var n=this,s=e.success,r=e.wait,t=!(e.success=function(t){r&&i(),s&&s.call(e.context,n,t,e),n.isNew()||n.trigger("sync",n,t,e)});return this.isNew()?b.defer(e.success):(N(this,e),t=this.sync("delete",this,e)),r||i(),t},url:function(){var t,e=b.result(this,"urlRoot")||b.result(this.collection,"url")||M();return this.isNew()?e:(t=this.get(this.idAttribute),e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t))},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},b.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=b.extend({},this.attributes,t);t=this.validationError=this.validate(t,e)||null;return!t||(this.trigger("invalid",this,t,b.extend(e,{validationError:t})),!1)}}),h.Collection=function(t,e){e=e||{},this.preinitialize.apply(this,arguments),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,b.extend({silent:!0},e))}),w={add:!0,remove:!0,merge:!0},_={add:!0,remove:!1},y=(b.extend(m.prototype,e,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return h.sync.apply(this,arguments)},add:function(t,e){return this.set(t,b.extend({merge:!1},e,_))},remove:function(t,e){e=b.extend({},e);var i=!b.isArray(t),t=(t=i?[t]:t.slice(),this._removeModels(t,e));return!e.silent&&t.length&&(e.changes={added:[],merged:[],removed:t},this.trigger("update",this,e)),i?t[0]:t},set:function(t,e){if(null!=t){(e=b.extend({},w,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);for(var i=!b.isArray(t),n=(t=i?[t]:t.slice(),e.at),s=((n=(n=null!=n?+n:n)>this.length?this.length:n)<0&&(n+=this.length+1),[]),r=[],o=[],h=[],a={},u=e.add,l=e.merge,c=e.remove,d=!1,f=this.comparator&&null==n&&!1!==e.sort,p=b.isString(this.comparator)?this.comparator:null,g=0;g<t.length;g++){var v,m=t[g],_=this.get(m);_?(l&&m!==_&&(v=this._isModel(m)?m.attributes:m,e.parse&&(v=_.parse(v,e)),_.set(v,e),o.push(_),f)&&!d&&(d=_.hasChanged(p)),a[_.cid]||(a[_.cid]=!0,s.push(_)),t[g]=_):u&&(m=t[g]=this._prepareModel(m,e))&&(r.push(m),this._addReference(m,e),a[m.cid]=!0,s.push(m))}if(c){for(g=0;g<this.length;g++)a[(m=this.models[g]).cid]||h.push(m);h.length&&this._removeModels(h,e)}var y=!1;if(s.length&&(!f&&u&&c)?(y=this.length!==s.length||b.some(this.models,function(t,e){return t!==s[e]}),this.models.length=0,x(this.models,s,0),this.length=this.models.length):r.length&&(f&&(d=!0),x(this.models,r,null==n?this.length:n),this.length=this.models.length),d&&this.sort({silent:!0}),!e.silent){for(g=0;g<r.length;g++)null!=n&&(e.index=n+g),(m=r[g]).trigger("add",m,this,e);(d||y)&&this.trigger("sort",this,e),(r.length||h.length||o.length)&&(e.changes={added:r,removed:h,merged:o},this.trigger("update",this,e))}return i?t[0]:t}},reset:function(t,e){e=e?b.clone(e):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,b.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,b.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,b.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return u.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(this._isModel(t)?t.attributes:t,t.idAttribute)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t=t||{};var i=e.length;return b.isFunction(e)&&(e=e.bind(this)),1===i||b.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(i){var n=(i=b.extend({parse:!0},i)).success,s=this;return i.success=function(t){var e=i.reset?"reset":"set";s[e](t,i),n&&n.call(i.context,s,t,i),s.trigger("sync",s,t,i)},N(this,i),this.sync("read",this,i)},create:function(t,e){var n=(e=e?b.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;n||this.add(t,e);var s=this,r=e.success;
337return e.success=function(t,e,i){n&&(t.off("error",s._forwardPristineError,s),s.add(t,i)),r&&r.call(i.context,t,e,i)},n&&t.once("error",this._forwardPristineError,this),t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t,e){return t[e||this.model.prototype.idAttribute||"id"]},values:function(){return new E(this,S)},keys:function(){return new E(this,I)},entries:function(){return new E(this,k)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){return this._isModel(t)?(t.collection||(t.collection=this),t):(t=((e=e?b.clone(e):{}).collection=this).model.prototype?new this.model(t,e):this.model(t,e)).validationError?(this.trigger("invalid",this,t.validationError,e),!1):t},_removeModels:function(t,e){for(var i=[],n=0;n<t.length;n++){var s,r,o=this.get(t[n]);o&&(s=this.indexOf(o),this.models.splice(s,1),this.length--,delete this._byId[o.cid],null!=(r=this.modelId(o.attributes,o.idAttribute))&&delete this._byId[r],e.silent||(e.index=s,o.trigger("remove",o,this,e)),i.push(o),this._removeReference(o,e))}return 0<t.length&&!e.silent&&delete e.index,i},_isModel:function(t){return t instanceof v},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes,t.idAttribute);null!=i&&(this._byId[i]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes,t.idAttribute);null!=i&&delete this._byId[i],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){if(e){if(("add"===t||"remove"===t)&&i!==this)return;var s,r;"destroy"===t&&this.remove(e,n),"changeId"===t&&(s=this.modelId(e.previousAttributes(),e.idAttribute),r=this.modelId(e.attributes,e.idAttribute),null!=s&&delete this._byId[s],null!=r)&&(this._byId[r]=e)}this.trigger.apply(this,arguments)},_forwardPristineError:function(t,e,i){this.has(t)||this._onModelEvent("error",t,e,i)}}),"function"==typeof Symbol&&Symbol.iterator),E=(y&&(m.prototype[y]=m.prototype.values),function(t,e){this._collection=t,this._kind=e,this._index=0}),S=1,I=2,k=3,y=(y&&(E.prototype[y]=function(){return this}),E.prototype.next=function(){if(this._collection){var t,e;if(this._index<this._collection.length)return t=this._collection.at(this._index),this._index++,{value:this._kind===S?t:(e=this._collection.modelId(t.attributes,t.idAttribute),this._kind===I?e:[e,t]),done:!1};this._collection=void 0}return{value:void 0,done:!0}},h.View=function(t){this.cid=b.uniqueId("view"),this.preinitialize.apply(this,arguments),b.extend(this,b.pick(t,P)),this._ensureElement(),this.initialize.apply(this,arguments)}),A=/^(\S+)\s*(.*)$/,P=["model","collection","el","id","attributes","className","tagName","events"],T=(b.extend(y.prototype,e,{tagName:"div",$:function(t){return this.$el.find(t)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof h.$?t:h.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t=t||b.result(this,"events"))for(var e in this.undelegateEvents(),t){var i=t[e];(i=b.isFunction(i)?i:this[i])&&(e=e.match(A),this.delegate(e[1],e[2],i.bind(this)))}return this},delegate:function(t,e,i){return this.$el.on(t+".delegateEvents"+this.cid,e,i),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,i){return this.$el.off(t+".delegateEvents"+this.cid,e,i),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){var t;this.el?this.setElement(b.result(this,"el")):(t=b.extend({},b.result(this,"attributes")),this.id&&(t.id=b.result(this,"id")),this.className&&(t.class=b.result(this,"className")),this.setElement(this._createElement(b.result(this,"tagName"))),this._setAttributes(t))},_setAttributes:function(t){this.$el.attr(t)}}),function(e,t){return b.isFunction(e)?e:b.isObject(e)&&!t._isModel(e)?H(e):b.isString(e)?function(t){return t.get(e)}:e}),H=function(t){var e=b.matches(t);return function(t){return e(t.attributes)}}
337,$=(b.each([[m,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[v,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(t){var i=t[0],e=t[1],n=t[2];i.mixin=function(t){var e=b.reduce(b.functions(t),function(t,e){return t[e]=0,t},{});s(i,t,e,n)},s(i,b,e,n)}),h.sync=function(t,e,n){var i,s=$[t],r=(b.defaults(n=n||{},{emulateHTTP:h.emulateHTTP,emulateJSON:h.emulateJSON}),{type:s,dataType:"json"}),o=(n.url||(r.url=b.result(e,"url")||M()),null!=n.data||!e||"create"!==t&&"update"!==t&&"patch"!==t||(r.contentType="application/json",r.data=JSON.stringify(n.attrs||e.toJSON(n))),n.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),!n.emulateHTTP||"PUT"!==s&&"DELETE"!==s&&"PATCH"!==s||(r.type="POST",n.emulateJSON&&(r.data._method=s),i=n.beforeSend,n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",s),i)return i.apply(this,arguments)}),"GET"===r.type||n.emulateJSON||(r.processData=!1),n.error),t=(n.error=function(t,e,i){n.textStatus=e,n.errorThrown=i,o&&o.call(n.context,t,e,i)},n.xhr=h.ajax(b.extend(r,n)));return e.trigger("request",e,t,n),t},{create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"}),C=(h.ajax=function(){return h.$.ajax.apply(h.$,arguments)},h.Router=function(t){t=t||{},this.preinitialize.apply(this,arguments),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)}),j=/\((.*?)\)/g,O=/(\(\?)?:\w+/g,U=/\*\w+/g,z=/[\-{}\[\]+?.,\\\^$|#\s]/g,R=(b.extend(C.prototype,e,{preinitialize:function(){},initialize:function(){},route:function(e,i,n){b.isRegExp(e)||(e=this._routeToRegExp(e)),b.isFunction(i)&&(n=i,i=""),n=n||this[i];var s=this;return h.history.route(e,function(t){t=s._extractParameters(e,t);!1!==s.execute(n,t,i)&&(s.trigger.apply(s,["route:"+i].concat(t)),s.trigger("route",i,t),h.history.trigger("route",s,i,t))}),this},execute:function(t,e,i){t&&t.apply(this,e)},navigate:function(t,e){return h.history.navigate(t,e),this},_bindRoutes:function(){if(this.routes){this.routes=b.result(this,"routes");for(var t,e=b.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(z,"\\$&").replace(j,"(?:$1)?").replace(O,function(t,e){return e?t:"([^/?]+)"}).replace(U,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return b.map(i,function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null})}}),h.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)}),q=/^[#\/]|\s+$/g,F=/^\/+|\/+$/g,B=/#.*$/,M=(R.started=!1,b.extend(R.prototype,e,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){t=(t||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return(t=null==t?this._usePushState||!this._wantsHashChange?this.getPath():this.getHash():t).replace(q,"")},start:function(t){if(R.started)throw new Error("Backbone.history has already been started");if(R.started=!0,this.options=b.extend({root:"/"},this.options,t),this.root=this.options.root,this._trailingSlash=this.options.trailingSlash,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||7<document.documentMode),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||
337!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(F,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return t=this.root.slice(0,-1)||"/",this.location.replace(t+"#"+this.getPath()),!0;this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}this._hasHashChange||!this._wantsHashChange||this._usePushState||(this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1,(t=(t=document.body).insertBefore(this.iframe,t.firstChild).contentWindow).document.open(),t.document.close(),t.location.hash="#"+this.fragment);t=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?t("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),R.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if((e=e===this.fragment&&this.iframe?this.getHash(this.iframe.contentWindow):e)===this.fragment)return!this.matchRoot()&&this.notfound();this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(e){return this.matchRoot()&&(e=this.fragment=this.getFragment(e),b.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))||this.notfound()},notfound:function(){return this.trigger("notfound"),!1},navigate:function(t,e){if(!R.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var i=this.root,i=(i=this._trailingSlash||""!==t&&"?"!==t.charAt(0)?i:i.slice(0,-1)||"/")+t,n=(t=t.replace(B,""),this.decodeFragment(t));if(this.fragment!==n){if(this.fragment=n,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)&&(n=this.iframe.contentWindow,e.replace||(n.document.open(),n.document.close()),this._updateHash(n.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){i?(i=t.href.replace(/(javascript:|#).*$/,""),t.replace(i+"#"+e)):t.hash="#"+e}}),h.history=new R,v.extend=m.extend=C.extend=y.extend=R.extend=function(t,e){var i=this,n=t&&b.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)};return b.extend(n,i,e),n.prototype=b.create(i.prototype,t),(n.prototype.constructor=n).__super__=i.prototype,n},function(){throw new Error('A "url" property or function must be specified')}),N=function(e,i){var n=i.error;i.error=function(t){n&&n.call(i.context,e,t,i),e.trigger("error",e,t,i)}};return h._debug=function(){return{root:t,_:b}},h});; 338(()=>{var e;(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t;window.ThriveComments=window.ThriveComments||{},ThriveComments.util=ThriveComments.util||{},_.templateSettings={evaluate:/<#([\s\S]+?)#>/g,interpolate:/<#=([\s\S]+?)#>/g,escape:/<#-([\s\S]+?)#>/g},t=jQuery,ThriveComments.util.tpl=function(e,n){var i=t("script#"+e.replace(/\//g,"-")).html()||"";return n?_.template(i)(n):_.template(i)},ThriveComments.util.nested=function(e,t){var n=this;return e instanceof Backbone.Model?this.nested(e.attributes,t):_.each(t,(function(t){t.children&&(e[t.name]=n.nested(e[t.name],t.children)),_.isArray(e)?_.each(e,(function(e){e[t.name]=new t.obj(e[t.name])})):e[t.name]=new t.obj(e[t.name])})),e},ThriveComments.util.validateInput=function(e,n,i){var o=(e=e instanceof jQuery?e:t(e)).val(),s=!0;return""==(o=o.trim())?(n||(n=ThriveComments.util.render_label("isRequired")),s=!1,e.removeClass("tcm-valid"),e.addClass("tcm-invalid"),e.prev(".tcm
338-error-message").show().html(n)):(e.removeClass("tcm-invalid"),e.prev(".tcm-error-message").hide(n)),s},ThriveComments.util.validateInputUrl=function(e,n,i){var o=(e=e instanceof jQuery?e:t(e)).val(),s=!0;return null!=o&&0==this.isValidUrl(this.addHttp(o))?(n||(n=ThriveComments.util.render_label("isRequired")),s=!1,e.removeClass("tcm-valid"),e.addClass("tcm-invalid"),e.prev(".tcm-error-message").show().html(n)):(e.removeClass("tcm-invalid"),e.prev(".tcm-error-message").hide(n)),s},ThriveComments.util.validateStoringConsent=function(e,n){var i=(e=e instanceof jQuery?e:t(e)).is(":checked"),o=e.siblings(".tcm-consent-text"),s=ThriveComments.util.get_cookie("tcm_cookie_user_name"),r=!0;return""===ThriveComments.settings.storing_consent||0===ThriveComments.settings.storing_consent||(i||""!==s?(o.removeClass("tcm-not-selected"),e.prev(".tcm-error-message").hide(n)):(n||(n=ThriveComments.util.render_label("isRequired")),r=!1,o.removeClass("tcm-not-selected"),o.addClass("tcm-not-selected"),e.prev(".tcm-error-message").show().html(n))),r},ThriveComments.util.validateEmail=function(e,n){var i=(e=e instanceof jQuery?e:t(e)).val();return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(i)?(e.removeClass("tcm-invalid"),e.prev(".tcm-error-message").hide(),!0):(e.removeClass("tcm-valid"),e.addClass("tcm-invalid"),e.prev(".tcm-error-message").show().html(n),!1)},ThriveComments.util.valuesToArray=function(e){return Object.keys(e).map((function(t){return e[t]}))},ThriveComments.util.set_avatar_url=function(e){e.length&&e.attr("data-src")===ThriveComments.default_author_picture_url&&this.checkGravatar(e.attr("data-email-hash")).done((function(t){e.css("background-image",'url("'+t+'")')}))},ThriveComments.util.parse_social_cookie=function(){var e=ThriveComments.util.get_cookie("social-login");if(!e)return null;var t=e.lastIndexOf(".");if(t<1||t===e.length-1)return null;for(var n=e.substring(0,t).replace(/-/g,"+").replace(/_/g,"/");n.length%4;)n+="=";try{var i=Uint8Array.from(atob(n),(function(e){return e.charCodeAt(0)}));return JSON.parse((new TextDecoder).decode(i))}catch(e){return null}},ThriveComments.util.previousUser=function(){return!!ThriveComments.util.parse_social_cookie()||!!ThriveComments.current_user.ID||void 0},ThriveComments.util.signSocialLoginCookie=function(e,t){return jQuery.ajax({method:"POST",url:ThriveComments.routes.social_login,headers:{"X-WP-Nonce":ThriveComments.nonce},data:{provider:e,token:t}})},ThriveComments.util.clearSocialLoginCookie=function(){return jQuery.ajax({method:"DELETE",url:ThriveComments.routes.social_login,headers:{"X-WP-Nonce":ThriveComments.nonce}})},ThriveComments.util.set_cookie=function(t,n,i,o){o=o||"/",i=i||2592e3;var s,r=new Date;i=parseInt(i),r.setTime(r.getTime()+1e3*i),s=r.toUTCString(),"object"===e(n)&&(n=JSON.stringify(n)),document.cookie=encodeURIComponent(t)+"="+n+";expires="+s+";path="+o},ThriveComments.util.get_cookie=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""},ThriveComments.util.search_comment=function(e,t){return void 0!==e.models&&this.search_recursive(e.models,t)},ThriveComments.util.search_recursive=function(e,t){for(var n=0,i=0;!n&&i<e.length;i++)e[i].get("comment_ID")==t?n=e[i]:e[i].get("children")&&e[i].get("children").length&&(n=n||this.search_recursive(e[i].get("children"),t));return n},ThriveComments.util.elem_viewport=function(e){var n=e.offset(),i=n?n.top:0,o=i+e.outerHeight(),s=t(window).scrollTop(),r=s+t(window).height();return o>s&&i<r},ThriveComments.util.focusElement=function(e){var n,i=e.offset().top,o=e.height(),s=t(window).height();n=o<s?i-(s/2-o/2):i,t("html, body").animate({scrollTop:n},300,"easeOutQuint")},ThriveComments.util.save_setting_model=function(e,t,n,i){if(!e)return!1;(i=i||{}).success||(i.success=ThriveComments.translations.settings_saved_success_toast),i.fail||(i.fail=ThriveComments.translations.settings_saved_fail_toast),new ThriveComments.models.Settings({name:e,value:t}).save().done((function(o){"NoMessage"!==i.success&&TVE_Dash.success(i.success),-1!==ThriveComments.tcm_sync_settings.indexOf(e)&&n.where({name:e}).shift().set("value",t)})).fail((function(e){TVE_Dash.err(i.fail)}))},ThriveComments.util.render_label=function(e,t,n){var i,o,s,r,m,a;if(t||(t=""),!(i=window.parent.ThriveComments?void 0===window.parent.ThriveComments.objects.Settings?ThriveComments.tcm_customize_labels:window.parent.ThriveComments.objects.Settings.get(ThriveComments.tcm_labels_key).get("value"):ThriveComments.tcm_customize_labels)||!i.hasOwnProperty(e))return"";if(-1===(m=i[e].text).indexOf("{"))return m;switch(s=m.indexOf("{"),r=m.indexOf("}"),n){case"before":a=m.substr(0,s);break;case"after":a=m.substr(r+1,m.length-1);break;default:o=m.substring(s,r+1),a=m.replace(o,t)}return a},ThriveComments.util.showCommentsNumber=function(e){var n=t(".tcm
338-comments-number");n.length&&n.html(n.html().replace("comment_count",e)).show()},ThriveComments.util.tcm_show_loader=function(){t(".tcm-dot-loader").show()},ThriveComments.util.tcm_hide_loader=function(){t(".tcm-dot-loader").hide(),t(".thrive-comments-content").show()},ThriveComments.util.tcm_hide_textareas=function(e){var n=t(e.currentTarget).closest(".tcm-reply-container").find(".tcm-reply-btn").attr("data-id");t("textarea[name=tcm-post-content]").each((function(){var e=t(this).closest(".tcm-comment-wrapper"),i=t(this).closest(".tcm-reply-container").find(".tcm-reply-btn").attr("data-id"),o=e.find(".tcm-create-post-container").attr("data-position");void 0!==n&&t(this).closest(".comment-id-0").find(".tcm-comment-additional-fields").hide(),""!=o&&"top"===o||n==i||(t(this).closest(".tcm-comment-wrapper").slideUp(),t(this).closest(".tcm-reply-container").find(".tcm-reply-btn").attr("data-clicked",0))}))},ThriveComments.util.after_ajax_login_actions=function(){t(".tcm-lazy-comments").empty(),t.ajax({headers:{"X-WP-Nonce":ThriveComments.nonce},cache:!1,url:ThriveComments.routes.generate_nonce,dataType:"JSON",data:{action:"refresh_nonce"},type:"GET"}).done((function(e){var n=window.parent.ThriveComments.util.commentId,i=n?"comments/"+n:"";ThriveComments.current_user=e.current_user,ThriveComments.nonce=e.nonce,Backbone.history.loadUrl(i),t(".tcm-comment-item").each((function(){var e=t(this);e.find(".tcm-comment-wrapper").hide(),e.find(".tcm-error-heading").hide()}))}))},ThriveComments.util.focusAfterLogin=function(){if(this.commentId&&parseInt(this.commentId)===this.commentId){var e=t("div[data-comment-id="+this.commentId+"]");e.find(".tcm-reply-btn").click(),e.find("#tcm-post-content").val(this.content).focus()}if("bottom"===this.position){var n=t(".add-comment");n.click(),n.closest(".tcm-lazy-comments").find("textarea#tcm-post-content").val(this.content).focus()}"top"===this.position&&t("textarea#tcm-post-content").focus(),this.position=null},ThriveComments.util.scrollToElement=function(e){e.length&&t("body, html").animate({scrollTop:e.offset().top-t(window).height()/2+30},{duration:500,complete:function(){var t=e.parent();t.addClass("tcm-highlight-item"),setTimeout((function(){return t.removeClass("tcm-highlight-item")}),800)}})},ThriveComments.util.showCommentConversion=function(e){var t=new ThriveComments.views.CommentConversion({commentView:e});t.handleAfterShowAction(),e.$el.prepend(t.$el)},ThriveComments.util.isValidUrl=function(e){return!(null===e.match(/(http(s)?:\/\/.)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g))},ThriveComments.util.addHttp=function(e){return(e=t.trim(e))&&!/^(?:f|ht)tps?\:\/\//.test(e)&&(e="http://"+e),e},ThriveComments.util.err=function(e,n,i){t(".tvd-toast").remove(),Toasts.init(e,n||3e3,"tvd-toast tvd-red",i,"bottom"),t(".tvd-toast").parent().addClass("tcm-frontend-toast")},ThriveComments.util.getDropDownItems=function(e){var t;if(e.meta_query.tcm_delegate)t={approve:1,unapprove:1,no_reply_needed:1,featured:1,delegate:1,spam:1,trash:1};else if(e.meta_query.tcm_featured)t={stop_featured:1,no_reply_needed:1,delegate:1};else switch(e.status){case"all":case"hold":case"tcm_unreplied":t={approve:1,unapprove:1,no_reply_needed:1,featured:1,delegate:1,spam:1,trash:1};break;case"featured":t={no_reply_needed:1,stop_featured:1,delegate:1};break;case"spam":t={not_spam:1,delete:1};break;case"trash":t={spam:1,restore:1,delete:1}}return t},ThriveComments.util.dynamicSortByProperty=function(e){var t=1;return"-"===e[0]&&(t=-1,e=e.substr(1)),function(n,i){return(n[e]<i[e]?-1:n[e]>i[e]?1:0)*t}},ThriveComments.util.insertAtCaret=function(e,t){if(e.length){var n=e[0],i=n.scrollTop,o=0,s=n.selectionStart||"0"==n.selectionStart?"ff":!!document.selection&&"ie";if("ie"==s){n.focus();var r=document.selection.createRange();r.moveStart("character",-n.value.length),o=r.text.length}else"ff"==s&&(o=n.selectionStart);var m=n.value.substring(0,o),a=n.value.substring(o,n.value.length);if(n.value=m+t+a,o+=t.length,"ie"==s){n.focus();var c=document.selection.createRange();c.moveStart("character",-n.value.length),c.moveStart("character",o),c.moveEnd("character",0),c.select()}else"ff"==s&&(n.selectionStart=o,n.selectionEnd=o,n.focus());n.scrollTop=i}},ThriveComments.util.ajaxurl=function(e){var t=-1!==ajaxurl.indexOf("?")?"&":"?";return e&&e.length?(e=e.replace(/^(\?|&)/,""),e+="&_nonce="+ThriveComments.admin_nonce,ajaxurl+t+e):ajaxurl+t+"_nonce="+ThriveComments.admin_nonce},ThriveComments.util.toCamelCase=function(e){return(e=e.replace(/_/g," ")).toLowerCase().replace(/(?:(^.))/g,(function(e){return e.charAt(e.length-1).toUpperCase()}))},ThriveComments.util.formatSelection=function(e){var t,n,i,o=e instanceof jQuery?e[0]:document.getElementById(e);return void 0!==document.selection?(o.focus(),t=document.selection.createRange().text):void 0!==o.selectionStart&&(n=o.selectionStart,i=o.selectionEnd,t=o.value.substring(n,i)),{selectedText:t,startPos:n,endPos:i}},ThriveComments.util.set_subscriber_cookies=function(e){var t=ThriveComments.util.get_cookie("subscribed_posts");if(""!==t&&(t=JSON.parse(t)),0===e){var n=t.indexOf(ThriveComments.post.ID);n>-1&&(t.splice(n,1),ThriveComments.util.set_cookie("subscribed_posts",JSON.stringify(t),31104e3))}else""===t?t=[ThriveComments.post.ID]:t.push(ThriveComments.post.ID),ThriveComments.util.set_cookie("subscribed_posts",JSON.stringify(t),31104e3)},ThriveComments.util.checkGravatar=function(e){var n=this,i=t.Deferred();
338if(this.gravatarCache=this.gravatarCache||{},this.gravatarCache[e])this.gravatarCache[e].success?i.resolve(this.gravatarCache[e].url):i.reject();else{var o="https://www.gravatar.com/avatar/"+e+"?s=512";t.ajax({type:"HEAD",url:o+"&d=404"}).done((function(t){n.gravatarCache[e]={url:o,success:!0},i.resolve(o)})).fail((function(){n.gravatarCache[e]={url:"",success:!1},i.reject()}))}return i}})(),window.ThriveComments=window.ThriveComments||{},ThriveComments.models=ThriveComments.models||{},ThriveComments.collections=ThriveComments.collections||{},jQuery,ThriveComments.models.Base=Backbone.Model.extend({idAttribute:"comment_ID",sync:function(e,t,n){var i;return(n=n||{}).cache=!1,_.isUndefined(ThriveComments.nonce)||_.isNull(ThriveComments.nonce)||(i=n.beforeSend,n.beforeSend=function(e){if(e.setRequestHeader("X-WP-Nonce",ThriveComments.nonce),i)return i.apply(this,arguments)}),Backbone.sync(e,t,n)}}),ThriveComments.collections.Base=Backbone.Collection.extend({sync:function(e,t,n){var i;return(n=n||{}).cache=!1,n.url=this.url(),_.isUndefined(ThriveComments.nonce)||_.isNull(ThriveComments.nonce)||(i=n.beforeSend,n.beforeSend=function(e){if(e.setRequestHeader("X-WP-Nonce",ThriveComments.nonce),i)return i.apply(this,arguments)}),Backbone.sync(e,t,n)}}),ThriveComments.models.Comment=ThriveComments.models.Base.extend({getCommentStatus:function(){var e="";switch(1===parseInt(this.get("tcm_featured"))&&(e="featured"),this.get("comment_approved").toString()){case"1":case"approved":e="approved";break;case"0":case"hold":e="unapproved";break;case"spam":e="spam";break;case"trash":e="trash";break;default:0===parseInt(this.get("tcm_featured"))&&(e="stop_featuring")}return e},setCommentApproved:function(){if(void 0!==this.get("status")){var e=this.get("status")===ThriveComments.const.moderation.unapprove?0:1;this.set("comment_approved",e)}},url:function(){return ThriveComments.routes.comments+"/"+ThriveComments.post.ID},isPostAuthor:function(){return this.attributes.user_id===ThriveComments.post.post_author},parse:function(e){return delete e.author,void 0===e.replace_keyword||!1===e.replace_keyword||(ThriveComments.settings.tcm_keywords&&ThriveComments.settings.tcm_keywords.sort(ThriveComments.util.dynamicSortByProperty("-name")),_.each(ThriveComments.settings.tcm_keywords,(function(t){var n=t.name.split(", ");_.each(n,(function(n){var i,o='<a href = "'+t.value+'"';t.new_tab&&(o+=' target="_blank"'),t.no_follow&&(o+=' rel="nofollow"'),n=n.trim(),o+=">"+n+"</a>";var s=new RegExp("\\b"+n+"\\b(?![^<]*?<\\/a>)","gi"),r=n.length,m=(i=e.comment_content).match(s);_.each(m,(function(e){var t=i.search(s),m=o,a=o.search(">"+n+"<")+1;m=[m.slice(0,a),e,m.slice(a+r)].join(""),i=[i.slice(0,t),m,i.slice(t+r)].join("")})),e.comment_content=i}))}))),e}}),ThriveComments.collections.Comments=ThriveComments.collections.Base.extend({model:ThriveComments.models.Comment,compField:ThriveComments.sorting.sort_field,compOrder:ThriveComments.sorting.order,tcm_secret:"",commentCount:0,awaiting_moderation:0,userCommentCount:0,minCompField:null,url:function(){return ThriveComments.routes.comments+"/"+ThriveComments.post.ID},comparator:function(e){return 1===parseInt(e.get("tcm_featured"))?-1*Number.MAX_SAFE_INTEGER+this.compOrder*e.get(this.compField):this.compOrder*e.get(this.compField)},nested:function(e){var t=this;return e.children&&_.each(e.children,(function(n,i){t.nested(n),e.children[i]=new ThriveComments.models.Comment(n,{parse:!0})})),e},parse:function(e){var t=this;return this.commentCount=e.count,this.userCommentCount=e.user_comment_count,e=e.comments,_.each(e,(function(n,i){n.children&&n.children.length&&(e[i]=t.nested(n))})),e},insertComment:function(e,t){var n=this;_.each(e,(function(i,o){if(i.get("comment_ID")===parseInt(t.get("comment_parent"))){var s=e[o].get("children");s||(s=[]),s.push(t),e[o].set("children",s)}else i.get("children")&&i.get("children").length&&n.insertComment(i.get("children"),t)}))},push:function(e){this.commentCount++,0==e.get("comment_parent")?(this.models.push(e),this.length=this.length+1):this.insertComment(this.models,e)},countFeaturedComments:function(){return this.where({tcm_featured:"1"}).length}}),window.ThriveComments=window.ThriveComments||{},ThriveComments.views=ThriveComments.views||{},ThriveComments.objects=ThriveComments.objects||{},e=jQuery,ThriveComments.views.CreateComment=Backbone.View.extend({template:ThriveComments.util.tpl("comments/create"),events:{"focus #tcm-post-content":"showMainCreateFields","click .tcm-save-btn":"saveComment","click .tcm-show-login":"showLogin","keydown .form-input"
338:"keyAction","input textarea":"textareaSizing","click #tcm-fb-logo":"facebookLogin","click .tcm-logout-label":"logout"},keyAction:function(e){13===e.keyCode&&(this.saveComment(e),e.stopPropagation())},initialize:function(e){e&&(this.viewList=e.viewList),this.comments_media_query()},comments_media_query:function(){var e=this.$el.parents("#comments");e.width()<600&&e.addClass("tcm-small")},textareaSizing:function(t){var n=t.currentTarget;e(n).css("height",1).css("height",n.scrollHeight+2)},showMainCreateFields:function(e){if(ThriveComments.util.tcm_hide_textareas(e),this.viewList.showPreviousClickedReplys(),this.$(".tcm-comment-additional-fields").slideDown(),!ThriveComments.current_user.ID){var t=decodeURIComponent(ThriveComments.util.get_cookie("tcm_cookie_user_name")).slice(1,-1).replace(/\+/g," "),n=decodeURIComponent(ThriveComments.util.get_cookie("tcm_cookie_user_email")).slice(1,-1),i=JSON.parse('{ "link": "'+decodeURIComponent(ThriveComments.util.get_cookie("tcm_cookie_user_website")).slice(1,-1)+'" }');t&&""===this.$("#tcm-guest-name").val()&&(this.$("#tcm-guest-name").val(t),this.$("#tcm-guest-email").val(n),this.$("#tcm-author-url").val(i.link),this.$("span.checkmark").click())}ThriveComments.currentOpenView=this},render:function(t){var n=this.$("#tcm-post-content").val(),i=ThriveComments.util.parse_social_cookie();return i&&(ThriveComments.social_user=i),t=e.extend({},t,{gravatarActive:ThriveComments.settings.gravatar_active,share_individual_comments:ThriveComments.settings.share_individual_comments,comment_registration:ThriveComments.settings.comment_registration,current_user_id:void 0!==ThriveComments.current_user.ID?ThriveComments.current_user.ID:0,comment_content:void 0!==n?n:"",close_comments:ThriveComments.close_comments}),this.$el.html(this.template(t)),this.afterRender(t),this},afterRender:function(t){if(new ClipboardJS("#tcm-click-to-copy").on("success",(function(t){var n=e(t.trigger),i=n.text();n.text(ThriveComments.util.render_label("copy_input")),setTimeout((function(){n.text(i)}),1e3),t.clearSelection()})),1===ThriveComments.settings.tcm_api_status.google_api&&ThriveComments.settings.tcm_enable_social_signin)var n=setInterval((function(){window.google&&window.google.accounts&&(window.google.accounts.id.renderButton(document.getElementById("tcm-google-sign-in-".concat(t.id)),{type:"icon",shape:"pill"}),clearInterval(n))}),1e3)},saveComment:function(t){var n=this;if(!this.validateComment())return!1;this.$("#tcm-submit-comment").text(ThriveComments.util.render_label("comment_sending"));var i=this.prepareCommentForSave();(i=new ThriveComments.models.Comment(i)).save().done((function(i){var o=new ThriveComments.models.Comment(i),s=n.$("textarea");e(".tcm-post-input-container textarea").val(""),n.$("#tcm-submit-comment").text(ThriveComments.util.render_label("submit_comment")),"trash"!==o.get("comment_approved")&&n.addNewCommentToList(t.currentTarget,o,0),n.removeCreateForm(),s.css("height",1),n.replyAndApprove(i,o),e(".tcm-reply-btn").attr("data-clicked",0),n.viewList.showPreviousClickedReplys()})).fail((function(e){var t=n.handleError(e);ThriveComments.util.err(t)})).always((function(){n.$("#tcm-submit-comment").text(ThriveComments.util.render_label("submit_comment"))}))},prepareCommentForSave:function(){var e,t,n=ThriveComments.util.parse_social_cookie(),i=this.$("#tcm-author-url").val(),o="",s={};return n?(e=n.name,t=n.email,o=n.picture):(e=ThriveComments.util.previousUser()?ThriveComments.current_user.display_name:this.$("input[name='name']").val(),t=ThriveComments.util.previousUser()?ThriveComments.current_user.user_email:this.$("input[name='email']").val()),this.$(".tcm-extra-fields input").each((function(){this.checked&&(s[this.getAttribute("name")]=this.value)})),{children:[],comment_content:this.$("#tcm-post-content").val().trim(),comment_author:e,comment_author_email:t,comment_author_url:void 0!==i&&ThriveComments.util.isValidUrl(ThriveComments.util.addHttp(i))?i:"",comment_author_picture:o,comment_parent:this.$(".tcm-save-btn").attr("data-parent"),level:this.$(".tcm-save-btn").attr("data-parent")>0?Math.min(parseInt(this.$(".tcm-save-btn").attr("data-level"))+1,3):0,secret_spam:ThriveComments.secret_spam,comment_post_ID:ThriveComments.post.ID,tva_term:void 0!==ThriveComments.tva_term&&ThriveComments.tva_term,tcm_receive_notifications:this.$("#tcm_receive_notifications").prop("checked"),tcm_remember_me:this.$("#tcm_remember_me").prop("checked"),tcm_storing_consent:this.$("#tcm_storing_consent").prop("checked"),tcm_extra_fields:s}},handleError:function(e){var t="";switch(e.status){case 409:t=ThriveComments.util.render_label("comment_duplicate");break;case 429:t=ThriveComments.util.render_label("comment_flood");break;default:""===(t=ThriveComments.util.render_label(e.responseJSON.c
338ode))&&(t=e.responseJSON.code+". "+e.responseJSON.message)}return t},replyAndApprove:function(e,t){var n=t.get("comment_parent"),i=null;if(n&&t.get("is_moderator")&&(i=ThriveComments.util.search_comment(ThriveComments.objects.Comments,n))){var o={id:i.get("comment_ID")};i.set("comment_approved",1),i.set("status",1),i.save(o,{error:this.handleError})}},removeCreateForm:function(){var e=this.$(".mainInput");e.parents("div.tcm-lazy-comments").length&&this.$(".tcm-create-post-container").hide(),e.length?(e.val(""),this.$(".tcm-comment-additional-fields").hide()):this.$el.remove()},addNewCommentToList:function(t,n,i){var o,s=jQuery(t).closest(".tcm-comment-item");return!!this.$el.siblings(".tcm-comments-list").first().find("div[data-comment-id="+n.get("comment_ID")+"]").length||(ThriveComments.objects.Comments.push(n),this.updateCommentCountLabel(n),(o=this.insertCommentIntoPosition(t,n,s,i))&&ThriveComments.util.showCommentConversion(o),e(window).trigger("scroll"),this)},insertCommentIntoPosition:function(t,n,i,o){var s,r=new ThriveComments.views.CommentsItem({model:n,commentsList:this.viewList});if(s=r.render().$el,!i.length){var m=e(t).closest(".tcm-create-post-container").attr("data-position");return s.addClass("tcm-main-parent"),"top"===m&&-1===ThriveComments.objects.Comments.compOrder?(this.$el.next().prepend(s),r):"bottom"!==m||1!==ThriveComments.objects.Comments.compOrder||jQuery(".tcm-loader").is(":visible")?o?(jQuery(".tcm-loader").is(":visible")&&-1!==ThriveComments.objects.Comments.compOrder||this.$el.next().prepend(s),r):(this.viewList.close(),this.viewList.pushCommentsCreated({comment_id:n.get("comment_ID"),comment_after_save:n.get("show_after_save")}),this.viewList.initDisplayComments(n.get("comment_ID")),!1):(this.$el.parent().prev().append(s),r)}return n.get("level")>2&&s.addClass("stop-nesting"),i.append(s),r},updateCommentCountLabel:function(t){"1"===t.get("comment_approved")&&e(".tcm
338-comments-number").text((function(e,t){return t.replace(/(\d+)/,ThriveComments.objects.Comments.commentCount)}))},validateComment:function(){var e=!0;return ThriveComments.util.previousUser()||(ThriveComments.util.validateInput(this.$("input[name='name']"),ThriveComments.util.render_label("author_name_required"),!0)||(e=!1),ThriveComments.util.validateEmail(this.$("input[name='email']"),ThriveComments.util.render_label("isRequired"),!0)||(e=!1),""!==this.$("#tcm-author-url").val()&&(ThriveComments.util.validateInputUrl(this.$("#tcm-author-url"),ThriveComments.util.render_label("invalid_website_url"),!0)||(e=!1)),ThriveComments.util.validateStoringConsent(this.$("#tcm_storing_consent"),ThriveComments.util.render_label("accept_privacy_checkbox"))||(e=!1)),ThriveComments.util.validateInput(this.$("#tcm-post-content"),ThriveComments.util.render_label("comment_content_missing"),!0)||(e=!1),e},showLogin:function(t){var n,i=e("#wp-auth-check"),o=e("#wp-auth-check-form"),s=e("#wp-auth-check-wrap"),r=s.find(".wp-auth-fallback-expired"),m=this,a=!1,c=jQuery(t.currentTarget).closest(".tcm-create-post-container");if(ThriveComments.util.position=c.data("position"),ThriveComments.util.content=c.find("textarea#tcm-post-content").val(),ThriveComments.util.afterLogin=1,ThriveComments.util.commentId=c.data("comment-id"),o.length){e(window).on("beforeunload.wp-auth-check",(function(e){e.originalEvent.returnValue=window.authcheckL10n.beforeunload}));var l=o.attr("data-src").replace("members/login/","wp-login.php");o.attr("data-src",l),(n=e('<iframe id="wp-auth-check-frame" frameborder="0">').attr("title",r.text())).on("load",(function(){var t,n;a=!0,o.removeClass("loading");try{t=(n=e(this).contents().find("body")).height()}catch(e){return s.addClass("fallback"),i.css("max-height",""),o.remove(),void r.focus()}t?n&&n.hasClass("interim-login-success")?m.hideLogin():i.css("max-height",t+40+"px"):n&&n.length||(s.addClass("fallback"),i.css("max-height",""),o.remove(),r.focus())})).attr("src",l).ready((function(){s.find(".wp-auth-check-close").on("click",(function(){m.hideLogin()}))})),o.append(n)}e("body").addClass("modal-open"),s.removeClass("hidden"),n?(n.focus(),setTimeout((function(){a||(s.addClass("fallback"),o.remove(),r.focus())}),1e4)):r.focus()},hideLogin:function(){var t=e("#wp-auth-check-wrap");e(window).off("beforeunload.wp-auth-check"),"undefined"==typeof adminpage||"post-php"!==adminpage&&"post-new-php"!==adminpage||"undefined"==typeof wp||!wp.heartbeat||(e(document).off("heartbeat-tick.wp-auth-check"),wp.heartbeat.connectNow()),t.fadeOut(200,(function(){t.addClass("hidden").css("display",""),e("#wp-auth-check-frame").remove(),e("body").removeClass("modal-open")}))},checkConversion:function(e){("first_time"==e.show_after_save&&"tcm_redirect"==ThriveComments.settings.tcm_conversion.first_time.active||"second_time"==e.show_after_save&&"tcm_redirect"==ThriveComments.settings.tcm_conversion.second_time.active)&&this.redirectURL(e)},redirectURL:function(e){"first_time"==e.show_after_save?window.location.replace(ThriveComments.settings.tcm_conversion.tcm_redirect.first_time.redirect_url):"second_time"==e.show_after_save&&window.location.replace(ThriveComments.settings.tcm_conversion.tcm_redirect.second_time.redirect_url)},facebookLogin:function(e){var t=this;FB.login((function(e){e.authResponse&&ThriveComments.util.signSocialLoginCookie("facebook",e.authResponse.accessToken).done((function(e){ThriveComments.social_user=e,t.reloadView()})).fail((function(){ThriveComments.util.err(ThriveComments.util.render_label("tcm_get_comments_error"))}))}),{scope:"email"})},logout:function(e){var t=this;ThriveComments.util.clearSocialLoginCookie().always((function(){delete ThriveComments.social_user,t.reloadView()}))},reloadView:function(){var t=this.$(".tcm-create-post-container"),n=t.data("comment-id"),i=n?"comments/"+n:"";ThriveComments.util.position=t.data("position"),ThriveComments.util.content=t.find("textarea#tcm-post-content").val(),ThriveComments.util.afterLogin=1,ThriveComments.util.commentId=n,Backbone.history.loadUrl(i),e(".tcm-comment-item").each((function(){var t=e(this);t.find(".tcm-comment-wrapper").hide(),t.find(".tcm-error-heading").hide()}))}}),ThriveComments.views.SortComments=Backbone.View.extend({template:ThriveComments.util.tpl("comments/sort"),sortBy:ThriveComments.sorting.sort_name,events:{"click #tcm-sort-by":"mouseEnterShare","click .tcm-dropdown-element":"sortComments","mouseenter #tcm-sort-by":"mouseEnterShare","mouseleave #tcm-sort-by":"mouseLeaveShare"},initialize:function(e){this.viewList=e.viewList,this.render()},render:function(){this.$el.empty(),this.$el.append(this.template({sortBy:this.sortBy}))},sortComments:function(e){var t=e.currentTarget.getAttribute("data-value");jQuery(e.currentTarget).parent().siblings(".current-sorting").html(e.currentTarget.innerHTML.trim()),this.sortBy=t,this.viewList.sortComments(t),jQuery("#tcm-sort-by").removeClass("tcm-share-dropdown-hover")},mouseEnterShare:function(e){return"click"===e.type&&e.stopPropagation(),!e.target.classList.contains("tcm-sort-by")&&e.currentTarget.classList.add("tcm-share-dropdown-hover"),!1},mouseLeaveShare:function(e){return jQuery(e.currentTarget).removeClass("tcm-share-dropdown-hover"),!1}}),ThriveComments.views.Comments=Backbone.View.extend({template:ThriveComments.util.tpl("comments/list"),events:{"change #tcm-sort-by":"sortComments"}
338,viewLazy:null,viewSort:null,comments_rendered:0,commentsCreated:[],lazyFlag:1,clickedRplyButtons:[],initialize:function(t){var n,i,o,s,r;this.viewLazy=t.viewLazy,this.viewSort=t.viewSort,"undefined"==typeof FB&&1===ThriveComments.settings.tcm_api_status.facebook&&1===ThriveComments.settings.tcm_api_status.facebook_api&&ThriveComments.settings.tcm_enable_social_signin&&(window.fbAsyncInit=function(){FB.init({appId:ThriveComments.tcm_social_apis.facebook.app_id,autoLogAppEvents:!0,status:!0,xfbml:!0,version:"v2.9"})},i="script",o="facebook-jssdk",r=(n=document).getElementsByTagName(i)[0],n.getElementById(o)||((s=n.createElement(i)).id=o,s.src="//connect.facebook.net/en_US/sdk.js",r.parentNode.insertBefore(s,r))),1===ThriveComments.settings.tcm_api_status.google_api&&ThriveComments.settings.tcm_enable_social_signin&&(window.onGoogleLibraryLoad=function(){window.google.accounts.id.initialize({client_id:ThriveComments.tcm_social_apis.google.client_id,context:"use",ux_mode:"popup",auto_prompt:!1,callback:function(e){ThriveComments.util.signSocialLoginCookie("google",e.credential).done((function(e){ThriveComments.social_user=e,void 0!==ThriveComments.currentOpenView&&"function"==typeof ThriveComments.currentOpenView.reloadView&&ThriveComments.currentOpenView.reloadView()})).fail((function(){ThriveComments.util.err(ThriveComments.util.render_label("tcm_get_comments_error"))}))}})},e.getScript("https://accounts.google.com/gsi/client"))},close:function(){this.$el.empty(),this.unbind()},startLazy:function(e){var t=this;if(!e&&ThriveComments.settings.lazy_load){var n=jQuery("#thrive-comments");(this.lazyFlag&&ThriveComments.util.elem_viewport(n)||ThriveComments.util.elem_viewport(this.viewLazy.$el)||ThriveComments.util.afterLogin)&&(t.initDisplayComments(e),t.lazyFlag=0),jQuery(window).scroll((function(){t.lazyFlag&&ThriveComments.util.elem_viewport(n)&&(t.initDisplayComments(e),t.lazyFlag=0)}))}else t.initDisplayComments(e);this.lazy_avatar()},initDisplayComments:function(t){var n=this;if(ThriveComments.util.tcm_show_loader(),"static"===this.viewLazy.type){var i={};ThriveComments.tva_term&&void 0!==ThriveComments.tva_term&&(i.tva_term=ThriveComments.tva_term),this.collection.fetch({data:e.param(i),success:function(){n.displayComments(t)},error:function(e,t){ThriveComments.util.err(ThriveComments.util.render_label("tcm_get_comments_error"))}})}else this.displayComments(t)},lazy_avatar:function(){var t=this;e(window).on("scroll",(function(){t.show_images()}))},show_images:function(){e("div.no-image").each((function(){var t=e(this);if(!0===t.data("social-avatar"))return t.removeClass("no-image"),!1;ThriveComments.util.elem_viewport(t)&&(ThriveComments.util.set_avatar_url(t),t.removeClass("no-image"))}))},displayComments:function(e){this.viewLazy.view=this,this.viewLazy.changePage(null,{id:e,page:1,sortBy:ThriveComments.sorting.sort_field})},sortComments:function(e){switch(e){case"desc":this.collection.compField="comment_ID",this.collection.compOrder=-1;break;case"asc":this.collection.compField="comment_ID",this.collection.compOrder=1;break;case"top-rated":this.collection.compField="comment_karma",this.collection.compOrder=-1}var t=1==this.collection.compOrder?"ASC":"DESC";this.comments_rendered=0,this.viewLazy.changePage(null,{page:1,resetContent:1,sortBy:this.collection.compField,order:t})},render:function(e){var t=this;return ThriveComments.util.showCommentsNumber(this.collection.commentCount),e.forEach((function(e){var n,i=new ThriveComments.views.CommentsItem({model:e,commentsList:t}),o=i.render().$el;o.addClass("tcm-main-parent"),t.$el.append(o),(n=t.searchInCommentsCreated(e.get("comment_ID")))&&(i.model.set("show_after_save",n.comment_after_save),ThriveComments.util.showCommentConversion(i))})),ThriveComments.util.tcm_hide_loader(),this},pushCommentsCreated:function(e){this.commentsCreated.push(e)},searchInCommentsCreated:function(t){if(!this.commentsCreated.length)return!1;var n=e.grep(this.commentsCreated,(function(e){return parseInt(e.comment_id)===t}));return 0!==n.length&&n[0]},addClickedReplyButton:function(e){return this.clickedRplyButtons.push(e),this},showPreviousClickedReplys:function(){return this.clickedRplyButtons.forEach((function(e){1!==parseInt(e.getAttribute("data-clicked"))&&(e.style.display="block")})),this}}),ThriveComments.views.FrontendModeration=Backbone.View.extend({template:ThriveComments.util.tpl("comments/moderation"),actions:{},events:{"click .tcm-dropdown-moderate-element":"updateComment"},initialize:function(e){this.commentView=e.commentView?e.commentView:null,this.setActions(),this.render(),this.initClipboard()},render:function(){var e=this.model.getCommentStatus(),t=this.getActions(e);this.$el.html(this.template({actions:t}))}
338,initClipboard:function(){var t=this.$("[data-value=copyLink]");if(t.length){var n=new ClipboardJS(t[0]),i=ThriveComments.const.post_url+"#comments/"+this.$el.closest(".tcm-comment-content").attr("data-comment-id");t.attr("data-clipboard-text",i),n.on("success",(function(t){var n=e(t.trigger),i=n.text();n.text(ThriveComments.util.render_label("copy_input")),setTimeout((function(){n.text(i)}),1e3),t.clearSelection()}))}},updateComment:function(e){var t=e.currentTarget.getAttribute("data-fn"),n=e.currentTarget.getAttribute("data-value");"function"==typeof this[t]&&this[t](n)},changeApprove:function(e){var t={id:this.model.get("comment_ID")};ThriveComments.const.moderation.unapprove===e&&"0"!==this.model.get("tcm_featured")&&(this.model.set("tcm_featured",0),t.update_meta="tcm_featured"),this.model.set("comment_approved",e),this.model.set("status",e),this.model.save(t,{error:this.errorAtSave})},changeFeature:function(e){var t={id:this.model.get("comment_ID"),update_meta:"tcm_featured"};return ThriveComments.const.moderation.featured===parseInt(e)&&this.model.get("comment_approved")!==ThriveComments.const.moderation.approve&&(this.model.set("status",ThriveComments.const.moderation.approve),this.model.set("comment_approved",1)),this.model.set("tcm_featured",parseInt(e)),this.model.save(t,{error:this.errorAtSave}),this},changeSpam:function(e){var t={id:this.model.get("comment_ID")};this.model.set("comment_approved",e),this.model.set("status",e).save(t,{error:this.errorAtSave})},changeTrash:function(e){var t={id:this.model.get("comment_ID")};this.model.set("status",e).save(t,{error:this.errorAtSave})},undoDelete:function(){var e="trash"===this.model.get("status")?"untrash":"unspam",t={id:this.model.get("comment_ID")};return this.model.set("status",e),this.model.save(t,{error:this.errorAtSave}),!1},errorAtSave:function(e,t,n){var i="";if(t.responseJSON.message)i=t.responseJSON.message;else if(t.responseText)try{i="parsererror"===n?"Could not parse response: "+t.responseText:JSON.parse(t.responseText).message}catch(e){}i||(i=(t.statusText||n)+(t.status?" ("+t.status+")":"")),ThriveComments.util.err(i)},setActions:function(){var e={unapproved:{approve:{text:ThriveComments.util.render_label("approve_text"),fn:"changeApprove",value:1},feature:{text:ThriveComments.util.render_label("feature_text"),fn:"changeFeature",value:ThriveComments.const.moderation.featured},copy:{text:ThriveComments.util.render_label("copy_url"),value:"copyLink"},spam:{text:ThriveComments.util.render_label("spam_text"),fn:"changeSpam",value:ThriveComments.const.moderation.spam},trash:{text:ThriveComments.util.render_label("trash_text"),fn:"changeTrash",value:ThriveComments.const.moderation.trash}},approved:{unapprove:{text:ThriveComments.util.render_label("unapprove_text"),fn:"changeApprove",value:ThriveComments.const.moderation.unapprove},feature:{text:ThriveComments.util.render_label("feature_text"),fn:"changeFeature",value:ThriveComments.const.moderation.featured},copy:{text:ThriveComments.util.render_label("copy_url"),value:"copyLink"},spam:{text:ThriveComments.util.render_label("spam_text"),fn:"changeSpam",value:ThriveComments.const.moderation.spam},trash:{text:ThriveComments.util.render_label("trash_text"),fn:"changeTrash",value:ThriveComments.const.moderation.trash}},featured:{unapprove:{text:ThriveComments.util.render_label("unapprove_text"),fn:"changeApprove",value:ThriveComments.const.moderation.unapprove},stop_featuring:{text:ThriveComments.util.render_label("stop_feature_text"),fn:"changeFeature",value:ThriveComments.const.moderation.not_featured},spam:{text:ThriveComments.util.render_label("spam_text"),fn:"changeSpam",value:ThriveComments.const.moderation.spam},trash:{text:ThriveComments.util.render_label("trash_text"),fn:"changeTrash",value:ThriveComments.const.moderation.trash}},stop_featuring:{unapprove:{text:ThriveComments.util.render_label("unapprove_text"),fn:"changeApprove",value:ThriveComments.const.moderation.unapprove},feature:{text:ThriveComments.util.render_label("feature_text"),fn:"changeFeature",value:ThriveComments.const.moderation.featured},spam:{text:ThriveComments.util.render_label("spam_text"),fn:"changeSpam",value:ThriveComments.const.moderation.spam},trash:{text:ThriveComments.util.render_label("trash_text"),fn:"changeTrash",value:ThriveComments.const.moderation.trash}}},t={approved:{copy:{text:ThriveComments.util.render_label("copy_url"),value:"copyLink"}}};this.actions=ThriveComments.current_user.is_moderator?e:t},getActions:function(e){return""!==e?this.actions[e]:{}}}),ThriveComments.views.DeletedItem=Backbone.View.extend({template:ThriveComments.util.tpl("comments/deleted"),events:{"click .undo-action":"undoAction"},initialize:function(e){this.commentView=e.commentView?e.commentView:null,this.moderationView=e.moderationView?e.moderationView:null},render:function(){return this.$el.html(this.template({comment:this.model})),this.commentView.$(".tcm-comment-content").hide(),this.commentView.$(".tcm-comment-item").hide(),this.commentView.$el.removeClass("tcm-featured-class"),this},undoAction:function(){return this.moderationView.undoDelete(),!1}}),ThriveComments.views.CommentsItem=Backbone.View.extend({className:"tcm-comment-item",template:ThriveComments.util.tpl("comments/item"),voteRoute:ThriveComments.routes.comments+"/vote",events:{"click .tcm-reply-btn":"showCreateFields","click .tcm-share-btn":"showShareButtons","mouseenter .tcm-share-dropdown":"mouseEnterShare","mouseleave .tcm-share-dropdown":"mouseLeaveShare","click .tcm-share-twitter":"shareTwitter","click .tcm-share-facebook":"shareFacebook","click .tcm-voting-input"
338:"vote"},initialize:function(e){this.commentsList=e.commentsList?e.commentsList:null,this.listenTo(this.model,"sync",this.commentSync)},showCreateFields:function(t){var n=new ThriveComments.views.CreateComment({viewList:this.commentsList}),i=t.currentTarget,o=i.getAttribute("data-id"),s=i.getAttribute("data-level");"1"!==i.getAttribute("data-clicked")&&(ThriveComments.util.tcm_hide_textareas(t),this.commentsList.showPreviousClickedReplys(),e(".add-comment").show(),jQuery(i).siblings(".tcm-create-comment-fields").html("").append(n.render({mainInput:0,id:o,level:s,photo_src:ThriveComments.current_user.photo_url,previousUser:ThriveComments.util.previousUser(),position:"",close_comments:ThriveComments.close_comments}).$el).css("display","none").slideDown(),i.setAttribute("data-clicked",1),i.style.display="none",this.commentsList.addClickedReplyButton(i),t.stopPropagation(),jQuery(window).trigger("scroll"))},commentSync:function(){return this.render(),"spam"!==this.model.get("status")&&"trash"!==this.model.get("status")||this.deletedState(),jQuery(window).trigger("scroll"),this},render:function(){var e=ThriveComments.util.get_cookie("vote-comment-"+this.model.id);return this.model.setCommentApproved(),this.$el.html(this.template({comment:this.model,gravatarActive:ThriveComments.settings.gravatar_active,close_comments:ThriveComments.close_comments,share_individual_comments:ThriveComments.settings.share_individual_comments,lazy_load_avatar:ThriveComments.settings.lazy_load_avatar,last_vote:e})),this.afterRender(),this.initCommentModeration(),this.model.get("children")&&this.model.get("children").length&&(this.$el.addClass("tcm-has-children"),this.renderChildren(this.model.get("comment_ID"),this.model.get("children"),this.$el)),this.commentsList.comments_rendered++,this},renderChildren:function(e,t,n){var i=this;t&&t.forEach((function(t){if(0!==parseInt(t.get("comment_parent"))&&parseInt(t.get("comment_parent"))===e){var o,s=new ThriveComments.views.CommentsItem({model:t,commentsList:i.commentsList}),r=s.render().$el;n.append(r),(o=i.commentsList.searchInCommentsCreated(t.get("comment_ID")))&&(s.model.set("show_after_save",o.comment_after_save),ThriveComments.util.showCommentConversion(s),s.handleAfterShowAction())}}))},afterRender:function(){return this.model.get("user_id")===ThriveComments.post.post_author&&(this.$el.addClass("tcm-post-author"),this.$("strong").addClass("tcm-color-ac")),this.model.get("level")>=3&&this.$el.addClass("stop-nesting"),this.model.get("children")&&this.model.get("children").length&&this.$el.addClass("tcm-has-children"),1===parseInt(this.model.get("tcm_featured"))?this.$el.addClass("tcm-featured-class"):this.$el.removeClass("tcm-featured-class"),this},initCommentModeration:function(){this.moderationView=new ThriveComments.views.FrontendModeration({el:this.$("#tcm-moderate-front"),model:this.model,commentView:this})},showShareButtons:function(){this.$(".tcm-share-btns-container").show()},mouseEnterShare:function(e){return jQuery(e.currentTarget).addClass("tcm-share-dropdown-hover"),!1},mouseLeaveShare:function(e){var t=jQuery(e.currentTarget);return t.removeClass("tcm-share-dropdown-hover"),t.find(".tcm-copy-input-content").removeClass("hover"),!1},shareTwitter:function(e){var t,n=this.$(".tcm-comment-text-content").html().trim(),i=e.currentTarget.getAttribute("data-url"),o=this.$(".tcm-comment-author-name strong").text().replace(/\s\s+/g," ");for(n=n.replace(/<(?:.|\n)*?>/gm,"");o.length>20;)o=o.split(" ").slice(0,-1).join(" ");return(n=n.replace(/<br\s*[\/]?>/gi," ")).length>90&&(n=(n=n.substring(0,90)).split(" ").slice(0,-1).join(" ")),n=n+"... -"+o+" "+i,t=this.$("a.tcm-share-twitter").attr("href")+"?text="+encodeURIComponent(n),window.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=350,width=500"),!1},shareFacebook:function(e){var t,n=ThriveComments.post?ThriveComments.post.post_title:"",i=this.$(".tcm-comment-author-img").css("background-image").replace("url(","").replace(")","").replace(/\"/gi,""),o=this.$(".tcm-comment-text-content").html().trim(),s=encodeURIComponent(e.currentTarget.getAttribute("data-url"));return o=(o=o.replace(/<(?:.|\n)*?>/gm,"")).replace(/<br\s*[\/]?>/gi,""),t=this.$("a.tcm-share-facebook").attr("href")+"?u="+s+"&title="+n+"&description="+o+"&picture="+encodeURIComponent(i),window.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=350,width=500"),!1},vote:function(e){var t=this,n=this.model.id,i=e.currentTarget.dataset.type,o=this.$(".tcm-comment-content:first .tcm-voting-input"),s=o.filter(".tcm-upvote").find(".tcm-votes-count").text(),r=o.filter(".tcm-downvote").find(".tcm-votes-count").text(),m=o.filter(".tcm-upvote").attr("class"),a=o.filter(".tcm-downvote").attr("class"),c=function(){o.filter(".tcm-upvote").attr("class",m).find(".tcm-votes-count").text(s),o.filter(".tcm-downvote").attr("class",a).find(".tcm-votes-count").text(r)};if(this.doingVote)return!1;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";jQuery.ajax({headers:{"X-WP-Nonce":ThriveComments.nonce},url:t.voteRoute,type:"POST",data:{comment_id:n,vote_type:i,secret_spam:ThriveComments.secret_spam,g_recaptcha_response:e}}).done((function(e){t.doingVote=!1})).fail((function(e){ThriveComments.util.err(e.responseJSON.message),c()})).always((function(){}))}return this.doingVote=!0,e.currentTarget.classList.contains("active")?(e.currentTarget.classList.remove("active"),e.currentTarget.classList.contains("tcm-upvote")?o.filter(".tcm-upvote").find(".tcm-votes-count").text(parseInt(s)-1):o.filter(".tcm-downvote").find(".tcm-votes-count").text(parseInt(r)-1)):(e.currentTarget.classList.contains("tcm-upvote")?(o.filter(".tcm-upvote").find(".tcm-votes-count").text(parseInt(s)+1),o.filter(".tcm-downvote").hasClass("active")&&o.filter(".tcm-downvote").find(".tcm-votes-count").text(parseInt(r)-1)):(o.filter(".tcm-downvote").find(".tcm-votes-count").text(parseInt(r)+1),o.filter(".tcm-upvote").hasClass("active")&&o.filter(".tcm-upvote").find(".tcm-votes-count").text(parseInt(s)-1)),o.removeClass("active"),e.currentTarget.classList.add("active")),ThriveComments.recaptcha_enabled&&void 0!==window.grecaptcha?grecaptcha.ready((function(){gre
338captcha.execute(ThriveComments.recaptcha.site_key,{action:"submit"}).then((function(e){l(e)}))})):l(),!1},deletedState:function(){this.childView=new ThriveComments.views.DeletedItem({el:this.$(".deleted-state").first(),model:this.model,commentView:this,moderationView:this.moderationView}),this.childView.render(),e(window).trigger("scroll")}}),ThriveComments.views.LazyLoad=Backbone.View.extend({template:ThriveComments.util.tpl("comments/lazy-loading"),events:{"click .tcm-loader":"changePage","click .add-comment":"addCommentBottom","click .tcm-link-subscribe":"showSubscribeForm","click .tcm-link-unsubscribe":"unSubscribe","click .submit-subscribe-post":"subscribePost","click .submit-unsubscribe-post":"unSubscribePost"},currentPage:1,itemsPerPage:parseInt(ThriveComments.settings.comments_per_page),collection:null,params:null,type:"",view:null,order:"",sortBy:"",initialize:function(e){this.collection=e.collection,this.view=e.view,this.type=e.type,this.order=1===ThriveComments.sorting.order?"ASC":"DESC"},changePage:function(t,n){e(".tcm-lazy-comments .tcm-dot-loader").removeClass("done"),this.$(".add-comment").hide();var i=this,o={itemsPerPage:this.itemsPerPage};
338if(n&&void 0!==n.page?o.page=parseInt(n.page):o.page=this.currentPage,o.page<1&&(o.page=1),n&&void 0!==n.resetContent&&this.view.$el.empty(),n&&n.id&&(o.go_to_id=n.id),"dynamic"==this.type)n&&void 0!==n.sortBy?o.sortBy=n.sortBy:o.sortBy=this.sortBy,n&&void 0!==n.order?o.order=n.order:o.order=this.order,ThriveComments.tva_term&&void 0!==ThriveComments.tva_term&&(o.tva_term=ThriveComments.tva_term),this.collection.fetch({reset:!0,data:e.param(o),success:function(e,t){i.$el.show(),null!=t.nextPage?i.updateParams(t.nextPage,o.sortBy,o.order):i.updateParams(o.page+1,o.sortBy,o.order),i.view.render(e),i.render(),ThriveComments.util.scrollToElement(i.view.$("div[data-comment-id="+o.go_to_id+"]"))}});else if("static"===this.type&&void 0!==this.view&&null!==this.view){var s,r=(o.page-1)*this.itemsPerPage,m=o.page,a=0,c=this.collection.sort();if(ThriveComments.settings.page_comments){if(n&&n.id){do{s=c.chain().rest(r).first(this.itemsPerPage).value(),a=ThriveComments.util.search_recursive(s,n.id),this.view.render(s),r=((m+=1)-1)*this.itemsPerPage,this.updateParams(m,"","")}while(!a&&0!==s.length);ThriveComments.util.scrollToElement(this.view.$("div[data-comment-id="+n.id+"]")),a?ThriveComments.util.scrollToElement(this.view.$("div[data-comment-id="+n.id+"]")):(r=(o.page-1)*this.itemsPerPage,this.view.$el.empty(),this.updateParams(o.page+1,"",""),s=c.chain().rest(r).first(this.itemsPerPage).value(),this.view.render(s))}else{this.updateParams(o.page+1,"","");var l=c.countFeaturedComments(),h=this.itemsPerPage;l>0&&(o.page>1?r+=l:h=l+h),s=c.chain().rest(r).first(h).value(),this.view.render(s)}if(0===s.length)return ThriveComments.util.showCommentsNumber(0),ThriveComments.util.tcm_hide_loader(),void this.$(".tcm-loader").hide()}else this.view.render(c),ThriveComments.util.scrollToElement(this.view.$("div[data-comment-id="+n.id+"]"));i.render()}return!1},updateParams:function(e,t,n){this.currentPage=e,this.sortBy=t,this.order=n},render:function(){this.$el.html(this.template({commentsLength:this.collection.commentCount,comments_rendered:this.view.comments_rendered,showPoweredBy:ThriveComments.settings.powered_by,pageComments:ThriveComments.settings.page_comments,type:this.t
338ype})),e(".level-0").length>=parseInt(this.collection.userCommentCount)?this.$(".tcm-loader").hide():this.$(".tcm-loader").show(),ThriveComments.util.focusAfterLogin(),jQuery(window).trigger("scroll");var t=decodeURIComponent(ThriveComments.util.get_cookie("tcm_cookie_user_email"));return""!==ThriveComments.util.get_cookie("subscribed_posts")&&t&&-1!==JSON.parse(ThriveComments.util.get_cookie("subscribed_posts")).indexOf(ThriveComments.post.ID)&&void 0!==ThriveComments.current_user.ID?(this.$(".tcm-link-subscribe").hide(),this.$(".tcm-link-unsubscribe").show(),!1):this},addCommentBottom:function(t){ThriveComments.util.tcm_hide_textareas(t);var n=new ThriveComments.views.CreateComment({viewList:this.viewList}),i=this.$(".tcm-powered-by"),o=n.render({mainInput:1,id:0,level:0,photo_src:ThriveComments.current_user.photo_url,previousUser:ThriveComments.util.previousUser(),position:"bottom",close_comments:ThriveComments.close_comments}).$el;e(t.currentTarget).hide(),i.length?i.before(o):this.$el.append(o)},showSubscribeForm:function(){return ThriveComments.current_user.ID?this.addPostSubscriber(ThriveComments.current_user.user_email,1):(this.$(".tcm-link-subscribe").hide(),this.$("#tcm-subscribe-form").show()),!1},unSubscribe:function(e){var t=ThriveComments.current_user.user_email;this.$(".tcm-link-unsubscribe").hide(),this.$("#tcm-unsubscribe-form").hide(),this.$(".tcm-link-subscribe").show(),e.stopPropagation(),void 0===ThriveComments.current_user.user_email&&(t=decodeURIComponent(ThriveComments.util.get_cookie("tcm_cookie_user_email"))),this.addPostSubscriber(t,0)},subscribePost:function(){var e=this.$(".tcm-subscriber-email");if(ThriveComments.util.validateEmail(e,ThriveComments.util.render_label("isRequired"))){if(""!==ThriveComments.util.get_cookie("subscribed_posts")&&-1!==JSON.parse(ThriveComments.util.get_cookie("subscribed_posts")).indexOf(ThriveComments.post.ID)&&ThriveComments.util.validateEmail(e,ThriveComments.util.render_label("isRequired")))return this.$("#tcm-subscribe-form").hide(),this.$(".tcm-already-subscribed").show(),!1;this.addPostSubscriber(e.val(),1)}},unSubscribePost:function(){var e=this.$(".tcm-unsubscriber-email");return""!==ThriveComments.util.get_cookie("subscribed_posts")&&-1!==JSON.parse(ThriveComments.util.get_cookie("subscribed_posts")).indexOf(ThriveComments.post.ID)&&ThriveComments.util.validateEmail(e,ThriveComments.util.render_label("isRequired"))&&this.addPostSubscriber(e.val(),0),!1},addPostSubscriber:function(t,n){var i=this.$(".tcm-link-subscribe"),o=ThriveComments.util.render_label("subscribe"),s=this.$("#tcm-subscribe-form"),r=this.$(".tcm-link-unsubscribe"),m=this.$("#tcm-unsubscribe-form"),a={email:t,post_id:ThriveComments.post.ID,subscribe:n};ThriveComments.tva_term&&void 0!==ThriveComments.tva_term&&(a.tva_term=ThriveComments.tva_term),i.text(ThriveComments.util.render_label("comment_pending")),s.hide(),ThriveComments.current_user.ID?i.show():i.hide(),e.ajax({headers:{"X-WP-Nonce":ThriveComments.nonce},type:"POST",url:ThriveComments.routes.update_post_subscriber,data:a}).done((function(){ThriveComments.util.set_subscriber_cookies(n),0===n?(i.text(o),ThriveComments.current_user.ID?i.show():(i.hide(),m.hide(),s.show())):1===n&&ThriveComments.current_user.ID?(i.hide(),r.show()):(s.hide(),i.hide(),m.show())})).fail((function(e){m.show(),i.text(o),ThriveComments.util.err(e.responseJSON.message)}))}}),ThriveComments.views.CommentConversion=Backbone.View.extend({className:"tcm-conversion-container",template:ThriveComments.util.tpl("comments-conversion"),events:{"click .fb-button":"conv_facebook","click .x-button":"conv_twitter","click .in-button":"conv_linkedin","click .pt-button":"conv_pinterest","click .gm-button":"conv_google","click .xi-button":"conv_xing"},commentView:null,initialize:function(e){this.commentView=e.commentView,this.conversionSettings=this.commentView.model.get("conversion_settings")},render:function(e){return this.$el.html(this.template(e)),this},handleAfterShowAction:function(e){var t=this.commentView.model.get("show_after_save"),n=this.commentView.model.get("commenter_first");
338if(!t)return!1;if("live_update"===t)return this.handleLiveUpdate(t,n,"tcm_live_update"),!0;switch(this.conversionSettings[t].active){case"tcm_redirect":this.redirectURL(t);break;case"tcm_live_update":this.handleLiveUpdate(t,n,"tcm_live_update");break;case"tcm_related_posts":this.handleRelatedPosts(t,"tcm_related_posts");break;case"tcm_thrivebox":this.handleThrivebox(t);break;case"tcm_social_share":this.handleSocialShare(t,"tcm_social_share")}},handleSocialShare:function(e,t){var n,i="live_update"===e?this.conversionSettings.tcm_live_update[e]:this.conversionSettings.tcm_social_share[e];n=i.custom_message.replace("{commenter_name}",this.commentView.model.get("comment_author")),this.render({html_switch:t,custom_message:n,share_btns:i.social_sharing_buttons})},handleRelatedPosts:function(e,t){var n,i,o="live_update"===e?this.conversionSettings.tcm_live_update[e]:this.conversionSettings.tcm_related_posts[e];""!==o.custom_message&&(n=o.custom_message.replace("{commenter_name}",this.commentView.model.get("comment_author")),i=o.show_featured_image,this.render({html_switch:t,custom_message:n,show_featured_image:i}))},redirectURL:function(e){""==ThriveComments.settings.tcm_conversion.tcm_redirect[e].redirect_url||ThriveComments.settings.tcm_conversion.tcm_redirect[e].flag||window.location.replace(ThriveComments.settings.tcm_conversion.tcm_redirect[e].redirect_url)},handleLiveUpdate:function(e,t,n){var i,o=1===parseInt(t)?"first_time":"second_time",s="live_update"===e?this.conversionSettings.tcm_live_update[o]:this.conversionSettings.tcm_live_update[e];""!==s.custom_message&&(i=s.custom_message.replace("{commenter_name}",this.commentView.model.get("comment_author")),this.render({html_switch:n,custom_message:i}))},handleThrivebox:function(t){var n,i=this.conversionSettings.tcm_thrivebox[t].thrivebox_id,o=this;if(!i||"undefined"==typeof TL_Const||"0"===i)return n="first_time"===t?1:2,this.handleLiveUpdate(t,n,"tcm_live_update"),!1;var s={tcb_js:"undefined"!=typeof TCB_Front?1:0,two_step_ids:[i.toString()],action:"tve_leads_ajax_load_forms",security:TL_Const.security,display_options:TL_Const.display_options,current_screen:TL_Const.current_screen,tve_flat_included:e("#tve_style_family_tve_flt-css").length};ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(e,t){s[e]=t})),window.TVE_Dash&&!TVE_Dash.ajax_sent?ThriveGlobal.$j(document).on("tve-dash.load",(function(e){TVE_Dash.add_load_item("tl_lazy_load",s,TL_Front.ajax_load_callback)})):ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,type:"post",dataType:"json",data:s,xhrFields:{withCredentials:!0}}).done((function(e){TL_Front.ajax_load_callback(e);var t=jQuery(".tl-2step-trigger-"+i);if(t.length){var n,s=jQuery('[data-tl-type="two_step_'+i+'"]');s.length&&((n=jQuery(s[0])).find('input[name="email"]').val(o.commentView.model.get("comment_author_email")),n.find('input[name="name"]').val(o.commentView.model.get("comment_author"))),setTimeout((function(){t.click()}),0)}}))},conv_facebook:function(e){var t,n=ThriveComments.post?ThriveComments.post.post_title:"",i=ThriveComments.post.featured_image?ThriveComments.post.featured_image:"",o=encodeURIComponent(ThriveComments.post.permalink);return t=e.currentTarget.getAttribute("data-href")+"?u="+o+"&title="+n+"&image_url="+encodeURIComponent(i),window.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=350,width=500"),!1},conv_twitter:function(e){var t,n=ThriveComments.post?ThriveComments.post.post_title:"";return n.length>90&&(n=(n=n.substring(0,90)).split(" ").slice(0,-1).join(" ")),n=n+" "+ThriveComments.post.permalink,t=e.currentTarget.getAttribute("data-href")+"?text="+n,window.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=483,width=672"),!1},conv_linkedin:function(e){var t,n=ThriveComments.post?ThriveComments.post.post_title:"";return t=e.currentTarget.getAttribute("data-href")+"?url="+encodeURIComponent(ThriveComments.post.permalink)+"&summary="+n+"&title="+n,window.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=483,width=672"),!1},conv_pinterest:function(e){var t,n=ThriveComments.post?ThriveComments.post.post_title:"",i=ThriveComments.post.featured_image?ThriveComments.post.featured_image:"";return t=e.currentTarget.getAttribute("data-href")+"?url="+encodeURIComponent(ThriveComments.post.permalink)+"&description="+n+"&media="+i,window.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=483,width=672"),!1},conv_google:function(e){var t,n=ThriveComments.post?ThriveComments.post.post_title:"";return t=e.currentTarget.getAttribute("data-href")+"?url="+encodeURIComponent(ThriveComments.post.permalink)+"&text="+n,window.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=483,width=672"),!1},conv_xing:function(e){var t,n=ThriveComments.post?ThriveComments.post.post_title:"";return t=e.currentTarget.getAttribute("data-href")+"?url="+encodeURIComponent(ThriveComments.post.permalink)+"&title="+n,window.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=483,width=672"),!1}}),ThriveComments.views.LiveUpdate=Backbone.View.extend({template:"",events:"",initialize:function(e){this.commentsView=e.commentsView,this.viewCreate=e.viewCreate,this.collection=e.collection,this.updateInterval=1e3*parseInt(ThriveComments.settings.tcm_live_update_refresh_rate),this.updateComments()},updateComments:function(){var e=this;!ThriveComments.settings.tcm_live_update||tve_frontend_options&&tve_frontend_options.is_editor_page||setTimeout((function(){e.startTimeout(jQuery(".tcm-comments-list")),e.updateComments()}),this.updateInterval)},startTimeout:function(t){var n=this;e.ajax({headers:{"X-WP-Nonce":ThriveComments.nonce},cache:!1,url:ThriveComments.routes.live_update,dataType:"JSON",type:"GET",data:{post_id:ThriveComments.post.ID,update_interval:this.updateInterval}}).done((function(e){e.comment_found?(_.each(e.comments,(function(e){var i=null,o=null,s=null;t&&(o=t.find("button[data-id="+e.top_parent_id+"]"),i=t.find("button[data-id="+e.comment_parent+"]"),s=new ThriveComments.models.Comment(e,{parse:!0}
338),0==e.comment_parent||i.length&&o.length?n.viewCreate.addNewCommentToList(i,s,1):ThriveComments.util.search_comment(n.collection,e.comment_ID)||ThriveComments.objects.Comments.push(s))})),n.updateInterval=1e3*parseInt(ThriveComments.settings.tcm_live_update_refresh_rate)):n.updateInterval=n.updateInterval+100}))}}),window.ThriveComments=window.ThriveComments||{},ThriveComments.objects=ThriveComments.objects||{},Backbone.emulateHTTP=!0,function(e){ThriveComments.objects.TCRouter=Backbone.Router.extend({view:null,routes:{"":"comments",comments:"comments","comments/:id":"comments","comments-:id":"comments","*n":"comments"},params:{},initialize:function(t){e.extend(!0,this,t),window.TVE_Dash&&!TVE_Dash.ajax_sent&&TVE_Dash.add_load_item("tcm_dash_data",ThriveComments.const.ajax_dash,this.dashResponse),this.facebook_init()},dashResponse:function(e){ThriveComments.secret_spam=e.secret,ThriveComments.has_plugin_cache&&(ThriveComments.nonce=e.nonce,Backbone.history.start({hashchange:!0}),Backbone.history.fragment||ThriveComments.router.navigate("",{trigger:!0}))},route:function(e,t,n){var i=this;return n||(n=this[t]),Backbone.Router.prototype.route.call(this,e,t,(function(){n.apply(i,arguments)}))},comments:function(t){var n,i,o;t=e.isNumeric(t)?t:null,ThriveComments.objects.Comments||(ThriveComments.objects.Comments=new ThriveComments.collections.Comments),i=this.get_me_a_view("LazyLoad",{collection:ThriveComments.objects.Comments,el:this.$el.find(".tcm-lazy-comments"),type:ThriveComments.settings.is_dynamic?"dynamic":"static"}),o=this.get_me_a_view("Comments",{collection:ThriveComments.objects.Comments,el:this.$el.find(".tcm-comments-list"),viewLazy:i}),i.viewList=o,this.get_me_a_view("SortComments",{el:this.$el.find(".tcm-comments-filter"),viewList:o}),o.close(),o.startLazy(t),(n=this.get_me_a_view("CreateComment",{el:this.$el.find(".tcm-comments-create"),viewList:o})).render({mainInput:1,id:0,level:0,photo_src:ThriveComments.current_user.photo_url,previousUser:ThriveComments.util.previousUser(),position:"top",close_comments:ThriveComments.close_comments}),this.get_me_a_view("LiveUpdate",{commentsView:o,id:t,viewCreate:n,collection:ThriveComments.objects.Comments})},get_me_a_view:function(e,t){var n="view"+e;return this[n]||(this[n]=new ThriveComments.views[e](t)),this[n]},facebook_init:function(){var e,t,n,i,o;"undefined"==typeof FB&&1===ThriveComments.settings.tcm_api_status.facebook&&1===ThriveComments.settings.tcm_api_status.facebook_api&&ThriveComments.settings.tcm_enable_social_signin&&(window.fbAsyncInit=function(){FB.init({appId:ThriveComments.tcm_social_apis.facebook.app_id,autoLogAppEvents:!0,status:!0,xfbml:!0,version:"v2.9"})},t="script",n="facebook-jssdk",o=(e=document).getElementsByTagName(t)[0],e.getElementById(n)||((i=e.createElement(t)).id=n,i.src="//connect.facebook.net/en_US/sdk.js",o.parentNode.insertBefore(i,o)))}}),e((function(){0!==e("#thrive-comments").length&&(ThriveComments.router=new ThriveComments.objects.TCRouter({$el:e("#thrive-comments")}),ThriveComments.has_plugin_cache||(Backbone.history.start({hashchange:!0}),Backbone.history.fragment||ThriveComments.router.navigate("",{trigger:!0})))}))}(jQuery)})();; 339window.TL_Front=window.TL_Front||{},window.ThriveGlobal=window.ThriveGlobal||{$j:jQuery.noConflict()};const videoIframeSelector=".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe",videoSourceSelector=".thrv_responsive_video video source";let modulesFinishedLoading=!1;const VIEWPORT_BASED_FORM_PREFIXES=["shortcode_","post_footer","in_content","php_insert","widget"],VIEWPORT_IMPRESSION_RATIO=.5,VIEWPORT_UNMEASURED_THRESHOLDS=[0,.01,.05,.1,.15,.2,.25,.3,.35,.4,.45,.5];function matchTrackToken(e){for(var t,o=[/tve-leads-track-(shortcode_\d+)(\s|$)/,/tve-leads-track-(\S+?)-\d+(\s|$)/],r=0;r<o.length;r++)if(t=e.match(o[r]))return t[1];return""}function tlViewportSeenHeight(e){var t=window.innerHeight||document.documentElement.clientHeight||0,o=e.offsetHeight||e.getBoundingClientRect().height||0;return t&&o?.5*Math.min(o,t):0}function tlViewportThreshold(e){var t=e.offsetHeight||e.getBoundingClientRect().height||0,o=tlViewportSeenHeight(e);return t&&o?Math.min(.5,o/t):VIEWPORT_UNMEASURED_THRESHOLDS}TL_Front.dismissed_forms={},TL_Front.revealed_forms={},TL_Front.PASSIVE_TRIGGER_SOURCES=["page_load","time","scroll_percent","scroll_element","page_bottom","exit_intent","viewport"],TL_Front.record_dismissal=function(e){if(e&&e.length){var t=(e.attr("class")||"").match(/tve-leads-track-\S+/);t||(t=(e.find('[class*="tve-leads-track-"]').first().attr("class")||"").match(/tve-leads-track-\S+/)),t&&(TL_Front.dismissed_forms[t[0]]=!0)}},TL_Front.add_page_css=function(e){ThriveGlobal.$j.each(e,function(e,t){if(e+="-css",-1!==(t=t.replace(/^http(s)?:\/\//,"//")).indexOf("thrive_flat")){var o=document.createElement("div");if(o.classList.add("tve-cb"),document.body.append(o),"both"===getComputedStyle(o).clear)return void o.remove();o.remove()}ThriveGlobal.$j("#"+e).length||ThriveGlobal.$j('link[href="http:'+t+'"]').length||ThriveGlobal.$j('link[href="https:'+t+'"]').length||ThriveGlobal.$j('<link rel="stylesheet" id="'+e+'" type="text/css" href="'+t+'"/>').prependTo("head")})},TL_Front.lightspeed_assets=function(e){var t=function(){return ThriveGlobal.$j('link[href*="thrive_flat.css"]').length>0},o=[];if(e.css){if(e.css.files)for(var r in e.css.files){var n="flat"===r;(!t()&&n||!n)&&ThriveGlobal.$j('<link rel="stylesheet" href="'+e.css.files[r]+'"/>').prependTo("head")}e.css.inline&&e.css.inline.length&&e.css.inline.forEach(function(e){t()||ThriveGlobal.$j(e).prependTo("head")})}if(e.js)for(var i in e.js)TCB_Front&&!TCB_Front.isModuleLoaded(i)&&o.push(i);!function t(){if(o.length){var r=o.shift();TL_Front.add_head_script(e.js[r],"tl-lightspeed-"+r,t)}else modulesFinishedLoading=!0}()},TL_Front.conditional_display=function(e){void 0!==e&&e.lazy_load_conditional_preview&&tcb_condition_sets&&e.lazy_load_conditional_preview.forEac
339h(function(e){-1===tcb_condition_sets.findIndex(function(t){return t.key===e.key})&&tcb_condition_sets.push(e)})},TL_Front.$document=ThriveGlobal.$j(document),TL_Front.extendConst=function(e){TL_Const.current_screen&&delete e.current_screen,ThriveGlobal.$j.extend(!0,TL_Const,e)},TL_Front.document_write=function(e){ThriveGlobal.$j("body").append(e)},TL_Front.add_head_script=function(e,t,o){var r=document.createElement("script"),n=ThriveGlobal.$j("head")[0];r.async=!0,"function"==typeof o&&(r.onload=r.onreadystatechange=o),void 0!==t&&(r.id=t),r.src=e,n.insertBefore(r,n.firstChild)},TL_Front.add_page_js=function(e,t){"function"!=typeof t&&(t=function(){});var o=0;ThriveGlobal.$j.each(e,function(e,t){if("tve_frontend"===e&&"undefined"!=typeof TCB_Front)return!0;if(e+="-js",t&&!ThriveGlobal.$j("#"+e).length&&!ThriveGlobal.$j('script[src="'+t+'"]').length){if(o++,-1!==t.indexOf("connect.facebook.net"))return TL_Front.add_head_script(t,e,function(){o--}),!0;ThriveGlobal.$j.getScript(t,function(){o--})}}),function e(){0!==o?setTimeout(e,50):t()}()},TL_Front.send_impression=function(e,t){if(e){t=t||{};var o={security:TL_Const.security,action:TL_Const.action_impression,tl_data:e,current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,function(e,t){o[e]=t}),t.useBatching&&window.TVE_Dash&&!TVE_Dash.ajax_sent?TVE_Dash.add_load_item("tl_impression",o):ThriveGlobal.$j.post(TL_Const.ajax_url,o)}},TL_Front.isViewportBasedForm=function(e){return VIEWPORT_BASED_FORM_PREFIXES.some(function(t){return 0===e.indexOf(t)})},TL_Front.setupViewportImpressions=function(e){if(e&&0!==Object.keys(e).length){TL_Front.viewport_impressions=TL_Front.viewport_impressions||{};var t={};Object.keys(e).forEach(function(o){TL_Front.isViewportBasedForm(o)?TL_Front.viewport_impressions[o]=e[o]:t[o]=e[o]}),Object.keys(t).length>0&&TL_Front.send_impression(t,{useBatching:!0})}},TL_Front.setupTriggerImpressions=function(e){e&&0!==Object.keys(e).length&&(TL_Front.trigger_impressions=TL_Front.trigger_impressions||{},Object.keys(e).forEach(function(t){TL_Front.trigger_impressions[t]=e[t],TL_Front.revealed_forms[t]&&TL_Front.trackTriggerImpression(t)}))},TL_Front.trackTriggerImpression=function(e){if(e&&TL_Front.trigger_impressions&&TL_Front.trigger_impressions[e]&&!TL_Front.trigger_impressions[e]._tracked){TL_Front.trigger_impressions[e]._tracked=!0;var t={},o=ThriveGlobal.$j.extend({},TL_Front.trigger_impressions[e]);delete o._tracked,delete o.trigger_deferred,t[e]=o,TL_Front.send_impression(t)}},TL_Front.maybe_track_trigger_impression=function(e,t){if(e&&(!e.form_id||-1===e.form_id.indexOf("2step-"))){var o=[];e.form_id&&o.push(e.form_id.replace(/^tve-leads-track-/,"")),o.push(e.form_type||TL_Front.resolveRevealedFormType(t||e.$target)),o.forEach(function(e){e&&(TL_Front.revealed_forms[e]=!0,TL_Front.trackTriggerImpression(e))})}},TL_Front.resolveRevealedFormType=function(e){if(!e||!e.length)return"";var t=matchTrackToken(e.attr("class")||"");return t||matchTrackToken(e.closest('[class*="tve-leads-track-"]').attr("class")||"")},TL_Front.do_impression=function(){if(TL_Front.impressions_data){var e={},t={},o={};Object.keys(TL_Front.impressions_data).forEach(function(r){TL_Front.impressions_data[r].trigger_deferred?o[r]=TL_Front.impressions_data[r]:TL_Front.isViewportBasedForm(r)?t[r]=TL_Front.impressions_data[r]:e[r]=TL_Front.impressions_data[r]}),Object.keys(t).length>0&&(TL_Front.setupViewportImpressions(t),TL_Front.initViewportObservers()),Object.keys(o).length>0&&TL_Front.setupTriggerImpressions(o),Object.keys(e).length>0&&TL_Front.send_impression(e,{useBatching:!0})}},TL_Front.observeViewportElement=function(e,t){if(!TL_Front.viewportObservedElements.has(e)){TL_Front.viewportObservedElements.add(e);var o=new IntersectionObserver(function(e){e.forEach(function(e){var r=tlViewportSeenHeight(e.target);!e.isIntersecting||!r||e.intersectionRect.height+1<r||(TL_Front.trackViewportImpression(t),o.unobserve(e.target))})},{threshold:tlViewportThreshold(e)});o.observe(e)}},TL_Front.initViewportObservers=function(){TL_Front.viewport_impressions&&0!==Object.keys(TL_Front.viewport_impressions).length&&("IntersectionObserver"in window?(TL_Front.viewportObservedElements=TL_Front.viewportObservedElements||new WeakSet,Object.keys(TL_Front.viewport_impressions).forEac
339h(function(e){TL_Front.viewport_impressions[e]._tracked||ThriveGlobal.$j('.tve-leads-conversion-object[data-tl-type="'+e+'"]').each(function(){TL_Front.observeViewportElement(this,e)})})):Object.keys(TL_Front.viewport_impressions).forEach(function(e){TL_Front.trackViewportImpression(e)}))},TL_Front.refreshViewportObservers=function(){TL_Front.viewport_impressions&&0!==Object.keys(TL_Front.viewport_impressions).length&&(window.requestAnimationFrame?requestAnimationFrame(function(){TL_Front.initViewportObservers()}):TL_Front.initViewportObservers())},TL_Front.trackViewportImpression=function(e){if(e&&TL_Front.viewport_impressions&&TL_Front.viewport_impressions[e]&&!TL_Front.viewport_impressions[e]._tracked){TL_Front.viewport_impressions[e]._tracked=!0;var t={},o=ThriveGlobal.$j.extend({},TL_Front.viewport_impressions[e]);delete o._tracked,t[e]=o,TL_Front.send_impression(t)}},TL_Front.do_two_step_impression=function(e){if(TL_Const&&TL_Const.forms&&TL_Const.forms[e]){var t=TL_Const.forms[e],o={};o[e]={group_id:t.main_group_id,form_type_id:t.form_type_id,variation_key:t._key,active_test_id:t.active_test_id||null},TL_Front.send_impression(o)}},TL_Front.maybe_track_two_step_impression=function(e){if(e&&-1!==e.indexOf("2step-")&&TL_Const&&TL_Const.forms){var t=e.replace("tve-leads-track-2step-",""),o=Object.keys(TL_Const.forms).find(function(e){return 0===e.indexOf("two_step_")&&TL_Const.forms[e]._key===t});o&&TL_Front.do_two_step_impression(o)}},ThriveGlobal.$j(function(){if("undefined"!=typeof TL_Const){if(ThriveGlobal.$j(".tve-leads-screen-filler iframe, .tve-leads-ribbon iframe").not(".thrv_social_default iframe").not(".tcb-dr-done").each(function(){var e=ThriveGlobal.$j(this).addClass("tcb-dr-done");e.attr("src")&&e.attr("data-src",e.attr("src")),e.attr("src","")}),"undefined"!=typeof TCB_Front&&ThriveGlobal.$j(TCB_Front).on("content_loaded.thrive",function(e,t){t.find(".tve-tl-anim").each(function(){var e=ThriveGlobal.$j(this);ThriveGlobal.$j(TL_Front).trigger("showform.thriveleads",{$target:e})})}),ThriveGlobal.$j(window).on("tcb_after_dom_ready",function(){if(!tve_frontend_options.is_editor_page){var e=TCB_Front.queryString.get("post_type");e&&"tve_lead_2s_lightbox"===e&&setTimeout(function(){TCB_Front.handleIframes(ThriveGlobal.$j(".tve_p_lb_content"))},100)}}),ThriveGlobal.$j(TL_Front).on("showform.thriveleads",function(e,t){if(!(t.source&&t.form_id&&-1!==TL_Front.PASSIVE_TRIGGER_SOURCES.indexOf(t.source)&&TL_Front.dismissed_forms[t.form_id])){var o,r=t.$target?t.$target:ThriveGlobal.$j("."+t.form_id);r.length&&(t.TargetEvent&&"exit"===t.TargetEvent.tve_trigger&&r.data("shown-on-exit")||(t.first&&(r=r.first()),r.attr("data-s-state")&&(r=r.closest(".tl-states-root").find('[data-state="'+r.attr("data-s-state")+'"] .tl-lb-target')),t&&t.$parentStateEl&&r.closest(".tl-style").first().data("parentStateEl",t.$parentStateEl),o=r.hasClass("tve-tl-anim")?r:r.find(".tve-tl-anim"),r.css("display",""),setTimeout(function(){o.addClass("tve-leads-triggered"),TL_Front.handle_typefocus(o,"start"),ThriveGlobal.$j(".tve_post_grid_masonry").length&&TCB_Front.postGridLayout()},0),TL_Front.maybe_track_two_step_impression(t.form_id),TL_Front.maybe_track_trigger_impression(t,r),"function"==typeof TL_Front["open_"+t.form_type]?TL_Front["open_"+t.form_type](r,t.TargetEvent):r.show(),TCB_Front.resizePageSection(),r.on("switchstate",function(e,t){t.offset().top-ThriveGlobal.$j(window).scrollTop()+t.outerHeight()<0&&ThriveGlobal.$j("html, body").animate({scrollTop:t.offset().top+"px"},50),TCB_Front.resizePageSection()}),setTimeout(function(){r.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src")&&e.attr("src",e.attr("data-src"))})},200)))}}),ThriveGlobal.$j("body").on("click",".tve-ribbon-close",function(){var e=ThriveGlobal.$j(this).closest(".tve-leads-ribbon"),t=e.data("position");TL_Front.record_dismissal(e),e.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")}),e.removeClass("tve-leads-triggered"),"top"===t?ThriveGlobal.$j("body").animate({marginTop:0},200,function(){document.body.style.removeProperty("margin-top"),TCB_Front&&TCB_Front.$
339window&&TCB_Front.$window.trigger("scroll")}):"bottom"===t&&ThriveGlobal.$j("body").animate({marginBottom:"0px"},200,function(){document.body.style.removeProperty("margin-bottom")}),TL_Front.handle_typefocus(e,"pause"),setTimeout(function(){e.css(t,"")},400),ThriveGlobal.$j("#tve-lg-error-container").hide()}),ThriveGlobal.$j(window).on("conditional_display_loaded",()=>{const e=Object.keys(TL_Front.contentHtml||{});e.length&&(e.forEach(e=>{const t=ThriveGlobal.$j(`.tl-placeholder-f-type-${e}`);if(t.length){const o=ThriveGlobal.$j(TL_Front.contentHtml[e]);t.replaceWith(o),setTimeout(()=>{ThriveGlobal.$j(TL_Front).trigger("showform.thriveleads",{$target:o})})}}),TL_Front.refreshViewportObservers())}),ThriveGlobal.$j(TCB_Front).on("tl-ajax-loaded",function(){TL_Front.refreshViewportObservers()}),TL_Const.ajax_load||TL_Front.do_impression(),TL_Front.ajax_load_callback=function(t,r){if(r&&TL_Front.conditional_display(r),t&&t.res&&t.js&&t.html){if(t.trigger_impressions&&TL_Front.setupTriggerImpressions(t.trigger_impressions),TL_Front.lightspeed_assets(t.lightspeed||{}),TL_Front.add_page_css(t.res.css),TL_Front.add_page_css(t.res.fonts),t.html){t.html.widget||ThriveGlobal.$j(".tl-widget-container").remove(),ThriveGlobal.$j.each(t.html,function(e,o){if(!o)return!0;if(TL_Front.contentHtml=TL_Front.contentHtml||{},TL_Front.contentHtml[e]=o,"in_content"===e){let e=parseInt(t.in_content_pos),r="after",n=ThriveGlobal.$j(".tve-tl-cnt-wrap");n.length||(n=ThriveGlobal.$j("#tve_editor.tar-main-content")),n.length||(n=ThriveGlobal.$j("#post_content"));const i=n.find("p").filter(":visible").not(".thrv_table p, form p, .tcb-post-list p, .thrv_text_element div p, p.wp-caption-text, .thrv_responsive_video p, .thrv_header p");0===i.length&&0===e?n.prepend(o):(0===e&&(e=1,r="before"),i.eq(e-1)[r](o))}else{const n=ThriveGlobal.$j(".tl-placeholder-f-type-"+e);if(t.js[e]&&t.js[e].content_locking){const o=n.parents(".tve_content_lock").first();if(t.js[e].has_conversion)return n.remove(),o.removeClass("tve_lock_hide"),!0;"tve_lock_blur"===t.js[e].lock&&o.removeClass("tve_lock_hide").addClass(t.js[e].lock)}"widget"===e?n.hasClass("tl-preload-form")?n.first().replaceWith(ThriveGlobal.$j(o).addClass("tve-leads-triggered")):(n.replaceWith(o),ThriveGlobal.$j(".tl-widget-container").children().unwrap()):n.replaceWith(o),0===e.indexOf("two_step")&&(r=e,ThriveGlobal.$j(`.tl-2step-trigger-${r.replace("two_step_","")}`).show())}var r}),i=-1,"Microsoft Internet Explorer"==navigator.appName?(n=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(n)&&(i=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(n=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(n)&&(i=parseFloat(RegExp.$1))),i>0&&setTimeout(function(){var e="";ThriveGlobal.$j("body style.tve_custom_style").each(function(){e=this.innerText,this.innerText=e})})}var n,i;if(t.body_end){var s=ThriveGlobal.$j(t.body_end);s.find(".tve_wistia_popover").each(function(){ThriveGlobal.$j("#"+this.id).length&&this.parentNode.removeChild(this)}),s.filter("link[href]").each(function(){ThriveGlobal.$j('link[href="'+this.getAttribute("href")+'"]').length&&(s=s.not(this))}),s.filter("script[src]").each(function(){ThriveGlobal.$j('script[src="'+this.getAttribute("src")+'"]').length&&(s=s.not(this))});try{ThriveGlobal.$j("body").append(s)}catch(e){}}void 0!==t.js.TVO_Form&&(TVO_Form=t.js.TVO_Form),TL_Front.add_page_js(t.res.js,function(){e=!0}),setTimeout(function t(){e&&modulesFinishedLoading?(TCB_Front.event_triggers(ThriveGlobal.$j("body")),TCB_Front.onDOMReady(),o(),ThriveGlobal.$j(TCB_Front).trigger("tl-ajax-loaded"),TCB_Front.add_scroll_callback(function(){var e=ThriveGlobal.$j('.tve-leads-ribbon[data-position="top"]'),t=e.find(".tve_shortcode_editor"),o=e.is(":visible")&&Number(e.css("opacity"))?Math.max(e.outerHeight(),t.outerHeight()):0,r=ThriveGlobal.$j('[data-elementor-type="header"] .elementor-top-section.elementor-sticky.elementor-sticky--active');r.length||(r=ThriveGlobal.$j(".she-header")),r.length&&r[0].style.setProperty("margin-top",o+"px","important")})):setTimeout(t,50)},50),TL_Const.forms=t.js,t.deferred_impressions&&TL_Front.setupViewportImpressions(t.deferred_impressions),setTimeout(()=>{ThriveGlobal.$j(".tl-preload-form").remove()},1e3)}},TL_Const.ajax_load){var e=!1,t=(ThriveGlobal.$j(".tve-leads-two-step-trigger").hide(),{tcb_js:"undefined"!=typeof TCB_Front?1:0,main_group_id:TL_Const.main_group_id,shortcode_ids:TL_Const.shortcode_ids,two_step_ids:TL_Const.two_step_ids,action:"tve_leads_ajax_load_forms",security:TL_Const.security,display_options:TL_Const.display_options,current_screen:TL_Const.current_screen});return ThriveGlobal.$j.each(TL_Const.custom_post_data,function(e,o){t[e]=o}),void(window.TVE_Dash&&!TVE_Dash.ajax_sent?ThriveGlobal.$j(document).on("tve-dash.load",function(e){TVE_Dash.add_load_item("tl_lazy_load",t,TL_Front.ajax_load_callback)}):ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,type:"post",dataType:"json",data:t,xhrFields:{withCredentials:!0}}).done(TL_Front.ajax_load_callback))}o()}function o(){if(!TL_Const.forms)return!1;function e(e){if(e.find('[data-validation="email"]').length)return e.find('[data-validation="email"]').val();var t="";return e.find("input").each(function(){if(this.name&&this.name.match(/email/i))return t=this.value,!1}),t}ThriveGlobal.$j("body").on("submit",".tve-leads-conversion-object form",function(t){var o=ThriveGlobal.$j(this),r=o.parents(".tve-leads-conversion-object").first().attr("data-tl-type"),n={},i=o.closest(".thrv_lead_generation");if(i.length&&"0"===i.attr("data-tl-track-conversion"))return!0;
339if(o.data("tve-force-submit")||o.closest(".thrv_custom_html_shortcode").length||o.data("tl-do-submit")||!r||!TL_Const.forms[r]||function(e){var t=e.attr("id"),o=window.fluentFormVars,r=!1;return o&&o.forms&&(r=o.forms.some(function(e){return e.form_id_selector===t})),r}(o)||function(e){var t=e.attr("id");return t&&t.includes("happyforms")&&window.HappyForms}(o))return!0;o.tve_form_loading(),o.find("input").each(function(){var e=ThriveGlobal.$j(this),t=e.attr("name");void 0!==t&&-1===TL_Const.ignored_fields.indexOf(t)&&(n[e.attr("name")]=e.val())});var s={security:TL_Const.security,action:TL_Const.action_conversion,type:r,tl_data:TL_Const.forms[r],custom_fields:n,email:e(o),current_screen:TL_Const.current_screen};return ThriveGlobal.$j.each(TL_Const.custom_post_data,function(e,t){s[e]=t}),ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,data:s,type:"post",xhrFields:{withCredentials:!0}}).always(function(){void 0===o.attr("action")?location.reload():o.data("tve-force-submit",!0).submit()}),!1}),ThriveGlobal.$j("body").on("click",".tve-leads-conversion-object a",function(){var e=ThriveGlobal.$j(this).closest(".thrv-button, .thrv_button_shortcode");if(e.length&&"1"===e.attr("data-tl-track-conversion")){var t=e.closest(".tve-leads-conversion-object").first().attr("data-tl-type");if(t&&TL_Const.forms&&TL_Const.forms[t]){var o={security:TL_Const.security,action:TL_Const.action_button_conversion,type:t,tl_data:TL_Const.forms[t],current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data||{},function(e,t){o[e]=t});var r=ThriveGlobal.$j.param(o);if(!(navigator.sendBeacon&&navigator.sendBeacon(TL_Const.ajax_url,new Blob([r],{type:"application/x-www-form-urlencoded"}))))try{var n=new XMLHttpRequest;n.open("POST",TL_Const.ajax_url,!1),n.withCredentials=!0,n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.send(r)}catch(e){}}}}),ThriveGlobal.$j("body").on("form_conversion.tcb",".tve-leads-conversion-object form",function(e){var t=ThriveGlobal.$j(this),o=t.parents(".tve-leads-conversion-object").first().attr("data-tl-type"),r=t.closest(".thrv_lead_generation");if(r.length&&"0"===r.attr("data-tl-track-conversion"))return!0;if(!o||!TL_Const.hasOwnProperty("forms")||!TL_Const.forms[o])return!0;var n={type:o,tl_data:TL_Const.forms[o],current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,function(e,t){n[e]=t}),e.post_data=e.post_data||{},e.post_data.thrive_leads=n}).on("lead_conversion_success.tcb",".tve_lead_lock_shortcode form, .tve_post_lightbox form",function(e){var t=ThriveGlobal.$j(this),o=t.parents(".tve_content_lock");if(t.closest(".tve_post_lightbox").length){var r=t.closest(".tve-leads-conversion-object").attr("data-tl-type");TL_Front.parent_state&&TL_Front.parent_state.parent().hasClass("tve-leads-track-"+r)&&(o=TL_Front.parent_state.closest(".tve_content_lock"))}o.length&&o.hasClass("tve_content_lock")&&(o.removeClass("tve_lead_lock").find(".tve_lead_lock_shortcode").remove(),o.find(".tve_lead_locked_overlay").remove(),e.content_unlocked=!0)}).on("leads_states.tcb",".tve-leads-conversion-object form",function(e,t){var o=ThriveGlobal.$j(this);switch(o.find("#_form_type").val()){case"ribbon":var r=o.parents(".tve-leads-ribbon");o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_ribbon(r);break;case"lightbox":case"tve_lead_2s_lightbox":o.parents(".tve_p_lb_control").empty().html(t);break;case"widget":case"in-content":case"post-footer":case"php-insert":o.parents(".tve_shortcode_editor").empty().html(t);break;case"slide-in":var n=o.parents(".tve-leads-slide-in");o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_slide_in(n);break;case"screen-filler-lightbox":var i=o.parents(".tve-leads-screen-filler");o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_screen_filler(i);break;case"scroll-mat":r=o.parents(".tve-leads-greedy_ribbon");o.parents(".tve_shortcode_editor").empty().html(t),TL_Front.open_ribbon(r);break;case"tve_lead_shortcode":o.parents(".tve-leads-shortcode").empty().html(t);break;default:e.change_states=!1}e.change_states=!0}).on("leads_messages.tcb",".tve-leads-conversion-object form",function(e){var t=ThriveGlobal.$j(this);switch(t.find("#_form_type").val()){case"tve_lead_shortcode":e.lightbox_state&&t.parents(".tve-leads-shortcode").hide();break;case"ribbon":t.parents(".thrv-ribbon").find(".tve-ribbon-close").click();break;case"lightbox":case"tve_lead_2s_lightbox":t.parents(".tve_p_lb_content").find(".tve_p_lb_close").click(),t.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"slide-in":t.parents(".thrv-leads-slide-in").find(".tve-leads-close").click();break;case"screen-filler-lightbox":t.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"scroll-mat":t.parents(".thrv-greedy-ribbon").find(".tve_et_click").click();break;
339default:t.find('input:not(:hidden):not([type="checkbox"]):not([type="radio"])').val("")}t.parents(".tve-leads-conversion-object").find(".tve_ea_thrive_leads_form_close").click(),TL_Front.parent_state&&TL_Front.close_form(TL_Front.parent_state)}),TL_Front.$document.on("switchstate",function(e,t){t.find("script.tcb-lazyload-template").each(function(){ThriveGlobal.$j(this).replaceWith(this.innerHTML)})})}}),TL_Front.switch_lightbox_state=function(e,t){return e.find(".tve_p_lb_overlay").css("opacity","0.8"),e.find(".tve_p_lb_content").css("top",t.find(".tve_p_lb_content").css("top")).addClass("tve-leads-triggered"),window.tve_lb_switch_state=!0,TL_Front.open_lightbox(e.find(".tl-lb-target"))},TL_Front.close_lightbox=function(){var e=ThriveGlobal.$j("body"),t=ThriveGlobal.$j("html"),o="tve-o-hidden tve-l-open tve-hide-overflow",r=arguments[0]||e.data("tl-open-lightbox"),n=!1!==arguments[1];if(r&&r.length){if(n&&!window.tve_lb_switch_state){var i=r.closest(".tl-states-root");i.length||(i=r.find(".tl-states-root").first()),TL_Front.record_dismissal(i.length?i.find(".tl-lb-target").first():r)}r.find(".tve-tl-anim").removeClass("tve-leads-triggered"),window.tve_lb_switch_state||(1===ThriveGlobal.$j(".tve_lb_open").length&&(e.removeClass(o).css("padding-right",""),t.removeClass(o),r.data("doc-scroll-top")?(document.documentElement.scrollTop=r.data("doc-scroll-top"),r.data("doc-scroll-top","")):r.data("bdy-scroll-top")&&(document.body.scrollTop=r.data("bdy-scroll-top"),r.data("bdy-scroll-top",""))),t.removeClass(t.data("tl-anim-class"))),window.tve_lb_switch_state=!1,setTimeout(function(){r.addClass("tve_lb_closing"),r.removeClass("tve_lb_open tve_lb_opening tve_lb_closing tve_p_lb_background").css("display","none").find("tve_p_lb_content").trigger("tve.lightbox-close")},200),r.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);"SOURCE"===this.tagName&&e.parent("video").trigger("pause"),e.attr("data-src",e.attr("src")),e.attr("src","")}),TL_Front.handle_typefocus(r,"pause"),ThriveGlobal.$j("#tve-lg-error-container").hide()}},TL_Front.open_lightbox=function(e,t){if(!e.hasClass("tve_lb_open")&&!e.hasClass("tve_lb_opening")){var o=window.tve_lb_switch_state;ThriveGlobal.$j.fn.thrive_iphone_placeholder&&e.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.close_lightbox(ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open"),!1),e.css({visibility:"",position:"",left:"",display:""}).parents(".tl-style").css({visibility:"",position:"",left:"",display:""});var r,n,i,s,a,l=ThriveGlobal.$j("body"),c=ThriveGlobal.$j("html"),d="tve-o-hidden tve-l-open tve-hide-overflow",_=(r=ThriveGlobal.$j,n={border:"none",height:"200px",margin:"0",padding:"0",width:"200px"},i=r("<div>").css(r.extend({},n)),s=r("<div>").css(r.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},n)).append(i).appendTo("body").scrollLeft(1e3).scrollTop(1e3),a={height:s.offset().top-i.offset().top||0,width:s.offset().left-i.offset().left||0},s.remove(),a).width,v=parseInt(l.css("paddingRight")),p=ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open").length;isNaN(v)&&(v=0),e.find(".tve_p_lb_close").off().on("click",function(){return TL_Front.close_lightbox(),!1}),l.off("keyup.tve_lb_close").on("keyup.tve_lb_close",function(e){if(27==e.which)return TL_Front.close_lightbox(),!1}),e.find(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",function(){return TL_Front.close_lightbox(),!1}),l.data("tl-open-lightbox",e),e.addClass("tve_p_lb_background"),e.data("doc-scroll-top",document.documentElement.scrollTop),e.data("bdy-scroll-top",document.body.scrollTop),l.addClass(d),c.addClass(d);var h=window.innerHeight<ThriveGlobal.$j(document).height();!o&&h&&l.css("padding-right",v+_+"px"),e.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=jQuery(this);e.attr("data-src")&&e.attr("src",e.attr("data-src"))}),e.find(".thrv_responsive_video").each(function(){var e=ThriveGlobal.$j(this);TCB_Front.makeAutoplayVideo(e)});var f="",T=e.parents(".tl-states-root").attr("class")||"";ThriveGlobal.$j.each(T.split(" "),function(e,t){if(0===t.indexOf("tl-anim"))return f=t,!1}),c.addClass(f).data("tl-anim-class",f),setTimeout(function(){function t(){var t=e.find(".tve_p_lb_content").outerHeight(!0)+2*parseInt(e.css("padding-top")),o=e.find(".tve_p_lb_content"),r=window.innerHeight,n=(r-t)/2;e.find(".tve_p_lb_overlay").css({height:t+80+"px","min-height":r+"px"}),p?o.animate({top:n<40?40:n},100):o.css("top",(n<40?40:n)+"px"),t+40>r&&e.addClass("tve-scroll")}setTimeout(function(){e.addClass("tve_lb_opening")},0),e.find("iframe").not(".thrv_social_default iframe").each(function(){var e=ThriveGlobal.$j(this);!e.data("tve_ifr_loaded")&&e.attr("data-src")&&e.data("tve_ifr_loaded",1).attr("src",e.attr("data-src"))}),TCB_Front.resizePageSection(),t(),ThriveGlobal.$j(window).on("resize",t)},20),setTimeout(function(){e.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open");e.find("form").each(function(){ThriveGlobal.$j(this).find('input[required], textarea[required], select[required], input[data-required="true"], textarea[data-required="true"], select[data-required="true"]').each(function(){const e=ThriveGlobal.$j(this);"none"===e.css("display")&&e.show(),"hidden"===e.css("visibility")&&e.css("visibility","visible");e.parentsUntil(".tve_p_lb_content").filter(function(){return"none"===ThriveGlobal.$j(this).css("display")||"hidden"===ThriveGlobal.$j(this).css("visibility")}).show().css("visibility","visible");const t=e.attr("tabindex");t&&parseInt(t)<0&&e.removeAttr("tabindex")})}),ThriveGlobal.$j(window).trigger("scroll")},300),t&&t.preventDefault&&(t.preventDefault(),t.stopPropagation()),e.parents(".tl-states-root").off("switchstate").on("switchstate",function(e,t){var o=Array.prototype.slice.call(arguments,1
339);TL_Front.switch_lightbox_state.apply(TL_Front,o)}),t&&"exit"===t.tve_trigger&&e.data("shown-on-exit",!0),TCB_Front.$window.trigger("tl_after_lightbox_open",e),setTimeout(()=>{TCB_Front.$window.trigger("tve_after_content_toggle",[e])},500)}},TL_Front.open_two_step_lightbox=TL_Front.open_lightbox,TL_Front.open_ribbon=function(e){function t(){e.addClass("tve-leads-triggered");const t=e.find(".tve_shortcode_editor"),o=t.length?t.outerHeight():0,r=e.attr("data-position")||"top";switch(r){case"above":e.css("bottom","auto");case"top":e.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px");break;case"bottom":e.css("bottom","0px"),e.css("top","auto")}let n=0,i=Math.max(e.outerHeight(),o),s=setInterval(function(){n++;const t=Math.max(e.outerHeight(),o);t==i&&10!=n||clearInterval(s),"top"===r?(ThriveGlobal.$j("body").animate({"margin-top":t+"px"},200,function(){document.body.style.setProperty("margin-top",t+"px","important")}),TCB_Front&&TCB_Front.$window&&TCB_Front.$window.trigger("scroll")):"bottom"===r&&ThriveGlobal.$j("body").animate({"margin-bottom":t+"px"},200)},100);const a=ThriveGlobal.$j("body").find(".thrv_header.tve-scroll-sticky");if(a.length&&"top"===r){const e=parseFloat(TCB_Front.inlineCssVariable(a,"--tcb-header-extra-offset"))||0;TCB_Front.inlineCssVariable(a,"--tcb-header-extra-offset",e+i+"px")}e.off("switchstate").on("switchstate",function(e,t){const o=Array.prototype.slice.call(arguments,1);TL_Front.switch_ribbon_state.apply(TL_Front,o)})}TL_Const.forms.greedy_ribbon?(TL_Const.close_callbacks=TL_Const.close_callbacks||{},TL_Const.close_callbacks.greedy_ribbon=[t]):t()},TL_Front.switch_ribbon_state=function(e){var t=e.outerHeight(!0),o={};o["top"===e.parent().attr("data-position")?"margin-top":"margin-bottom"]=t+"px",e.find(".tve-tl-anim").removeClass(function(e,t){return(t.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")}).removeClass("tve-tl-anim"),ThriveGlobal.$j("body").animate(o,200)},TL_Front.open_greedy_ribbon=function(e){const t=ThriveGlobal.$j("body"),o=ThriveGlobal.$j(window),r=t.css("position");o.scrollTop(0),t.css("position","static"),t.addClass("tve-tl-gr-anim"),TCB_Front.$window.trigger("scroll"),e.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px");const n=e.outerHeight();t[0].style.setProperty("margin-top",n+"px","important");let i=1;setTimeout(function(){ThriveGlobal.$j('.tve-leads-ribbon[data-position="top"]').removeClass("tve-leads-triggered")},50),o.scroll(function(){const s=t.hasClass("tve-tl-gr-anim");if(i&&s){const s=o.scrollTop();if(s>n){(e.find(".tve_ea_thrive_wistia").length||e.find(".tve_with_wistia_popover"))&&ThriveGlobal.$j(".wistia_placebo_close_button").trigger("click"),t.removeClass("tve-tl-gr-anim"),e.addClass("tve-no-animation");const a=s-n;e.removeClass("tve-leads-triggered"),e.find(videoIframeSelector+", "+videoSourceSelector).each(function(){const e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")}),t.css("margin-top",""),t.css("position",r),o.scrollTop(a),e.removeClass("tve-no-animation"),i=0,TL_Front.record_dismissal(e),TL_Front.form_closed("greedy_ribbon"),TL_Const.forms.greedy_ribbon.allow_callbacks=!1}}}),e.off("switchstate").on("switchstate",function(e,t){})},TL_Front.open_screen_filler=function(e,t){var o="tve-so-hidden tve-sl-open tve-s-hide-overflow",r=ThriveGlobal.$j("html,body"),n=ThriveGlobal.$j("html");if(ThriveGlobal.$j.fn.thrive_iphone_placeholder&&e.find("input[placeholder]").thrive_iphone_placeholder(),e.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px").css("visibility",""),!0===e.hasClass("stl-anim-slip_from_top")){var i=ThriveGlobal.$j(window).scrollTop();e.css("top",i).css("visibility","")}e.find(".tve-screen-filler-close").on("click",function(){a(e)}),e.data("doc-scroll-top",document.documentElement.scrollTop),e.data("bdy-scroll-top",document.body.scrollTop),"none"!==e.find(".thrv-leads-screen-filler.thrv_wrapper ").css("display")&&r.addClass(o);var s="";function a(e){e.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")}),TL_Front.record_dismissal(e),e.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(e,"pause"),ThriveGlobal.$j(document).off("keyup.close-screenfiller"),0==ThriveGlobal.$j.find(".tve-leads-ribbon").length&&ThriveGlobal.$j("body").animate({"margin-top":"0px"},200),r.removeClass(o),n.removeClass(n.data("tl-s-anim-class")),setTimeout(function(){e.css("top","").hide(),"none"===e.css("display")&&(r.removeClass(o),e.removeClass("tve-leads-triggered"))},400),e.data("doc-scroll-top")?(document.documentElement.scrollTop=e.data("doc-scroll-top"),e.data("doc-scroll-top","")):e.data("bdy-scroll-top")&&(document.body.scrollTop=e.data("bdy-scroll-top"),e.data("bdy-scroll-top","")),ThriveGlobal.$j("#tve-lg-error-container").hide()}ThriveGlobal.$j.each(e.attr("class").split(" "),function(e,t){if(0===t.indexOf("stl-anim"))return s=t,!1}),n.addClass(s).data("tl-s-anim-class",s);var l=e.find("> .tl-style").hide(),c=e.find('> .tl-style[data-form-state="already_subscribed"]');c.length?c.show():l.first().show(),TL_Front.close_screen_filler=a,t&&t.preventDefault&&(t.preventDefault(),t.stopPropagation()),ThriveGlobal.$j(document).off("keyup.close-screenfiller").on("keyup.close-screenfiller",function(t){27==t.which&&a(e)}),e.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=jQuery(this);e.attr("data-src")&&e.attr("src",e.attr("data-src"))}),setTimeout(()=>{TCB_Front.resizePageSection()},500)},TL_Front.switch_slide_in_state=function(e){e.find(".tve-tl-anim").removeClass(function(e,t){return(t.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")}).removeClass("tve-tl-anim"),TL_Front.slide_in_position(e.find(".thrv-leads-slide-in"))},TL_Front.slide_in_position=function(e){var t=ThriveGlobal.$j(window),o=e.outerHeight();if(t.width()<=782||t.height()<o){e.parents(".tve-leads-slide-in").addClass("tve-lb");var r=t.height();setTimeout(function(){let t;t=e.parents(".tve-leads-slide-in").is('[class*="bot"]')?r-o:0,e.closest(".tve-leads-slide-in").data("doc-scroll-top",document.documentElement.scrollTop).data("bdy-scroll-top",document.body.scrollTop),e.parents(".tve-leads-conversion-object").first().css({height:o+80+"px","min-height":r+"px"}),e.css("top",(t<40?40:t)+"px"),o+40>r&&e.parents(".tve-leads-slide-in").css("overflow-y","scroll")},0)}},TL_Front.open_slide_in=function(e,t){var o="tve-o-hidden tve-l-open tve-hide-overflow",r=ThriveGlobal.$j("body"),n=ThriveGlobal.$j("html");function i(t){TL_Front.record_dismissal(t),t.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(t,"pause"),ThriveGlobal.$j(document).off("keyup.close-slidein"),ThriveGlobal.$j(".tve_lb_open").length||(r.removeClass(o),n.removeClass(o)),t.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")}),ThriveGlobal.$j("#tve-lg-error-container").hide(),e.data("doc-scroll-top")?(document.documentElement.scrollTop=e.data("doc-scroll-top"),e.data("doc-scroll-top","")):e.data("bdy-scroll-top")&&(document.body.scrollTop=e.data("bdy-scroll-top"),e.data("bdy-scroll-top",""))}ThriveGlobal.$j.fn.thrive_iphone_placeholder&&e.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.slide_in_position(e.find(".thrv-leads-slide-in").filter(":visible")),e.off().on("click",".tve-leads-close",function(){i(e)}),e.find(".tve_ea_thrive_leads_form_close").on("click",function(){i(e)}),e.on("switchstate",function(e,t){var o=Array.prototype.slice.call(arguments,1
339);TL_Front.switch_slide_in_state.apply(TL_Front,o)}),ThriveGlobal.$j(document).off("keyup.close-slidein").on("keyup.close-slidein",function(t){27==t.which&&i(e)}),t&&t.preventDefault&&(t.preventDefault(),t.stopPropagation())},TL_Front.close_form=function(e,t,o,r){var n=ThriveGlobal.$j(e).parents(".tve-leads-triggered"),i=n.attr("data-tl-type");if(void 0===i&&n.hasClass("tve-leads-widget"))i="widget";else if(void 0===i&&n.hasClass("tve-leads-post-footer"))i="post-footer";else if(void 0===i&&n.hasClass("tve-leads-slide-in"))i="slide-in";else if(void 0===i&&n.hasClass("tve-leads-in-content"))i="in-content";else if(void 0===i&&n.hasClass("tve-leads-shortcode"))i="shortcode";else if(void 0===i&&n.hasClass("tve-leads-greedy_ribbon"))i="greedy_ribbon";else{if(void 0===i&&n.hasClass("tve_p_lb_content"))return TL_Front.close_lightbox(),!1;if(void 0===i&&n.hasClass("tve-leads-screen-filler"))return TL_Front.close_screen_filler(n),!1}switch(TL_Front.record_dismissal(n),n.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(n,"pause"),i){case"ribbon":let e=n.find(".tve-ribbon-close");e.length||(e=jQuery('<span class="tve-ribbon-close" style="display: none"></span>').appendTo(n)),e.trigger("click");const t=ThriveGlobal.$j("body").find(".thrv_header.tve-scroll-sticky");if(t.length&&"top"===n.attr("data-position")){const e=parseFloat(TCB_Front.inlineCssVariable(t,"--tcb-header-extra-offset"))-n.outerHeight(!0)+"px";TCB_Front.inlineCssVariable(t,"--tcb-header-extra-offset",e)}break;case"slide-in":n.find(".tve_ea_thrive_leads_form_close").trigger("click"),n.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")});break;case"post-footer":case"in-content":case"shortcode":n.fadeOut(200,function(){TL_Front.form_closed(i)});break;case"widget":n.parent().slideUp(200);break;case"greedy_ribbon":var s=ThriveGlobal.$j("body"),a=ThriveGlobal.$j(window),l=s.css("margin-top");s[0].style.removeProperty("margin-top"),n.find(videoIframeSelector+", "+videoSourceSelector).each(function(){var e=ThriveGlobal.$j(this);e.attr("data-src",e.attr("src")),e.attr("src","")}),s.css("margin-top",l),a.scrollTop(0),s.animate({"margin-top":"0px"},300,"linear",function(){TL_Front.form_closed(i)}).removeClass("tve-tl-gr-anim")}},TL_Front.form_closed=function(e){TL_Const.close_callbacks&&TL_Const.close_callbacks[e]&&ThriveGlobal.$j.each(TL_Const.close_callbacks[e],function(e,t){ThriveGlobal.$j.isFunction(t)&&t()})},TL_Front.handle_typefocus=function(e,t){e.find(".tve_typefocus").each(function(){jQuery(this).attr("data-typefocus",t)})};; 340/* config */ 341 342const kofiWidgetOverlayConfig = { 343 'floating-chat.core.pageId': '', 344 'floating-chat.core.closer': '<svg height="0px" width="15px"><line x1="2" y1="8" x2="13" y2="18" style="stroke:#000; stroke-width:3" /><line x1="13" y1="8" x2="2" y2="18" style="stroke:#000; stroke-width:3" /></svg>', 345 'floating-chat.core.position.bottom-left': 'position: fixed; bottom: 50px; left: 10px; width: 160px; height: 65px;', 346 347 'floating-chat.cssId': '', 348 'floating-chat.notice.text': 'ko-fi.com/%HANDLE%', 349 'floating-chat.donatebutton.image': 'https://storage.ko-fi.com/cdn/logomarkLogo.png', 350 'floating-chat.donateButton.background-color': '#00b9fe', 351 'floating-chat.donateButton.text': 'Support me', 352 'floating-chat.donateButton.text-color': '#fff', 353 'floating-chat.stylesheets': '["https://fonts.googleapis.com/css?family=DM+Sans:400,600,700,800&display=swap"]', 354}; 355 356var kofiWidgetOverlayFloatingChatBuilder = kofiWidgetOverlayFloatingChatBuilder || function (config, _utils) { 357 358 const _configManager = _utils.getConfigManager(config); 359 const _myType = 'floating-chat'; 360 const _topContainerWrapClass = 'floatingchat-container-wrap'; 361 const _topMobiContainerWrapClass = 'floatingchat-container-wrap-mobi'; 362 363 var widgetPageLoadInitiatedStates = []; 364 365 var closeButtonActionBlocked = false; 366 367 function getButtonId() { 368 return `${_configManager.getValue(_myType, 'cssId')}-donate-button`; 369 }; 370 371 function getContainerFrameId() { 372 return 'kofi-wo-container' + _configManager.getValue(_myType, 'cssId'); 373 }; 374 375 function getMobiContainerFrameId() { 376 return 'kofi-wo-container-mobi' + _configManager.getValue(_myType, 'cssId'); 377 }; 378 379 function getButtonImageId() { 380 return `${_configManager.getValue(_myType, 'cssId')}-donate-button-image` 381 }; 382 383 function createButtonContainerIframe(iframeId, mainStyleSheetFile) { 384 var htmlBody = getHtml(); 385 386 var buttonBody = '<html style="color-scheme: auto;">' + 387 '<head>' +
388 `<link rel="preconnect" href="https://ko-fi.com/">` + 389 `<link rel="dns-prefetch" href="https://ko-fi.com/">` + 390 `<link rel="preconnect" href="https://storage.ko-fi.com/">` + 391 `<link rel="dns-prefetch" href="https://storage.ko-fi.com/">` + 392 `<link href="${mainStyleSheetFile}" rel="stylesheet" type="text/css" />` + 393 `</head>` + 394 `<body style="margin: 0; position: absolute; bottom: 0; background: transparent; font-weight:600 !important;">${htmlBody}</body>` + 395 '</html>'; 396 397 398 var iframeContainerElement = document.getElementById(iframeId).contentDocument; 399 var iframe = document.getElementById(iframeId); 400 401 var _timer = setInterval(function () { 402 403 //delay the display of the button, so that the stylesheets get time to load 404 //the stylesheet load event does not appear to work reliably 405 //on safari on iOS 406 var doc = iframe.contentDocument || iframe.contentWindow; 407 if (doc && doc.readyState == 'complete') { 408 clearInterval(_timer); 409 410 var parentWrapper = document.getElementsByClassName(_topContainerWrapClass)[0]; 411 var mobiParentWrapper = document.getElementsByClassName(_topMobiContainerWrapClass)[0]; 412 413 414 parentWrapper.style = 'z-index:10000;'; 415 mobiParentWrapper.style = 'z-index:10000;'; 416 417 iframe.style = 'color-scheme: auto;'; 418 } 419 }, 300); 420 421 iframeContainerElement.write(buttonBody); 422 iframeContainerElement.close(); 423 424 return iframeContainerElement; 425 }; 426 427 function attachDonateButton(iframeContainerElement, iframeId, selectors, heightLimits) { 428 429 const donateButton = iframeContainerElement.getElementById(`${getButtonId()}`); 430 donateButton.addEventListener('click', 431 function () { 432 if (donateButton.classList.contains("closed")) { 433 activateKofiIframe(iframeId, selectors, heightLimits); 434 } else if (!closeButtonActionBlocked) { 435 var popupId = _configManager.getValue(_myType, 'cssId') + `-${selectors.popupId}`; 436 var popup = document.getElementById(popupId); 437 closePopup(popup, donateButton); 438 } 439 }); 440 441 return donateButton; 442 }; 443 444 var write = function (parentElementId) { 445 446 var docHead = document.head; 447 if (!docHead) { 448 docHead = document.createElement('head'); 449 document.prepend(docHead); 450 } 451 452 var iframeId = getContainerFrameId(); 453 var mobiIframeId = getMobiContainerFrameId(); 454 455 456 var iframeHtml = `<div class="${_topContainerWrapClass}" style="height: 0px; transition: all 0.3s ease 0s; opacity:0;">` + 457 `<iframe allowtransparency="true" class="floatingchat-container" style="height: 0px; transition: all 0.6s ease 0s; opacity:0;" id="${iframeId}"></iframe>` + 458 '</div>' + 459 `<div class="${_topMobiContainerWrapClass}" style="height: 0px; transition: all 0.6s ease 0s; opacity:0;">` + 460 `<iframe allowtransparency="true" class="floatingchat-container-mobi" style="height: 0px; transition: all 0.6s ease 0s; opacity:0;" id="${mobiIframeId}"></iframe>` + 461 '</div>'; 462 463 var existingPlaceHolder = document.getElementById(parentElementId); 464 existingPlaceHolder.innerHTML = iframeHtml; 465 466 var iframeContainerElement = createButtonContainerIframe(iframeId, 'https://storage.ko-fi.com/cdn/scripts/floating-chat-main.css'); 467 var mobiIframeContainerElement = createButtonContainerIframe(mobiIframeId, 'https://storage.ko-fi.com/cdn/scripts/floating-chat-main.css'); 468 469 _utils.loadStyleSheet('https://storage.ko-fi.com/cdn/scripts/floating-chat-wrapper.css', document); 470 var styleSheetsValue = _configManager.getValue(_myType, 'stylesheets'); 471 472 if ('' !== styleSheetsValue) { 473 474 styleSheets = JSON.parse(styleSheetsValue); 475
476 styleSheets.forEach(stylesheetRef => { 477 _utils.loadStyleSheet(stylesheetRef, document); 478 _utils.loadStyleSheet(stylesheetRef, iframeContainerElement); 479 _utils.loadStyleSheet(stylesheetRef, mobiIframeContainerElement); 480 }); 481 } 482 483 var desktopDonateButton = attachDonateButton(iframeContainerElement, iframeId, { 484 popupId: 'kofi-popup-iframe', 485 popupIframeContainerIdSuffix: 'popup-iframe-container' 486 }, { maxHeight: 690, minHeight: 400, }); 487 widgetPageLoadInitiatedStates.push([desktopDonateButton, false]); 488 var mobileDonateButton = attachDonateButton(mobiIframeContainerElement, mobiIframeId, { 489 popupId: 'kofi-popup-iframe-mobi', 490 popupIframeContainerIdSuffix: 'popup-iframe-container-mobi' 491 }, { maxHeight: 690, minHeight: 350 }); 492 widgetPageLoadInitiatedStates.push([mobileDonateButton, false]); 493 494 // Already create the widget popup iframe (hidden) 495 insertPopupHtmlIntoBody(desktopDonateButton, { 496 popupId: 'kofi-popup-iframe', 497 popupClass: 'floating-chat-kofi-popup-iframe', 498 noticeClass: 'floating-chat-kofi-popup-iframe-notice', 499 closerClass: 'floating-chat-kofi-popup-iframe-closer', 500 popupIframeContainerClass: 'floating-chat-kofi-popup-iframe-container', 501 popupIframeContainerIdSuffix: 'popup-iframe-container', 502 popuupKofiIframeHeightOffset: 42 503 }, parentElementId); 504 505 insertPopupHtmlIntoBody(mobileDonateButton, { 506 popupId: 'kofi-popup-iframe-mobi', 507 popupClass: 'floating-chat-kofi-popup-iframe-mobi', 508 noticeClass: 'floating-chat-kofi-popup-iframe-notice-mobi', 509 closerClass: 'floating-chat-kofi-popup-iframe-closer-mobi', 510 popupIframeContainerClass: 'floating-chat-kofi-popup-iframe-container-mobi', 511 popupIframeContainerIdSuffix: 'popup-iframe-container-mobi', 512 popuupKofiIframeHeightOffset: 100 513 }, parentElementId); 514 }; 515 516 function activateKofiIframe(iframeId, selectors, heightLimits) { 517 518 var iframeContainerElement = document.getElementById(iframeId).contentDocument; 519 520 const donateButton = iframeContainerElement.getElementById(`${getButtonId()}`); 521 const kofiIframeState = donateButton.classList.contains('closed') ? 'open' : 'close'; 522 toggleKofiIframe(iframeId, kofiIframeState, donateButton, selectors, heightLimits); 523 }; 524 525 function updateClass(element, oldClass, newClass) { 526 527 if (oldClass !== '') { 528 element.classList.remove(oldClass); 529 } 530 531 if (newClass !== '') { 532 element.classList.add(newClass); 533 } 534 }; 535 536 function slidePopupOpen(popup, finalHeight) { 537 popup.style = `z-index:10000;width:328px!important;height: ${finalHeight}px!important; transition: height 0.5s ease, opacity 0.3s linear; opacity:1;`; 538 document.getElementsByClassName("floating-chat-kofi-popup-iframe-notice-mobi")[0].style.display = "block"; 539 document.getElementsByClassName("floating-chat-kofi-popup-iframe-notice")[0].style.display = "block"; 540 }; 541 542 function closePopup(popup, donateButton) { 543 // ar popup = document.getElementById(popupId); 544 popup.style = 'height: 0px; width:0px; transition:height 0.3s ease 0s , width 1s linear,opacity 0.3s linear; opacity:0;'; 545 updateClass(donateButton, 'open', 'closed'); 546 document.getElementsByClassName("floating-chat-kofi-popup-iframe-notice-mobi")[0].style.display = "none"; 547 document.getElementsByClassName("floating-chat-kofi-popup-iframe-notice")[0].style.display = "none"; 548 } 549 550 function insertPopupHtmlIntoBody(donateButton, selectors, parentElementId) { 551 var popupId = _configManager.getValue(_myType, 'cssId') + `-${selectors.popupId}`; 552 553 var popup = document.createElement('div'); 554 popup.id = popupId; 555 popup.classList = selectors.popupClass; 556 popup.style = `z-index:10000;height: 0px; width:0px; opacity: 0; transition: all 0.6s ease 0s;`; 557 558 if (parentElementId) { 559 document.getElementById(parentElementId).appendChild(p
559opup); 560 } 561 else { 562 document.body.appendChild(popup); 563 } 564 565 var notice = document.createElement('div'); 566 notice.classList = selectors.noticeClass; 567 568 569 var noticeText = _configManager.getValue(_myType, 'notice.text'); 570 var pageId = _configManager.getValue(_myType, 'pageId', true); 571 572 noticeText = noticeText.replace("%HANDLE%", pageId); 573 handleLink = document.createElement('a'); 574 handleLink.setAttribute('href', "https://" + noticeText); 575 handleLink.setAttribute('target', "_blank"); 576 handleLink.setAttribute('class', 'kfds-text-is-link-dark'); 577 linkText = document.createTextNode(noticeText); 578 handleLink.appendChild(linkText); 579 notice.appendChild(handleLink); 580 popup.appendChild(notice); 581 582 var closer = document.createElement('div'); 583 var closerContent = document.createElement('span'); 584 585 closerContent.innerHTML = _configManager.getValue(_myType, 'closer', true); 586 closer.appendChild(closerContent); 587 closer.classList = selectors.closerClass; 588 589 closer.addEventListener('click', function (event) { 590 closePopup(popup, donateButton); 591 }); 592 593 popup.appendChild(closer); 594 595 var popupIFrameContainer = document.createElement('div'); 596 popupIFrameContainer.classList = selectors.popupIframeContainerClass; 597 popupIFrameContainer.style = 'height:100%'; 598 popupIFrameContainer.id = popupId + selectors.popupIframeContainerIdSuffix; 599 600 popup.appendChild(popupIFrameContainer); 601 }; 602 603 function toggleKofiIframe(iframeId, state, donateButton, selectors, heightLimits) { 604 605 var popupId = _configManager.getValue(_myType, 'cssId') + `-${selectors.popupId}`; 606 var existingPopup = document.getElementById(popupId); 607 608 if (state === 'open') { 609 610 var iframeContainerParent = document.getElementById(iframeId).parentElement;; 611 612 var finalHeight = window.innerHeight - (window.innerHeight - iframeContainerParent.offsetTop) - 60; 613 //console.log('final height 1:' + finalHeight); 614 if (finalHeight > heightLimits.maxHeight) { 615 finalHeight = heightLimits.maxHeight; 616 } else if (finalHeight < heightLimits.minHeight) { 617 finalHeight = heightLimits.minHeight; 618 } 619 //console.log('final height 2:' + finalHeight); 620 var widgetPageLoadStateIndex = widgetPageLoadInitiatedStates.findIndex(function (s) { return s[0] == donateButton; }); 621 // var widgetPageLoadState = widgetPageLoadInitiatedStates.find(function(s) { return s[0] == donateButton; });// 622 var widgetPageLoadInitiated = widgetPageLoadInitiatedStates[widgetPageLoadStateIndex][1]; 623 if (!widgetPageLoadInitiated) { 624 var popupIFrameContainerId = popupId + selectors.popupIframeContainerIdSuffix; 625 _utils.loadKofiIframe(_configManager.getValue(_myType, 'pageId', true), popupIFrameContainerId, 'width: 100%; height: 98%;'); 626 widgetPageLoadInitiatedStates[widgetPageLoadStateIndex] = [donateButton, true]; 627 } 628 629 slidePopupOpen(existingPopup, finalHeight); 630 631 updateClass(donateButton, 'closed', 'open'); 632 633 closeButtonActionBlocked = true; 634 setTimeout(function () { 635 closeButtonActionBlocked = false; 636 }, 1000); 637 638 } 639 }; 640 641 var getHtml = function () { 642 643 var donateButtonImage = _configManager.getValue(_myType, 'donatebutton.image'); 644 var donateButtonBackgroundColor = _configManager.getValue(_myType, 'donateButton.background-color'); 645 var donateButtonCTAText = _configManager.getValue(_myType, 'donateButton.text'); 646 var donateButtonTextColor = _configManager.getValue(_myType, 'donateButton.text-color'); 647 var body = '<style> .hiddenUntilReady { display: none; } </style>' + 648 `<div id="${getButtonId()}" class="hiddenUntilReady closed floatingchat-donate-button" style="z-index:10000;
648 background-color: ${donateButtonBackgroundColor};">` + 649 `<img id="${getButtonImageId()}" src="${donateButtonImage}" class="kofiimg" data-rotation="0" />` + 650 `<span style="margin-left: 8px; color:${donateButtonTextColor}">${donateButtonCTAText}</span>` 651 '</div>'; 652 return body; 653 }; 654 655 return { 656 getHtml: getHtml, 657 write: write 658 } 659}; 660 661var kofiWidgetOverlayConstants = kofiWidgetOverlayConstants || { 662 optionKeys: { 663 root: 'root', 664 widgetType: 'type', 665 pageId: 'pageId', 666 ctaText: 'ctaText', 667 donateButtonStyle: 'donateButtonStyle', 668 ctaTextStyle: 'ctaTextStyle', 669 cssId: 'cssid' 670 }, 671 kofiRoot: 'https://ko-fi.com/', 672 paymentModalId: 'paymentModal' 673}; 674 675var kofiWidgetOverlayUtilities = kofiWidgetOverlayUtilities || function () { 676 677 const uuidv4 = function () { 678 return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c => 679 (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16) 680 ) 681 }; 682 683 const debounce = function (debounceRef, callback) { 684 685 if (debounceRef === null) { 686 debounceRef = setTimeout(function () { 687 clearTimeout(debounceRef); 688 debounceRef = null; 689 callback(); 690 }, 100); 691 } 692 }; 693 694 const loadKofiIframe = function (pageId, parentElementId, iframeStyle) { 695 696 var _iframeLoading = false; 697 var _iframeDebounce = null; 698 var _showFeed = false; 699 700 const tryLoad = function () { 701 702 if (!_iframeLoading) { 703 704 _iframeLoading = true; 705 let url = kofiWidgetOverlayConstants.kofiRoot + pageId + '/?hidefeed=true&widget=true&embed=true'; 706 if (_showFeed) { 707 url = kofiWidgetOverlayConstants.kofiRoot + pageId + '/?widget=true&embed=true'; 708 } 709 const iframe = document.createElement('iframe'); 710 const parentElement = document.getElementById(parentElementId); 711 712 iframe.src = url; 713 iframe.style = iframeStyle; 714 parentElement.appendChild(iframe); 715 716 } else { 717 debounce(_iframeDebounce, tryLoad) 718 } 719 }; 720 721 tryLoad(); 722 }; 723 724 const getWindowHeightRatio = function () { 725 return (window.outerHeight / 100); 726 }; 727 728 const getWindowWidthRatio = function () { 729 return (window.outerWidth / 100); 730 }; 731 732 const mergeOptions = function (optionSetA, optionSetB) { 733 734 for (var property in optionSetA) { 735 if (optionSetA.hasOwnProperty(property)) { 736 optionSetA[property] = optionSetB[property] !== undefined ? optionSetB[property] : optionSetA[property]; 737 } 738 } 739 }; 740 741 const getConfigManager = function (config) { 742 743 return new function () { 744 745 var _tokens = []; 746 747 const getValue = function (overlayType, key, isCore) { 748 749 const coreElement = isCore ? '.core' : ''; 750 const configKey = `${overlayType}${coreElement}.${key}`; 751 if (config[configKey] !== undefined) { 752 var configdata = config[configKey]; 753 754 if (_tokens.length > 0) { 755 _tokens.forEach(t => { 756 configdata = configdata.replace(t.token, t.value); 757 }); 758 } 759 760 return configdata; 761 } 762 763 return ''; 764 }; 765 766 const setToken = function (token, value) { 767 _tokens.push({ token: token, value: value }); 768 }; 769 770 const clearTokens = function () { 771 _tokens = []; 772 }; 773 774 return { 775 getValue: getValue, 776 setToken: setToken, 777 clearTokens: clearTokens 778 } 779 }; 780 }; 781 782 const loadStyleSheet = function (styleSheetHref, targetDocument) { 783 784 var docHead = targetDocument.head;
785 if (!docHead) { 786 docHead = targetDocument.createElement('head'); 787 targetDocument.prepend(docHead); 788 } 789 790 var styleSheet = targetDocument.querySelectorAll('[href="' + styleSheetHref + '"]') 791 if (styleSheet.length === 0) { 792 793 var sslink = targetDocument.createElement('link'); 794 sslink.href = styleSheetHref; 795 sslink.rel = 'stylesheet'; 796 sslink.type = 'text/css'; 797 docHead.append(sslink); 798 } 799 }; 800 801 return { 802 uuidv4: uuidv4, 803 debounce: debounce, 804 loadKofiIframe: loadKofiIframe, 805 getWindowHeightRatio: getWindowHeightRatio, 806 getWindowWidthRatio: getWindowWidthRatio, 807 mergeOptions: mergeOptions, 808 getConfigManager: getConfigManager, 809 loadStyleSheet: loadStyleSheet 810 } 811}; 812 813var kofiWidgetOverlay = kofiWidgetOverlay || (function () { 814 815 const _utils = new kofiWidgetOverlayUtilities(); 816 var isFirstRender = true; 817 var parentButtonWrapperId = null; 818 819 var _root = ''; 820 var _buildStrategy = { 821 'floating-chat': { 822 src: _root + 'kofi-widget-overlay-floating-chat-builder.js', 823 write: function (parentId, config, utils) { return new kofiWidgetOverlayFloatingChatBuilder(config, utils).write(parentId); }, 824 getBody: function (config, utils) { return new kofiWidgetOverlayFloatingChatBuilder(config, utils).getHtml(); }, 825 id: 'kofi-widget-overlay-ribbon-builder' 826 }, 827 }; 828 829 function getBuilder(widgetType) { 830 831 var buildStrategy = _buildStrategy[widgetType] === undefined ? 'empty' : widgetType; 832 var builder = _buildStrategy[buildStrategy]; 833 834 return builder; 835 }; 836 837 const doWrite = function (builder, instanceId, config) { 838 839 var finalConfig = JSON.parse(JSON.stringify(kofiWidgetOverlayConfig)); 840 841 _utils.mergeOptions(finalConfig, config); 842 builder.write(instanceId, finalConfig, _utils); 843 }; 844 845 const setConfigDefaults = function (config, widgetType, pId, instanceId) { 846 847 config[widgetType + '.core.pageId'] = pId; 848 config[widgetType + '.cssId'] = config[widgetType + '.cssId'] !== undefined && config[widgetType + '.cssId'] !== '' ? config[widgetType + '.cssId'] : instanceId; 849 config[widgetType + '.stylesheets'] = config[widgetType + '.stylesheets'] !== undefined ? config[widgetType + '.stylesheets'] : '["https://fonts.googleapis.com/css?family=DM+Sans:400,600,700,800&display=swap"]'; 850 851 return config; 852 } 853 854 const draw = function (pId, config, containerId) { 855 if (isFirstRender) { 856 parentButtonWrapperId = 'kofi-widget-overlay-' + _utils.uuidv4(); 857 858 if (containerId != null) { 859 document.getElementById(containerId).innerHTML += `<div id="${parentButtonWrapperId}"></div>`; 860 } 861 else { 862 var div = document.createElement('div'); 863 div.setAttribute("id", parentButtonWrapperId); 864 document.body.appendChild(div); 865 } 866 isFirstRender = false; 867 } 868 869 var widgetType = config[kofiWidgetOverlayConstants.optionKeys.widgetType]; 870 config = setConfigDefaults(config, widgetType, pId, parentButtonWrapperId); 871 872 var builder = getBuilder(widgetType); 873 if (containerId != null) { 874 doWrite(builder, containerId, config); 875 } 876 else { doWrite(builder, parentButtonWrapperId, config); } 877 }; 878 879 return { 880 draw: draw, 881 } 882}());; 883kofiWidgetOverlay.draw( "andrewmilivojevich", { 884 "type": "floating-chat", 885 "floating-chat.donateButton.text": "Support Me", 886 "floating-chat.donateButton.background-color": "#FF5F5F", 887 "floating-chat.donateButton.text-color": "#323842" 888 }); 889; 890var quads_adblocker_check=!0,quads_adblocker_check_2=!0;window.addEventListener("load",function(){var e=document.querySelector(".quads-sticky .quads-location"),t=document.querySelectorAll(".quads-location");e&&(e.style.backgroundColor="hsla(0,0%,100%,.7)"),Array.from(t).forEach(e
vendor: 25,829 bytes, lines 890-908
890=>{var n=e.querySelectorAll("img"),t=3e3;n.length?n.forEach(n=>{n.dataset&&n.dataset.lazydelay>0&&(t=n.dataset.lazydelay),setTimeout(()=>{n.dataset&&n.dataset.src&&(n.src=n.dataset.src),e.style.visibility="visible"},t)}):(e.dataset.lazydelay&&e.dataset.lazydelay>0&&(t=e.dataset.lazydelay),setTimeout(()=>{e.style.visibility="visible"},t))})}); 891/*! 892 * jQuery UI Mouse 1.14.2 893 * https://jqueryui.com 894 * 895 * Copyright OpenJS Foundation and other contributors 896 * Released under the MIT license. 897 * https://jquery.org/license 898 */ 899!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../widget"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.14.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){var t,s,i;if(!n)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),s=1===(this._mouseDownEvent=e).which,i="string"==typeof(t=this).options.cancel&&o(e.target).closest(this.options.cancel).length,s&&!i&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)),!0},_mouseMove:function(e){if(this._mouseMoved&&!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e);return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});; 900/*! 901 * jQuery UI Sortable 1.14.2 902 * https://jqueryui.com 903 * 904 * Copyright OpenJS Foundation and other contributors 905 * Released under the MIT license. 906 * https://jquery.org/license 907 */ 908!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(u){"use strict";return u.widget("ui.sortable",u.ui.mouse,{version:"1.14.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),u.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),u(t.target).parents().each(function(){if(u.data(this,o.widgetName+"-item")===o)return i=u(this),!1}),!(i=u.data(t.target,o.widgetName+"-item")===o?u(t.target):i))||(this.options.handle&&!e&&(u(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s)||(this.currentItem=i,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,e,i){var s,o,r=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=u("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},u.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),u.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this._storedStylesheet=u("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return u.ui.ddmanager&&(u.ui.ddmanager.current=this),u.ui.ddmanager&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(t){var e,i,s,o,r=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),u.ui.ddmanager)&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(o=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||u.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&u.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),u.ui.ddmanager&&u.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,o,r;if(t)return u.ui.ddmanager&&!this.options.dropBehaviour&&u.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),r={},(o=this.options.axis)&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,u(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new u.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),u.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?u(this.domPosition.prev).after(this.currentItem):u(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},u(t).each(function(){var t=(u(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(u(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,o=s+this.helperProportions.height,r=t.left,n=r+t.width,h=t.top,a=h+t.height,l=this.offset.click.top,c=this.offset.click.left,l="x"===this.options.axis||h<s+l&&s+l<a,c="y"===this.options.axis||r<e+c&&e+c<n;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?l&&c:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<n&&h<s+this.helperProportions.height/2&&o-this.helperProportions.height/2<a},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&t||"left"===s&&!t:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,s,o,r=[],n=[],h=this._connectWith();if(h&&t)for(e=h.length-1;0<=e;e--)for(i=(s=u(h[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&n.push(["function"==typeof o.options.items?o.options.items.call(o.element):u(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function a(){r.push(this)}for(n.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):u(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=n.length-1;0<=e;e--)n[e][0].each(a);return u(r)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=u.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,o,r,n,h,a,l=this.items,c=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):u(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(e=p.length-1;0<=e;e--)for(i=(s=u(p[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&(c.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],t,{item:this.currentItem}):u(o.options.items,o.element),o]),this.containers.push(o));for(e=c.length-1;0<=e;e--)for(r=c[e][1],a=(n=c[e][i=0]).length;i<a;i++)(h=u(n[i])).data(this.widgetName+"-item",r),l.push({item:h,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var e,i,s=this.items.length-1;0<=s;s--)e=this.items[s],this.currentContainer&&e.instance!==this.currentContainer&&e.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?u(this.options.toleranceElement,e.item):e.item,t||(e.width=i.outerWidth(),e.height=i.outerHeight()),i=i.offset(),e.left=i.left,e.top=i.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,o,r=(i=i||this).options;r.placeholder&&r.placeholder.constructor!==String||(s=r.placeholder,o=i.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var t=u("<"+o+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===o?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),u("<tr>",i.document[0]).appendTo(t)):"tr"===o?i._createTrPlaceholder(i.currentItem,t):"img"===o&&t.attr("src",i.currentItem.attr("src")),s||t.css("visibility","hidden"),t},update:function(t,e){s&&!r.forcePlaceholderSize||(e.height()&&(!r.forcePlaceholderSize||"tbody"!==o&&"tr"!==o)||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=u(r.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),r.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){u("<td> </td>",i.document[0]).attr("colspan",u(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,o,r,n,h,a,l,c=null,p=null,f=this.containers.length-1;0<=f;f--)u.contains(this.currentItem[0],this.containers[f].element[0])||(this._intersectsWith(this.containers[f].containerCache)?c&&u.contains(this.containers[f].element[0],c.element[0])||(c=this.containers[f],p=f):this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",t,this._uiHash(this)),this.containers[f].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(i=1e4,s=null,o=(a=c.floating||this._isFloating(this.currentItem))?"left":"top",r=a?"width":"height",l=a?"pageX":"pageY",e=this.items.length-1;0<=e;e--)u.contains(this.containers[p].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(n=this.items[e].item.offset()[o],h=!1,t[l]-n>this.items[e][r]/2&&(h=!0),Math.abs(t[l]-n)<i)&&(i=Math.abs(t[l]-n),s=this.items[e],this.direction=h?"up":"down");(s||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[p]?this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1))}},_createHelper:function(t){var e=this.options,t="function"==typeof e.helper?u(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=u(i.containment)[0],i=u(i.containment).offset(),e="hidden"!==u(t).css("overflow"),this.containment=[i.left+(parseInt(u(t).css("borderLeftWidth"),10)||0)+(parseInt(u(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(u(t).css("borderTopWidth"),10)||0)+(parseInt(u(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(u(t).css("borderLeftWidth"),10)||0)-(parseInt(u(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(u(t).css("borderTopWidth"),10)||0)-(parseInt(u(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(i[0].tagName);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:i.scrollTop())*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:i.scrollLeft())*t}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(s=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[
9080])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function o(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)e||s.push(o("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(o("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<s.length;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===u.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||u([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}})});; 909/*! 910 * jQuery UI Touch Punch 0.2.2 911 * 912 * Copyright 2011, Dave Furfero 913 * Dual licensed under the MIT or GPL Version 2 licenses. 914 * 915 * Depends: 916 * jquery.ui.widget.js 917 * jquery.ui.mouse.js 918 */(function(e){if(e.support.touch="ontouchend"in document,!e.support.touch)return;var s,n=e.ui.mouse.prototype,o=n._mouseInit;function t(e,t){if(e.originalEvent.touches.length>1)return;e.preventDefault();var n=e.originalEvent.changedTouches[0],s=document.createEvent("MouseEvents");s.initMouseEvent(t,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(s)}n._touchStart=function(e){var n=this;if(s||!n._mouseCapture(e.originalEvent.changedTouches[0]))return;s=!0,n._touchMoved=!1,t(e,"mouseover"),t(e,"mousemove"),t(e,"mousedown")},n._touchMove=function(e){if(!s)return;this._touchMoved=!0,t(e,"mousemove")},n._touchEnd=function(e){if(!s)return;t(e,"mouseup"),t(e,"mouseout"),this._touchMoved||t(e,"click"),s=!1},n._mouseInit=function(){var t=this;t.element.bind("touchstart",e.proxy(t,"_touchStart")).bind("touchmove",e.proxy(t,"_touchMove")).bind("touchend",e.proxy(t,"_touchEnd")),o.call(t)}})(jQuery); 919(function(e,t){function a(e,t,n){var s=l[t.type]||{};
vendor: 4,189 bytes, line 919
919return e==null?n||!t.def?null:t.def:(e=s.floor?~~e:parseFloat(e),isNaN(e)?t.def:s.mod?(e+s.mod)%s.mod:0>e?0:s.max<e?s.max:e)}function u(t){var a=n(),r=a._rgba=[];return t=t.toLowerCase(),s(h,function(e,n){var s,c=n.re.exec(t),l=c&&n.parse(c),i=n.space||"rgba";if(l)return s=a[i](l),a[o[i].cache]=s[o[i].cache],r=a._rgba=s._rgba,!1}),r.length?(r.join()==="0,0,0,0"&&e.extend(r,i.transparent),a):i[t]}function r(e,t,n){return n=(n+1)%1,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}var i,f="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",m=/^([-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1]*2.55,e[2]*2.55,e[3]*2.55,e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],n=e.Color=function(t,n,s,o){return new e.Color.fn.parse(t,n,s,o)},o={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},l={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=n.support={},d=e("<p>")[0],s=e.each;d.style.cssText="background-color:rgba(1,1,1,.5)",c.rgba=d.style.backgroundColor.indexOf("rgba")>-1,s(o,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),n.fn=e.extend(n.prototype,{parse:function(r,c,l,d){if(r===t)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=e(r).css(c),c=t);var p,h=this,m=e.type(r),f=this._rgba=[];if(c!==t&&(r=[r,c,l,d],m="array"),m==="string")return this.parse(u(r)||i._default);if(m==="array")return s(o.rgba.props,function(e,t){f[t.idx]=a(r[t.idx],t)}),this;if(m==="object")return r instanceof n?s(o,function(e,t){r[t.cache]&&(h[t.cache]=r[t.cache].slice())}):s(o,function(t,n){var o=n.cache;s(n.props,function(e,t){if(!h[o]&&n.to){if(e==="alpha"||r[e]==null)return;h[o]=n.to(h._rgba)}h[o][t.idx]=a(r[e],t,!0)}),h[o]&&e.inArray(null,h[o].slice(0,3))<0&&(h[o][3]=1,n.from&&(h._rgba=n.from(h[o])))}),this},is:function(e){var a=n(e),t=!0,i=this;return s(o,function(e,n){var r,o=a[n.cache];return o&&(r=i[n.cache]||n.to&&n.to(i._rgba)||[],s(n.props,function(e,n){if(o[n.idx]!=null)return t=o[n.idx]===r[n.idx],t})),t}),t},_space:function(){var e=[],t=this;return s(o,function(n,s){t[s.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var i=n(e),d=i._space(),r=o[d],u=this.alpha()===0?n("transparent"):this,h=u[r.cache]||r.to(u._rgba),c=h.slice();return i=i[r.cache],s(r.props,function(e,n){var d=n.idx,s=h[d],o=i[d],r=l[n.type]||{};if(o===null)return;s===null?c[d]=o:(r.mod&&(o-s>r.mod/2?s+=r.mod:s-o>r.mod/2&&(s-=r.mod)),c[d]=a((o-s)*t+s,n))}),this[d](c)},blend:function(t){if(this._rgba[3]===1)return this;var s=this._rgba.slice(),o=s.pop(),i=n(t)._rgba;return n(e.map(s,function(e,t){return(1-o)*i[t]+o*e}))},toRgbaString:function(){var n="rgba(",t=e.map(this._rgba,function(e,t){return e??(t>2?1:0)});return t[3]===1&&(t.pop(),n="rgb("),n+t.join()+")"},toHslaString:function(){var n="hsla(",t=e.map(this.hsla(),function(e,t){return e==null&&(e=t>2?1:0),t&&t<3&&(e=Math.round(e*100)+"%"),e});return t[3]===1&&(t.pop(),n="hsl("),n+t.join()+")"},toHexString:function(t){var n=this._rgba.slice(),s=n.pop();return t&&n.push(~~(s*255)),"#"+e.map(n,function(e){return e=(e||0).toString(16),e.length===1?"0"+e:e}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),n.fn.parse.prototype=n.fn,o.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,
919null,null,e[3]];var a,c,t=e[0]/255,n=e[1]/255,r=e[2]/255,u=e[3],s=Math.max(t,n,r),l=Math.min(t,n,r),o=s-l,d=s+l,i=d*.5;return l===s?a=0:t===s?a=60*(n-r)/o+360:n===s?a=60*(r-t)/o+120:a=60*(t-n)/o+240,i===0||i===1?c=i:i<=.5?c=o/d:c=o/(2-d),[Math.round(a)%360,c,i,u??1]},o.hsla.from=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var c,l,d,s=e[0]/360,o=e[1],t=e[2],a=e[3],n=t<=.5?t*(1+o):t+o-t*o,i=2*t-n;return[Math.round(r(i,n,s+1/3)*255),Math.round(r(i,n,s)*255),Math.round(r(i,n,s-1/3)*255),a]},s(o,function(o,i){var c=i.props,r=i.cache,l=i.to,d=i.from;n.fn[o]=function(o){if(l&&!this[r]&&(this[r]=l(this._rgba)),o===t)return this[r].slice();var u,h=e.type(o),m=h==="array"||h==="object"?o:arguments,i=this[r].slice();return s(c,function(e,t){var n=m[h==="object"?e:t.idx];n==null&&(n=i[t.idx]),i[t.idx]=a(n,t)}),d?(u=n(d(i)),u[r]=i,u):n(i)},s(c,function(t,s){if(n.fn[t])return;n.fn[t]=function(n){var a,i=e.type(n),l=t==="alpha"?this._hsla?"hsla":"rgba":o,r=this[l](),c=r[s.idx];return i==="undefined"?c:(i==="function"&&(n=n.call(this,c),i=e.type(n)),n==null&&s.empty?this:(i==="string"&&(a=m.exec(n),a&&(n=c+parseFloat(a[2])*(a[1]==="+"?1:-1))),r[s.idx]=n,this[l](r)))}})}),n.hook=function(t){var o=t.split(" ");s(o,function(t,s){e.cssHooks[s]={set:function(t,o){var i,r,a="";if(e.type(o)!=="string"||(r=u(o))){if(o=n(r||o),!c.rgba&&o._rgba[3]!==1){for(i=s==="backgroundColor"?t.parentNode:t;(a===""||a==="transparent")&&i&&i.style;)try{a=e.css(i,"backgroundColor"),i=i.parentNode}catch{}o=o.blend(a&&a!=="transparent"?a:"_default")}o=o.toRgbaString()}try{t.style[s]=o}catch{}}},e.fx.step[s]=function(t){t.colorInit||(t.start=n(t.elem,s),t.end=n(t.end),t.colorInit=!0),e.cssHooks[s].set(t.elem,t.start.transition(t.end,t.pos))}})},n.hook(f),e.cssHooks.borderColor={expand:function(e){var t={};return s(["Top","Right","Bottom","Left"],function(n,s){t["border"+s+"Color"]=e}),t}},i=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery),jQuery(document).ready(function(){jQuery("body").append("<div id='divSmallBoxes'></div>"),jQuery("body").append("<div id='divMiniIcons'></div><div id='divbigBoxes'></div>"),jQuery(".OpenSideBar").pageslide({direction:"left"})});function MetroUnLoading(){$(".divMessageBox").fadeOut(300,function(){$(this).remove()}),$(".LoadingBoxContainer").fadeOut(300,function(){$(this).remove()})}var SmallBoxes=0,SmallCount=0,SmallBoxesAnchos=0;(function(e){e.smallBox=function(t,n){if(t=e.extend({title:"",content:"",img:0[0],icon:0[0],sound:!1,color:0[0],timeout:0[0],colortime:1500,colors:0[0]},t),t.sound===!0&&isIE8orlower()==0){var s,o,i,r,c,l,d,a=document.createElement("audio");navigator.userAgent.match("Firefox/")?a.setAttribute("src","../sound/smallbox.ogg"):a.setAttribute("src","../sound/smallbox.mp3"),e.get(),a.addEventListener("load",function(){a.play()},!0),a.pause(),a.play()}++SmallBoxes,s="",r="",i="smallbox"+SmallBoxes,t.icon==0[0]?r="<div class='miniIcono'></div>":r="<div class='miniIcono'><img class='miniPic' src='"+t.icon+"'></div>",t.img==0[0]?(s="<div id='smallbox"+SmallBoxes+"' class='SmallBox wpa_animated fadeInRight fast'><div class='smallboxinner'><div class='textoFull'><span class='SmallBoxTitle'>"+t.title+"</span><p>"+t.content+"</p></div>"+r+"<div class='wpa_clear'></div></div>",s=s+"</div>"):(s="<div id='smallbox"+SmallBoxes+"' class='SmallBox wpa_animated fadeInRight fast'><div class='smallboxinner'><div class='foto'><img src='"+t.img+"'></div><div class='textoFoto'><span class='SmallBoxTitle'>"+t.title+"</span><p>"+t.content+"</p></div>"+r+"<div class='wpa_clear'></div></div>",s=s+"</div>"),SmallBoxes==1?(e("#divSmallBoxes").append(s),SmallBoxesAnchos=e("#smallbox"+SmallBoxes).height()+40):(l=e(".SmallBox").length,l==0?(e("#divSmallBoxes").append(s),SmallBoxesAnchos=e("#smallbox"+SmallBoxes).height()+40):(e("#divSmallBoxes").append(s),e("#smallbox"+SmallBoxes).css("top",SmallBoxesAnchos),SmallBoxesAnchos=SmallBoxesAnchos+e("#smallbox"+SmallBoxes).height()+20,e(".SmallBox").each(function(t){t==0?(e(this).css("top",20),heightPrev=e(this).height()+40,SmallBoxesAnchos=e(this).height()+40):(e(this).css("top",heightPrev),heightPrev=heightPrev+e(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+e(this).height()+20)}))),o=e("#smallbox"+SmallBoxes),t.color==0[0]?o.css("background-color","#004d60"):o.css("background-color",t.color),t.colors!=0[0]&&t.colors.length>0&&(o.attr("colorcount","0"),c=setInterval(function(){var e=o.attr("colorcount");o.animate({backgroundColor:t.colors[e].color}),e<t.colors.length-1?o.attr("colorcount",e*1+1):o.attr("colorcount",0)},t.colortime)),t.timeout!=0[0]&&setTimeout(function(){clearInterval(c);var t=e(this).height()+20,s=i,o=e("#"+i).css("top");e("#"+i+":hover").length!=0?e("#"+i).on("mouseleave",function(){SmallBoxesAnchos=SmallBoxesAnchos-t,e("#"+i).remove(),typeof n=="function"&&n&&n();var o=1,s=0;e(".SmallBox").each(function(t){t==0?(e(this).animate({top:20},300),s=e(this).height()+40,SmallBoxesAnchos=e(this).height()+40):(e(this).animate({top:s},350),s=s+e(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+e(this).height()+20)})}):(clearInterval(c),SmallBoxesAnchos=SmallBoxesAnchos-t,typeof n=="function"&&n&&n(),e("#"+i).removeClass().addClass("SmallBox").animate({opacity:0}
919,300,function(){e(this).remove();var n=1,t=0;e(".SmallBox").each(function(n){n==0?(e(this).animate({top:20},300),t=e(this).height()+40,SmallBoxesAnchos=e(this).height()+40):(e(this).animate({top:t}),t=t+e(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+e(this).height()+20)})}))},t.timeout),e("#smallbox"+SmallBoxes+" .smallboxinner").bind("click",function(){clearInterval(c),typeof n=="function"&&n&&n();var t=e(this).parent().height()+20,s=e(this).parent().attr("id"),o=e(this).parent().css("top");SmallBoxesAnchos=SmallBoxesAnchos-t,e(this).parent().removeClass().addClass("SmallBox").animate({opacity:0},300,function(){e(this).remove();var n=1,t=0;e(".SmallBox").each(function(n){n==0?(e(this).animate({top:20},300),t=e(this).height()+40,SmallBoxesAnchos=e(this).height()+40):(e(this).animate({top:t},350),t=t+e(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+e(this).height()+20)})})})}})(jQuery);function CloseSide(){$.pageslide.close()}(function(e){e(function(){s=e("body"),t=e("#pageslide"),t.length==0&&(t=e("<div />").attr("id","pageslide").css("display","none").appendTo(e("body"))),t.click(function(e){e.stopPropagation()}),e(document).bind("click keyup",function(n){if(n.type=="keyup"&&n.keyCode!=27)return;t.is(":visible")&&!t.data("modal")&&e.pageslide.close()})});var t,s,o,n=!1;function i(n,s){if(n.indexOf("#")===0)e(n).clone(!0).appendTo(t.empty()).show();else{if(s){var o=e("<iframe />").attr({src:n,frameborder:0,hspace:0}).css({width:"100%",height:"100%"});t.html(o)}else t.load(n);t.data("localEl",!1)}}function a(e,o){var i=t.outerWidth(!0),a={},r={};if(t.is(":visible")||n)return;switch(n=!0,e){case"left":t.css({left:"auto",right:"-"+i+"px"}),a["margin-left"]="-="+i,r.right="+="+i;break;default:t.css({left:"-"+i+"px",right:"auto"}),a["margin-left"]="+="+i,r.left="+="+i;break}s.animate(a,o),t.show().animate(r,o,function(){n=!1})}e.fn.pageslide=function(n){var s=this;s.click(function(s){var i=e(this),a=e.extend({href:i.attr("href")},n);s.preventDefault(),s.stopPropagation(),t.is(":visible")&&i[0]==o?e.pageslide.close():(e.pageslide(a),o=i[0])})},e.fn.pageslide.defaults={speed:200,direction:"right",modal:!1,iframe:!0,href:null},e.pageslide=function(n){var s=e.extend({},e.fn.pageslide.defaults,n);t.is(":visible")&&t.data("direction")!=s.direction?e.pageslide.close(function(){i(s.href,s.iframe),a(s.direction,s.speed)}):(i(s.href,s.iframe),t.is(":hidden")&&a(s.direction,s.speed)),t.data(s)},e.pageslide.close=function(t){var o=e("#pageslide"),i=o.outerWidth(!0),c=o.data("speed"),a={},r={};if(o.is(":hidden")||n)return;switch(n=!0,o.data("direction")){case"left":a["margin-left"]="+="+i,r.right="-="+i;break;default:a["margin-left"]="-="+i,r.left="-="+i;break}o.animate(r,c),s.animate(a,c,function(){o.hide(),n=!1,typeof t!="undefined"&&t()})}})(jQuery);function getInternetExplorerVersion(){var t,n,e=-1;return navigator.appName=="Microsoft Internet Explorer"&&(t=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),n.exec(t)!=null&&(e=parseFloat(RegExp.$1))),e}function checkVersion(){var e="You're not using Windows Internet Explorer.",t=getInternetExplorerVersion();t>-1&&(t>=8?e="You're using a recent copy of Windows Internet Explorer.":e="You should upgrade your copy of Windows Internet Explorer."),alert(e)}function isIE8orlower(){var e="0",t=getInternetExplorerVersion();return t>-1&&(t>=9?e=0:e=1),e}; 920//KO-fi.com 921//SERVED FROM CDN 922//version 2 923var kofiwidget2 = kofiwidget2 || 924 (function () { 925 var style = ""; 926 var html = ""; 927 var color = ""; 928 var text = ""; 929 var id = ""; 930 return { 931 init: function (pText, pColor, pId) { 932 color = pColor; 933 text = pText; 934 id = pId; 935 style = 936 "img.kofiimg{display: initial!important;vertical-align:middle;height:13px!important;width:20px!important;padding-top:0!important;padding-bottom:0!important;border:none;margin-top:0;margin-right:5px!important;margin-left:0!important;margin-bottom:3px!important;content:url('https://storage.ko-fi.com/cdn/cup-border.png')}.kofiimg:after{vertical-align:middle;height:25px;padding-top:0;padding-bottom:0;border:none;margin-top:0;margin-right:6px;margin-left:0;margin-bottom:4px!important;content:url('https://storage.ko-fi.com/cdn/whitelogo.svg')}.btn-container{display:inline-block!important;white-space:nowrap;min-width:160px}span.kofitext{color:#fff !important;letter-spacing: -0.15px!important;text-wrap:none;vertical-align:middle;line-height:33px !important;padding:0;text-align:center;text-decoration:none!important; text-shadow: 0 1px 1px rgba(34, 34, 34, 0.05);}.kofitext a{color:#fff !important;text-decoration:none:important;}.kofitext a:hover{color:#fff !important;text-decoration:none}a.kofi-button{box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);line-height:36px!important;min-width:150px;display:inline-block!important;background-color:#29abe0;padding:2px 12px !important;text-align:center !important;border-radius:7px;color:#fff;cursor:pointer;overflow-wrap:break-word;vertical-align:middle;border:0 none #fff !important;font-family:'Quicksand',Helvetica,Century Gothic,sans-serif !important;text-decoration:none;text-shadow:none;font-weight:700!important;font-size:14px !important}a.kofi-button:visited{color:#fff !important;text-decoration:none !important}a.kofi-button:hover{opacity:.85;color:#f5f5f5 !important;text-decoration:none !important}a.kofi-button:active{color:#f5f5f5 !important;text-decoration:none !important}.kofitext img.kofiimg {height:15px!important;width:22px!important;display: initial;animation: kofi-wiggle 3s infinite;}"; 937 style = style + "@keyframes kofi-wiggle{0%{transform:rotate(0) scale(1)}60%{transform:rotate(0) scale(1)}75%{transform:rotate(0) scale(1.12)}80%{transform:rotate(0) scale(1.1)}84%{transform:rotate(-10deg) scale(1.1)}88%{transform:rotate(10deg) scale(1.1)}92%{transform:rotate(-10deg) scale(1.1)}96%{transform:rotate(10deg) scale(1.1)}100%{transform:rotate(0) scale(1)}}"; 938 style = "<style>" + style + "</style>"; 939 html = 940 "<link href='https://fonts.googleapis.com/css?family=Quicksand:400,700' rel='stylesheet' type='text/css'>"; 941 html += 942 '<div class=btn-container><a title="Support me on ko-fi.com" class="kofi-button" style="background-color:[color];" href="https://ko-fi.com/[id]" target="_blank"> <span class="kofitext"><img src="https://storage.ko-fi.com/cdn/cup-border.png" alt="Ko-fi donations" class="kofiimg"/>[text]</span></a></div>'; 943 }, 944 getHTML: function () { 945 var rtn = style + html.replace("[color]", color).replace("[text]", text).replace("[id]", id); 946 return rtn; 947 }, 948 draw: function () { 949 document.writeln(style + html.replace("[color]", color).replace("[text]", text).replace("[id]", id)); 950 } 951 }; 952 }());; 953jQuery(document).ready(function(){jQuery(".ko-fi-button").each(function(){var e=jQuery(this),t=e.data("title");kofiwidget2.init(e.data("text"),e.data("color"),e.data("code")),$html=kofiwidget2.getHTML(),t&&($html=$html.replace('title="Support me on ko-fi.com"','title="'+t+'"')),e.html($html)})}); 954/*! jquery.cookie v1.4.1 | MIT */ 955!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
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.