
!function(e){function o(o){"use strict";var i=e(o),r=["powermail_input","powermail_textarea","powermail_select","powermail_radio","powermail_checkbox"];this.ajaxListener=function(){t(),e(_()).on("change",function(){t()})};var n=function(o){if(void 0!==o.todo){for(var i in o.todo){var r=e(".powermail_form_"+i);for(var n in o.todo[i]){r.find(".powermail_fieldset_"+n);"hide"===o.todo[i][n]["#action"]&&f(m(n,r)),"un_hide"===o.todo[i][n]["#action"]&&p(m(n,r));for(var t in o.todo[i][n])"hide"===o.todo[i][n][t]["#action"]&&c(t,r),"un_hide"===o.todo[i][n][t]["#action"]&&u(t,r)}}h()}},t=function(){var o=e(i.get(0)),r=o.find(":disabled").prop("disabled",!1),t=new FormData(i.get(0));r.prop("disabled",!0),e.ajax({type:"POST",url:l(),data:t,contentType:!1,processData:!1,success:function(e){100===e.loops&&q("100 loops reached by parsing conditions and rules. Maybe there are conflicting conditions."),n(e)}})},a=function(e){(e.prop("required")||e.data("parsley-required"))&&(e.prop("required",!1),e.removeAttr("data-parsley-required"),e.data("powermailcond-required","required"))},d=function(e){"required"===e.data("powermailcond-required")&&(y()?e.prop("required","required"):v()&&e.prop("required","required")),e.removeData("powermailcond-required")},u=function(e,o){var i=o.find(".powermail_fieldwrap_"+e);i.show();var r=s(e,o);r.prop("disabled",!1),d(r)},c=function(e,o){var i=o.find(".powermail_fieldwrap_"+e);i.hide();var r=s(e,o);r.prop("disabled",!0),a(r)},p=function(e){e.show()},f=function(e){e.hide()},l=function(){var o=e("*[data-condition-uri]").data("condition-uri");return void 0===o&&q("Tag with data-condition-uri not found. Maybe TypoScript was not included."),o},s=function(e,o){return o.find('[name^="tx_powermail_pi1[field]['+e+']"]').not('[type="hidden"]')},m=function(e,o){return o.find(".powermail_fieldset_"+e)},w=function(e,o,i){o="undefined"!=typeof o?o:"",i="undefined"!=typeof i?i:",";for(var r="",n=0;n<e.length;n++)n>0&&(r+=i),r+=o+e[n];return r},_=function(){return w(r,".")},v=function(){return"data-parsley-validate"===i.data("parsley-validate")},y=function(){return"html5"===i.data("validate")},h=function(){v()&&(i.parsley().destroy(),i.parsley())},q=function(e){"object"==typeof console&&("string"==typeof e&&(e="powermail_cond: "+e),console.log(e))}}e(document).ready(function(){e("form.powermail_form").each(function(){new o(this).ajaxListener()})})}(jQuery);
(function(){function t(t){function e(e,i,r,n,s,o){for(;s>=0&&s<o;s+=t){var a=n?n[s]:s;r=i(r,e[a],a,e)}return r}return function(i,r,n,s){r=w(r,s,4);var o=!x(i)&&v.keys(i),a=(o||i).length,l=t>0?0:a-1;return arguments.length<3&&(n=i[o?o[l]:l],l+=t),e(i,r,n,o,l,a)}}function e(t){return function(e,i,r){i=b(i,r);for(var n=T(e),s=t>0?0:n-1;s>=0&&s<n;s+=t)if(i(e[s],s,e))return s;return-1}}function i(t,e,i){return function(r,n,s){var o=0,a=T(r);if("number"==typeof s)t>0?o=s>=0?s:Math.max(s+a,o):a=s>=0?Math.min(s+1,a):s+a+1;else if(i&&s&&a)return r[s=i(r,n)]===n?s:-1;if(n!=n)return(s=e(u.call(r,o,a),v.isNaN))>=0?s+o:-1;for(s=t>0?o:a-1;s>=0&&s<a;s+=t)if(r[s]===n)return s;return-1}}function r(t,e){var i=O.length,r=t.constructor,n=v.isFunction(r)&&r.prototype||a,s="constructor";for(v.has(t,s)&&!v.contains(e,s)&&e.push(s);i--;)(s=O[i])in t&&t[s]!==n[s]&&!v.contains(e,s)&&e.push(s)}var n=this,s=n._,o=Array.prototype,a=Object.prototype,l=Function.prototype,c=o.push,u=o.slice,p=a.toString,h=a.hasOwnProperty,d=Array.isArray,f=Object.keys,m=l.bind,g=Object.create,y=function(){},v=function(t){return t instanceof v?t:this instanceof v?void(this._wrapped=t):new v(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=v),exports._=v):n._=v,v.VERSION="1.8.3";var w=function(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,n){return t.call(e,i,r,n)};case 4:return function(i,r,n,s){return t.call(e,i,r,n,s)}}return function(){return t.apply(e,arguments)}},b=function(t,e,i){return null==t?v.identity:v.isFunction(t)?w(t,e,i):v.isObject(t)?v.matcher(t):v.property(t)};v.iteratee=function(t,e){return b(t,e,1/0)};var S=function(t,e){return function(i){var r=arguments.length;if(r<2||null==i)return i;for(var n=1;n<r;n++)for(var s=arguments[n],o=t(s),a=o.length,l=0;l<a;l++){var c=o[l];e&&void 0!==i[c]||(i[c]=s[c])}return i}},_=function(t){if(!v.isObject(t))return{};if(g)return g(t);y.prototype=t;var e=new y;return y.prototype=null,e},k=function(t){return function(e){return null==e?void 0:e[t]}},A=Math.pow(2,53)-1,T=k("length"),x=function(t){var e=T(t);return"number"==typeof e&&e>=0&&e<=A};v.each=v.forEach=function(t,e,i){var r,n;if(e=w(e,i),x(t))for(r=0,n=t.length;r<n;r++)e(t[r],r,t);else{var s=v.keys(t);for(r=0,n=s.length;r<n;r++)e(t[s[r]],s[r],t)}return t},v.map=v.collect=function(t,e,i){e=b(e,i);for(var r=!x(t)&&v.keys(t),n=(r||t).length,s=Array(n),o=0;o<n;o++){var a=r?r[o]:o;s[o]=e(t[a],a,t)}return s},v.reduce=v.foldl=v.inject=t(1),v.reduceRight=v.foldr=t(-1),v.find=v.detect=function(t,e,i){var r;if(void 0!==(r=x(t)?v.findIndex(t,e,i):v.findKey(t,e,i))&&-1!==r)return t[r]},v.filter=v.select=function(t,e,i){var r=[];return e=b(e,i),v.each(t,(function(t,i,n){e(t,i,n)&&r.push(t)})),r},v.reject=function(t,e,i){return v.filter(t,v.negate(b(e)),i)},v.every=v.all=function(t,e,i){e=b(e,i);for(var r=!x(t)&&v.keys(t),n=(r||t).length,s=0;s<n;s++){var o=r?r[s]:s;if(!e(t[o],o,t))return!1}return!0},v.some=v.any=function(t,e,i){e=b(e,i);for(var r=!x(t)&&v.keys(t),n=(r||t).length,s=0;s<n;s++){var o=r?r[s]:s;if(e(t[o],o,t))return!0}return!1},v.contains=v.includes=v.include=function(t,e,i,r){return x(t)||(t=v.values(t)),("number"!=typeof i||r)&&(i=0),v.indexOf(t,e,i)>=0},v.invoke=function(t,e){var i=u.call(arguments,2),r=v.isFunction(e);return v.map(t,(function(t){var n=r?e:t[e];return null==n?n:n.apply(t,i)}))},v.pluck=function(t,e){return v.map(t,v.property(e))},v.where=function(t,e){return v.filter(t,v.matcher(e))},v.findWhere=function(t,e){return v.find(t,v.matcher(e))},v.max=function(t,e,i){var r,n,s=-1/0,o=-1/0;if(null==e&&null!=t)for(var a=0,l=(t=x(t)?t:v.values(t)).length;a<l;a++)(r=t[a])>s&&(s=r);else e=b(e,i),v.each(t,(function(t,i,r){((n=e(t,i,r))>o||n===-1/0&&s===-1/0)&&(s=t,o=n)}));return s},v.min=function(t,e,i){var r,n,s=1/0,o=1/0;if(null==e&&null!=t)for(var a=0,l=(t=x(t)?t:v.values(t)).length;a<l;a++)(r=t[a])<s&&(s=r);else e=b(e,i),v.each(t,(function(t,i,r){((n=e(t,i,r))<o||n===1/0&&s===1/0)&&(s=t,o=n)}));return s},v.shuffle=function(t){for(var e,i=x(t)?t:v.values(t),r=i.length,n=Array(r),s=0;s<r;s++)(e=v.random(0,s))!==s&&(n[s]=n[e]),n[e]=i[s];return n},v.sample=function(t,e,i){return null==e||i?(x(t)||(t=v.values(t)),t[v.random(t.length-1)]):v.shuffle(t).slice(0,Math.max(0,e))},v.sortBy=function(t,e,i){return e=b(e,i),v.pluck(v.map(t,(function(t,i,r){return{value:t,index:i,criteria:e(t,i,r)}})).sort((function(t,e){var i=t.criteria,r=e.criteria;if(i!==r){if(i>r||void 0===i)return 1;if(i<r||void 0===r)return-1}return t.index-e.index})),"value")};var j=function(t){return function(e,i,r){var n={};return i=b(i,r),v.each(e,(function(r,s){var o=i(r,s,e);t(n,r,o)})),n}};v.groupBy=j((function(t,e,i){v.has(t,i)?t[i].push(e):t[i]=[e]})),v.indexBy=j((function(t,e,i){t[i]=e})),v.countBy=j((function(t,e,i){v.has(t,i)?t[i]++:t[i]=1})),v.toArray=function(t){return t?v.isArray(t)?u.call(t):x(t)?v.map(t,v.identity):v.values(t):[]},v.size=function(t){return null==t?0:x(t)?t.length:v.keys(t).length},v.partition=function(t,e,i){e=b(e,i);var r=[],n=[];return v.each(t,(function(t,i,s){(e(t,i,s)?r:n).push(t)})),[r,n]},v.first=v.head=v.take=function(t,e,i){if(null!=t)return null==e||i?t[0]:v.initial(t,t.length-e)},v.initial=function(t,e,i){return u.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))},v.last=function(t,e,i){if(null!=t)return null==e||i?t[t.length-1]:v.rest(t,Math.max(0,t.length-e))},v.rest=v.tail=v.drop=function(t,e,i){return u.call(t,null==e||i?1:e)},v.compact=function(t){return v.filter(t,v.identity)};var C=function(t,e,i,r){for(var n=[],s=0,o=r||0,a=T(t);o<a;o++){var l=t[o];if(x(l)&&(v.isArray(l)||v.isArguments(l))){e||(l=C(l,e,i));var c=0,u=l.length;for(n.length+=u;c<u;)n[s++]=l[c++]}else i||(n[s++]=l)}return n};v.flatten=function(t,e){return C(t,e,!1)},v.without=function(t){return v.difference(t,u.call(arguments,1))},v.uniq=v.unique=function(t,e,i,r){v.isBoolean(e)||(r=i,i=e,e=!1),null!=i&&(i=b(i,r));for(var n=[],s=[],o=0,a=T(t);o<a;o++){var l=t[o],c=i?i(l,o,t):l;e?(o&&s===c||n.push(l),s=c):i?v.contains(s,c)||(s.push(c),n.push(l)):v.contains(n,l)||n.push(l)}return n},v.union=function(){return v.uniq(C(arguments,!0,!0))},v.intersection=function(t){for(var e=[],i=arguments.length,r=0,n=T(t);r<n;r++){var s=t[r];if(!v.contains(e,s)){for(var o=1;o<i&&v.contains(arguments[o],s);o++);o===i&&e.push(s)}}return e},v.difference=function(t){var e=C(arguments,!0,!0,1);return v.filter(t,(function(t){return!v.contains(e,t)}))},v.zip=function(){return v.unzip(arguments)},v.unzip=function(t){for(var e=t&&v.max(t,T).length||0,i=Array(e),r=0;r<e;r++)i[r]=v.pluck(t,r);return i},v.object=function(t,e){for(var i={},r=0,n=T(t);r<n;r++)e?i[t[r]]=e[r]:i[t[r][0]]=t[r][1];return i},v.findIndex=e(1),v.findLastIndex=e(-1),v.sortedIndex=function(t,e,i,r){for(var n=(i=b(i,r,1))(e),s=0,o=T(t);s<o;){var a=Math.floor((s+o)/2);i(t[a])<n?s=a+1:o=a}return s},v.indexOf=i(1,v.findIndex,v.sortedIndex),v.lastIndexOf=i(-1,v.findLastIndex),v.range=function(t,e,i){null==e&&(e=t||0,t=0),i=i||1;for(var r=Math.max(Math.ceil((e-t)/i),0),n=Array(r),s=0;s<r;s++,t+=i)n[s]=t;return n};var J=function(t,e,i,r,n){if(!(r instanceof e))return t.apply(i,n);var s=_(t.prototype),o=t.apply(s,n);return v.isObject(o)?o:s};v.bind=function(t,e){if(m&&t.bind===m)return m.apply(t,u.call(arguments,1));if(!v.isFunction(t))throw new TypeError("Bind must be called on a function");var i=u.call(arguments,2),r=function(){return J(t,r,e,this,i.concat(u.call(arguments)))};return r},v.partial=function(t){var e=u.call(arguments,1),i=function(){for(var r=0,n=e.length,s=Array(n),o=0;o<n;o++)s[o]=e[o]===v?arguments[r++]:e[o];for(;r<arguments.length;)s.push(arguments[r++]);return J(t,i,this,this,s)};return i},v.bindAll=function(t){var e,i,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(e=1;e<r;e++)t[i=arguments[e]]=v.bind(t[i],t);return t},v.memoize=function(t,e){var i=function(r){var n=i.cache,s=""+(e?e.apply(this,arguments):r);return v.has(n,s)||(n[s]=t.apply(this,arguments)),n[s]};return i.cache={},i},v.delay=function(t,e){var i=u.call(arguments,2);return setTimeout((function(){return t.apply(null,i)}),e)},v.defer=v.partial(v.delay,v,1),v.throttle=function(t,e,i){var r,n,s,o=null,a=0;i||(i={});var l=function(){a=!1===i.leading?0:v.now(),o=null,s=t.apply(r,n),o||(r=n=null)};return function(){var c=v.now();a||!1!==i.leading||(a=c);var u=e-(c-a);return r=this,n=arguments,u<=0||u>e?(o&&(clearTimeout(o),o=null),a=c,s=t.apply(r,n),o||(r=n=null)):o||!1===i.trailing||(o=setTimeout(l,u)),s}},v.debounce=function(t,e,i){var r,n,s,o,a,l=function(){var c=v.now()-o;c<e&&c>=0?r=setTimeout(l,e-c):(r=null,i||(a=t.apply(s,n),r||(s=n=null)))};return function(){s=this,n=arguments,o=v.now();var c=i&&!r;return r||(r=setTimeout(l,e)),c&&(a=t.apply(s,n),s=n=null),a}},v.wrap=function(t,e){return v.partial(e,t)},v.negate=function(t){return function(){return!t.apply(this,arguments)}},v.compose=function(){var t=arguments,e=t.length-1;return function(){for(var i=e,r=t[e].apply(this,arguments);i--;)r=t[i].call(this,r);return r}},v.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},v.before=function(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=null),i}},v.once=v.partial(v.before,2);var P=!{toString:null}.propertyIsEnumerable("toString"),O=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];v.keys=function(t){if(!v.isObject(t))return[];if(f)return f(t);var e=[];for(var i in t)v.has(t,i)&&e.push(i);return P&&r(t,e),e},v.allKeys=function(t){if(!v.isObject(t))return[];var e=[];for(var i in t)e.push(i);return P&&r(t,e),e},v.values=function(t){for(var e=v.keys(t),i=e.length,r=Array(i),n=0;n<i;n++)r[n]=t[e[n]];return r},v.mapObject=function(t,e,i){e=b(e,i);for(var r,n=v.keys(t),s=n.length,o={},a=0;a<s;a++)o[r=n[a]]=e(t[r],r,t);return o},v.pairs=function(t){for(var e=v.keys(t),i=e.length,r=Array(i),n=0;n<i;n++)r[n]=[e[n],t[e[n]]];return r},v.invert=function(t){for(var e={},i=v.keys(t),r=0,n=i.length;r<n;r++)e[t[i[r]]]=i[r];return e},v.functions=v.methods=function(t){var e=[];for(var i in t)v.isFunction(t[i])&&e.push(i);return e.sort()},v.extend=S(v.allKeys),v.extendOwn=v.assign=S(v.keys),v.findKey=function(t,e,i){e=b(e,i);for(var r,n=v.keys(t),s=0,o=n.length;s<o;s++)if(e(t[r=n[s]],r,t))return r},v.pick=function(t,e,i){var r,n,s={},o=t;if(null==o)return s;v.isFunction(e)?(n=v.allKeys(o),r=w(e,i)):(n=C(arguments,!1,!1,1),r=function(t,e,i){return e in i},o=Object(o));for(var a=0,l=n.length;a<l;a++){var c=n[a],u=o[c];r(u,c,o)&&(s[c]=u)}return s},v.omit=function(t,e,i){if(v.isFunction(e))e=v.negate(e);else{var r=v.map(C(arguments,!1,!1,1),String);e=function(t,e){return!v.contains(r,e)}}return v.pick(t,e,i)},v.defaults=S(v.allKeys,!0),v.create=function(t,e){var i=_(t);return e&&v.extendOwn(i,e),i},v.clone=function(t){return v.isObject(t)?v.isArray(t)?t.slice():v.extend({},t):t},v.tap=function(t,e){return e(t),t},v.isMatch=function(t,e){var i=v.keys(e),r=i.length;if(null==t)return!r;for(var n=Object(t),s=0;s<r;s++){var o=i[s];if(e[o]!==n[o]||!(o in n))return!1}return!0};var $=function(t,e,i,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof v&&(t=t._wrapped),e instanceof v&&(e=e._wrapped);var n=p.call(t);if(n!==p.call(e))return!1;switch(n){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}var s="[object Array]"===n;if(!s){if("object"!=typeof t||"object"!=typeof e)return!1;var o=t.constructor,a=e.constructor;if(o!==a&&!(v.isFunction(o)&&o instanceof o&&v.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];for(var l=(i=i||[]).length;l--;)if(i[l]===t)return r[l]===e;if(i.push(t),r.push(e),s){if((l=t.length)!==e.length)return!1;for(;l--;)if(!$(t[l],e[l],i,r))return!1}else{var c,u=v.keys(t);if(l=u.length,v.keys(e).length!==l)return!1;for(;l--;)if(c=u[l],!v.has(e,c)||!$(t[c],e[c],i,r))return!1}return i.pop(),r.pop(),!0};v.isEqual=function(t,e){return $(t,e)},v.isEmpty=function(t){return null==t||(x(t)&&(v.isArray(t)||v.isString(t)||v.isArguments(t))?0===t.length:0===v.keys(t).length)},v.isElement=function(t){return!(!t||1!==t.nodeType)},v.isArray=d||function(t){return"[object Array]"===p.call(t)},v.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},v.each(["Arguments","Function","String","Number","Date","RegExp","Error"],(function(t){v["is"+t]=function(e){return p.call(e)==="[object "+t+"]"}})),v.isArguments(arguments)||(v.isArguments=function(t){return v.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(v.isFunction=function(t){return"function"==typeof t||!1}),v.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},v.isNaN=function(t){return v.isNumber(t)&&t!==+t},v.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===p.call(t)},v.isNull=function(t){return null===t},v.isUndefined=function(t){return void 0===t},v.has=function(t,e){return null!=t&&h.call(t,e)},v.noConflict=function(){return n._=s,this},v.identity=function(t){return t},v.constant=function(t){return function(){return t}},v.noop=function(){},v.property=k,v.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},v.matcher=v.matches=function(t){return t=v.extendOwn({},t),function(e){return v.isMatch(e,t)}},v.times=function(t,e,i){var r=Array(Math.max(0,t));e=w(e,i,1);for(var n=0;n<t;n++)r[n]=e(n);return r},v.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},v.now=Date.now||function(){return(new Date).getTime()};var I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},E=v.invert(I),M=function(t){var e=function(e){return t[e]},i="(?:"+v.keys(t).join("|")+")",r=RegExp(i),n=RegExp(i,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(n,e):t}};v.escape=M(I),v.unescape=M(E),v.result=function(t,e,i){var r=null==t?void 0:t[e];return void 0===r&&(r=i),v.isFunction(r)?r.call(t):r};var F=0;v.uniqueId=function(t){var e=++F+"";return t?t+e:e},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var L=/(.)^/,D={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},R=/\\|'|\r|\n|\u2028|\u2029/g,H=function(t){return"\\"+D[t]};v.template=function(t,e,i){!e&&i&&(e=i),e=v.defaults({},e,v.templateSettings);var r=RegExp([(e.escape||L).source,(e.interpolate||L).source,(e.evaluate||L).source].join("|")+"|$","g"),n=0,s="__p+='";t.replace(r,(function(e,i,r,o,a){return s+=t.slice(n,a).replace(R,H),n=a+e.length,i?s+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(s+="';\n"+o+"\n__p+='"),e})),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var o=new Function(e.variable||"obj","_",s)}catch(t){throw t.source=s,t}var a=function(t){return o.call(this,t,v)},l=e.variable||"obj";return a.source="function("+l+"){\n"+s+"}",a},v.chain=function(t){var e=v(t);return e._chain=!0,e};var z=function(t,e){return t._chain?v(e).chain():e};v.mixin=function(t){v.each(v.functions(t),(function(e){var i=v[e]=t[e];v.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),z(this,i.apply(v,t))}}))},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=o[t];v.prototype[t]=function(){var i=this._wrapped;return e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0],z(this,i)}})),v.each(["concat","join","slice"],(function(t){var e=o[t];v.prototype[t]=function(){return z(this,e.apply(this._wrapped,arguments))}})),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],(function(){return v}))}).call(this),function(t,e){var i=[],r=[],n=[],s={gsub:function(t,e,i){var r=new RegExp(e.source||e,"gi");return r.test(t)?t.replace(r,i):null},plural:function(t,e){i.unshift([t,e])},pluralize:function(r,s,o){var a;if(s!==e)s=parseFloat(s),a=1===s?this.singularize(r):this.pluralize(r),a=o?[s,a].join(" "):a;else{if(t(n).include(r))return r;a=r,t(i).detect((function(t){var e=this.gsub(r,t[0],t[1]);return!!e&&(a=e)}),this)}return a},singular:function(t,e){r.unshift([t,e])},singularize:function(e){if(t(n).include(e))return e;var i=e;return t(r).detect((function(t){var r=this.gsub(e,t[0],t[1]);return!!r&&(i=r)}),this),i},irregular:function(t,e){this.plural("\\b"+t+"\\b",e),this.singular("\\b"+e+"\\b",t)},uncountable:function(t){n.unshift(t)},ordinalize:function(t){if(isNaN(t))return t;var e=(t=t.toString()).slice(-1),i=t.slice(-2);if("11"===i||"12"===i||"13"===i)return t+"th";switch(e){case"1":return t+"st";case"2":return t+"nd";case"3":return t+"rd";default:return t+"th"}},titleize:function(t){return"string"!=typeof t?t:t.replace(/\S+/g,(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}))},resetInflections:function(){return i=[],r=[],n=[],this.plural(/$/,"s"),this.plural(/s$/,"s"),this.plural(/(ax|test)is$/,"$1es"),this.plural(/(octop|vir)us$/,"$1i"),this.plural(/(octop|vir)i$/,"$1i"),this.plural(/(alias|status)$/,"$1es"),this.plural(/(bu)s$/,"$1ses"),this.plural(/(buffal|tomat)o$/,"$1oes"),this.plural(/([ti])um$/,"$1a"),this.plural(/([ti])a$/,"$1a"),this.plural(/sis$/,"ses"),this.plural(/(?:([^f])fe|([lr])?f)$/,"$1$2ves"),this.plural(/(hive)$/,"$1s"),this.plural(/([^aeiouy]|qu)y$/,"$1ies"),this.plural(/(x|ch|ss|sh)$/,"$1es"),this.plural(/(matr|vert|ind)(?:ix|ex)$/,"$1ices"),this.plural(/([m|l])ouse$/,"$1ice"),this.plural(/([m|l])ice$/,"$1ice"),this.plural(/^(ox)$/,"$1en"),this.plural(/^(oxen)$/,"$1"),this.plural(/(quiz)$/,"$1zes"),this.singular(/s$/,""),this.singular(/(n)ews$/,"$1ews"),this.singular(/([ti])a$/,"$1um"),this.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/,"$1$2sis"),this.singular(/(^analy)ses$/,"$1sis"),this.singular(/([^f])ves$/,"$1fe"),this.singular(/(hive)s$/,"$1"),this.singular(/(tive)s$/,"$1"),this.singular(/([lr])ves$/,"$1f"),this.singular(/([^aeiouy]|qu)ies$/,"$1y"),this.singular(/(s)eries$/,"$1eries"),this.singular(/(m)ovies$/,"$1ovie"),this.singular(/(x|ch|ss|sh)es$/,"$1"),this.singular(/([m|l])ice$/,"$1ouse"),this.singular(/(bus)es$/,"$1"),this.singular(/(o)es$/,"$1"),this.singular(/(shoe)s$/,"$1"),this.singular(/(cris|ax|test)es$/,"$1is"),this.singular(/(octop|vir)i$/,"$1us"),this.singular(/(alias|status)es$/,"$1"),this.singular(/^(ox)en/,"$1"),this.singular(/(vert|ind)ices$/,"$1ex"),this.singular(/(matr)ices$/,"$1ix"),this.singular(/(quiz)zes$/,"$1"),this.singular(/(database)s$/,"$1"),this.irregular("person","people"),this.irregular("man","men"),this.irregular("child","children"),this.irregular("sex","sexes"),this.irregular("move","moves"),this.irregular("cow","kine"),this.uncountable("equipment"),this.uncountable("information"),this.uncountable("rice"),this.uncountable("money"),this.uncountable("species"),this.uncountable("series"),this.uncountable("fish"),this.uncountable("sheep"),this.uncountable("jeans"),this}};t.mixin(s.resetInflections())}(_),function(t){var e="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(i,r,n){e.Backbone=t(e,n,i,r)}));else if("undefined"!=typeof exports){var i,r=require("underscore");try{i=require("jquery")}catch(t){}t(e,exports,r,i)}else e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}((function(t,e,i,r){var n=t.Backbone,s=[].slice;e.VERSION="1.2.1",e.$=r,e.noConflict=function(){return t.Backbone=n,this},e.emulateHTTP=!1,e.emulateJSON=!1;var o=function(t,e,r){switch(t){case 1:return function(){return i[e](this[r])};case 2:return function(t){return i[e](this[r],t)};case 3:return function(t,n){return i[e](this[r],t,n)};case 4:return function(t,n,s){return i[e](this[r],t,n,s)};default:return function(){var t=s.call(arguments);return t.unshift(this[r]),i[e].apply(i,t)}}},a=function(t,e,r){i.each(e,(function(e,n){i[n]&&(t.prototype[n]=o(e,n,r))}))},l=e.Events={},c=/\s+/,u=function(t,e,r,n,s){var o,a=0;if(r&&"object"==typeof r){void 0!==n&&"context"in s&&void 0===s.context&&(s.context=n);for(o=i.keys(r);a<o.length;a++)e=t(e,o[a],r[o[a]],s)}else if(r&&c.test(r))for(o=r.split(c);a<o.length;a++)e=t(e,o[a],n,s);else e=t(e,r,n,s);return e};l.on=function(t,e,i){return p(this,t,e,i)};var p=function(t,e,i,r,n){(t._events=u(h,t._events||{},e,i,{context:r,ctx:t,listening:n}),n)&&((t._listeners||(t._listeners={}))[n.id]=n);return t};l.listenTo=function(t,e,r){if(!t)return this;var n=t._listenId||(t._listenId=i.uniqueId("l")),s=this._listeningTo||(this._listeningTo={}),o=s[n];if(!o){var a=this._listenId||(this._listenId=i.uniqueId("l"));o=s[n]={obj:t,objId:n,id:a,listeningTo:s,count:0}}return p(t,e,r,this,o),this};var h=function(t,e,i,r){if(i){var n=t[e]||(t[e]=[]),s=r.context,o=r.ctx,a=r.listening;a&&a.count++,n.push({callback:i,context:s,ctx:s||o,listening:a})}return t};l.off=function(t,e,i){return this._events?(this._events=u(d,this._events,t,e,{context:i,listeners:this._listeners}),this):this},l.stopListening=function(t,e,r){var n=this._listeningTo;if(!n)return this;for(var s=t?[t._listenId]:i.keys(n),o=0;o<s.length;o++){var a=n[s[o]];if(!a)break;a.obj.off(e,r,this)}return i.isEmpty(n)&&(this._listeningTo=void 0),this};var d=function(t,e,r,n){if(t){var s,o=0,a=n.context,l=n.listeners;if(e||r||a){for(var c=e?[e]:i.keys(t);o<c.length;o++){var u=t[e=c[o]];if(!u)break;for(var p=[],h=0;h<u.length;h++){var d=u[h];r&&r!==d.callback&&r!==d.callback._callback||a&&a!==d.context?p.push(d):(s=d.listening)&&0==--s.count&&(delete l[s.id],delete s.listeningTo[s.objId])}p.length?t[e]=p:delete t[e]}return i.size(t)?t:void 0}for(var f=i.keys(l);o<f.length;o++)delete l[(s=l[f[o]]).id],delete s.listeningTo[s.objId]}};l.once=function(t,e,r){var n=u(f,{},t,e,i.bind(this.off,this));return this.on(n,void 0,r)},l.listenToOnce=function(t,e,r){var n=u(f,{},e,r,i.bind(this.stopListening,this,t));return this.listenTo(t,n)};var f=function(t,e,r,n){if(r){var s=t[e]=i.once((function(){n(e,s),r.apply(this,arguments)}));s._callback=r}return t};l.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),i=Array(e),r=0;r<e;r++)i[r]=arguments[r+1];return u(m,this._events,t,void 0,i),this};var m=function(t,e,i,r){if(t){var n=t[e],s=t.all;n&&s&&(s=s.slice()),n&&g(n,r),s&&g(s,[e].concat(r))}return t},g=function(t,e){var i,r=-1,n=t.length,s=e[0],o=e[1],a=e[2];switch(e.length){case 0:for(;++r<n;)(i=t[r]).callback.call(i.ctx);return;case 1:for(;++r<n;)(i=t[r]).callback.call(i.ctx,s);return;case 2:for(;++r<n;)(i=t[r]).callback.call(i.ctx,s,o);return;case 3:for(;++r<n;)(i=t[r]).callback.call(i.ctx,s,o,a);return;default:for(;++r<n;)(i=t[r]).callback.apply(i.ctx,e);return}};l.bind=l.on,l.unbind=l.off,i.extend(e,l);var y=e.Model=function(t,e){var r=t||{};e||(e={}),this.cid=i.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{}),r=i.defaults({},r,i.result(this,"defaults")),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(y.prototype,l,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!i.iteratee(t,this)(this.attributes)},set:function(t,e,r){if(null==t)return this;var n;if("object"==typeof t?(n=t,r=e):(n={})[t]=e,r||(r={}),!this._validate(n,r))return!1;var s=r.unset,o=r.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=i.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,p=this._previousAttributes;for(var h in this.idAttribute in n&&(this.id=n[this.idAttribute]),n)e=n[h],i.isEqual(c[h],e)||a.push(h),i.isEqual(p[h],e)?delete u[h]:u[h]=e,s?delete c[h]:c[h]=e;if(!o){a.length&&(this._pending=r);for(var d=0;d<a.length;d++)this.trigger("change:"+a[d],this,c[a[d]],r)}if(l)return this;if(!o)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,i.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!i.isEmpty(this.changed):i.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&i.clone(this.changed);var e=this._changing?this._previousAttributes:this.attributes,r={};for(var n in t){var s=t[n];i.isEqual(e[n],s)||(r[n]=s)}return!!i.size(r)&&r},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=i.extend({parse:!0},t);var e=this,r=t.success;return t.success=function(i){var n=t.parse?e.parse(i,t):i;if(!e.set(n,t))return!1;r&&r.call(t.context,e,i,t),e.trigger("sync",e,i,t)},L(this,t),this.sync("read",this,t)},save:function(t,e,r){var n;null==t||"object"==typeof t?(n=t,r=e):(n={})[t]=e;var s=(r=i.extend({validate:!0,parse:!0},r)).wait;if(n&&!s){if(!this.set(n,r))return!1}else if(!this._validate(n,r))return!1;var o=this,a=r.success,l=this.attributes;r.success=function(t){o.attributes=l;var e=r.parse?o.parse(t,r):t;if(s&&(e=i.extend({},n,e)),e&&!o.set(e,r))return!1;a&&a.call(r.context,o,t,r),o.trigger("sync",o,t,r)},L(this,r),n&&s&&(this.attributes=i.extend({},l,n));var c=this.isNew()?"create":r.patch?"patch":"update";"patch"!==c||r.attrs||(r.attrs=n);var u=this.sync(c,this,r);return this.attributes=l,u},destroy:function(t){t=t?i.clone(t):{};var e=this,r=t.success,n=t.wait,s=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(i){n&&s(),r&&r.call(t.context,e,i,t),e.isNew()||e.trigger("sync",e,i,t)};var o=!1;return this.isNew()?i.defer(t.success):(L(this,t),o=this.sync("delete",this,t)),n||s(),o},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||F();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.defaults({validate:!0},t))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=i.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return!r||(this.trigger("invalid",this,r,i.extend(e,{validationError:r})),!1)}}),a(y,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes");var v=e.Collection=function(t,e){e||(e={}),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,i.extend({silent:!0},e))},w={add:!0,remove:!0,merge:!0},b={add:!0,remove:!1};i.extend(v.prototype,l,{model:y,initialize:function(){},toJSON:function(t){return this.map((function(e){return e.toJSON(t)}))},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:!1},e,b))},remove:function(t,e){e=i.extend({},e);var r=!i.isArray(t);t=r?[t]:i.clone(t);var n=this._removeModels(t,e);return!e.silent&&n&&this.trigger("update",this,e),r?n[0]:n},set:function(t,e){(e=i.defaults({},e,w)).parse&&!this._isModel(t)&&(t=this.parse(t,e));var r,n,s,o,a,l=!i.isArray(t);t=l?t?[t]:[]:t.slice();var c=e.at;null!=c&&(c=+c),c<0&&(c+=this.length+1);for(var u=this.comparator&&null==c&&!1!==e.sort,p=i.isString(this.comparator)?this.comparator:null,h=[],d=[],f={},m=e.add,g=e.merge,y=e.remove,v=!(u||!m||!y)&&[],b=!1,S=0;S<t.length;S++){if(s=t[S],o=this.get(s))y&&(f[o.cid]=!0),g&&s!==o&&(s=this._isModel(s)?s.attributes:s,e.parse&&(s=o.parse(s,e)),o.set(s,e),u&&!a&&o.hasChanged(p)&&(a=!0)),t[S]=o;else if(m){if(!(n=t[S]=this._prepareModel(s,e)))continue;h.push(n),this._addReference(n,e)}(n=o||n)&&(r=this.modelId(n.attributes),!v||!n.isNew()&&f[r]||(v.push(n),b=b||!this.models[S]||n.cid!==this.models[S].cid),f[r]=!0)}if(y){for(S=0;S<this.length;S++)f[(n=this.models[S]).cid]||d.push(n);d.length&&this._removeModels(d,e)}if(h.length||b)if(u&&(a=!0),this.length+=h.length,null!=c)for(S=0;S<h.length;S++)this.models.splice(c+S,0,h[S]);else{v&&(this.models.length=0);var _=v||h;for(S=0;S<_.length;S++)this.models.push(_[S])}if(a&&this.sort({silent:!0}),!e.silent){var k=null!=c?i.clone(e):e;for(S=0;S<h.length;S++)null!=c&&(k.index=c+S),(n=h[S]).trigger("add",n,this,k);(a||b)&&this.trigger("sort",this,e),(h.length||d.length)&&this.trigger("update",this,e)}return l?t[0]:t},reset:function(t,e){e=e?i.clone(e):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],e);return e.previousModels=this.models,this._reset(),t=this.add(t,i.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,i.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,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return s.apply(this.models,arguments)},get:function(t){if(null!=t){var e=this.modelId(this._isModel(t)?t.attributes:t);return this._byId[t]||this._byId[e]||this._byId[t.cid]}},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){var r=i.matches(t);return this[e?"find":"filter"]((function(t){return r(t.attributes)}))},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return i.invoke(this.models,"get",t)},fetch:function(t){var e=(t=i.extend({parse:!0},t)).success,r=this;return t.success=function(i){var n=t.reset?"reset":"set";r[n](i,t),e&&e.call(t.context,r,i,t),r.trigger("sync",r,i,t)},L(this,t),this.sync("read",this,t)},create:function(t,e){var r=(e=e?i.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;r||this.add(t,e);var n=this,s=e.success;return e.success=function(t,e,i){r&&n.add(t,i),s&&s.call(i.context,t,e,i)},t.save(null,e),t},parse:function(t){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;(e=e?i.clone(e):{}).collection=this;var r=new this.model(t,e);return r.validationError?(this.trigger("invalid",this,r.validationError,e),!1):r},_removeModels:function(t,e){for(var i=[],r=0;r<t.length;r++){var n=this.get(t[r]);if(n){var s=this.indexOf(n);this.models.splice(s,1),this.length--,e.silent||(e.index=s,n.trigger("remove",n,this,e)),i.push(n),this._removeReference(n,e)}}return!!i.length&&i},_isModel:function(t){return t instanceof y},_addReference:function(t){this._byId[t.cid]=t;var e=this.modelId(t.attributes);null!=e&&(this._byId[e]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t){delete this._byId[t.cid];var e=this.modelId(t.attributes);null!=e&&delete this._byId[e],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,r){if("add"!==t&&"remove"!==t||i===this){if("destroy"===t&&this.remove(e,r),"change"===t){var n=this.modelId(e.previousAttributes()),s=this.modelId(e.attributes);n!==s&&(null!=n&&delete this._byId[n],null!=s&&(this._byId[s]=e))}this.trigger.apply(this,arguments)}}}),a(v,{forEach:3,each:3,map:3,collect:3,reduce:4,foldl:4,inject:4,reduceRight:4,foldr:4,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:2,contains:2,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},"models");var S=["groupBy","countBy","sortBy","indexBy"];i.each(S,(function(t){i[t]&&(v.prototype[t]=function(e,r){var n=i.isFunction(e)?e:function(t){return t.get(e)};return i[t](this.models,n,r)})}));var _=e.View=function(t){this.cid=i.uniqueId("view"),i.extend(this,i.pick(t,A)),this._ensureElement(),this.initialize.apply(this,arguments)},k=/^(\S+)\s*(.*)$/,A=["model","collection","el","id","attributes","className","tagName","events"];i.extend(_.prototype,l,{tagName:"div",$:function(t){return this.$el.find(t)},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 e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=i.result(this,"events")),!t)return this;for(var e in this.undelegateEvents(),t){var r=t[e];if(i.isFunction(r)||(r=this[r]),r){var n=e.match(k);this.delegate(n[1],n[2],i.bind(r,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(){if(this.el)this.setElement(i.result(this,"el"));else{var t=i.extend({},i.result(this,"attributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t.class=i.result(this,"className")),this.setElement(this._createElement(i.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,r,n){var s=T[t];i.defaults(n||(n={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var o={type:s,dataType:"json"};if(n.url||(o.url=i.result(r,"url")||F()),null!=n.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(n.attrs||r.toJSON(n))),n.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),n.emulateHTTP&&("PUT"===s||"DELETE"===s||"PATCH"===s)){o.type="POST",n.emulateJSON&&(o.data._method=s);var a=n.beforeSend;n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",s),a)return a.apply(this,arguments)}}"GET"===o.type||n.emulateJSON||(o.processData=!1);var l=n.error;n.error=function(t,e,i){n.textStatus=e,n.errorThrown=i,l&&l.call(n.context,t,e,i)};var c=n.xhr=e.ajax(i.extend(o,n));return r.trigger("request",r,c,n),c};var T={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var x=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},j=/\((.*?)\)/g,C=/(\(\?)?:\w+/g,J=/\*\w+/g,P=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(x.prototype,l,{initialize:function(){},route:function(t,r,n){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(r)&&(n=r,r=""),n||(n=this[r]);var s=this;return e.history.route(t,(function(i){var o=s._extractParameters(t,i);!1!==s.execute(n,o,r)&&(s.trigger.apply(s,["route:"+r].concat(o)),s.trigger("route",r,o),e.history.trigger("route",s,r,o))})),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(P,"\\$&").replace(j,"(?:$1)?").replace(C,(function(t,e){return e?t:"([^/?]+)"})).replace(J,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,(function(t,e){return e===r.length-1?t||null:t?decodeURIComponent(t):null}))}});var O=e.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},$=/^[#\/]|\s+$/g,I=/^\/+|\/+$/g,E=/#.*$/;O.started=!1,i.extend(O.prototype,l,{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){var e=(t||this).location.href.match(/#(.*)$/);return e?e[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 null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace($,"")},start:function(t){if(O.started)throw new Error("Backbone.history has already been started");if(O.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window,this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(I,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!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;var r=document.body,n=r.insertBefore(this.iframe,r.firstChild).contentWindow;n.document.open(),n.document.close(),n.location.hash="#"+this.fragment}var s=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?s("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?s("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),O.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),i.any(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0})))},navigate:function(t,e){if(!O.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var i=this.root;""!==t&&"?"!==t.charAt(0)||(i=i.slice(0,-1)||"/");var r=i+t;if(t=this.decodeFragment(t.replace(E,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var 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){if(i){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new O;var M=function(t,e){var r,n=this;r=t&&i.has(t,"constructor")?t.constructor:function(){return n.apply(this,arguments)},i.extend(r,n,e);var s=function(){this.constructor=r};return s.prototype=n.prototype,r.prototype=new s,t&&i.extend(r.prototype,t),r.__super__=n.prototype,r};y.extend=v.extend=x.extend=_.extend=O.extend=M;var F=function(){throw new Error('A "url" property or function must be specified')},L=function(t,e){var i=e.error;e.error=function(r){i&&i.call(e.context,t,r,e),t.trigger("error",t,r,e)}};return e})),function(t,e){"function"==typeof define&&define.amd?define(["underscore","backbone"],(function(i,r){return e(i||t._,r||t.Backbone)})):e(_,Backbone)}(this,(function(t,e){function i(e,i){var r=null;try{r=i.url}catch(t){}if(!r)try{r=t.result(e,"url")}catch(t){}return r}function r(t,e){return":"!==t&&":"!==e&&t!==e}var n={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};return e.vanillaSync=e.sync,e.sync=function(s,o,a){var l=!1,c=document.createElement("a");c.href=document.URL;var u=document.createElement("a");if(u.href=i(o,a),""!==u.host&&c.host!==u.host&&(l=!0),l&&!e.$.support.cors){var p=n[s];if(t.defaults(a||(a={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON}),!a.emulateHTTP&&("update"===s||"patch"===s||"delete"===s))throw new Error("Backbone.CrossDomain cannot use PUT, PATCH, DELETE with XDomainRequest (IE) and emulateHTTP=false");var h={type:p,dataType:"json",url:i(o,a)};if(!h.url)throw new Error("No URL!");if(r(c.protocol,u.protocol)&&(h.url=h.url.replace(new RegExp(u.protocol),c.protocol)),null!=a.data||!o||"create"!==s&&"update"!==s&&"patch"!==s||(h.data=JSON.stringify(a.attrs||o.toJSON(a))),a.emulateJSON&&(h.data=h.data?{model:h.data}:{}),a.emulateHTTP&&("PUT"===p||"DELETE"===p||"PATCH"===p)){h.type="POST",a.emulateJSON&&(h.data._method=p);var d=a.beforeSend;a.beforeSend=function(t){if(d)return d.apply(this,arguments)}}"GET"===h.type||a.emulateJSON||(h.processData=!1),"POST"===h.type&&(h.data=e.$.param(e.$.parseJSON(h.data)));var f=a.xhr=new XDomainRequest,m=a.success,g=a.error;if(e.$.fn.jquery){var y=e.$.Deferred(),v=e.$.Callbacks("once memory");y.promise(f).complete=v.add}return f.onload=function(){var t={};f.responseText&&(t=e.$.parseJSON(f.responseText)),t&&(y&&y.resolveWith(this,[t,"success",f]),m(t))},f.onerror=function(){g&&(g(o,f,a),y&&y.rejectWith(this,[f,"error",g])),o.trigger("error",o,f,a)},"read"===s&&a.data&&(console.log("IE get params",JSON.stringify(a.data)),parameterized=e.$.param(a.data),h.url=h.url+"?"+parameterized),f.open(h.type,h.url),f.onprogress=function(){},f.ontimeout=function(){},setTimeout((function(){f.send(h.data)}),0),o.trigger("request",o,f,a),f}return e.vanillaSync.apply(this,arguments)},e})),function(t,e){if("function"==typeof define&&define.amd)define(["underscore","backbone"],(function(i,r){return e(t,r,i)}));else if("undefined"!=typeof exports){var i=require("underscore"),r=require("backbone");e(t,r,i),"undefined"!=typeof module&&module.exports&&(module.exports=r),exports=r}else e(t,t.Backbone,t._)}(this,(function(t,e,i){var r,n,s,o,a,l,c,u,p,h,d,f={};r=e.Model,n=e.Collection,s=r.prototype,a=n.prototype,o=e.Events,e.Associations={VERSION:"0.6.1"},e.Associations.scopes=[];var m=function(){return p},g=function(t){(!i.isString(t)||1>i.size(t))&&(t="."),p=t,c=RegExp("[\\"+p+"\\[\\]]+","g"),u=RegExp("[^\\"+p+"\\[\\]]+","g")};try{Object.defineProperty(e.Associations,"SEPARATOR",{enumerable:!0,get:m,set:g})}catch(t){}e.Associations.Many=e.Many="Many",e.Associations.One=e.One="One",e.Associations.Self=e.Self="Self",e.Associations.SEPARATOR=".",e.Associations.getSeparator=m,e.Associations.setSeparator=g,e.Associations.EVENTS_BUBBLE=!0,e.Associations.EVENTS_WILDCARD=!0,e.Associations.EVENTS_NC=!1,g(),l=e.AssociatedModel=e.Associations.AssociatedModel=r.extend({relations:void 0,_proxyCalls:void 0,on:function(t,r,n){var s=o.on.apply(this,arguments);if(e.Associations.EVENTS_NC)return s;var a=/\s+/;return i.isString(t)&&t&&!a.test(t)&&r&&(a=v(t))&&(f[a]=void 0===f[a]?1:f[a]+1),s},off:function(t,r,n){if(e.Associations.EVENTS_NC)return o.off.apply(this,arguments);var s=/\s+/,a=this._events,l={},c=a?i.keys(a):[],u=!t&&!r&&!n,p=i.isString(t)&&!s.test(t);if(u||p){s=0;for(var h=c.length;s<h;s++)l[c[s]]=a[c[s]]?a[c[s]].length:0}var d=o.off.apply(this,arguments);if(u||p)for(s=0,h=c.length;s<h;s++)(u=v(c[s]))&&(f[u]=a[c[s]]?f[u]-(l[c[s]]-a[c[s]].length):f[u]-l[c[s]]);return d},get:function(t){var e=s.get.call(this,t);return e||this._getAttr.apply(this,arguments)},set:function(t,e,r){var n;return i.isObject(t)||null==t?(n=t,r=e):(n={})[t]=e,t=this._set(n,r),this._processPendingEvents(),t},_set:function(t,e){var r,n,s,o,a=this;if(!t)return this;for(r in t)if(n||(n={}),r.match(c)){var u=y(r);o=i.initial(u),u=u[u.length-1],(o=this.get(o))instanceof l&&((o=n[o.cid]||(n[o.cid]={model:o,data:{}})).data[u]=t[r])}else(o=n[this.cid]||(n[this.cid]={model:this,data:{}})).data[r]=t[r];if(n)for(s in n)o=n[s],this._setAttr.call(o.model,o.data,e)||(a=!1);else a=this._setAttr.call(this,t,e);return a},_setAttr:function(o,a){var c;if(a||(a={}),a.unset)for(c in o)o[c]=void 0;return this.parents=this.parents||[],this.relations&&i.each(this.relations,(function(s){var c,u,p,h=s.key,d=s.relatedModel,f=s.collectionType,m=s.scope||t,g=s.map,y=this.attributes[h],v=y&&y.idAttribute,b=!1;if(!d||d.prototype instanceof r||(d=i.isFunction(d)?d.call(this,s,o):d),d&&i.isString(d)&&(d=d===e.Self?this.constructor:w(d,m)),g&&i.isString(g)&&(g=w(g,m)),u=s.options?i.extend({},s.options,a):a,o[h]){if(c=i.result(o,h),c=g?g.call(this,c,f||d):c,s.type===e.Many){if(f&&i.isFunction(f)&&f.prototype instanceof r)throw Error("type is of Backbone.Model. Specify derivatives of Backbone.Collection");if(!f||f.prototype instanceof n||(f=i.isFunction(f)?f.call(this,s,o):f),f&&i.isString(f)&&(f=w(f,m)),!d&&!f)throw Error("specify either a relatedModel or collectionType");if(f&&!f.prototype instanceof n)throw Error("collectionType must inherit from Backbone.Collection");y?(y._deferEvents=!0,y[u.reset?"reset":"set"](c instanceof n?c.models:c,u),s=y):(b=!0,c instanceof n?s=c:(s=f?new f:this._createCollection(d,m))[u.reset?"reset":"set"](c,u))}else{if(s.type!==e.One)throw Error("type attribute must be specified and have the values Backbone.One or Backbone.Many");if(!d)throw Error("specify a relatedModel for Backbone.One type");if(!(d.prototype instanceof e.AssociatedModel))throw Error("specify an AssociatedModel for Backbone.One type");s=c instanceof l?c:new d(c,u),y&&s.attributes[v]&&y.attributes[v]===s.attributes[v]?(y._deferEvents=!0,y._set(c instanceof l?c.attributes:c,u),s=y):b=!0}p=o[h]=s,(b||p&&!p._proxyCallback)&&(p._proxyCallback=function(){return e.Associations.EVENTS_BUBBLE&&this._bubbleEvent.call(this,h,p,arguments)},p.on("all",p._proxyCallback,this))}o.hasOwnProperty(h)&&(y=o[h],v=this.attributes[h],y?(y.parents=y.parents||[],-1==i.indexOf(y.parents,this)&&y.parents.push(this)):v&&0<v.parents.length&&(v.parents=i.difference(v.parents,[this]),v._proxyCallback&&v.off("all",v._proxyCallback,this)))}),this),s.set.call(this,o,a)},_bubbleEvent:function(t,i,s){var o,a,l=(o=s[0].split(":"))[0],c="nested-change"==s[0],u="change"===l,m=s[1],g=-1,y=i._proxyCalls,w=!(o=o[1])||-1==o.indexOf(p);if(!c&&(w&&(d=v(s[0])||t),e.Associations.EVENTS_NC||f[d]))return e.Associations.EVENTS_WILDCARD&&/\[\*\]/g.test(o)?this:(i instanceof n&&(u||o)&&(g=i.indexOf(h||m)),this instanceof r&&(h=this),o=t+(-1!==g&&(u||o)?"["+g+"]":"")+(o?p+o:""),e.Associations.EVENTS_WILDCARD&&(a=o.replace(/\[\d+\]/g,"[*]")),(c=[]).push.apply(c,s),c[0]=l+":"+o,e.Associations.EVENTS_WILDCARD&&o!==a&&(c[0]=c[0]+" "+l+":"+a),y=i._proxyCalls=y||{},this._isEventAvailable.call(this,y,o)||(y[o]=!0,u&&(this._previousAttributes[t]=i._previousAttributes,this.changed[t]=i),this.trigger.apply(this,c),e.Associations.EVENTS_NC&&u&&this.get(o)!=s[2]&&(t=["nested-change",o,s[1]],s[2]&&t.push(s[2]),this.trigger.apply(this,t)),y&&o&&delete y[o],h=void 0),this)},_isEventAvailable:function(t,e){return i.find(t,(function(t,i){return-1!==e.indexOf(i,e.length-i.length)}))},_createCollection:function(t,e){var r,s=t;if(i.isString(s)&&(s=w(s,e)),!(s&&s.prototype instanceof l||i.isFunction(s)))throw Error("type must inherit from Backbone.AssociatedModel");return(r=new n).model=s,r},_processPendingEvents:function(){this._processedEvents||(this._processedEvents=!0,this._deferEvents=!1,i.each(this._pendingEvents,(function(t){t.c.trigger.apply(t.c,t.a)})),this._pendingEvents=[],i.each(this.relations,(function(t){(t=this.attributes[t.key])&&t._processPendingEvents()}),this),delete this._processedEvents)},trigger:function(t){this._deferEvents?(this._pendingEvents=this._pendingEvents||[],this._pendingEvents.push({c:this,a:arguments})):s.trigger.apply(this,arguments)},toJSON:function(t){var e,r={};return r[this.idAttribute]=this.id,this.visited||(this.visited=!0,r=s.toJSON.apply(this,arguments),t&&t.serialize_keys&&(r=i.pick(r,t.serialize_keys)),this.relations&&i.each(this.relations,(function(n){var s=n.key,o=n.remoteKey,a=this.attributes[s],l=!n.isTransient;n=n.serialize||[],delete r[s],l&&(n.length&&(t?t.serialize_keys=n:t={serialize_keys:n}),e=a&&a.toJSON?a.toJSON(t):a,r[o||s]=i.isArray(e)?i.compact(e):e)}),this),delete this.visited),r},clone:function(t){return new this.constructor(this.toJSON(t))},cleanup:function(){i.each(this.relations,(function(t){(t=this.attributes[t.key])&&(t.parents=i.difference(t.parents,[this]))}),this),this.off()},_getAttr:function(t){var e,r,s=this;if(t=y(t),!(1>i.size(t))){for(r=0;r<t.length&&(e=t[r],s);r++)s=s instanceof n?isNaN(e)?void 0:s.at(e):s.attributes[e];return s}}});var y=function(t){return""===t?[""]:i.isString(t)?t.match(u):t||[]},v=function(t){return t?1<(t=t.split(":")).length?1<(t=(t=t[t.length-1]).split(p)).length?t[t.length-1].split("[")[0]:t[0].split("[")[0]:"":t},w=function(t,r){var n,s=[r];s.push.apply(s,e.Associations.scopes);for(var o,a=0,l=s.length;a<l&&(!(o=s[a])||!(n=i.reduce(t.split(p),(function(t,e){return t[e]}),o)));++a);return n},b=function(t,e,r){var n,s;return i.find(t,(function(t){if(n=i.find(t.relations,(function(i){return t.get(i.key)===e}),this))return s=t,!0}),this),n&&n.map?n.map.call(s,r,e):r},S={};return i.each(["set","remove","reset"],(function(t){S[t]=n.prototype[t],a[t]=function(e,i){return this.model.prototype instanceof l&&this.parents&&(arguments[0]=b(this.parents,this,e)),S[t].apply(this,arguments)}})),S.trigger=a.trigger,a.trigger=function(t){this._deferEvents?(this._pendingEvents=this._pendingEvents||[],this._pendingEvents.push({c:this,a:arguments})):S.trigger.apply(this,arguments)},a._processPendingEvents=l.prototype._processPendingEvents,a.on=l.prototype.on,a.off=l.prototype.off,e})),function(){for(var t,e=function(){},i=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],r=i.length,n=window.console=window.console||{};r--;)n[t=i[r]]||(n[t]=e)}(),"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,(function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,e){var i,r,n,s,o,a=gap,l=e[t];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(t)),"function"==typeof rep&&(l=rep.call(e,t,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,o=[],"[object Array]"===Object.prototype.toString.apply(l)){for(s=l.length,i=0;i<s;i+=1)o[i]=str(i,l)||"null";return n=0===o.length?"[]":gap?"[\n"+gap+o.join(",\n"+gap)+"\n"+a+"]":"["+o.join(",")+"]",gap=a,n}if(rep&&"object"==typeof rep)for(s=rep.length,i=0;i<s;i+=1)"string"==typeof rep[i]&&(n=str(r=rep[i],l))&&o.push(quote(r)+(gap?": ":":")+n);else for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(n=str(r,l))&&o.push(quote(r)+(gap?": ":":")+n);return n=0===o.length?"{}":gap?"{\n"+gap+o.join(",\n"+gap)+"\n"+a+"}":"{"+o.join(",")+"}",gap=a,n}}var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,i){var r;if(gap="",indent="","number"==typeof i)for(r=0;r<i;r+=1)indent+=" ";else"string"==typeof i&&(indent=i);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(t,e){var i,r,n=t[e];if(n&&"object"==typeof n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(void 0!==(r=walk(n,i))?n[i]=r:delete n[i]);return reviver.call(t,e,n)}var j;if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(){function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var r=t.prototype,n=this,s=n.EventEmitter;r.getListeners=function(t){var e,i,r=this._getEvents();if("object"==typeof t)for(i in e={},r)r.hasOwnProperty(i)&&t.test(i)&&(e[i]=r[i]);else e=r[t]||(r[t]=[]);return e},r.flattenListeners=function(t){var e,i=[];for(e=0;e<t.length;e+=1)i.push(t[e].listener);return i},r.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},r.addListener=function(t,i){var r,n=this.getListenersAsObject(t),s="object"==typeof i;for(r in n)n.hasOwnProperty(r)&&-1===e(n[r],i)&&n[r].push(s?i:{listener:i,once:!1});return this},r.on=i("addListener"),r.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},r.once=i("addOnceListener"),r.defineEvent=function(t){return this.getListeners(t),this},r.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},r.removeListener=function(t,i){var r,n,s=this.getListenersAsObject(t);for(n in s)s.hasOwnProperty(n)&&-1!==(r=e(s[n],i))&&s[n].splice(r,1);return this},r.off=i("removeListener"),r.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},r.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},r.manipulateListeners=function(t,e,i){var r,n,s=t?this.removeListener:this.addListener,o=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=i.length;r--;)s.call(this,e,i[r]);else for(r in e)e.hasOwnProperty(r)&&(n=e[r])&&("function"==typeof n?s.call(this,r,n):o.call(this,r,n));return this},r.removeEvent=function(t){var e,i=typeof t,r=this._getEvents();if("string"===i)delete r[t];else if("object"===i)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},r.removeAllListeners=i("removeEvent"),r.emitEvent=function(t,e){var i,r,n,s=this.getListenersAsObject(t);for(n in s)if(s.hasOwnProperty(n))for(r=s[n].length;r--;)!0===(i=s[n][r]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},r.trigger=i("emitEvent"),r.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},r.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},r._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},r._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return n.EventEmitter=s,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],(function(){return t})):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(t){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,r=function(){};i.addEventListener?r=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(r=function(t,i,r){t[i+r]=r.handleEvent?function(){var i=e(t);r.handleEvent.call(r,i)}:function(){var i=e(t);r.call(t,i)},t.attachEvent("on"+i,t[i+r])});var n=function(){};i.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(n=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(r){t[e+i]=void 0}});var s={bind:r,unbind:n};"function"==typeof define&&define.amd?define("eventie/eventie",s):t.eventie=s}(this),function(t,e){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],(function(i,r){return e(t,i,r)})):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("eventie")):t.imagesLoaded=e(t,t.EventEmitter,t.eventie)}(window,(function(t,e,i){function r(t,e){for(var i in e)t[i]=e[i];return t}function n(t){return"[object Array]"===h.call(t)}function s(t){var e=[];if(n(t))e=t;else if("number"==typeof t.length)for(var i=0,r=t.length;i<r;i++)e.push(t[i]);else e.push(t);return e}function o(t,e,i){if(!(this instanceof o))return new o(t,e);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=s(t),this.options=r({},this.options),"function"==typeof e?i=e:r(this.options,e),i&&this.on("always",i),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var n=this;setTimeout((function(){n.check()}))}function a(t){this.img=t}function l(t){this.src=t,d[t]=this}var c=t.jQuery,u=t.console,p=void 0!==u,h=Object.prototype.toString;o.prototype=new e,o.prototype.options={},o.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;t<e;t++){var i=this.elements[t];"IMG"===i.nodeName&&this.addImage(i);var r=i.nodeType;if(r&&(1===r||9===r||11===r))for(var n=i.querySelectorAll("img"),s=0,o=n.length;s<o;s++){var a=n[s];this.addImage(a)}}},o.prototype.addImage=function(t){var e=new a(t);this.images.push(e)},o.prototype.check=function(){function t(t,n){return e.options.debug&&p&&u.log("confirm",t,n),e.progress(t),++i===r&&e.complete(),!0}var e=this,i=0,r=this.images.length;if(this.hasAnyBroken=!1,r)for(var n=0;n<r;n++){var s=this.images[n];s.on("confirm",t),s.check()}else this.complete()},o.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout((function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify&&e.jqDeferred.notify(e,t)}))},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var e=this;setTimeout((function(){if(e.emit(t,e),e.emit("always",e),e.jqDeferred){var i=e.hasAnyBroken?"reject":"resolve";e.jqDeferred[i](e)}}))},c&&(c.fn.imagesLoaded=function(t,e){return new o(this,t,e).jqDeferred.promise(c(this))}),a.prototype=new e,a.prototype.check=function(){var t=d[this.img.src]||new l(this.img.src);if(t.isConfirmed)this.confirm(t.isLoaded,"cached was confirmed");else if(this.img.complete&&void 0!==this.img.naturalWidth)this.confirm(0!==this.img.naturalWidth,"naturalWidth");else{var e=this;t.on("confirm",(function(t,i){return e.confirm(t.isLoaded,i),!0})),t.check()}},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("confirm",this,e)};var d={};return l.prototype=new e,l.prototype.check=function(){if(!this.isChecked){var t=new Image;i.bind(t,"load",this),i.bind(t,"error",this),t.src=this.src,this.isChecked=!0}},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(t){this.confirm(!0,"onload"),this.unbindProxyEvents(t)},l.prototype.onerror=function(t){this.confirm(!1,"onerror"),this.unbindProxyEvents(t)},l.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},l.prototype.unbindProxyEvents=function(t){i.unbind(t.target,"load",this),i.unbind(t.target,"error",this)},o})),function(t,e){var i=function(t,e,i){var r;return function(){function n(){i||t.apply(s,o),r=null}var s=this,o=arguments;r?clearTimeout(r):i&&t.apply(s,o),r=setTimeout(n,e||150)}};jQuery.fn[e]=function(t){return t?this.bind("resize",i(t)):this.trigger(e)}}(jQuery,"smartresize"),function(t){t.Gal=function(e,i){this.element=t(i),this._init(e)},t.Gal.settings={selector:".item",width:225,gutter:20,animate:!1,columns:3,embedLayout:"v1",animationOptions:{speed:200,duration:300,effect:"fadeInOnAppear",queue:!0,complete:function(){}}},t.Gal.prototype={_init:function(e){var i=this;this.name=this._setName(5),this.gridArr=[],this.gridArrAppend=[],this.gridArrPrepend=[],this.setArr=!1,this.setGrid=!1,this.setOptions,this.cols=0,this.itemCount=0,this.prependCount=0,this.isPrepending=!1,this.appendCount=0,this.resetCount=!0,this.ifCallback=!0,this.box=this.element,this.options=t.extend(!0,{},t.Gal.settings,e),this.gridArr=t.makeArray(this.box.find(this.options.selector)),this.isResizing=!1,this.w=0,this.boxArr=[],this.initialWidth=this.box.width(),this._setCols(),this._renderGrid("append"),t(this.box).addClass("gridalicious"),this._addLoadMore(),t(window).smartresize((function(){i.resize()}))},_addLoadMore:function(){var e=t("<a href='#'>Load More</a>").addClass("j-paginate juicer-button");this.box.append(e)},_moveLoadMore:function(){var t=this.box.find(".j-paginate");t.length>0&&this.box.append(t.detach())},_setName:function(t,e){return e=e||"",t?this._setName(--t,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(60*Math.random()))+e):e},_setCols:function(){this.calculated=Math.floor(this.box.outerWidth()/this.options.width),this.cols=Math.min(this.options.columns,this.calculated),this.cols<1&&(this.cols=1),diff=(this.box.width()-this.cols*this.options.width)/this.cols,w=(this.options.width+diff)/this.box.width()*100,this.w=w,this.spacing=this.options.gutter/this.cols;for(var e=t("<div></div>").addClass("j-stacker-wrapper").css({marginLeft:-this.options.gutter/2,marginRight:-this.options.gutter/2}),i=t("<div></div>").addClass("j-stacker"),r=0;r<this.cols;r++){var n="v2"===this.options.embedLayout?"<ul></ul>":"<div></div>",s=t(n).addClass("j-stack galcolumn column-"+r+"-"+this.name).attr("id","j-column-"+r).css({width:w+"%",paddingLeft:this.options.gutter/2,paddingRight:this.options.gutter/2});i.append(s)}e.append(i),this.box.append(e),this.box.find(t("#clear"+this.name)).remove();var o=t("<div></div>").css({clear:"both",height:"0",width:"0",display:"block"}).attr("id","clear"+this.name);this.box.append(o)},_renderGrid:function(e,i,r){var n=[],s=[],o=0,a=(this.prependCount,this.appendCount),l=this.options.gutter,c=this.cols,u=this.name;t(".j-stack").width();i?(s=i,"append"==e&&(a+=r,o=this.appendCount),"prepend"==e&&(this.isPrepending=!0,(o=Math.round(r%c))<=0&&(o=c)),"renderAfterPrepend"==e&&(a+=r,o=r)):(s=this.gridArr,a=t(this.gridArr).length),t.each(s,(function(i,r){var s=t(r),p="100%";s.hasClass("not-responsive")&&(p="auto"),s.css({marginBottom:l,zoom:"1"}).find(".j-image img, object, embed, iframe").css({width:p,height:"auto",display:"block","margin-left":"auto","margin-right":"auto"}),"prepend"==e?(o--,t(".column-"+o+"-"+u).prepend(s),n.push(s),0==o&&(o=c)):(t(".column-"+o+"-"+u).append(s),n.push(s),++o>=c&&(o=0),a>=c&&(a-=c))})),this.appendCount=a,this.itemCount=o,"append"==e||"prepend"==e?("prepend"==e&&this._updateAfterPrepend(this.gridArr,s),this._renderItem(n),this.isPrepending=!1):this._renderItem(this.gridArr)},_collectItems:function(){var e=[];return t(this.box).find(this.options.selector).each((function(){e.push(t(this))})),e},_renderItem:function(e){
var i=this.options.animationOptions.speed,r=this.options.animationOptions.effect,n=this.options.animationOptions.duration,s=this.options.animationOptions.queue,o=this.options.animate,a=this.options.animationOptions.complete,l=0,c=0;!0!==o||this.isResizing?(t.each(e,(function(e,i){t(i).css({opacity:"1"})})),this.ifCallback&&a.call(e)):(!0===s&&"fadeInOnAppear"==r?(this.isPrepending&&e.reverse(),t.each(e,(function(r,s){setTimeout((function(){t(s).animate({opacity:"1.0"},n),++c==e.length&&a.call(void 0,e)}),l*i),l++}))):!1===s&&"fadeInOnAppear"==r&&(this.isPrepending&&e.reverse(),t.each(e,(function(i,r){t(r).animate({opacity:"1.0"},n),++c==e.length&&this.ifCallback&&a.call(void 0,e)}))),!0!==s||r||t.each(e,(function(i,r){t(r).css({opacity:"1"}),++c==e.length&&this.ifCallback&&a.call(void 0,e)})))},_updateAfterPrepend:function(e,i){var r=this.gridArr;t.each(i,(function(t,e){r.unshift(e)})),this.gridArr=r},resize:function(){this.box.width()!=this.initialWidth&&(this.initialWidth=this.box.width(),this.box.find(t(".j-stacker-wrapper")).remove(),this._setCols(),this._moveLoadMore(),this.ifCallback=!1,this.isResizing=!0,this._renderGrid("append"),this.ifCallback=!0,this.isResizing=!1)},append:function(e){var i=this.gridArr,r=this.gridArrPrepend;t.each(e,(function(t,e){i.push(e),r.push(e)})),this._renderGrid("append",e,t(e).length),this._addLoadMore()},prepend:function(e){this.ifCallback=!1,this._renderGrid("prepend",e,t(e).length),this.ifCallback=!0}},t.fn.gridalicious=function(e,i){return"string"==typeof e?this.each((function(){var r=t.data(this,"gridalicious");r[e].apply(r,[i])})):this.each((function(){t.data(this,"gridalicious",new t.Gal(e,this))})),this}}(jQuery),function(){function t(t){return(t||"").split(" ")}function e(t,e,i){return s(t,e,i)}function i(t,e,i,r){return"number"!=typeof i&&"string"!=typeof i||null!=r||(r=i,i=void 0),s(t,e,i,{timezone:r})}function r(t,e,i){return s(t,e,i,{utc:!0})}function n(t){return function(i,r,n){return e(i,r,t,n)}}function s(t,e,i,r){r=r||{},e&&!a(e)&&(i=e,e=void 0),e=e||new Date,(i=i||d).formats=i.formats||{};var n=e.getTime(),h=r.timezone,f=typeof h;if((r.utc||"number"==f||"string"==f)&&(e=o(e)),h){if("string"==f){var m="-"==h[0]?-1:1,g=parseInt(h.slice(1,3),10),y=parseInt(h.slice(3,5),10);h=m*(60*g+y)}f&&(e=new Date(e.getTime()+6e4*h))}return t.replace(/%([-_0]?.)/g,(function(t,o){var a,d;if(2==o.length){if("-"==(a=o[0]))d="";else if("_"==a)d=" ";else{if("0"!=a)return t;d="0"}o=o[1]}switch(o){case"A":return i.days[e.getDay()];case"a":return i.shortDays[e.getDay()];case"B":return i.months[e.getMonth()];case"b":case"h":return i.shortMonths[e.getMonth()];case"C":return l(Math.floor(e.getFullYear()/100),d);case"D":return s(i.formats.D||"%m/%d/%y",e,i);case"d":return l(e.getDate(),d);case"e":return l(e.getDate(),null==d?" ":d);case"F":return s(i.formats.F||"%Y-%m-%d",e,i);case"H":return l(e.getHours(),d);case"I":return l(c(e),d);case"j":var f=new Date(e.getFullYear(),0,1);return l(m=Math.ceil((e.getTime()-f.getTime())/864e5),3);case"k":return l(e.getHours(),null==d?" ":d);case"L":return l(Math.floor(n%1e3),3);case"l":return l(c(e),null==d?" ":d);case"M":return l(e.getMinutes(),d);case"m":return l(e.getMonth()+1,d);case"n":return"\n";case"o":return String(e.getDate())+u(e.getDate());case"P":return e.getHours()<12?i.am:i.pm;case"p":return e.getHours()<12?i.AM:i.PM;case"R":return s(i.formats.R||"%H:%M",e,i);case"r":return s(i.formats.r||"%I:%M:%S %p",e,i);case"S":return l(e.getSeconds(),d);case"s":return Math.floor(n/1e3);case"T":return s(i.formats.T||"%H:%M:%S",e,i);case"t":return"\t";case"U":return l(p(e,"sunday"),d);case"u":var m;return 0==(m=e.getDay())?7:m;case"v":return s(i.formats.v||"%e-%b-%Y",e,i);case"W":return l(p(e,"monday"),d);case"w":return e.getDay();case"Y":return e.getFullYear();case"y":return(f=String(e.getFullYear())).slice(f.length-2);case"Z":if(r.utc)return"GMT";var g=e.toString().match(/\(([\w\s]+)\)/);return g&&g[1]||"";case"z":if(r.utc)return"+0000";var y="number"==typeof h?h:-e.getTimezoneOffset();return(y<0?"-":"+")+l(Math.floor(Math.abs(y)/60))+l(Math.abs(y)%60);default:return o}}))}function o(t){var e=6e4*(t.getTimezoneOffset()||0);return new Date(t.getTime()+e)}function a(t){var e=0,i=f.length;for(e=0;e<i;++e)if("function"!=typeof t[f[e]])return!1;return!0}function l(t,e,i){"number"==typeof e&&(i=e,e="0"),null==e&&(e="0"),i=i||2;var r=String(t);if(e)for(;r.length<i;)r=e+r;return r}function c(t){var e=t.getHours();return 0==e?e=12:e>12&&(e-=12),e}function u(t){var e=t%10,i=t%100;if(i>=11&&i<=13||0===e||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}}function p(t,e){e=e||"sunday";var i=t.getDay();"monday"==e&&(0==i?i=6:i--);var r=new Date(t.getFullYear(),0,1),n=((t-r)/864e5+7-i)/7;return Math.floor(n)}var h;h="undefined"!=typeof module?module.exports=e:function(){return this||(0,eval)("this")}();var d={days:t("Sunday Monday Tuesday Wednesday Thursday Friday Saturday"),shortDays:t("Sun Mon Tue Wed Thu Fri Sat"),months:t("January February March April May June July August September October November December"),shortMonths:t("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"),AM:"AM",PM:"PM",am:"am",pm:"pm"};h.strftime=e,h.strftimeTZ=e.strftimeTZ=i,h.strftimeUTC=e.strftimeUTC=r,h.localizedStrftime=e.localizedStrftime=n;var f=["getTime","getTimezoneOffset","getDay","getDate","getMonth","getFullYear","getYear","getHours","getMinutes","getSeconds"]}(),function(){var t,e=[].slice;t=function(){var t,i,r,n,s,o;return s=/(^|[\s\n]|<br\/?>)((?:https?|ftp):\/\/[\-A-Z0-9+\u0026\u2019@#\/%?=()~_|!:,.;]*[\-A-Z0-9+\u0026@#\/%=~()_|])/gi,(n=1<=arguments.length?e.call(arguments,0):[]).length>0?(r=n[0],i=function(){var e;for(t in e=[],r)o=r[t],"callback"!==t&&e.push(" "+t+"='"+o+"'");return e}().join(""),this.replace(s,(function(t,e,n){return""+e+(("function"==typeof r.callback?r.callback(n):void 0)||"<a href='"+n+"'"+i+">"+n+"</a>")}))):this.replace(s,"$1<a href='$2'>$2</a>")},String.prototype.autoLink=t}.call(this),Object.create||(Object.create=function(t,e){function i(){}if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object prototype may only be an Object: "+t);if(null===t)throw new Error("This browser's implementation of Object.create is a shim and doesn't support 'null' as the first argument.");if(void 0!==e)throw new Error("This browser's implementation of Object.create is a shim and doesn't support a second argument.");return i.prototype=t,new i}),function(t,e){"use strict";t.jQueryBridget=e(t,t.jQuery)}(window,(function(t,e){"use strict";function i(i,s,a){function l(t,e,r){var n,s="$()."+i+'("'+e+'")';return t.each((function(t,l){var c=a.data(l,i);if(c){var u=c[e];if(u&&"_"!=e.charAt(0)){var p=u.apply(c,r);n=void 0===n?p:n}else o(s+" is not a valid method")}else o(i+" not initialized. Cannot call methods, i.e. "+s)})),void 0!==n?n:t}function c(t,e){t.each((function(t,r){var n=a.data(r,i);n?(n.option(e),n._init()):(n=new s(r,e),a.data(r,i,n))}))}(a=a||e||t.jQuery)&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){return"string"==typeof t?l(this,t,n.call(arguments,1)):(c(this,t),this)},r(a))}function r(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,o=void 0===s?function(){}:function(t){s.error(t)};return r(e||t.jQuery),i})),function(t,e){"use strict";t.getWindowSize=e()}(window,(function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<c;e++){t[l[e]]=0}return t}function r(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function n(){if(!u){u=!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 n=r(e);s.isBoxSizeOuter=o=200==t(n.width),i.removeChild(e)}}function s(e){if(n(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=r(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var u=a.isBorderBox="border-box"==s.boxSizing,p=0;p<c;p++){var h=l[p],d=s[h],f=parseFloat(d);a[h]=isNaN(f)?0:f}var m=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,w=a.borderLeftWidth+a.borderRightWidth,b=a.borderTopWidth+a.borderBottomWidth,S=u&&o,_=t(s.width);!1!==_&&(a.width=_+(S?0:m+w));var k=t(s.height);return!1!==k&&(a.height=k+(S?0:g+b)),a.innerWidth=a.width-(m+w),a.innerHeight=a.height-(g+b),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var o,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],c=l.length,u=!1;return s})),function(t,e){t.EvEmitter=e()}(this,(function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},r=i[t]=i[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var r=i.indexOf(e);return-1!=r&&i.splice(r,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var r=0,n=i[r];e=e||[];for(var s=this._onceEvents&&this._onceEvents[t];n;){var o=s&&s[n];o&&(this.off(t,n),delete s[n]),n.apply(this,e),n=i[r+=o?0:1]}return this}},t})),function(t,e){"use strict";t.matchesSelector=e()}(window,(function(){"use strict";var t=function(){var t=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 r=e[i]+"MatchesSelector";if(t[r])return r}}();return function(e,i){return e[t](i)}})),function(t,e){t.fizzyUIUtils=e(t,t.matchesSelector)}(window,(function(t,e){var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},removeFrom:function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){var e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,r){t=i.makeArray(t);var n=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(r){e(t,r)&&n.push(t);for(var i=t.querySelectorAll(r),s=0;s<i.length;s++)n.push(i[s])}else n.push(t)})),n},debounceMethod:function(t,e,i){var r=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];t&&clearTimeout(t);var e=arguments,s=this;this[n]=setTimeout((function(){r.apply(s,e),delete s[n]}),i||100)}},docReady:function(t){"complete"==document.readyState?t():document.addEventListener?document.addEventListener("DOMContentLoaded",t):document.attachEvent("onreadystatechange",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()}},r=t.console;return i.htmlInit=function(e,n){i.docReady((function(){var s=i.toDashed(n),o="data-"+s,a=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+s),c=i.makeArray(a).concat(i.makeArray(l)),u=o+"-options",p=t.jQuery;c.forEach((function(t){var i,s=t.getAttribute(o)||t.getAttribute(u);try{i=s&&JSON.parse(s)}catch(e){return void(r&&r.error("Error parsing "+o+" on "+t.className+": "+e))}var a=new e(t,i);p&&p.data(t,n,a)}))}))},i})),function(t,e){t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getWindowSize)}(window,(function(t,e){"use strict";function i(t){for(var e in t)return!1;return null,!0}function r(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function n(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}var s=document.documentElement.style,o="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],c={transform:a,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property"},u=r.prototype=Object.create(t.prototype);u.constructor=r,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},u.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.getWindowSize=function(){this.size=e(this.element)},u.css=function(t){var e=this.element.style;for(var i in t){e[c[i]||i]=t[i]}},u.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),r=t[e?"left":"right"],n=t[i?"top":"bottom"],s=this.layout.size,o=-1!=r.indexOf("%")?parseFloat(r)/100*s.width:parseInt(r,10),a=-1!=n.indexOf("%")?parseFloat(n)/100*s.height:parseInt(n,10);o=isNaN(o)?0:o,a=isNaN(a)?0:a,o-=e?s.paddingLeft:s.paddingRight,a-=i?s.paddingTop:s.paddingBottom,this.position.x=o,this.position.y=a},u.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",s=i?"left":"right",o=i?"right":"left",a=this.position.x+t[n];e[s]=this.getXValue(a),e[o]="";var l=r?"paddingTop":"paddingBottom",c=r?"top":"bottom",u=r?"bottom":"top",p=this.position.y+t[l];e[c]=this.getYValue(p),e[u]="",this.css(e),this.emitEvent("layout",[this])},u.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},u.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},u._transitionTo=function(t,e){this.getPosition();var i=this.position.x,r=this.position.y,n=parseInt(t,10),s=parseInt(e,10),o=n===this.position.x&&s===this.position.y;if(this.setPosition(t,e),!o||this.isTransitioning){var a=t-i,l=e-r,c={};c.transform=this.getTranslate(a,l),this.transition({to:c,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},u.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},u.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},u._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},u.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){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);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var p="opacity,"+n(a);u.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:p,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(l,this,!1))},u.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},u.onotransitionend=function(t){this.ontransitionend(t)};var h={"-webkit-transform":"transform"};u.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,r=h[t.propertyName]||t.propertyName;if(delete e.ingProperties[r],i(e.ingProperties)&&this.disableTransition(),r in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[r]),r in e.onEnd)e.onEnd[r].call(this),delete e.onEnd[r];this.emitEvent("transitionEnd",[this])}},u.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},u._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var d={transitionProperty:"",transitionDuration:""};return u.removeTransitionStyles=function(){this.css(d)},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){o&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},u.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},r})),function(t,e){"use strict";t.Outlayer=e(t,t.EvEmitter,t.getWindowSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,(function(t,e,i,r,n){"use strict";function s(t,e){var i=r.getQueryElement(t);if(i){this.element=i,l&&(this.$element=l(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(e);var n=++u;this.element.outlayerGUID=n,p[n]=this,this._create(),this._getOption("initLayout")&&this.layout()}else a&&a.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function o(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}var a=t.console,l=t.jQuery,c=function(){},u=0,p={};s.namespace="outlayer",s.Item=n,s.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 h=s.prototype;return r.extend(h,e.prototype),h.option=function(t){r.extend(this.options,t)},h._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,r=[],n=0;n<e.length;n++){var s=new i(e[n],this);r.push(s)}return r},h._filterFindItemElements=function(t){return r.filterFindElements(t,this.options.itemSelector)},h.getItemElements=function(){return this.items.map((function(t){return t.element}))},h.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},h._init=h.layout,h._resetLayout=function(){this.getWindowSize()},h.getWindowSize=function(){this.size=i(this.element)},h._getMeasurement=function(t,e){var r,n=this.options[t];n?("string"==typeof n?r=this.element.querySelector(n):n instanceof HTMLElement&&(r=n),this[t]=r?i(r)[e]:n):this[t]=0},h.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},h._getItemsForLayout=function(t){return t.filter((function(t){return!t.isIgnored}))},h._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach((function(t){var r=this._getItemLayoutPosition(t);r.item=t,r.isInstant=e||t.isLayoutInstant,i.push(r)}),this),this._processLayoutQueue(i)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(t){t.forEach((function(t){this._positionItem(t.item,t.x,t.y,t.isInstant)}),this)},h._positionItem=function(t,e,i,r){r?t.goTo(e,i):t.moveTo(e,i)},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},h._getContainerSize=c,h._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"}},h._emitCompleteOnItems=function(t,e){function i(){n.dispatchEvent(t+"Complete",null,[e])}function r(){++o==s&&i()}var n=this,s=e.length;if(e&&s){var o=0;e.forEach((function(e){e.once(t,r)}))}else i()},h.dispatchEvent=function(t,e,i){var r=e?[e].concat(i):i;if(this.emitEvent(t,r),l)if(this.$element=this.$element||l(this.element),e){var n=l.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},h.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},h.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},h.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},h.unstamp=function(t){(t=this._find(t))&&t.forEach((function(t){r.removeFrom(this.stamps,t),this.unignore(t)}),this)},h._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=r.makeArray(t)},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._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)}},h._manageStamp=c,h._getElementOffset=function(t){var e=t.getBoundingClientRect(),r=this._boundingRect,n=i(t);return{left:e.left-r.left-n.marginLeft,top:e.top-r.top-n.marginTop,right:r.right-e.right-n.marginRight,bottom:r.bottom-e.bottom-n.marginBottom}},h.handleEvent=r.handleEvent,h.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},r.debounceMethod(s,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var t=i(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},h.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},h.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},h.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)}},h.reveal=function(t){this._emitCompleteOnItems("reveal",t),t&&t.length&&t.forEach((function(t){t.reveal()}))},h.hide=function(t){this._emitCompleteOnItems("hide",t),t&&t.length&&t.forEach((function(t){t.hide()}))},h.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},h.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},h.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},h.getItems=function(t){t=r.makeArray(t);var e=[];return t.forEach((function(t){var i=this.getItem(t);i&&e.push(i)}),this),e},h.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach((function(t){t.remove(),r.removeFrom(this.items,t)}),this)},h.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 p[e],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},s.data=function(t){var e=(t=r.getQueryElement(t))&&t.outlayerGUID;return e&&p[e]},s.create=function(t,e){var i=o(s);return i.defaults=r.extend({},s.defaults),r.extend(i.defaults,e),i.compatOptions=r.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=o(n),r.htmlInit(i,t),l&&l.bridget&&l.bridget(t,i),i},s.Item=n,s})),function(t,e){t.Packery=t.Packery||{},t.Packery.Rect=e()}(window,(function(){"use strict";function t(e){for(var i in t.defaults)this[i]=t.defaults[i];for(i in e)this[i]=e[i]}t.defaults={x:0,y:0,width:0,height:0};var e=t.prototype;return e.contains=function(t){var e=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+i},e.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,r=t.x+t.width,n=t.y+t.height;return this.x<r&&e>t.x&&this.y<n&&i>t.y},e.getMaximalFreeRects=function(e){if(!this.overlaps(e))return!1;var i,r=[],n=this.x+this.width,s=this.y+this.height,o=e.x+e.width,a=e.y+e.height;return this.y<e.y&&(i=new t({x:this.x,y:this.y,width:this.width,height:e.y-this.y}),r.push(i)),n>o&&(i=new t({x:o,y:this.y,width:n-o,height:this.height}),r.push(i)),s>a&&(i=new t({x:this.x,y:a,width:this.width,height:s-a}),r.push(i)),this.x<e.x&&(i=new t({x:this.x,y:this.y,width:e.x-this.x,height:this.height}),r.push(i)),r},e.canFit=function(t){return this.width>=t.width&&this.height>=t.height},t})),function(t,e){var i=t.Packery=t.Packery||{};i.Packer=e(i.Rect)}(window,(function(t){"use strict";function e(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}var i=e.prototype;i.reset=function(){this.spaces=[];var e=new t({x:0,y:0,width:this.width,height:this.height});this.spaces.push(e),this.sorter=r[this.sortDirection]||r.downwardLeftToRight},i.pack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.canFit(t)){this.placeInSpace(t,i);break}}},i.columnPack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.x<=t.x&&i.x+i.width>=t.x+t.width&&i.height>=t.height-.01){t.y=i.y,this.placed(t);break}}},i.rowPack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.y<=t.y&&i.y+i.height>=t.y+t.height&&i.width>=t.width-.01){t.x=i.x,this.placed(t);break}}},i.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},i.placed=function(t){for(var e=[],i=0;i<this.spaces.length;i++){var r=this.spaces[i],n=r.getMaximalFreeRects(t);n?e.push.apply(e,n):e.push(r)}this.spaces=e,this.mergeSortSpaces()},i.mergeSortSpaces=function(){e.mergeRects(this.spaces),this.spaces.sort(this.sorter)},i.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},e.mergeRects=function(t){var e=0,i=t[e];t:for(;i;){for(var r=0,n=t[e+r];n;){if(n==i)r++;else{if(n.contains(i)){t.splice(e,1),i=t[e];continue t}i.contains(n)?t.splice(e+r,1):r++}n=t[e+r]}i=t[++e]}return t};var r={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return e})),function(t,e){t.Packery.Item=e(t.Outlayer,t.Packery.Rect)}(window,(function(t,e){"use strict";var i="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",r=function(){t.Item.apply(this,arguments)},n=r.prototype=Object.create(t.Item.prototype),s=n._create;n._create=function(){s.call(this),this.rect=new e};var o=n.moveTo;return n.moveTo=function(t,e){var i=Math.abs(this.position.x-t),r=Math.abs(this.position.y-e);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&i<1&&r<1?this.goTo(t,e):o.apply(this,arguments)},n.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&i&&(this.element.style[i]="none"),this.isTransitioning=!1,this.getWindowSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},n.disablePlacing=function(){this.isPlacing=!1},n.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},n.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},n.positionDropPlaceholder=function(){this.dropPlaceholder.style[i]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},n.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},r})),function(t,e){t.Packery=e(t.getWindowSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,(function(t,e,i,r,n){"use strict";function s(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function o(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}function a(t,e){var i=e.x-t.x,r=e.y-t.y;return Math.sqrt(i*i+r*r)}i.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var l=e.create("packery");l.Item=n;var c=l.prototype;c._create=function(){e.prototype._create.call(this),this.packer=new r,this.shiftPacker=new r,this.isEnabled=!0,this.dragItemCount=0;var t=this;this.handleDraggabilly={dragStart:function(){t.itemDragStart(this.element)},dragMove:function(){t.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){t.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(e,i){i&&t.itemDragStart(e.currentTarget)},drag:function(e,i){i&&t.itemDragMove(e.currentTarget,i.position.left,i.position.top)},stop:function(e,i){i&&t.itemDragEnd(e.currentTarget)}}},c._resetLayout=function(){var t,e,i;this.getWindowSize(),this._getMeasurements(),this._getOption("horizontal")?(t=1/0,e=this.size.innerHeight+this.gutter,i="rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,e=1/0,i="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=e,this.packer.sortDirection=this.shiftPacker.sortDirection=i,this.packer.reset(),this.maxY=0,this.maxX=0},c._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},c._getItemLayoutPosition=function(t){if(this._setRectSize(t.element,t.rect),this.isShifting||this.dragItemCount>0){var e=this._getPackMethod();this.packer[e](t.rect)}else this.packer.pack(t.rect);return this._setMaxXY(t.rect),t.rect},c.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},c._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},c._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},c._setRectSize=function(e,i){var r=t(e),n=r.outerWidth,s=r.outerHeight;(n||s)&&(n=this._applyGridGutter(n,this.columnWidth),s=this._applyGridGutter(s,this.rowHeight)),i.width=Math.min(n,this.packer.width),i.height=Math.min(s,this.packer.height)},c._applyGridGutter=function(t,e){if(!e)return t+this.gutter;var i=t%(e+=this.gutter);return t=Math[i&&i<1?"round":"ceil"](t/e)*e},c._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},c._manageStamp=function(t){var e,r=this.getItem(t);if(r&&r.isPlacing)e=r.rect;else{var n=this._getElementOffset(t);e=new i({x:this._getOption("originLeft")?n.left:n.right,y:this._getOption("originTop")?n.top:n.bottom})}this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},c.sortItemsByPosition=function(){var t=this._getOption("horizontal")?o:s;this.items.sort(t)},c.fit=function(t,e,i){var r=this.getItem(t);r&&(this.stamp(r.element),r.enablePlacing(),this.updateShiftTargets(r),e=void 0===e?r.rect.x:e,i=void 0===i?r.rect.y:i,this.shift(r,e,i),this._bindFitEvents(r),r.moveTo(r.rect.x,r.rect.y),this.shiftLayout(),
this.unstamp(r.element),this.sortItemsByPosition(),r.disablePlacing())},c._bindFitEvents=function(t){function e(){2==++r&&i.dispatchEvent("fitComplete",null,[t])}var i=this,r=0;t.once("layout",e),this.once("layoutComplete",e)},c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},c.needsResizeLayout=function(){var e=t(this.element),i=this._getOption("horizontal")?"innerHeight":"innerWidth";return e[i]!=this.size[i]},c.resizeShiftPercentLayout=function(){var e=this._getItemsForLayout(this.items),i=this._getOption("horizontal"),r=i?"y":"x",n=i?"height":"width",s=i?"rowHeight":"columnWidth",o=i?"innerHeight":"innerWidth",a=this[s];if(a=a&&a+this.gutter){this._getMeasurements();var l=this[s]+this.gutter;e.forEach((function(t){var e=Math.round(t.rect[r]/a);t.rect[r]=e*l}))}else{var c=t(this.element)[o]+this.gutter,u=this.packer[n];e.forEach((function(t){t.rect[r]=t.rect[r]/u*c}))}this.shiftLayout()},c.itemDragStart=function(t){if(this.isEnabled){this.stamp(t);var e=this.getItem(t);e&&(e.enablePlacing(),e.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(e))}},c.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var e=this._getOption("originLeft"),r=this._getOption("originTop");this.stamps.forEach((function(t){var n=this.getItem(t);if(!n||!n.isPlacing){var s=this._getElementOffset(t),o=new i({x:e?s.left:s.right,y:r?s.top:s.bottom});this._setRectSize(t,o),this.shiftPacker.placed(o)}}),this);var n,s=this._getOption("horizontal"),o=s?"rowHeight":"columnWidth",a=s?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var l=this[o];if(l=l&&l+this.gutter){var c=Math.ceil(t.rect[a]/l),u=Math.floor((this.shiftPacker[a]+this.gutter)/l);n=(u-c)*l;for(var p=0;p<u;p++)this._addShiftTarget(p*l,0,n)}else n=this.shiftPacker[a]+this.gutter-t.rect[a],this._addShiftTarget(0,0,n);var h=this._getItemsForLayout(this.items),d=this._getPackMethod();h.forEach((function(t){var e=t.rect;this._setRectSize(t.element,e),this.shiftPacker[d](e),this._addShiftTarget(e.x,e.y,n);var i=s?e.x+e.width:e.x,r=s?e.y:e.y+e.height;if(this._addShiftTarget(i,r,n),l)for(var o=Math.round(e[a]/l),c=1;c<o;c++){var u=s?i:e.x+l*c,p=s?e.y+l*c:r;this._addShiftTarget(u,p,n)}}),this)},c._addShiftTarget=function(t,e,i){var r=this._getOption("horizontal")?e:t;if(!(0!==r&&r>i)){var n=t+","+e;-1!=this.shiftTargetKeys.indexOf(n)||(this.shiftTargetKeys.push(n),this.shiftTargets.push({x:t,y:e}))}},c.shift=function(t,e,i){var r,n=1/0,s={x:e,y:i};this.shiftTargets.forEach((function(t){var e=a(t,s);e<n&&(r=t,n=e)})),t.rect.x=r.x,t.rect.y=r.y};var u=120;c.itemDragMove=function(t,e,i){function r(){s.shift(n,e,i),n.positionDropPlaceholder(),s.layout()}var n=this.isEnabled&&this.getItem(t);if(n){e-=this.size.paddingLeft,i-=this.size.paddingTop;var s=this,o=new Date;this._itemDragTime&&o-this._itemDragTime<u?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(r,u)):(r(),this._itemDragTime=o)}},c.itemDragEnd=function(t){function e(){2==++r&&(i.element.classList.remove("is-positioning-post-drag"),i.hideDropPlaceholder(),n.dispatchEvent("dragItemPositioned",null,[i]))}var i=this.isEnabled&&this.getItem(t);if(i){clearTimeout(this.dragTimeout),i.element.classList.add("is-positioning-post-drag");var r=0,n=this;i.once("layout",e),this.once("layoutComplete",e),i.moveTo(i.rect.x,i.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),i.disablePlacing(),this.unstamp(i.element)}},c.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},c.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},c._bindDraggabillyEvents=function(t,e){var i=this.handleDraggabilly;t[e]("dragStart",i.dragStart),t[e]("dragMove",i.dragMove),t[e]("dragEnd",i.dragEnd)},c.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},c.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},c._bindUIDraggableEvents=function(t,e){var i=this.handleUIDraggable;t[e]("dragstart",i.start)[e]("drag",i.drag)[e]("dragstop",i.stop)};var p=c.destroy;return c.destroy=function(){p.apply(this,arguments),this.isEnabled=!1},l.Rect=i,l.Packer=r,l})),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){"use strict";var e=window.Slick||{};(e=function(){function e(e,r){var n,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(e),appendDots:t(e),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return'<button type="button" data-role="none" role="button" aria-required="false" tabindex="0">'+(e+1)+"</button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!1,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},s.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.hidden="hidden",s.paused=!1,s.stopped=!1,s.positionProp=null,s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=t(e),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,n=t(e).data("slick")||{},s.options=t.extend({},s.defaults,n,r),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,void 0!==document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=t.proxy(s.autoPlay,s),s.autoPlayClear=t.proxy(s.autoPlayClear,s),s.changeSlide=t.proxy(s.changeSlide,s),s.clickHandler=t.proxy(s.clickHandler,s),s.selectHandler=t.proxy(s.selectHandler,s),s.setPosition=t.proxy(s.setPosition,s),s.swipeHandler=t.proxy(s.swipeHandler,s),s.dragHandler=t.proxy(s.dragHandler,s),s.keyHandler=t.proxy(s.keyHandler,s),s.autoPlayIterator=t.proxy(s.autoPlayIterator,s),s.instanceUid=i++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0),s.checkResponsive(!0)}var i=0;return e}()).prototype.addSlide=e.prototype.slickAdd=function(e,i,r){var n=this;if("boolean"==typeof i)r=i,i=null;else if(i<0||i>=n.slideCount)return!1;n.unload(),"number"==typeof i?0===i&&0===n.$slides.length?t(e).appendTo(n.$slideTrack):r?t(e).insertBefore(n.$slides.eq(i)):t(e).insertAfter(n.$slides.eq(i)):!0===r?t(e).prependTo(n.$slideTrack):t(e).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each((function(e,i){t(i).attr("data-slick-index",e)})),n.$slidesCache=n.$slides,n.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var r={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(e=-e),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:e},n.options.speed,n.options.easing,i):n.$slideTrack.animate({top:e},n.options.speed,n.options.easing,i):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),t({animStart:n.currentLeft}).animate({animStart:e},{duration:n.options.speed,easing:n.options.easing,step:function(t){t=Math.ceil(t),!1===n.options.vertical?(r[n.animType]="translate("+t+"px, 0px)",n.$slideTrack.css(r)):(r[n.animType]="translate(0px,"+t+"px)",n.$slideTrack.css(r))},complete:function(){i&&i.call()}})):(n.applyTransition(),e=Math.ceil(e),!1===n.options.vertical?r[n.animType]="translate3d("+e+"px, 0px, 0px)":r[n.animType]="translate3d(0px,"+e+"px, 0px)",n.$slideTrack.css(r),i&&setTimeout((function(){n.disableTransition(),i.call()}),n.options.speed))},e.prototype.asNavFor=function(e){var i=this,r=i.options.asNavFor;r&&null!==r&&(r=t(r).not(i.$slider)),null!==r&&"object"==typeof r&&r.each((function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)}))},e.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer),t.slideCount>t.options.slidesToShow&&!0!==t.paused&&!0!==t.stopped&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this;!1===t.options.infinite?1===t.direction?(t.currentSlide+1===t.slideCount-1&&(t.direction=0),t.slideHandler(t.currentSlide+t.options.slidesToScroll)):(t.currentSlide-1==0&&(t.direction=1),t.slideHandler(t.currentSlide-t.options.slidesToScroll)):t.slideHandler(t.currentSlide+t.options.slidesToScroll)},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,r=this;if(!0===r.options.dots&&r.slideCount>r.options.slidesToShow){for(i='<ul class="'+r.options.dotsClass+'">',e=0;e<=r.getDotCount();e+=1)i+="<li>"+r.options.customPaging.call(this,r,e)+"</li>";i+="</ul>",r.$dots=t(i).appendTo(r.options.appendDots),r.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")})),e.$slidesCache=e.$slides,e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<ul class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<ul class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,r,n,s,o,a=this;if(r=document.createDocumentFragment(),s=a.$slider.children(),a.options.rows>1){for(o=a.options.slidesPerRow*a.options.rows,n=Math.ceil(s.length/o),t=0;t<n;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var u=t*o+(e*a.options.slidesPerRow+i);s.get(u)&&c.appendChild(s.get(u))}l.appendChild(c)}r.appendChild(l)}a.$slider.html(r),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var r,n,s,o=this,a=!1,l=o.$slider.width(),c=window.innerWidth||t(window).width();if("window"===o.respondTo?s=c:"slider"===o.respondTo?s=l:"min"===o.respondTo&&(s=Math.min(c,l)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(r in n=null,o.breakpoints)o.breakpoints.hasOwnProperty(r)&&(!1===o.originalSettings.mobileFirst?s<o.breakpoints[r]&&(n=o.breakpoints[r]):s>o.breakpoints[r]&&(n=o.breakpoints[r]));null!==n?null!==o.activeBreakpoint?(n!==o.activeBreakpoint||i)&&(o.activeBreakpoint=n,"unslick"===o.breakpointSettings[n]?o.unslick(n):(o.options=t.extend({},o.originalSettings,o.breakpointSettings[n]),!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),a=n):(o.activeBreakpoint=n,"unslick"===o.breakpointSettings[n]?o.unslick(n):(o.options=t.extend({},o.originalSettings,o.breakpointSettings[n]),!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),a=n):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e),a=n),e||!1===a||o.$slider.trigger("breakpoint",[o,a])}},e.prototype.changeSlide=function(e,i){var r,n,s=this,o=t(e.target);switch(o.is("a")&&e.preventDefault(),o.is("li")||(o=o.closest("li")),r=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,e.data.message){case"previous":n=0===r?s.options.slidesToScroll:s.options.slidesToShow-r,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-n,!1,i);break;case"next":n=0===r?s.options.slidesToScroll:r,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+n,!1,i);break;case"index":var a=0===e.data.index?0:e.data.index||o.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(a),!1,i),o.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var r in e){if(t<e[r]){t=i;break}i=e[r]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide),!0===e.options.pauseOnDotsHover&&!0===e.options.autoplay&&t("li",e.$dots).off("mouseenter.slick",t.proxy(e.setPaused,e,!0)).off("mouseleave.slick",t.proxy(e.setPaused,e,!1))),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide)),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.$list.off("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.setPaused,e,!1)),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.html(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){t(this).attr("style",t(this).data("originalStyling"))})),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout((function(){i.disableTransition(t),e.call()}),i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,r=0;if(!0===t.options.infinite)for(;e<t.slideCount;)++r,e=i+t.options.slidesToShow,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)r=t.slideCount;else for(;e<t.slideCount;)++r,e=i+t.options.slidesToShow,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return r-1},e.prototype.getLeft=function(t){var e,i,r,n=this,s=0;return n.slideOffset=0,i=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=i*n.options.slidesToShow*-1),n.slideCount%n.options.slidesToScroll!=0&&t+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(t>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(t-n.slideCount))*n.slideWidth*-1,s=(n.options.slidesToShow-(t-n.slideCount))*i*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,s=n.slideCount%n.options.slidesToScroll*i*-1))):t+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(t+n.options.slidesToShow-n.slideCount)*n.slideWidth,s=(t+n.options.slidesToShow-n.slideCount)*i),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,s=0),!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?t*n.slideWidth*-1+n.slideOffset:t*i*-1+s,!0===n.options.variableWidth&&(e=(r=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow))[0]?-1*r[0].offsetLeft:0,!0===n.options.centerMode&&(e=(r=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow+1))[0]?-1*r[0].offsetLeft:0,e+=(n.$list.width()-r.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,r=0,n=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,r=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)n.push(i),i=r+e.options.slidesToScroll,r+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return n},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,r=this;return i=!0===r.options.centerMode?r.slideWidth*Math.floor(r.options.slidesToShow/2):0,!0===r.options.swipeToSlide?(r.$slideTrack.find(".slick-slide").each((function(n,s){if(s.offsetLeft-i+t(s).outerWidth()/2>-1*r.swipeLeft)return e=s,!1})),Math.abs(t(e).attr("data-slick-index")-r.currentSlide)||1):r.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA()},e.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.on("click.slick",{message:"next"},t.changeSlide))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&!0===e.options.autoplay&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.setPaused,e,!0)).on("mouseleave.slick",t.proxy(e.setPaused,e,!1))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),e.$list.on("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.setPaused,e,!1)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show(),!0===t.options.autoplay&&t.autoPlay()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each((function(){var e=t(this),i=t(this).attr("data-lazy"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,(function(){e.attr("src",i).animate({opacity:1},200,(function(){e.removeAttr("data-lazy").removeClass("slick-loading")}))}))},r.onerror=function(){var t=e.parents(".feed-item");console.log("Juicer: post with id "+t.data("id")+" has a broken image. Making into text post."),t.removeClass("image-post").removeClass("j-video").addClass("words"),e.parents(".j-image").remove()},r.src=i}))}var i,r,n=this;!0===n.options.centerMode?!0===n.options.infinite?r=(i=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(i=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),r=n.options.slidesToShow/2+1+2+n.currentSlide):(i=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,r=(i-=n.options.slidesToShow)+2*n.options.slidesToShow,!0===n.options.fade&&(i>0&&i--,r<=n.slideCount&&r++)),e(n.$slider.find(".slick-slide").slice(i,r)),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.stop=e.prototype.slickStop=function(){var t=this;t.autoPlayClear(),t.stopped=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.paused=!1,t.stopped=!1,t.autoPlay()},e.prototype.postSlide=function(t){var e=this;e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,!0===e.options.autoplay&&!1===e.paused&&e.autoPlay(),!0===e.options.accessibility&&e.initADA()},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(){var e,i=this;t("img[data-lazy]",i.$slider).length>0&&((e=t("img[data-lazy]",i.$slider).first()).attr("src",null),e.attr("src",e.attr("data-lazy")).removeClass("slick-loading").load((function(){e.removeAttr("data-lazy"),i.progressiveLazyLoad(),!0===i.options.adaptiveHeight&&i.setPosition()})).error((function(){e.removeAttr("data-lazy"),i.progressiveLazyLoad()})))},e.prototype.refresh=function(e){var i,r,n=this;r=n.slideCount-n.options.slidesToShow,n.options.infinite||(n.slideCount<=n.options.slidesToShow?n.currentSlide=0:n.currentSlide>r&&(n.currentSlide=r)),i=n.currentSlide,n.destroy(!0),t.extend(n,n.initials,{currentSlide:i}),n.init(),e||n.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,r,n=this,s=n.options.responsive||null;if("array"===t.type(s)&&s.length){for(e in n.respondTo=n.options.respondTo||"window",s)if(r=n.breakpoints.length-1,i=s[e].breakpoint,s.hasOwnProperty(e)){for(;r>=0;)n.breakpoints[r]&&n.breakpoints[r]===i&&n.breakpoints.splice(r,1),r--;n.breakpoints.push(i),n.breakpointSettings[i]=s[e].settings}n.breakpoints.sort((function(t,e){return n.options.mobileFirst?t-e:e-t}))}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses(0),e.setPosition(),e.$slider.trigger("reInit",[e]),!0===e.options.autoplay&&e.focusHandler()},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var r=this;if(t="boolean"==typeof t?!0===(e=t)?0:r.slideCount-1:!0===e?--t:t,r.slideCount<1||t<0||t>r.slideCount-1)return!1;r.unload(),!0===i?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(t).remove(),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slidesCache=r.$slides,r.reinit()},e.prototype.setCSS=function(t){var e,i,r=this,n={};!0===r.options.rtl&&(t=-t),e="left"==r.positionProp?Math.ceil(t)+"px":"0px",i="top"==r.positionProp?Math.ceil(t)+"px":"0px",n[r.positionProp]=t,!1===r.transformsEnabled?r.$slideTrack.css(n):(n={},!1===r.cssTransitions?(n[r.animType]="translate("+e+", "+i+")",r.$slideTrack.css(n)):(n[r.animType]="translate3d("+e+", "+i+", 0px)",r.$slideTrack.css(n)))},e.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each((function(r,n){e=i.slideWidth*r*-1,!0===i.options.rtl?t(n).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(n).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(e,i,r){var n,s,o=this;if("responsive"===e&&"array"===t.type(i))for(s in i)if("array"!==t.type(o.options.responsive))o.options.responsive=[i[s]];else{for(n=o.options.responsive.length-1;n>=0;)o.options.responsive[n].breakpoint===i[s].breakpoint&&o.options.responsive.splice(n,1),n--;o.options.responsive.push(i[s])}else o.options[e]=i;!0===r&&(o.unload(),o.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",
void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},e.prototype.setSlideClasses=function(t){var e,i,r,n,s=this;i=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(t).addClass("slick-current"),!0===s.options.centerMode?(e=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&(t>=e&&t<=s.slideCount-1-e?s.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(r=s.options.slidesToShow+t,i.slice(r-e+1,r+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-s.options.slidesToShow).addClass("slick-center"):t===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(t).addClass("slick-center")):t>=0&&t<=s.slideCount-s.options.slidesToShow?s.$slides.slice(t,t+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=s.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(n=s.slideCount%s.options.slidesToShow,r=!0===s.options.infinite?s.options.slidesToShow+t:t,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-t<s.options.slidesToShow?i.slice(r-(s.options.slidesToShow-n),r+n).addClass("slick-active").attr("aria-hidden","false"):i.slice(r,r+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===s.options.lazyLoad&&s.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,r,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(i=null,n.slideCount>n.options.slidesToShow)){for(r=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,e=n.slideCount;e>n.slideCount-r;e-=1)i=e-1,t(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(e=0;e<r;e+=1)i=e,t(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each((function(){t(this).attr("id","")}))}},e.prototype.setPaused=function(t){var e=this;!0===e.options.autoplay&&!0===e.options.pauseOnHover&&(e.paused=t,t?e.autoPlayClear():e.autoPlay())},e.prototype.selectHandler=function(e){var i=this,r=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),n=parseInt(r.attr("data-slick-index"));if(n||(n=0),i.slideCount<=i.options.slidesToShow)return i.setSlideClasses(n),void i.asNavFor(n);i.slideHandler(n)},e.prototype.slideHandler=function(t,e,i){var r,n,s,o,a=null,l=this;if(e=e||!1,(!0!==l.animating||!0!==l.options.waitForAnimate)&&!(!0===l.options.fade&&l.currentSlide===t||l.slideCount<=l.options.slidesToShow))if(!1===e&&l.asNavFor(t),r=t,a=l.getLeft(r),o=l.getLeft(l.currentSlide),l.currentLeft=null===l.swipeLeft?o:l.swipeLeft,!1===l.options.infinite&&!1===l.options.centerMode&&(t<0||t>l.getDotCount()*l.options.slidesToScroll))!1===l.options.fade&&(r=l.currentSlide,!0!==i?l.animateSlide(o,(function(){l.postSlide(r)})):l.postSlide(r));else if(!1===l.options.infinite&&!0===l.options.centerMode&&(t<0||t>l.slideCount-l.options.slidesToScroll))!1===l.options.fade&&(r=l.currentSlide,!0!==i?l.animateSlide(o,(function(){l.postSlide(r)})):l.postSlide(r));else{if(!0===l.options.autoplay&&clearInterval(l.autoPlayTimer),n=r<0?l.slideCount%l.options.slidesToScroll!=0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+r:r>=l.slideCount?l.slideCount%l.options.slidesToScroll!=0?0:r-l.slideCount:r,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,n]),s=l.currentSlide,l.currentSlide=n,l.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),!0===l.options.fade)return!0!==i?(l.fadeSlideOut(s),l.fadeSlide(n,(function(){l.postSlide(n)}))):l.postSlide(n),void l.animateHeight();!0!==i?l.animateSlide(a,(function(){l.postSlide(n)})):l.postSlide(n)}},e.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,r,n=this;return t=n.touchObject.startX-n.touchObject.curX,e=n.touchObject.startY-n.touchObject.curY,i=Math.atan2(e,t),(r=Math.round(180*i/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?!1===n.options.rtl?"left":"right":r>=135&&r<=225?!1===n.options.rtl?"right":"left":!0===n.options.verticalSwiping?r>=35&&r<=135?"left":"right":"vertical"},e.prototype.swipeEnd=function(){var t,e=this;if(e.dragging=!1,e.shouldClick=!(e.touchObject.swipeLength>10),void 0===e.touchObject.curX)return!1;if(!0===e.touchObject.edgeHit&&e.$slider.trigger("edge",[e,e.swipeDirection()]),e.touchObject.swipeLength>=e.touchObject.minSwipe)switch(e.swipeDirection()){case"left":t=e.options.swipeToSlide?e.checkNavigable(e.currentSlide+e.getSlideCount()):e.currentSlide+e.getSlideCount(),e.slideHandler(t),e.currentDirection=0,e.touchObject={},e.$slider.trigger("swipe",[e,"left"]);break;case"right":t=e.options.swipeToSlide?e.checkNavigable(e.currentSlide-e.getSlideCount()):e.currentSlide-e.getSlideCount(),e.slideHandler(t),e.currentDirection=1,e.touchObject={},e.$slider.trigger("swipe",[e,"right"])}else e.touchObject.startX!==e.touchObject.curX&&(e.slideHandler(e.currentSlide),e.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,r,n,s,o=this;return s=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!o.dragging||s&&1!==s.length)&&(e=o.getLeft(o.currentSlide),o.touchObject.curX=void 0!==s?s[0].pageX:t.clientX,o.touchObject.curY=void 0!==s?s[0].pageY:t.clientY,o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curX-o.touchObject.startX,2))),!0===o.options.verticalSwiping&&(o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curY-o.touchObject.startY,2)))),"vertical"!==(i=o.swipeDirection())?(void 0!==t.originalEvent&&o.touchObject.swipeLength>4&&t.preventDefault(),n=(!1===o.options.rtl?1:-1)*(o.touchObject.curX>o.touchObject.startX?1:-1),!0===o.options.verticalSwiping&&(n=o.touchObject.curY>o.touchObject.startY?1:-1),r=o.touchObject.swipeLength,o.touchObject.edgeHit=!1,!1===o.options.infinite&&(0===o.currentSlide&&"right"===i||o.currentSlide>=o.getDotCount()&&"left"===i)&&(r=o.touchObject.swipeLength*o.options.edgeFriction,o.touchObject.edgeHit=!0),!1===o.options.vertical?o.swipeLeft=e+r*n:o.swipeLeft=e+r*(o.$list.height()/o.listWidth)*n,!0===o.options.verticalSwiping&&(o.swipeLeft=e+r*n),!0!==o.options.fade&&!1!==o.options.touchMove&&(!0===o.animating?(o.swipeLeft=null,!1):void o.setCSS(o.swipeLeft))):void 0)},e.prototype.swipeStart=function(t){var e,i=this;if(1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},e.prototype.visibility=function(){var t=this;document[t.hidden]?(t.paused=!0,t.autoPlayClear()):!0===t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this;e.$slideTrack.attr("role","listbox").attr("aria-label","Slider"),e.$slides.add(e.$slideTrack.find(".slick-cloned")).find("a, input, button, select").attr({tabindex:"-1"}),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(i){var r="slick-slide"+e.instanceUid+i;t(this).attr({role:"option","aria-describedby":r,"aria-label":"Social post"}),t(this).find(".j-text").attr("id",r)})),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each((function(i){t(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+i,id:"slick-slide"+e.instanceUid+i})})).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},e.prototype.activateADA=function(){var t=this;t.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select, img, p").attr({tabindex:"-1","aria-hidden":"true"}),t.$slideTrack.find(".slick-active").attr("tabindex","0"),t.$slideTrack.find(":not(.slick-active)").attr("tabindex","-1")},e.prototype.focusHandler=function(){var e=this;e.$slider.on("focus.slick blur.slick","*",(function(i){i.stopImmediatePropagation();var r=t(this);setTimeout((function(){e.isPlay&&(r.is(":focus")?(e.autoPlayClear(),e.paused=!0):(e.paused=!1,e.autoPlay()))}),0)}))},t.fn.slick=function(){var t,i,r=this,n=arguments[0],s=Array.prototype.slice.call(arguments,1),o=r.length;for(t=0;t<o;t++)if("object"==typeof n||void 0===n?r[t].slick=new e(r[t],n):i=r[t].slick[n].apply(r[t].slick,s),void 0!==i)return i;return r}})),window._u=_.noConflict(),window.JuicerBackbone=Backbone.noConflict(),function(){window.Juicer={Models:{},Collections:{},Views:{},Active:[],initialize:function(){return _u.each(jQuery(".juicer-feed"),(function(t){var e,i;if((e=jQuery(t)).is(":visible")&&!e.hasClass("j-post-overlay"))return e.hasClass("j-initialized")?void 0:(i=new Juicer.Views.Feed({el:t}).render(),Juicer.Active.push(i),e.addClass("j-initialized"))}))},remove:function(){return clearInterval(window.jInterval),_u.each(Juicer.Active,(function(t){return t.close()})),window.Juicer.Active=[]}}}.call(this),function(){jQuery(document).ready((function(){var t;return t=jQuery.fn.jquery.split("."),jQuery.map(t,(function(t){return("0"+t).slice(-2)})).join(".")>="01.07"?(jQuery(".juicer-feed").length>0&&Juicer.Views.Feed&&Juicer.initialize(),window.jInterval=setInterval((function(){var t;if(jQuery(".juicer-feed").length>0&&(t=_u.map(jQuery(".juicer-feed"),(function(t){return jQuery(t).hasClass("j-initialized")})),!!_u.contains(t,!1)))return Juicer.initialize()}),1e3)):jQuery(".juicer-feed").before("<h1>You need to have at least jQuery 1.7 installed for the Juicer plugin to work. Please <a href='https://www.juicer.io/contact'>contact us</a> with any questions.</h1>")}))}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.SubView=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.className="opened-sidebar-option",i.prototype.title="Feed Options",i.prototype.initialize=function(t){return this.feed=t.feed,this.sidebarView=t.sidebarView,this.$target=t.$target,this.feedView=t.feedView,this.events=_u.extend({},this.inheritedEvents,this.events),this.delegateEvents()},i.prototype.inheritedEvents={"click .close-subview":"close"},i.prototype.render=function(){return this.renderTemplate(),this.renderTitle(),this.$target.after(this.el),setTimeout((t=this,function(){return t.$el.addClass("visible")}),100);var t},i.prototype.renderTemplate=function(){return this.$el.html(this.template({feed:this.feed}))},i.prototype.renderTitle=function(){return this.$el.prepend(this.titleTemplate())},i.prototype.titleTemplate=function(){return"<h2 class='subview-title relative uc bold bg-nav-header py-25'><a class='close-subview absolute'>Close</a>"+this.title+"</h2>"},i.prototype.close=function(){return this.$el.removeClass("visible"),this.sidebarView.closeSubView(),setTimeout((t=this,function(){return t.remove()}),500);var t},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.SubViewSlide=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.className="sliding-sidebar-option",i.prototype.render=function(){return this.renderTemplate(),this.$el.css({display:"none"}),this.$target.after(this.el),this.$el.slideDown()},i.prototype.close=function(){return this.sidebarView.closeSubView(),this.$el.slideUp((t=this,function(){return t.remove()}));var t},i}(Juicer.Views.SubView)}.call(this),function(){Juicer.Helpers={renderPartial:function(t,e){var i;null==e&&(e={}),(t=t.split("/"))[t.length-1]="_"+t[t.length-1],t=t.join("/");try{return JST["partials/"+t](e)}catch(e){return i=e,console.log("Sorry, something went wrong with the partial: '"+t+"'"),console.log(i),""}},numberWithCommas:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},fullDate:function(t,e,i){if(null==e&&(e="%-m/%-d/%y at %-l:%M%p"),null==i&&(i=!0),null!=t)return i?isNaN(Date.parse(t.toLocaleString()))||(t=new Date(t.toLocaleString())):t=new Date(t),"undefined"==typeof strftime?t:strftime(e,t)},prettify:function(t){return t=(t=t.replace("-"," ")).replace("_"," "),this.capitalizeEachWord(t)},capitalizeEachWord:function(t){return t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))},timeAgo:function(t){var e,i;return t=new Date(t),i=Math.floor((new Date-t)/1e3),(e=Math.floor(i/31536e3))>1?e+"y":(e=Math.floor(i/2592e3))>1?e+"mo":(e=Math.floor(i/86400))>1?e+"d":(e=Math.floor(i/3600))>1?e+"h":(e=Math.floor(i/60))>1?e+"m":Math.floor(i)+"s"},sample:function(t){return t[Math.floor(Math.random()*t.length)]},confirm:function(t){return null!=window.confirmed||!!confirm(t)&&(window.confirmed=!0,!0)},format:function(t){return null==t?null:(t=t.replace(/\r\n?/,"\n"),(t=jQuery.trim(t)).length>0&&(t=(t="<p>"+(t=(t=(t=t.replace(/\n\n+/g,"</p><p>")).replace(/\n/g,"<br />")).replace(this.xss,""))+"</p>").autoLink()),t)},rgb2hex:function(t){return/^#[0-9A-F]{6}$/i.test(t)?t:(t=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))?"#"+this.hex(t[1])+this.hex(t[2])+this.hex(t[3]):"#"},hex:function(t){return("0"+parseInt(t).toString(16)).slice(-2)},xss:/javascript|onerror|alert|iframe|js|script|console|confirm|cookie|java|onmouseover|eval|document|window/gi}}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.FormView=function(i){function r(){this.invalid=t(this.invalid,this),this.valid=t(this.valid,this),this.prepareModel(),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.delegateEvents=function(t){return this.events=_u.extend(this._baseEvents(),_u.result(this,"events")),r.__super__.delegateEvents.call(this,t)},r.prototype._baseEvents=function(){return{"change [data-validation]":this.validateField,"keyup [data-validation].keyup-validation":this.validateField,"keyup [data-validation].invalid":this.validateField,submit:this.processForm,"click input[type=submit]":this.processForm}},r.prototype.prepareModel=function(){return this.model=this.createModel(),this.setupValidation()},r.prototype.createModel=function(){throw new Error("implement #createModel in your FormView subclass to return a JuicerBackbone model")},r.prototype.namespace=null,r.prototype.loadingMessage="Loading...",r.prototype.setupValidation=function(){return JuicerBackbone.Validation.unbind(this),JuicerBackbone.Validation.bind(this,{model:this.model,valid:this.valid,invalid:this.invalid})},r.prototype.valid=function(t,e){var i,r;if(this.removeErrorMessage(e),this.$("[data-validation="+e+"]").removeClass("invalid").addClass("valid"),i=this.$("[data-validation="+e+"]").data("on-valid-"+e+"-custom-classes"))return $("[data-validation="+e+"]")[0].value.length>0?i.split(" ").forEach((r=this,function(t){return r.$("[data-validation="+e+"]").addClass(t)})):i.split(" ").forEach(function(t){return function(i){return t.$("[data-validation="+e+"]").removeClass(i)}}(this))},r.prototype.invalid=function(t,e,i){var r,n;if(this.removeErrorMessage(e),this.$("[data-validation="+e+"]").removeClass("valid").addClass("invalid").parents(".form-field").append("<small class='error "+e+"'>"+i+"</small>"),r=this.$("[data-validation="+e+"]").data("on-valid-"+e+"-custom-classes"))return r.split(" ").forEach((n=this,function(t){return n.$("[data-validation="+e+"]").removeClass(t)}))},r.prototype.showActivityIndicator=function(t){return this.submit=t,this.submit.attr("disabled","disabled"),this.submitMessage=this.submit.val(),this.submit.val(this.loadingMessage)},r.prototype.hideActivityIndicator=function(){return this.submitMessage&&this.submit.val(this.submitMessage),this.submit.removeAttr("disabled")},r.prototype.removeErrorMessage=function(t){return this.$(".error."+t).remove()},r.prototype.validateField=function(t){var e,i,r;return i=$(t.target).attr("data-validation"),r=$(t.target).val(),(e=this.model.preValidate(i,r))?this.invalid(this,i,e):this.valid(this,i)},r.prototype.processForm=function(t){return t.preventDefault(),this.showActivityIndicator($(t.target)),this.updateModel(),this.submitForm()},r.prototype.updateModel=function(){var t;return t=JuicerBackbone.Syphon.serialize(this),this.model.set(t[this.namespace])},r.prototype.submitForm=function(){return this.model.validate()?this.hideActivityIndicator():this.$el[0].submit()},r}(JuicerBackbone.View)}.call(this),function(){this.JST||(this.JST={}),this.JST.admin_downgrade=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r;return t="",e=this.action.match("delete")?"Delete":"Downgrade",t+='<div class="tac p-30"><h3 class="fs-2 mb-25">',t+=this.escape(e),t+=' User</h3><form action="',t+=this.escape(this.action),t+='" method="post"><input name="authenticity_token" type="hidden" value="',t+=this.escape(this.csrf),t+='" /><input name="user_id" type="hidden" value="',t+=this.escape(this.userId),t+='" /><div class="select mb-30"><select name="churn[reason]"><option>Why are they ',t+=this.escape(e.slice(0,-1)),t+="ing their account?</option>",_u.each(this.reasons,(r=this,function(e){return t+='<option value="',t+=r.escape(e),t+='">',t+=r.escape(e),t+="</option>"})),t+='</select></div><textarea class="bordered churn-comments mb-25" name="churn[comments]" placeholder="Notes? Any More details? Copy and paste anything they say specifically."></textarea><div class="mb-25"><input name="churn[positive]" type="hidden" value="0" /><input checked="true" id="positive" name="churn[positive]" type="checkbox" value="1" /><label for="positive">Did the customer have a positive experience with Juicer?</label></div>',i=this.action.match("mark")?"Mark for Downgrade":e+" now",t+='<input class="j-button" type="submit" value="',t+=this.escape(i),t+='" /></form></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.admin_password_reset=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",this.action.match("delete")?"Delete":"Downgrade",t+='<div class="tac p-30"><h3 class="fs-2 mb-25">Send the Password Reset Instructions</h3><p class="mb-20">This action will also invalidate the password reset tokens that might have been sent earlier.<br /> Please warn the user that they need to use the reset link from the latest email they received from us.</p><p class="mb-30">Some whitelabel accounts may have problems with receiving the emails from us due to DMARC policy.<br />This can be solved by sending the email from our domain juicer.io</p><form action="',t+=this.escape(this.action),t+='" method="post"><input name="authenticity_token" type="hidden" value="',t+=this.escape(this.csrf),t+='" /><input name="user_id" type="hidden" value="',t+=this.escape(this.userId),t+='" /><div class="mb-25"><input checked="true" id="use_juicer_domain" name="use_juicer_domain" type="checkbox" value="1" /><label for="use_juicer_domain">Send the email from our domain (juicer.io)?</label></div><input class="j-button" type="submit" value="Send the Email" /></form></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.analytics_date_range=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="tac p-50"><h2 class="fs-2">Viewing Options</h2><h3 class="fifteen tc-dark-gray mb-25">Select the dates you\u2019d like to view analytics for (month/day/year):</h3><form action="',t+=this.escape(window.location.pathname),t+='"><div class="mb-30"><input class="date-range-field" name="start" placeholder="MM/DD/YYYY" type="text" value="',t+=this.escape(this.start),t+='" /><span class="mx-10">to</span><input class="date-range-field" name="end" placeholder="MM/DD/YYYY" type="text" value="',t+=this.escape(this.end),t+='" /></div><input class="j-button" type="submit" value="filter" /></form></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.churn=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="tac p-50"><h1 class="fs-1-5 tc-dark-gray bold mb-25">Are you sure you want to delete your account?</h1><p class="tc-dark-gray mb-25 fifteen">Deleting your account will remove all of your data and cause any embedded feeds to stop working. It might be worth instead downgrading to a small plan, which will keep your paid plan active until the next billing date, and at that point, downgrade you to a small plan, which will maintain one feed with 2 sources.</p><a class="j-button small mb-40" href="/plans?mpevent=churn">No, downgrade my account instead.</a><a class="delete tc-gray block fourteen pointer">Yes, let\'s delete my account.</a></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.downgrade_overlay=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="p-50 tac"><h2 class="fs-2 tac">Your Juicer Account Will Downgrade</h2><p class="tc-gray fourteen mb-25">Your Juicer Account will remain active as a <strong>',t+=this.escape(this.plan),t+="</strong> account until <strong>",t+=this.escape(this.downgradeAt),t+='</strong> at which point it will become a small plan, with 1 feed and 2 sources and Juicer branding. </p><a class="j-button small mb-20" href="/plans?mpevent=reactivate_account">I want to reactivate my account!</a><a class="tc-gray block fourteen" href="/">Sounds good! Take me to my feed.</a></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/admin"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+="<h3>",this.model.get("is_invitation_accepted")?t+=this.escape(this.model.get("email")+("owner"===this.model.get("role")?" (owner)":"")):(t+=this.escape(this.model.get("email")),t+='<em><small class="fs-0-75">',t+=this.escape(" (invited on "+Juicer.Helpers.fullDate(this.model.get("invitation_sent_at"))+")"),t+="</small></em>"),t+='</h3><a class="delete-user" data-confirm="Are you sure you want to remove this user from your enterprise account and all associated feeds?" data-method="post" href="/enterprise/',t+=this.escape(this.account.get("slug")),t+="/",t+=this.escape(this.model.get("id")),t+='/remove" rel="nofollow">Remove</a>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/calculator"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="row"><div class="col-12 col-sm-6 col-md-4 tac"><h3 class="fs-3 calculator-sources">',t+=this.escape(this.model.sources()),t+='</h3><h4 class="mb-25">Social Media Sources</h4><input class="bg-dark-gray" data-attribute="sources" max="21" min="1" type="range" value="',t+=this.escape(this.model.get("sources")),t+='" /></div><div class="col-12 col-sm-6 col-md-4 tac"><h3 class="fs-2 calculator-frequency">',t+=this.escape(this.model.frequencyInWords()),
t+='</h3><h4 class="mb-25">Update Frequency</h4><input class="bg-dark-gray" data-attribute="frequency" max="7" min="1" type="range" value="',t+=this.escape(this.model.get("frequency")),t+='" /></div><div class="col-12 col-sm-6 col-md-4 tac"><h3 class="fs-3 calculator-price">',t+=this.escape(this.model.priceString()),t+='</h3><h4 class="calculator-price-label">',t+=this.model.priceLabel(),t+="</h4></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/create_assignment_form"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="p-50 tac"><h2 class="fs-2">Add User to "',t+=this.escape(this.model.get("name")),t+='"</h2><form class="new-assignment" method="post"><input name="enterprise_id" type="hidden" value="',t+=this.escape(this.account.get("slug")),t+='" /><input name="feed_id" type="hidden" value="',t+=this.escape(this.model.get("id")),t+='" /><input class="mb-25 bordered" name="email" placeholder="Their Email Address" type="email" /><input class="fw j-button" name="commit" type="submit" value="Add User to ',t+=this.escape(this.model.get("name")),t+='" /></form></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/feed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r;return t="",e=this.model.get("slug"),t+='<h3 class="mb-10 enterprise-feed-name"><a class="fs-2 tc-dark-gray feed-icon" href="/feeds/',t+=this.escape(e),t+='">',t+=this.escape(this.model.get("name")),t+='</a></h3><ul class="enterprise-feed-actions"><li class="ibt"><a aria-label="View Feed" class="enterprise-feed-view hint--bottom-left" href="/feeds/',t+=this.escape(e),t+='">View</a></li>',this.account.get("auto_fetch_all")&&(t+='<li class="ibt ml-10"><a aria-label="Fetch all posts for all sources in this feed" class="fetch-all hint--bottom-left" href="#">Fetch All Posts</a></li>'),t+='<li class="ibt ml-10"><a aria-label="Edit this Feed" class="enterprise-feed-edit hint--bottom-left" href="/feeds/',t+=this.escape(e),t+='/edit">Edit</a></li><li class="ibt ml-10"><a aria-label="Delete this Feed" class="enterprise-feed-delete hint--bottom-left" data-confirm="Are you sure you want to delete ',t+=this.escape(e),t+=' feed? This will remove all sources and posts and is non-reversible." data-method="delete" href="/feeds/',t+=this.escape(e),t+='" rel="nofollow">Delete</a></li></ul>',i=this.model.get("sources").length,t+='<div class="tc-dark-gray enterprise-feed-pricing">',t+=this.escape(this.model.get("update_frequency_in_words")),t+=" \xd7 ",t+=this.escape(i),t+=" ",t+=this.escape(_u("source").pluralize(i)),t+=" = <strong>",t+=this.escape(this.model.get("formatted_cost")),t+='</strong> per month </div><ul class="my-5">',_u.each(this.sources,(r=this,function(e){var i,n,s;switch(s=e.get("term"),t+="<li",i=s){case!0:t+=' alt="alt"';break;case!1:case null:break;default:t+=' alt="',t+=r.escape(i),t+='"'}switch(t+=' aria-label="',t+=r.escape(e.displayName()),t+='" class="enterprise-feed-source hint--bottom-right"',n=s){case!0:t+=' title="title"';break;case!1:case null:break;default:t+=' title="',t+=r.escape(n),t+='"'}return t+='><span class="j-',t+=r.escape(e.get("source").toLowerCase()),t+=' j-social-icon bg-none tc-gray fs-1"></span></li>'})),t+='</ul><h4 class="fs-1-2-5 tc-dark-gray mb-5">Feed Users</h4><ul class="enterprise-user-assignments-dashboard-container">',_u.each(this.assignments,function(e){return function(i){return t+='<li class="enterprise-user-dashboard-assignment"><span class="enterprise-assignment-dashboard-email">',t+=e.escape(i.get("email")),t+="</span>",i.get("belongs_to_account_manager")||(t+='<a aria-label="Delete user ',t+=e.escape(i.get("email")),t+=" from feed ",t+=e.escape(e.model.get("name")),t+='." class="delete-dashboard-assignment" data-id="',t+=e.escape(i.get("id")),t+='"></a>'),t+="</li>"}}(this)),t+='<li class="enterprise-user-assignment ibt tc-gray add-assignment">+ Add Collaborator</li></ul>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/invite_admin"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="p-50 tac"><h2 class="fs-2">Add new staff member</h2><h3 class="fs-gray mb-25">This will add them to all feeds, allow them to create new feeds and edit existing feeds.</h3><form accept-charset="UTF-8" action="/enterprise/',t+=this.escape(this.model.get("slug")),t+='/admin" method="post"><div style="display:none"><input name="utf8" type="hidden" value="\u2713" /><input name="authenticity_token" type="hidden" value="',t+=this.escape(this.csrf),t+='" /></div><input class="mb-25 bordered" name="email" placeholder="Their Email Address" type="email" /><input class="fw j-button" name="commit" type="submit" value="Invite new staff member" /></form></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/show"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<h1 class="fs-2 mb-25">Enterprise dashboard</h1>',t+=Juicer.Helpers.renderPartial("enterprise_sidebar",{model:this.model}),t+='<div class="enterprise-content">',this.model.get("yearly")||(t+='<div class="enterprise-cost bg-white border tac mb-50 p-40"><h4 class="fs-1-25 tc-dark-gray">Estimated monthly costs for your Enterprise account</h4><h3 class="fs-3 tc-dark-gray">',t+=this.escape(this.model.get("formatted_cost_with_minimum_fee")),t+='</h3><p class="px-50">This rough estimate is calculated based on the number of sources you had during the last 24h and their update frequencies. It does not take into account how many sources you had before that.</p></div>'),t+='<div class="row mb-25"><div class="col-6 tal"><a class="j-button" href="/feeds/new">+ Add New Feed</a></div><div class="col-6"><input class="enterprise-search bordered" id="js-enterprise-search" placeholder="Filter feeds by name" type="search" value="',t+=this.escape(this.model.query),t+='" /></div></div><ul class="feeds tac"></ul></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/user"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;switch(t="",t+='<div class="enterprise-user"><h3>',t+=this.escape(this.model.get("email")),t+="</h3>",t+='<a class="delete-user"',e="Are you sure you want to remove this user from your enterprise account and all associated feeds?"){case!0:t+=' data-confirm="data-confirm"';break;case!1:case null:break;default:t+=' data-confirm="',t+=this.escape(e),t+='"'}return t+=' data-method="post" href="/enterprise/',t+=this.escape(this.account.get("slug")),t+="/",t+=this.escape(this.model.get("id")),t+='/remove" rel="nofollow">Remove</a></div><ul class="enterprise-user-feeds"><h4 class="uc bold mb-10">Feeds they can access</h4>',_u.each(this.model.get("assignments"),(i=this,function(e){return t+='<li class="enterprise-user-assignment ibt">',t+=i.escape(e.name),t+='<a aria-label="Delete user ',t+=i.escape(e.email),t+=" from feed ",t+=i.escape(e.name),t+='." class="delete-assignment" data-id="',t+=i.escape(e.id),t+='"></a></li>'})),t+="</ul>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/users"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<h1 class="fs-2 mb-25">Enterprise dashboard</h1><div class="cf">',t+=Juicer.Helpers.renderPartial("enterprise_sidebar",{model:this.model}),t+='<div class="enterprise-content"><div class="row mb-15"><div class="col-8"><h2 class="fs-1-5">Account owner & staff</h2><p>Users listed here can access and edit all feeds of this account as well as create new feeds.</p></div><div class="col-4"><a class="j-button small fr new-enterprise-admin">+ Add new staff member</a></div></div><ul class="enterprise-admins bg-white border mb-40"></ul><div class="row mb-15"><div class="col-12"><h2 class="fs-1-5">Feed Collaborators</h2><p>Users listed here can only access certain feeds. They cannot create new feeds.</p><p>You can invite more collaborators to specific feeds on the <a class="tdu tc-dark-gray" href="/enterprise/',t+=this.escape(this.model.get("slug")),t+='">Your Feeds</a> page. </p></div></div><ul class="enterprise-users"></ul></div></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/white_label"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;if(t="",t+='<h1 class="fs-2 mb-25">Enterprise dashboard</h1>',t+=Juicer.Helpers.renderPartial("enterprise_sidebar",{model:this.model}),t+='<div class="enterprise-content"><div class="bg-white border p-30">',this.model.get("white_label"))t+='<h1 class="white-label-success tc-black fs-1-25 mb-25 tac">Success! ',t+=this.escape(this.model.get("host")),t+=' is now set up to White Label Juicer</h1><div class="tc-gray fifteen"><p class="mb-25">You\'ll notice that when you visit the feed from that URL the functionality is limited. This is on purpose. We\'d recommend visiting your admin dashboard from the Juicer domain, and just use this one for clients.</p><p>When you invite a client to a feed it should automatically link them to this URL (you should test this out first). (Click "+ add user" next to one of your feeds from your enterprise dashboard).</p>',this.model.get("white_label_cname")&&(t+='<p class="mt-25">In order to get your White Labeled Juicer working with HTTPS, please add a CNAME record pointing to ',t+=this.escape(this.model.get("white_label_cname")),t+=" to your DNS.</p>"),t+="</div>";else{switch(t+='<h1 class="tc-dark-gray fs-1-5 mb-25">Set up White Label</h1><p class="mb-25 tc-dark-gray fs-1">Want to host Juicer on your own URL with your own logo? Something like <strong>http://social.yourdomain.com</strong>? We need to set this up. <ol class="enterprise_whiteLabelSteps"><li>Create a subdomain or a new domain and set its <strong>CNAME</strong> to <br /><strong>juicer-io.herokuapp.com</strong>. </li><li>Once you\'ve done so, enter the domain URL below: </li></ol><form class="mt-20 white-label-url">',t+='<input class="mb-10 bordered" name="url" placeholder="http://feeds.yourdomain.com" type="url"',e=this.model.get("url")?this.model.get("url"):null){case!0:t+=' value="value"';break;case!1:case null:break;default:t+=' value="',t+=this.escape(e),t+='"'}t+=' /><input class="fw j-button" type="submit" value="Confirm Domain is set up" /></form></p>',this.model.get("error")&&(t+='<div class="cname-error mt-40 p-25 tc-gray"><strong>',t+=this.escape(this.model.get("host")),t+="</strong> is not resolving with a CNAME to juicer-io.herokuapp.com. If you've set it up, please try again later, as this can take up to 48 hours to resolve. </div>")}return t+="</div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.entertainment=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<div class="entertainment-container">',this.feed.displayFilters()&&(t+=Juicer.Helpers.renderPartial("filters/"+this.feed.filterPartial(),{feed:this.feed,filter:this.filter})),t+='<ul class="entertainment-ul">',_u.each(this.chunks,(e=this,function(i,r){var n,s;return n=[],s=[],_u.each(i,(function(t){var i;return e.largePosts.includes(t)?n.length<1?n.push(t):e.chunks[r+1]?(i=e.chunks[r+1].find((function(t){return!t.get("edit")})),e.chunks[r+1].splice(e.chunks[r+1].indexOf(i),1),e.chunks[r+1].push(t),s.push(i)):s.push(t):s.length<2?s.push(t):n.push(t)})),r%3==1?(t+='<div><div class="entertainment-small">',s[0]&&(t+=Juicer.Helpers.renderPartial("entertainment_card",{post:s[0],size:"small",isOnFeedsDashboard:e.isOnFeedsDashboard})),s[1]&&(t+=Juicer.Helpers.renderPartial("entertainment_card",{post:s[1],size:"small",isOnFeedsDashboard:e.isOnFeedsDashboard})),t+="</div>",t+=Juicer.Helpers.renderPartial("entertainment_card",{post:n[0],size:"large",isOnFeedsDashboard:e.isOnFeedsDashboard}),t+="</div>"):(t+="<div>",t+=Juicer.Helpers.renderPartial("entertainment_card",{post:n[0],size:"large",isOnFeedsDashboard:e.isOnFeedsDashboard}),t+='<div class="entertainment-small">',s[0]&&(t+=Juicer.Helpers.renderPartial("entertainment_card",{post:s[0],size:"small",isOnFeedsDashboard:e.isOnFeedsDashboard})),s[1]&&(t+=Juicer.Helpers.renderPartial("entertainment_card",{post:s[1],size:"small",isOnFeedsDashboard:e.isOnFeedsDashboard})),t+="</div></div>")})),t+="</ul></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.errors=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<ul class="errors source-errors px-25 mb-15">',$.each(this.errors,(e=this,function(i){return _u.each(e.errors[i],(function(e){return t+='<li class="tc-grapefruit">',t+=e,t+="</li>"}))})),Juicer.Constants.SOURCES_REQUIRING_OAUTH_TOKENS.indexOf(this.source)>=0&&(t+='<li class="d-flex flex-row p-5 mt-10"><div class="bold mr-10 tal tc-grapefruit">TIP:</div><ul><li><div class="tc-grapefruit tal">Check that your <a href="/social-accounts">Juicer ',t+=this.escape(this.source),t+=" Social Account</a> is working and hasn't expired. </div></li></ul></li>"),t+="</ul>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.feed=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",e="slider"===this.feed.get("css")?_u.filter(this.feed.get("posts").models,(function(t){return"YouTube"!==t.sourceType()})):this.feed.get("posts").models,this.feed.displayFilters()&&(t+=Juicer.Helpers.renderPartial("filters/"+this.feed.filterPartial(),{feed:this.feed,filter:this.filter})),e.length<=0?this.isOnFeedsDashboard?(t+='<div class="empty"><img height="386" src="/empty-feed.svg" width="600" /><p class="fs-1-25 mb-40 bold">There are currently no posts in your feed to display.</p>',_u.some(this.feed.get("sources").models,(function(t){return"LinkedIn"===t.get("source")}))&&(t+='<div class="mb-50 p-20 mx-auto" style="border: 2px solid blue; width: 75%"><p class="bold fs-1-25 mb-10"><span>Please wait a few minutes for</span> <span class="tc-blue">LinkedIn</span> <span>posts to be imported into Juicer.</span></p><div class="small">Please try again by reloading the page and check your filters in <i>Feed Settings.</i></div><div class="small mt-5">Having troubles? Please refer to our <a href="https://help.juicer.io/hc/en-us/articles/360040406391-LinkedIn-sources-Adding-and-troubleshooting" target="_blank">help page or contact support.</a></div></div>'),t+='<a class="j-button add-source tc-white mb-40" onclick="window.juicerDashboardSidebar.openNewSource()">+ Add social media source </a>',this.feed.get("moderation_allowed?")&&(t+='<p class="fs-1 tc-gray">If you have already added social media source, check your <a class="tc-gray" href="',t+=this.escape(window.location.pathname),t+='/moderation">moderation queue</a> <span>or filters in Feed Settings! </span></p>'),t+="</div>"):t+='<div class="empty"><h2>No Posts!</h2></div>':(t+=Juicer.Helpers.renderPartial("custom_styles",{feed:this.feed}),_u.each(e,(i=this,function(e){var r;return t+="<li",r="",(r+=i.escape(e.classes())).length>0&&(t+=' class="',t+=r,t+='"'),t+=' data-id="',t+=i.escape(e.get("id")),t+='" data-source="',t+=i.escape(e.lowerType()),t+='">',t+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:i.isOnFeedsDashboard,post:e,feed:i.feed}),t+=Juicer.Helpers.renderPartial("feeds/"+i.feed.partial(),{post:e,feed:i.feed}),!e.ad&&e.ctaAdded()&&"modern"===i.feed.get("css")&&(t+='<div class="j-cta" style="background-color: ',t+=i.escape(i.feed.getColor("feed_background")),t+=';">',t+=Juicer.Helpers.renderPartial("cta",{post:e,feed:i.feed}),t+="</div>"),t+="</li>"}))),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/accessibility_confirm"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="tac pt-30"><h3 class="fs-2 tc-black">Improved feed accessibility</h3><div class="px-50 accessibility-text"><p class="mb-10 mt-10">We are introducing a new and improved feed experience according to WCAG accessibility standards that is easier to navigate for all users, including those with physical, situational, and economic barriers. </p><p class="mb-10">Please note that this update may affect any custom CSS you have set up for your feed. To ensure everything works smoothly, we recommend checking your custom CSS and updating your code snippet or WordPress plugin. </p><p class="mb-10">To update your feed: </p><ol class="mb-10"><li>1. Check your custom CSS to <b>make sure it does not depend on the ul and li elements</b>. </li><li>2. Click the "Save" button in the settings window. </li><li>3. Replace the code snippet on your website with the new one provided, or update your WordPress plugin. </li></ol><p class="mb-10">If you are using an iframe, you do not need to make any updates. Your experience will automatically be updated with the changes. </p><p class="mb-10">If you have any additional question or issues, please use the "Help" button at the bottom right. </p></div><div class="mb-20 mt-20"><button class="mr-10 accessibility-close j-button secondary">',t+=this.escape("Cancel"),t+='</button><button class="accessibility-confirm j-button">',t+=this.escape("Save"),t+="</button></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/accessibility_toggle"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;switch(t="",t+='<div class="p-20 thirteen"><input',e=this.accessibility_checked){case!0:t+=' checked="checked"';break;case!1:case null:break;default:t+=' checked="',t+=this.escape(e),t+='"'}return t+=' id="feed-layout-change" name="feed[embed_layout]" type="checkbox" value="v2" /><label for="feed-layout-change">',t+=this.escape("Improved feed accessibility"),t+='</label><div aria-label="Improved feed experience for all users, including those with physical, situational, and economic barriers." class="sidebar-explainer hint--bottom hint--large ib ml-10 relative"></div></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/analytics"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<h4 class="fourteen mb-30">Track your posts, page views, clickthroughs and user engagement over time to see how your feed is being used.</h4><a class="bold fourteen tdu launch pointer">Launch ',t+=this.escape(this.feed.get("name")),t+=" Analytics</a>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/analytics_overlay"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="p-50 tac"><h2 class="fs-2">Analytics for Juicer feed "',t+=this.escape(this.feed.get("name")),t+='"</h2><h3 class="fs-1-5 mb-30">Only large or enterprise plans can access Juicer\'s analytics feature. Please upgrade your plan!</h3><a class="j-button" href="/plans?mpevent=analytics_upgrade">Upgrade your plan </a></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/color_picker"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="color-fields p-15" data-color="',t+=this.escape(this.colorAttr),t+='"><div class="color-input-container"><div class="double-border color-example" style="background-color: ',t+=this.escape(this.color),t+='"></div><div class="color-example-bg double-border-bg"></div><input class="color-input" pattern="',t+=this.escape(this.pattern),
t+='" type="color" value="',t+=this.escape(this.color),t+='" /></div><input class="hex-input" pattern="',t+=this.escape(this.pattern),t+='" type="text" value="',t+=this.escape(this.color),t+='" /></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/css_overlay"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="tac p-30"><h2 class="fs-2">Customize Theme CSS</h2><p class="fifteen tc-gray">Add Custom CSS styles to your Juicer Feed. You can learn more about the best way to handle these customizations <a class="tc-gray bold" href="/blog/create-a-custom-embeddable-aggregate-social-media-feed-with-css-and-juicer" target="_blank">here</a>. </p><form class="css-form">',t+='<textarea class="bordered my-40" name="css" placeholder="Enter Custom CSS to modify the look of your Juicer Feed..." style="height: 40vh;">',t+=this.feed.get("custom_css")?this.feed.get("custom_css"):"",t+='</textarea><input class="j-button" type="submit" value="Save Changes" /></form></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/design"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<div class="pt-20 px-20 fourteen relative">',t+=Juicer.Helpers.renderPartial("css",{feed:this.feed,label:!0}),t+='<label class="settings-label">Feed Display</label><div class="mb-30">',t+=Juicer.Helpers.renderPartial("interval",{feed:this.feed}),"entertainment"!==this.feed.get("css")&&(t+=Juicer.Helpers.renderPartial("columns",{feed:this.feed})),t+=Juicer.Helpers.renderPartial("width",{feed:this.feed}),t+=Juicer.Helpers.renderPartial("height",{feed:this.feed}),null==this.feed.get("height")&&null==this.feed.get("width")||(t+='<label class="ib mt-10 thirteen">If you want the feed to fill all available space remove the height and width.</label>'),t+='</div><h3 class="bold mb-10">Feed Colors</h3><ul class="bg-white-field tc-slevin mb-10">',_u.each(this.feed.colors,(e=this,function(i){return t+='<li class="p-15 relative feed-color" data-color="',t+=e.escape(i),t+='"><div class="bold">',t+=e.escape(e.feed.customColorMap[i].label),e.feed.customColorMap[i].description&&(t+='<div aria-label="',t+=e.escape(e.feed.customColorMap[i].description),t+='" class="sidebar-explainer hint--right hint--medium"></div>'),t+='</div><div class="color-picker"><div class="double-border color-picker-circle" style="background: ',t+=e.escape(e.feed.getColor(i)),t+='"></div><div class="double-border-bg color-picker-background-color"></div></div></li>'})),t+='</ul><div class="checkbox mb-15 thirteen relative"><input name="feed[colored_icons]" type="hidden" value="0" />',this.feed.get("colored_icons")?t+='<input checked="true" data-attribute="colored_icons" id="colored_icons" name="feed[colored_icons]" type="checkbox" />':t+='<input data-attribute="colored_icons" id="colored_icons" name="feed[colored_icons]" type="checkbox" />',t+='<label for="colored_icons">',t+=this.escape("Color in social network icons"),t+='</label></div></div><a class="twelve tdu pointer mb-40 block tac reset-style">Restore Default Template Colors</a>',this.feed.get("moderation_allowed?")||(t+='<div class="px-20 pb-20 tac"><h3 class="tc-grapefruit bold fourteen mb-15">Tailor your design for the perfect website fit. Make the move.</h3>',t+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed,css:"j-button small",mpevent:"custom_design_sidebar_upgrade",label:"Upgrade Now"}),t+="</div>"),t+='<div class="px-20 fourteen relative">',this.feed.get("moderation_allowed?")||(t+='<div class="filter-blocker custom-style-not-allowed"></div>'),t+='<div class="mb-40"><h3 class="bold mb-10">Advanced Customizations</h3><div class="thirteen"><a class="jcr-btn-secondary extra-small customize-css jcr-font-normal">Customize CSS<i class="ri-arrow-right-line"></i></a></div></div><a class="jcr-btn-red jcr-block jcr-text-center jcr-w-full mb-10 save-style">Save Settings</a></div><div class="px-20 fourteen relative"><a class="fourteen tc-dark-blue tdu mt-40 d-block" href="',t+=this.escape(Juicer.Constants.HELP_CENTER_URL),t+='/articles/360039929412-Code-customizations-for-date-range-feed-style-spacing-filtering-and-more" target="_blank">Other Customization Options<span class="external-link-icon">',t+=Juicer.Constants.SVG_ICONS.externalLink,t+="</span></a></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="p-20 fourteen"><textarea class="embed embed-textarea mb-15 ten tc-embed p-15" oncopy="htmx.ajax(&#39;POST&#39;, &#39;/track&#39;, { values: { event_name: &#39;embed_snippet_copied&#39;, properties: { embed_type: &#39;embed-code&#39; } } })">',t+=this.embed,t+='</textarea><a class="tc-gray tdu" href="',t+=this.escape(Juicer.Constants.HELP_CENTER_URL),t+='/articles/360039929412-Code-customizations-for-date-range-feed-style-spacing-filtering-and-more" target="_blank">Customize my embed.</a></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/embed_code"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="","v2"===this.overrideEmbedLayout||"v2"===this.feed.get("embed_layout")?t+='<script type="text/javascript" src="'+this.javascriptV2Path+'" async defer></script>':(t+='<script src="',t+=this.escape(this.javascript),t+='" type="text/javascript"></script><br /><link href="',t+=this.escape(this.stylesheet),t+='" media="all" rel="stylesheet" type="text/css" /><br /><ul class="juicer-feed" data-feed-id="',t+=this.escape(this.feed.get("slug")),t+='" data-origin="',t+=this.escape(Juicer.Constants.PAGE_URL_EMBED_CODE_ORIGIN),t+='">',this.feed.paid()||(t+=Juicer.Helpers.renderPartial("referral")),t+="</ul>"),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/embed_menu"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<div class="embed-menu-container"><h2 class="bold mt-10 mb-10">Copy and Paste this code into your site.</h2><div class="white-select fourteen"><select class="embed-menu">',_u.each(this.embedOptions,(e=this,function(i){return e.currentlySelected===i.value?(t+='<option selected="true" value="',t+=e.escape(i.value),t+='">',t+=e.escape(i.label),t+="</option>"):(t+='<option value="',t+=e.escape(i.value),t+='">',t+=e.escape(i.label),t+="</option>")})),t+="</select></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/features"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="fifteen"><h4 class="mb-10">Upgrade your plan and get:</h4><ul class="pl-10 mb-10 list-disc"><li>More frequent feed updates</li><li>More Social Media Sources</li><li>More Feeds</li><li>Moderation and Filtering</li><li>Feed Analytics</li><li>Instant Support and Integration Assistance</li></ul></div><a class="j-button small" href="/plans?mpevent=features_list" style="font-size:11px;">Upgrade your plan </a>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/feed_name_edit"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<form class="js-feed-name-edit-form p-40 tac"><h2 class="fs-2">Edit Feed Name</h2><input autofocus="yes" class="bordered mb-15" name="name" type="text" value="',t+=this.escape(this.feed.get("name")),t+='" /><div class="mb-15"><input id="slug_update" name="slug_update" type="checkbox" /><label for="slug_update">Also update the feed\'s URL</label><p class="slug-warning tc-grapefruit hide fourteen">Updating the feed URL will also change your embed code so if you already have your feed embedded in a different page you\'ll have to update the Juicer embed code there too. We will moodify the URL to remove any characters that are not URL-friendly and resolve conflicts with existing feeds.</p></div><input class="j-button" type="submit" value="Save" /></form>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/hub"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<div class="tac"><h3 class="fourteen mb-20">Share this link:</h3>',e=window.location.protocol+"//"+window.location.host+"/hub/"+this.feed.get("slug"),t+='<div class="bg-white tc-black fourteen tal p-10 mb-15 relative" style="word-break: break-all" x-data="{ code: &#39;',t+=this.escape(e),t+='&#39; }" x-on:click="$clipboard(code)">',t+=this.escape(e),t+='<a class="jcr-cursor-pointer jcr-text-gray absolute p-5" style="right:0;bottom:0;"><i class="ri-file-copy-line"></i></a></div><a class="j-button small" href="/feeds/',t+=this.escape(this.feed.get("slug")),t+='/preview?location=feed_sidebar" style="font-size:11px;letter-spacing:-0.25px;" target="_blank">View your public feed</a></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/iframe"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="p-20 fourteen"><textarea class="ten tc-embed p-15 mb-10 iframe-embed" oncopy="htmx.ajax(&#39;POST&#39;, &#39;/track&#39;, { values: { event_name: &#39;embed_snippet_copied&#39;, properties: { embed_type: &#39;iframe&#39; } } })">',t+=this.iframe,t+="</textarea><p>You may have to adjust width and height to get it to work. You should only use this if the standard embed isn't working for you.</p></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/moderate"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",t+='<div class="tac fourteen"><h3 class="uc bold mt-20">You are Viewing</h3><ul class="moderation-nav"><li class="active public">Public Posts</li><li class="moderated">Moderated Posts</li></ul><p class="px-15">To remove a post from your live feed hover over the post and select the trash icon. The post will be sent to your moderation queue.</p></div>',this.feed.get("moderation_allowed?")?(t+='<form class="filters" method="post">',t+=Juicer.Helpers.renderPartial("toggle",{attr:"queue",feed:this.feed,label:"Send All Posts to Moderation",hint:"With this option enabled, new posts will not automatically go to your live feed. Instead, you must first manually approve them from your moderation queue.",hintPosition:"bottom",classes:"mt-40"}),t+='<div class="p-20 fourteen relative"><div class="filter-blocker"></div>',i="list words, @usernames, or #hastags",e="Separate filters with a comma. Filters are case-insensitive.",t+='<h3 class="settings-label">Disallow posts with these words:</h3><textarea class="moderation-filter thirteen mb-10" name="feed[disallowed]" placeholder="',t+=this.escape(i),t+=" to block. ",t+=this.escape(e),t+='">',t+=this.feed.disallowed(),t+='</textarea><h3 class="settings-label">Only allow posts with these words:</h3><textarea class="moderation-filter thirteen mb-20" name="feed[allowed]" placeholder="',t+=this.escape(i),t+=" to allow. ",t+=this.escape(e),t+='">',t+=this.feed.allowed(),t+="</textarea>",t+=Juicer.Helpers.renderPartial("profanity",{feed:this.feed}),t+=Juicer.Helpers.renderPartial("prevent_duplicates",{feed:this.feed}),t+='</div><div class="tac"><input class="j-button" type="submit" value="Save your Filters" /></div></form>'):(t+='<div class="p-20 tac"><h3 class="tc-grapefruit bold fourteen mb-15">Get hands-on with advanced filtering. It\'s in our paid plans.</h3>',t+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed,css:"j-button small",mpevent:"moderation_sidebar_upgrade",label:"Upgrade Now"}),t+="</div>"),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/new_source"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="tac pt-30 pb-25"><h3 class="fs-2 tc-black">',t+=this.escape("Add a Social Media Source"),this.showFeedName&&(t+=" to<br /><b>",t+=this.escape(this.showFeedName),t+="</b>"),t+='</h3><h3 class="fs-1-25 tc-satan mb-30">First, select the social media platform you want to import posts from.</h3><ul class="mx-30">',t+=Juicer.Helpers.renderPartial("sources",{feed:this.model}),t+="</ul></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/revalidate_overlay"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r,n;return t="",t+='<div class="tac p-30"><h2 class="fs-2">Apply filters to existing posts?</h2>',i=(r="0"!==this.data.queue)?"mb-15":"mb-40",e=window.juicerDashboard.initialDeduplicationNumberOfPosts,t+='<p class="fifteen tc-gray ',t+=this.escape(i),t+='">Do you want to apply these changes to all existing posts? Feeds with a large amount of posts may take some time for Juicer to properly moderate. The scan for duplicates will be performed only on the ',t+=this.escape(e),t+=" most recent posts. Please be patient. If you wish to set a priority for what source is chosen for duplicate posts, you can set the order of sources in the 'Social Media Sources' section in the sidebar by using the drag&drop functionality. </p>",r&&(t+='<p class="fourteen tc-grapefruit mb-40">You have turned the moderation queue on, so keep in mind if you select "apply to existing posts" it will remove <strong>all</strong> posts from your live queue. You can always recover them (or approve them later) </p>'),t+="<form>",_u.each(_u.keys(this.data),(n=this,function(e){return t+='<input name="',t+=n.escape(e),t+='" type="hidden" value="',t+=n.escape(n.data[e]),t+='" />'})),t+='<div class="submits"><input class="moderate-confirm j-button small mr-25" data-revalidate="false" type="submit" value="No, only future posts" /><input class="moderate-confirm j-button small secondary" data-revalidate="true" type="submit" value="Yes, apply to existing posts" /></div></form></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/settings"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<div class="p-20 fourteen">',t+=Juicer.Helpers.renderPartial("order",{feed:this.feed}),t+=Juicer.Helpers.renderPartial("filter_setting",{feed:this.feed,label:!0}),_u.each(this.checkboxes,(e=this,function(i){var r;return r=i.attr,t+='<div class="checkbox mb-15 thirteen relative"><input name="feed[',t+=e.escape(r),t+=']" type="hidden" value="0" />',e.feed.get(r)?(t+='<input checked="true" data-attribute="',t+=e.escape(r),t+='" id="',t+=e.escape(r),t+='" name="feed[',t+=e.escape(r),t+=']" type="checkbox" />'):(t+='<input data-attribute="',t+=e.escape(r),t+='" id="',t+=e.escape(r),t+='" name="feed[',t+=e.escape(r),t+=']" type="checkbox" />'),t+='<label for="',t+=e.escape(r),t+='">',t+=e.escape(i.label),t+="</label>",null!=i.tooltip&&(t+='<div aria-label="',t+=e.escape(i.tooltip),t+='" class="sidebar-explainer hint--right hint--medium"></div>'),t+="</div>"})),t+='<a class="fourteen tc-dark-blue tdu mt-40 d-block" href="',t+=this.escape(Juicer.Constants.HELP_CENTER_URL),t+='/articles/360039929412-Code-customizations-for-date-range-feed-style-spacing-filtering-and-more" target="_blank">Other Customization Options<span class="external-link-icon">',t+=Juicer.Constants.SVG_ICONS.externalLink,t+="</span></a></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/sources"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",t+='<ul class="source-list">',_u.each(this.feed.get("sources").models,(i=this,function(e){var r,n,s;switch(s=e.get("id"),n=!0===e.get("is_deactivated")?"j-source-isDeactivated":"j-source-active",t+='<li class="j-social-icon bg-none fourteen existing-source j-',t+=i.escape(e.lowerSource()),t+=" ",t+=i.escape(n),t+='" data-id="',t+=i.escape(s),t+='"><div class="d-flex align-items-center justify-content-between w-100">',window.juicerDashboard.sourceIdsWhereUserActionRequired.indexOf(s)>-1&&(t+='<a class="js-warning" href="/feeds/',t+=i.escape(i.feed.get("slug")),t+='/inspect" title="We cannot import posts for this source. Please click to fix this!">',t+=window.juicerDashboard.warningSvg,t+="</a>"),t+='<span class="sourceName"',r=!0===e.get("is_deactivated")?"This source has been marked as deactivated because fetching its posts failed consistently, or its hashtag or username is invalid and doesn't exist anymore. Please refresh your connection on www.juicer.io/social-accounts or contact us if you think this is a mistake.":void 0){case!0:t+=' title="title"';break;case!1:case null:break;default:t+=' title="',t+=i.escape(r),t+='"'}return t+=">",t+=i.escape(e.displayName()),t+='</span><span class="juicer-fa-caret-down"></span></div>',e.options()&&e.options().length>0&&(t+='<ul class="d-block">',_u.each(e.options(),(function(e){return t+="<li>",t+=i.escape(e),t+="</li>"})),t+="</ul>"),t+='</li><ul class="source-submenu fourteen">',e.manual()&&(t+='<li class="add source-submenu-item mb-10" data-id="',t+=i.escape(s),t+='" data-name="',t+=i.escape(e.typeSymbol()),t+=i.escape(e.get("term")),t+='" data-template="manual" rel="nofollow">Add Post Manually</li>'),i.feed.get("moderation_allowed?")&&(t+='<li class="moderate source-submenu-item mb-10" data-id="',t+=i.escape(s),t+='" data-template="moderation">Set Moderation Filters</li>'),t+='<li class="rename source-submenu-item mb-10" data-id="',t+=i.escape(s),t+='" data-template="rename">Edit Filter Button Name</li><li class="delete" data-id="',t+=i.escape(s),t+='">Delete</li></ul>'})),t+="</ul>",e=this.feed.get("manual_source_limit"),t+='<div class="tac mt-40 add-source-container" x-data="{ tooltip: &#39;&#39;, disabledMessage: &#39;Your account owner set a limit of maximum ',t+=this.escape(e),t+=" feed",t+=this.escape(e>1?"s":""),t+='. Please ask them to adjust the limit.&#39; }" x-on:disable-add-source-button="tooltip = disabledMessage" x-on:enable-add-source-button="tooltip = &#39;&#39;">',this.feed.manualSourceLimitReached()?t+='<a class="js-add-source-submenu add-source-submenu j-button small disabled" x-init="$dispatch(&#39;disable-add-source-button&#39;)" x-tooltip="tooltip">+ Add social media source </a>':t+='<a class="js-add-source-submenu add-source-submenu j-button small" x-init="$dispatch(&#39;enable-add-source-button&#39;)" x-tooltip="tooltip">+ Add social media source </a>',t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/synced"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<h4 class="thirteen mb-10">',this.feed.get("view_limit_reached")?(t+="Your feed exceeded the 2,000 view limit for this month. It will reset on <strong>",t+=this.escape(Juicer.Helpers.fullDate(this.feed.get("view_limit_reset_date"),"%b/%-d/%y at %-l:%M%p")),t+="</strong><br>",t+=Juicer.Helpers.renderPartial("upgrade_plan",{label:"Upgrade to resync now",mpevent:"views_upgrade_sidebar_refresh",css:"jcr-text-[14px] j-button jcr-mt-2"})):(t+="Your feed will sync next at <strong>",t+=this.escape(Juicer.Helpers.fullDate(this.feed.nextSync(),"%b/%-d/%y at %-l:%M%p")),t+="</strong>. Please note this is only an estimate. "),t+="</h4>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/wordpress"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e
;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="p-20 fourteen"><h3 class="mb-10">First, download, unzip, and install the wordpress plugin.</h3><a class="block tc-off-white tdu" href="https://www.juicer.io/blog/setting-up-a-juicer-social-media-aggregator-on-a-wordpress-site" target="_blank">Learn how to install</a><a class="block tc-off-white tdu mb-20" href="/dashboard/wp_plugin_page?mpevent=feed_embed" target="_blank">Download the Wordpess Plugin</a><h3 class="settings-label">Shortcode</h3>',t+='<textarea class="ten tc-embed p-15 single-line mb-20" oncopy="htmx.ajax(&#39;POST&#39;, &#39;/track&#39;, { values: { event_name: &#39;embed_snippet_copied&#39;, properties: { embed_type: &#39;wp-plugin-1-12&#39; } } })">',t+='[juicer name="'+this.feed.get("slug")+'"]',t+='</textarea><h3 class="settings-label">PHP Function</h3>',t+='<textarea class="ten tc-embed p-15 single-line" oncopy="htmx.ajax(&#39;POST&#39;, &#39;/track&#39;, { values: { event_name: &#39;embed_snippet_copied&#39;, properties: { embed_type: &#39;wordpress&#39; } } })">',t+='<?php juicer_feed("name='+this.feed.get("slug")+'"); ?>',t+="</textarea></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.gdpr_form=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="tac p-50 gdpr-form"><h2 class="fs-2">Accept our GDPR Privacy Policy Changes</h2><p class="tc-gray fifteen mb-25">To ensure compliance with the GDPR, we have updated our <a class="bold tc-gray tdu" href="/privacy">privacy policy</a> . Since you are located in the EU you must accept these changes. </p><div class="mb-25"><a class="j-button" href="/gdpr">Accept updated privacy policy and continue my service</a></div><a class="fourteen tc-gray tdu pointer" href="/downgrade?delete=true">I don\'t accept the privacy policy so cancel my service.</a></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.infinite_scroll=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",(e=this.feed.get("posts").models).length>0&&_u.each(e,(i=this,function(e){var r;return t+="<li",r="",(r+=i.escape(e.classes())).length>0&&(t+=' class="',t+=r,t+='"'),t+=' data-id="',t+=i.escape(e.get("id")),t+='" data-source="',t+=i.escape(e.lowerType()),t+='">',t+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:i.isOnFeedsDashboard,post:e}),t+=Juicer.Helpers.renderPartial("feeds/"+i.feed.partial(),{post:e,feed:i.feed}),t+="</li>"})),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.moderated=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<ul class="j-display-filters">',_u.each(this.menuItems,(e=this,function(i){return e.feed.filter===i.filter||"All"===i.title&&""===e.feed.filter?(t+='<li class="moderate-filter selected" data-filter="',t+=e.escape(i.filter),t+='">',t+=e.escape(i.title),t+="</li>"):(t+='<li class="moderate-filter" data-filter="',t+=e.escape(i.filter),t+='">',t+=e.escape(i.title),t+="</li>")})),t+="</ul>",this.feed.get("posts").models.length>0&&(t+='<div class="tac mb-15 bulk-moderate-nav"><a class="j-button small mr-10 bulk-moderate" data-approve="true">Approve All</a><a class="j-button small bulk-moderate">Reject All</a></div>'),t+=Juicer.Helpers.renderPartial("moderated_posts",{feed:this.feed})}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.new_feed=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+=Juicer.Helpers.renderPartial("sources")}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.overlay=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="j-overlay-content">',this.close&&(t+='<button aria-label="Close" class="j-close" title="Close"><span>Close</span></button>'),t+=this.content,t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_actions"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",this.isOnFeedsDashboard&&!this.post.ad&&(t+='<ul class="actions" data-id="',t+=this.escape(this.post.get("id")),t+='">',null!=this.post.get("deleted_at")?(this.post.linkedin&&(t+='<li aria-label="Use this when you want to remove this post from Juicer cache, so you can reimport the post manually." class="delete hint--bottom-right hint--large">Permanent delete</li>'),t+='<li aria-label="Don&#39;t publish post and hide it." class="reject hint--bottom-left">Reject</li><li aria-label="Move post to your live feed." class="approve primary hint--bottom-left">Approve</li>'):(window.juicerDashboard&&window.juicerDashboard.ctaEnabled&&!this.post.ad&&this.feed&&"modern"===this.feed.get("css")&&(this.post.ctaAdded()?t+='<li aria-label="Edit the Call To Action on this post." class="edit-cta hint--bottom-right">Edit CTA</li>':t+='<li aria-label="Add a Call To Action to this post." class="edit-cta hint--bottom-right">Add CTA</li>'),this.post.stickied()?t+='<li aria-label="Remove post from the top of the feed." class="unstick hint--bottom-left">Unpin</li>':t+='<li aria-label="Keep post at top of feed, even when new posts come in." class="hint--bottom sticky">Pin to top</li>',this.post.twitter()||(t+='<li aria-label="Add content to this post." class="edit hint--bottom-left">Edit</li>'),t+='<li aria-label="Move post to moderation queue. Remove from live feed." class="delete primary hint--bottom-left">Delete</li>'),t+="</ul>"),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_columns"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="columns white-field bordered hide"><label for="columns">Columns</label><input class="columns" max="9" min="1" name="feed[columns]" type="number" value="',t+=this.escape(this.feed.get("columns")),t+='" /></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_content"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r,n,s,o,a,l,c;if(t="",this.lazyLoad=null!=this.feed&&this.feed.get("lazy_load")||!1,c=this.post.ad?this.post.image():this.post.get("image"),null!=this.feed&&"slider"===this.feed.get("style")){if(c){switch(t+='<div class="j-image" data-external-id="',t+=this.escape(this.post.get("external_id")),t+='"',e=c){case!0:t+=' data-image="data-image"';break;case!1:case null:break;default:t+=' data-image="',t+=this.escape(e),t+='"'}switch(t+=' data-video-url="',t+=this.escape(this.post.get("video")),t+='" href="',t+=this.escape(this.post.link()),t+='"',i=this.post.ad?"nofollow":null){case!0:t+=' rel="rel"';break;case!1:case null:break;default:t+=' rel="',t+=this.escape(i),t+='"'}if(t+=">",(this.feed&&this.feed.shouldShowGallery()&&this.post.gallery()||this.post.gallery()&&this.overlay)&&(t+='<span class="j-gallery-nav"><span class="j-gallery-arrow j-gallery-previous">Previous</span><span class="j-gallery-arrow j-gallery-next">Next</span></span>'),this.lazyLoad&&!this.overlay){switch(t+='<img alt="',t+=this.escape(this.post.alt()),t+='" class="j-content-image"',r=c){case!0:t+=' data-lazy="data-lazy"';break;case!1:case null:break;default:t+=' data-lazy="',t+=this.escape(r),t+='"'}t+=" />"}else{switch(t+='<img alt="',t+=this.escape(this.post.alt()),t+='" class="j-content-image"',n=c){case!0:t+=' src="src"';break;case!1:case null:break;default:t+=' src="',t+=this.escape(n),t+='"'}t+=" />"}t+="</div>"}}else if(c){switch(t+='<a class="j-image" data-external-id="',t+=this.escape(this.post.get("external_id")),t+='"',s=c){case!0:t+=' data-image="data-image"';break;case!1:case null:break;default:t+=' data-image="',t+=this.escape(s),t+='"'}switch(t+=' data-video-url="',t+=this.escape(this.post.get("video")),t+='" href="',t+=this.escape(this.post.link()),t+='"',o=this.post.ad?"nofollow":null){case!0:t+=' rel="rel"';break;case!1:case null:break;default:t+=' rel="',t+=this.escape(o),t+='"'}if(t+=' target="_blank">',(this.feed&&this.feed.shouldShowGallery()&&this.post.gallery()||this.post.gallery()&&this.overlay)&&(t+='<span class="j-gallery-nav"><span class="j-gallery-arrow j-gallery-previous">Previous</span><span class="j-gallery-arrow j-gallery-next">Next</span></span>'),this.lazyLoad&&!this.overlay){switch(t+='<img alt="',t+=this.escape(this.post.alt()),t+='" class="j-content-image"',a=c){case!0:t+=' data-lazy="data-lazy"';break;case!1:case null:break;default:t+=' data-lazy="',t+=this.escape(a),t+='"'}t+=" />"}else{switch(t+='<img alt="',t+=this.escape(this.post.alt()),t+='" class="j-content-image"',l=c){case!0:t+=' src="src"';break;case!1:case null:break;default:t+=' src="',t+=this.escape(l),t+='"'}t+=" />"}t+="</a>"}else this.post.get("video")&&"Instagram"===this.post.get("source").source()&&"hashtag"===this.post.get("source").termType()&&(t+='<div class="video-play-placeholder">',t+=Juicer.Constants.SVG_ICONS.play,t+="</div>");return t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_css"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",t+='<div class="css">',this.label&&(t+='<label class="settings-label" for="css">Choose a Theme</label>'),t+='<div class="white-select mb-30"><select id="css" name="feed[css]">',e=Juicer.Constants.FEED_CLASSES.concat(this.feed.get("allowed_custom_themes")),_u.each(e,(i=this,function(e){var r,n;switch(t+="<option",r=e===i.feed.get("css")){case!0:t+=' selected="selected"';break;case!1:case null:break;default:t+=' selected="',t+=i.escape(r),t+='"'}switch(n=e){case!0:t+=' value="value"';break;case!1:case null:break;default:t+=' value="',t+=i.escape(n),t+='"'}return t+=">",t+="living-wall"===e?i.escape(Juicer.Helpers.prettify(e)+" (no Twitter & no YouTube support)"):"slider"===e?i.escape(Juicer.Helpers.prettify(e)+" (no YouTube support)"):i.escape(Juicer.Helpers.prettify(e)),t+="</option>"})),t+="</select></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_cta"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="cta-container"><a class="cta-button" href="',t+=this.escape(this.post.get("cta_juicer_url")),t+='" style="background-color: ',t+=this.escape(this.post.get("cta_button_color")),t+="; color: ",t+=this.escape(this.post.get("cta_text_color")),t+="; border-radius: ",t+=this.escape(this.feed.get("cta_button_radius")),t+="px; font-size: ",t+=this.escape(this.feed.get("cta_text_size")),t+='px;" target="_blank">',t+=this.post.get("cta_text"),t+="</a></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_custom_styles"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",(this.feed.customColors()||this.feed.get("custom_css"))&&(t+='<div class="juicer-custom-styles"><style>',t+=this.feed.customStyles(),t+="</style></div>"),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_edit"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",this.post.edited()&&!this.post.twitter()&&(t+='<div class="j-edit"><span>(edited) </span>',t+=Juicer.Helpers.format(this.post.get("edit")),t+="</div>"),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_enterprise_sidebar"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r;return t="",i=[{name:"Your Feeds",url:"/enterprise/"+this.model.get("slug")},{name:"Manage Staff",url:"/enterprise/"+this.model.get("slug")+"/users"},{name:"Edit Account",url:"/enterprise/"+this.model.get("slug")+"/edit"},{name:"API Docs",url:"/api"},{name:"Set up White Label",url:"/enterprise/"+this.model.get("slug")+"/white-label"}],e="/"+JuicerBackbone.history.getFragment(),t+='<div class="enterprise-sidebar"><ul class="tc-dark-gray bg-white border">',_u.each(i,(r=this,function(i){var n,s,o,a,l,c;if(t+='<li class="enterprise-sidebar-link ',n=i.url===e.split("?")[0]?"bold":"",r.isArray(n)){for(s=0,l=(n=r.flatten(n)).length;s<l;s++)(o=n[s])&&(n=o.toString());for(a=0,c=n.length;a<c;a++)(o=n[a]).length>0&&(n=o);t+=r.escape(n.join(" "))}else t+=r.escape(n);return t+='"><a href="',t+=r.escape(i.url),t+='">',t+=r.escape(i.name),t+="</a></li>"})),t+="</ul></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_entertainment_card"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",this.post&&(t+='<li class="feed-item ',t+=this.escape("small"===this.size?"small":void 0),t+='" data-id="',t+=this.escape(this.post.get("id")),t+='" data-source="',t+=this.escape(this.post.lowerType()),t+='">',t+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:this.isOnFeedsDashboard,post:this.post}),t+=Juicer.Helpers.renderPartial("feeds/entertainment",{post:this.post}),t+="</li>"),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_filter_setting"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<div class="filter_setting">',this.label&&(t+='<label class="settings-label" for="filter">Display Filters at top of Feed</label>'),t+='<div class="white-select mb-40"><select id="filter_setting" name="feed[display_filter]">',_u.each(["None","Social Type","Social Account","Grouped Terms"],(e=this,function(i){return e.feed.get("display_filter")===i?(t+='<option selected="true" value="',t+=e.escape(i),t+='">',t+=e.escape(i),t+="</option>"):(t+='<option value="',t+=e.escape(i),t+='">',t+=e.escape(i),t+="</option>")})),t+="</select></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_height"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="height white-field after-label"><label for="height">Height</label><input class="height" max="5000" min="100" name="feed[height]" type="number" value="',t+=this.escape(this.feed.get("height")),t+='" /> <label for="height">px</label></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_interval"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="interval hide white-field after-label bordered"><label for="interval">Interval</label><input class="interval" max="30000" min="100" name="feed[interval]" type="number" value="',t+=this.escape(this.feed.get("interval")),t+='" /> <label for="interval">ms</label></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_link"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",null!=navigator.userAgent.match("Edge")&&null!=this.url.match("facebook")?(t+='<a aria-label="',t+=this.escape(this.aria),t+='"',e="",(e+=this.escape(this.class)).length>0&&(t+=' class="',t+=e,t+='"'),t+=' href="',t+=this.escape(this.url),t+='">',t+=this.escape(Juicer.Helpers.numberWithCommas(this.label)),t+="</a>"):(t+='<a aria-label="',t+=this.escape(this.aria),t+='"',i="",(i+=this.escape(this.class)).length>0&&(t+=' class="',t+=i,t+='"'),t+=' href="',t+=this.escape(this.url),t+='" target="_blank">',t+=this.escape(Juicer.Helpers.numberWithCommas(this.label)),t+="</a>"),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_loading"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){
return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",this.container?t+='<div class="j-loading-container"><div class="j-loading">Loading...</div></div>':this.wrapper?t+='<div class="j-loading-wrapper"><div class="j-loading">Loading...</div></div>':this.inFeed?t+='<div class="j-loading-wrapper" style="height: 42px"><div class="j-loading">Loading...</div></div>':t+='<div class="j-loading">Loading...</div>',t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_message"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",(this.post.ad||null!=this.post.get("unformatted_message")||this.post.tumblrTitle())&&(t+='<div class="j-message">',t+=this.post.message(),t+="</div>"),t+=Juicer.Helpers.renderPartial("edit",{post:this.post})}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_meta"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",this.post.twitter()?(t+='<div class="j-meta"><ul class="j-twitter-intents"><li><a class="j-twitter-reply" href="',t+=this.escape(this.post.replyIntent()),t+='">Reply</a></li><li><a class="j-twitter-retweet" href="',t+=this.escape(this.post.retweetIntent()),t+='">Retweet</a></li><li><a class="j-twitter-like" href="',t+=this.escape(this.post.likeIntent()),t+='">Like</a></li></ul>',e=this.post.get("external_created_at"),t+='<a href="',t+=this.escape(this.post.link()),t+='" target="_blank"><time class="j-date j-twitter-date" datetime="',t+=this.escape(e),t+='">',t+=this.escape(Juicer.Helpers.fullDate(e,"%-d %b %Y",!1)),t+="</time></a></div>"):"Juicer"!==this.post.sourceType()&&(t+='<div class="j-meta"><ul>',this.post.noMeta()||"YouTube"===this.post.sourceType()||(this.post.get("comment_count")>0&&(t+="<li>",t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:this.post.get("comment_count"),class:this.post.commentClass(),aria:this.post.get("comment_count")+" Comments"}),t+="</li>"),this.post.get("like_count")>0&&(t+="<li>",t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:this.post.get("like_count"),class:this.post.likeClass(),aria:this.post.get("like_count")+" Likes"}),t+="</li>")),t+="</ul><nav>",t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:"",class:"j-social j-"+this.post.lowerType()+" j-"+this.post.lowerType()+"-text-hover",aria:this.post.lowerType()}),t+="</nav></div>"),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_moderated_posts"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",(e=this.feed.get("posts").models).length>0?_u.each(e,(i=this,function(e){var r;return t+="<li",r="",(r+=i.escape(e.classes())).length>0&&(t+=' class="',t+=r,t+='"'),t+=">",t+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:!0,post:e}),t+=Juicer.Helpers.renderPartial("feeds/user",{post:e,feed:i.feed}),t+="</li>"})):t+='<div class="empty"><h2>No Moderated Posts!</h2></div>',t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_order"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<div class="order"><label class="settings-label" for="order">Post Order</label><div class="white-select mb-30"><select id="css" name="feed[order]">',_u.each([["created_at","Most Recent First"],["mixed","Mixed"],["random","Random"],["popular","Most Popular (no "+Juicer.Constants.PLATFORMS_WITHOUT_LIKES.join(", ")+" support)"]],(e=this,function(i){return e.feed.get("order")===i[0]?(t+='<option selected="true" value="',t+=e.escape(i[0]),t+='">',t+=e.escape(i[1]),t+="</option>"):(t+='<option value="',t+=e.escape(i[0]),t+='">',t+=e.escape(i[1]),t+="</option>")})),t+="</select></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_post_notification_banner"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r,n,s,o;if(t="",t+='<div class="j-post-notification-banner ',e=this.backgroundClass,this.isArray(e)){for(i=0,s=(e=this.flatten(e)).length;i<s;i++)(r=e[i])&&(e=r.toString());for(n=0,o=e.length;n<o;n++)(r=e[n]).length>0&&(e=r);t+=this.escape(e.join(" "))}else t+=this.escape(e);return t+='">',t+=this.content,t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_poster"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r;if(t="",this.lazyLoad=this.lazyLoad||null!=this.feed&&this.feed.get("lazy_load")||!1,i=this.post.get("external_created_at"),r=this.post.ad?this.post.posterUrl():this.post.get("poster_url"),t+='<div class="j-poster">',this.post.poster()){switch(t+="<a",e=r){case!0:t+=' href="href"';break;case!1:case null:break;default:t+=' href="',t+=this.escape(e),t+='"'}t+=' target="_blank">',this.post.get("poster_image")&&(this.lazyLoad&&"slider"===this.feed.get("style")||(this.lazyLoad?(t+='<img alt="Profile image for ',t+=this.escape(this.post.get("poster_name")),t+='" data-lazy="',t+=this.escape(this.post.posterImage()),t+='" data-poster-id="',t+=this.escape(this.post.get("poster_id")),t+='" />'):(t+='<img alt="Profile image for ',t+=this.escape(this.post.get("poster_name")),t+='" data-poster-id="',t+=this.escape(this.post.get("poster_id")),t+='" src="',t+=this.escape(this.post.posterImage()),t+='" />'))),this.post.twitter()?(t+='<div class="j-twitter-poster"><div class="j-twitter-display-name">',t+=this.escape(this.post.get("poster_display_name")),t+='</div><div class="j-twitter-screen-name">@',t+=this.escape(this.post.get("poster_name")),t+="</div></div>"):this.post.hashtag()&&this.post.instagram()?(t+="<h3>",t+=this.escape(this.post.get("poster_name")+" on Instagram"),t+="</h3>"):(t+="<h3>",t+=this.escape(this.post.get("poster_name")),t+="</h3>"),this.post.twitter()?t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:"X (Twitter) Logo",class:"j-twitter j-twitter-text j-social j-twitter-post-icon",aria:"x (twitter)"}):this.post.ad||(t+='<time class="j-date" datetime="',t+=this.escape(i),t+='">',t+=this.escape(Juicer.Helpers.timeAgo(i)),t+="</time>"),t+="</a>"}else t+='<time class="j-date" datetime="',t+=this.escape(i),t+='">',t+=this.escape(Juicer.Helpers.timeAgo(i)),t+="</time>";return t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_prevent_duplicates"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="prevent-duplicates thirteen"><input name="feed[prevent_duplicates]" type="hidden" value="0" />',this.feed.get("prevent_duplicates")?t+='<input checked="true" id="prevent_duplicates" name="feed[prevent_duplicates]" type="checkbox" />':t+='<input id="prevent_duplicates" name="feed[prevent_duplicates]" type="checkbox" />',t+='<label for="prevent_duplicates">Prevent Duplicate Posts</label><div aria-label="Juicer will remove any post that has the same text as another post from a different source. We do this scan hourly. If you wish to set a priority for what source is chosen for duplicate posts, you can set the order of sources in the &#39;Social Media Sources&#39; section in the sidebar by using the drag&amp;drop functionality." class="sidebar-explainer hint--right hint--large"></div></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_profanity"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="profanity thirteen mb-10"><input name="feed[profanity]" type="hidden" value="0" />',this.feed.get("profanity")?t+='<input checked="true" id="profanity" name="feed[profanity]" type="checkbox" />':t+='<input id="profanity" name="feed[profanity]" type="checkbox" />',t+='<label for="profanity">Don\'t allow posts with profanity</label></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_referral"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<h1 class="referral"><a href="https://www.juicer.io?utm_source=JuicerFreeFeed&amp;utm_medium=feed_ads&amp;utm_campaign=PoweredByTopLink&amp;utm_term=',t+=this.escape(window.location.href),t+="&amp;referrer=",t+=this.escape(window.location.hostname),t+="&amp;utm_id=",t+=this.escape(this.feed.get("slug")),t+='">Powered by</a></h1>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_sources"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",t+='<div class="new-sources-sublist-container">',e=["Instagram","Facebook","Twitter","LinkedIn","TikTok","YouTube"],window.juicerData.user.instagramStoriesEnabled||e.splice(1,0,"InstagramReels"),_u.each(e,(i=this,function(e){var r,n,s;switch(s=e,n=e.toLowerCase(),t+='<li class="js-source j-social-icon ibt new-source-icon front-row"',r=s){case!0:t+=' data-type="data-type"';break;case!1:case null:break;default:t+=' data-type="',t+=i.escape(r),t+='"'}return t+='><div class="font-icon j-',t+=i.escape(n),t+=" j-",t+=i.escape(n),t+="-color ",t+=i.escape("InstagramReels"===e?"j-instagram":""),t+=" ",t+=i.escape(juicerUtil.doesPlanContainPlatform(juicerData.user.plan,e)?"":"j-social-icon-inactive"),t+='"></div><div class="icon-label">',t+="Blog"===e?"Blog RSS ":"Twitter"===e||"TwitterAPIv2"===e||"TwitterV3"===e?"X (Twitter) ":"InstagramReels"===e?"Instagram reels ":i.escape(e),t+="</div></li>"})),t+='</div><div class="spacer"></div><div class="new-sources-sublist-container">',_u.each(["Blog","Hashtag","Flickr","Pinterest","Slack","Soundcloud","Vimeo","Tumblr","Yelp","Giphy"],function(e){return function(i){var r,n,s;switch(s=i,n=i.toLowerCase(),t+='<li class="js-source j-social-icon ibt new-source-icon back-row"',r=s){case!0:t+=' data-type="data-type"';break;case!1:case null:break;default:t+=' data-type="',t+=e.escape(r),t+='"'}return t+='><div class="font-icon j-',t+=e.escape(n),t+=" j-",t+=e.escape(n),t+="-color ",t+=e.escape("InstagramReels"===i?"j-instagram":""),t+=" ",t+=e.escape(juicerUtil.doesPlanContainPlatform(juicerData.user.plan,i)?"":"j-social-icon-inactive"),t+='"></div><div class="icon-label">',t+="Blog"===i?"Blog RSS ":"InstagramReels"===i?"Instagram reels ":e.escape(i),t+="</div></li>"}}(this)),t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_toggle"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div aria-label="',t+=this.escape(this.hint),t+='" class="py-15 tac mb-10 hint--medium fw hint--',t+=this.escape(this.hintPosition),t+=" ",t+=this.escape(this.attr),t+=" ",t+=this.escape(this.classes),t+='"><label class="bold thirteen">',t+=this.label,t+='</label><div class="switch ibm ml-10"><input name="feed[',t+=this.escape(this.attr),t+=']" type="hidden" value="0" />',this.feed.get(this.attr)?(t+='<input checked="true" class="switch-checkbox" id="',t+=this.escape(this.attr),t+='" name="feed[',t+=this.escape(this.attr),t+=']" type="checkbox" />'):(t+='<input class="switch-checkbox" id="',t+=this.escape(this.attr),t+='" name="feed[',t+=this.escape(this.attr),t+=']" type="checkbox" />'),t+='<label class="switch-label" for="',t+=this.escape(this.attr),t+='"><span class="switch-inner"></span><span class="switch-dot"></span></label></div></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_upgrade"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="sliding-sidebar-option"><h1 class="mb-4">Get more control plus:</h1><ul class="upgrade-feature-list mb-4 ml-15"><li>More frequent auto-sync updates feed</li><li>Access to all social media sources</li><li>More feeds for maximum impact</li><li>Moderation and filtering options</li><li>Performance analytics</li><li>Feed integration assistance</li><li>Faster support</li></ul><button class="j-button">Upgrade your plan</button></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_upgrade_plan"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r,n;return t="",i=this.css||"j-button",n=this.mpevent||"",r=this.label||"Learn more about our other plans",t+="<a",e="",(e+=this.escape(i)).length>0&&(t+=' class="',t+=e,t+='"'),t+=' href="/plans?mpevent=',t+=this.escape(n),t+='">',t+=r,t+="</a>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_widget_card"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+="<li",e="",(e+=this.escape(this.post.classes())).length>0&&(t+=' class="',t+=e,t+='"'),t+=' data-id="',t+=this.escape(this.post.get("id")),t+='" data-source="',t+=this.escape(this.post.lowerType()),t+='">',t+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:this.isOnFeedsDashboard,post:this.post}),t+=Juicer.Helpers.renderPartial("feeds/user",{post:this.post}),t+="</li>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_width"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="width white-field after-label bordered"><label for="width">Width</label><input class="width" max="5000" min="100" name="feed[width]" type="number" value="',t+=this.escape(this.feed.get("width")),t+='" /> <label for="width">px</label></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_classic"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<div class="j-meta j-',t+=this.escape(this.post.lowerType()),t+='"><nav>',t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:"",class:"j-"+this.post.lowerType()+" j-social",aria:"Link to "+this.post.lowerType()+" post."}),t+="</nav><ul>",this.post.noMeta()||(t+="<li>",t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:this.post.get("comment_count"),class:this.post.commentClass(),aria:"Comment Count"}),t+="</li><li>",t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:this.post.get("like_count"),class:this.post.likeClass(),aria:"Like Count"}),t+="</li>"),t+='</ul></div><div class="j-text"><div class="j-message">',t+=this.post.message(),"Juicer"!==this.post.sourceType()&&("hashtag"===this.post.termType()?(t+='<div class="info">Posted by <a href="',t+=this.escape(this.post.get("poster_url")),t+='" target="_blank">',t+=this.escape(this.post.get("poster_name")),t+='</a> in <a href="',t+=this.escape(this.post.termLink()),t+='" target="_blank">',t+=this.escape(this.post.term()),t+="</a> on ",t+=this.escape(this.post.sourceType()),t+=" on ",t+=this.escape(Juicer.Helpers.fullDate(this.post.get("external_created_at"))),t+=" </div>"):"Blog"===this.post.sourceType()?(t+='<div class="info">Posted at <a href="http://',t+=this.escape(this.post.get("poster_url")),t+='" target="_blank">',t+=this.escape(this.post.get("poster_name")),t+="</a> on ",t+=this.escape(Juicer.Helpers.fullDate(this.post.get("external_created_at"))),t+=" </div>"):(t+='<div class="info">Posted by <a href="',t+=this.escape(this.post.get("poster_url")),t+='" target="_blank">',t+=this.escape(this.post.get("poster_name")),t+="</a> on ",t+=this.escape(this.post.sourceType()),t+=" on ",t+=this.escape(Juicer.Helpers.fullDate(this.post.get("external_created_at"))),t+=" </div>")),t+="</div></div>",(e=this.post.get("image"))&&(t+='<a href="',t+=this.escape(this.post.link()),t+='" target="_blank"><img alt="',t+=this.escape(this.post.alt()),t+='" class="j-content-image" src="',t+=this.escape(e),t+='" /></a>'),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_entertainment"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="j-text-container">',t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed}),t+='<div class="j-message">',t+=this.post.message(),t+="</div>",t+=Juicer.Helpers.renderPartial("edit",{post:this.post}),t+='<div class="j-source-container">',t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:"",class:"j-"+this.post.lowerType()+" j-social-icon",aria:this.post.lowerType()}),t+="</div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_image"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed}),t+='<div class="j-text">',t+=Juicer.Helpers.renderPartial("poster",{post:this.post,feed:this.feed}),t+=Juicer.Helpers.renderPartial("message",{post:this.post}),t+=Juicer.Helpers.renderPartial("meta",{post:this.post}),t+="</div>"}))}
}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_night"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",t+='<div class="j-text-container">',t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed}),t+='<div class="j-text">',this.post.twitter()&&(t+=Juicer.Helpers.renderPartial("poster",{post:this.post,feed:this.feed})),t+=Juicer.Helpers.renderPartial("message",{post:this.post}),"Juicer"===this.post.sourceType()||this.post.twitter()||(t+='<div class="j-meta"><ul>',e=0===this.post.get("comment_count")?" ":this.post.get("comment_count"),i=0===this.post.get("like_count")?" ":this.post.get("like_count"),t+="<li>",t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:e,class:this.post.commentClass(),aria:"Comments"}),t+="</li><li>",t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:i,class:this.post.likeClass(),aria:"Likes"}),t+="</li></ul></div>"),this.post.twitter()&&(t+=Juicer.Helpers.renderPartial("meta",{post:this.post})),t+="</div></div>",this.post.twitter()||(t+='<div class="j-poster-meta">',t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:"",class:"j-"+this.post.lowerType()+" j-social-icon",aria:this.post.lowerType()}),this.post.instagram()&&this.post.hashtag()?(t+='<a aria-label="',t+=this.escape(this.post.get("poster_name")),t+='" href="',t+=this.escape(this.post.get("poster_url")),t+='" target="_blank">',t+=this.escape(this.post.get("poster_name")+" on Instagram"),t+="</a>"):(t+='<a href="',t+=this.escape(this.post.get("poster_url")),t+='" target="_blank">',t+=this.escape(this.post.get("poster_name")),t+="</a>"),t+="</div>"),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_polaroid"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",this.post.get("poster_image")||(e="no-poster"),this.post.twitter()||(t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed})),t+='<div class="j-post-container ',t+=this.escape(e),t+='">',t+=Juicer.Helpers.renderPartial("poster",{post:this.post,feed:this.feed}),this.post.twitter()||(t+='<h3 class="j-poster-meta">',this.post.get("poster_name")&&(t+='<a href="',t+=this.escape(this.post.get("poster_url")),t+='" target="_blank">',t+=this.escape(this.post.get("poster_name")),t+='</a> <span class="j-on">on</span> '),t+='<a class="platform" href="',t+=this.escape(this.post.get("poster_url")),t+='" target="_blank">',t+=this.escape(this.post.sourceType()),t+="</a></h3>"),t+='<div class="j-text">',t+=Juicer.Helpers.renderPartial("message",{post:this.post}),this.post.twitter()&&(t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed})),t+=Juicer.Helpers.renderPartial("meta",{post:this.post}),t+="</div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_standard"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed}),t+='<div class="j-text">',t+=Juicer.Helpers.renderPartial("message",{post:this.post}),t+=Juicer.Helpers.renderPartial("meta",{post:this.post}),t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_user"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+=Juicer.Helpers.renderPartial("poster",{post:this.post,feed:this.feed}),this.post.twitter()||(t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed})),t+='<div class="j-text">',t+=Juicer.Helpers.renderPartial("message",{post:this.post}),this.post.twitter()&&(t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed})),t+=Juicer.Helpers.renderPartial("meta",{post:this.post}),t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_wall"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r,n;if(t="",n=this.post.ad?this.post.image():this.post.get("image"),t+="<li",r="",(r+=this.escape(this.post.classes())).length>0&&(t+=' class="',t+=r,t+='"'),t+=' data-id="',t+=this.escape(this.post.get("id")),t+='" data-source="',t+=this.escape(this.post.lowerType()),t+='">',t+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:this.isOnFeedsDashboard,post:this.post}),n){switch(t+='<img alt="',t+=this.escape(this.post.alt()),t+='" class="j-content-image"',e=n){case!0:t+=' src="src"';break;case!1:case null:break;default:t+=' src="',t+=this.escape(e),t+='"'}t+=" />"}else t+='<div class="j-text">',t+=Juicer.Helpers.renderPartial("message",{post:this.post}),t+="</div>";switch(t+='<a aria-label="',t+=this.escape(this.post.link()),t+='" class="j-image" href="',t+=this.escape(this.post.link()),t+='"',i=this.post.ad?"nofollow":null){case!0:t+=' rel="rel"';break;case!1:case null:break;default:t+=' rel="',t+=this.escape(i),t+='"'}return t+=' target="_blank"><div class="j-living-wall-hover"></div></a></li>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/filters/_new"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<ul class="j-display-filters">',"v2"===this.feed.get("embed_layout")?t+='<li class="filters-label">Filters: </li>':t+="Filters: ",_u.each(this.feed.filters(),(e=this,function(i){var r,n,s,o;return s=e.feed.get("display_filter"),n=e.filter||e.feed.filter,(i.filter(s)===n||null===i.filter("filter")&&""===n)&&(o=!0),t+="<li",r="",(r+=e.escape(i.filterClass(s,o,!0))).length>0&&(t+=' class="',t+=r,t+='"'),t+=' data-filter="',t+=e.escape(i.filter(s)),t+='">',t+=e.escape(i.filterDisplay(s)),t+="</li>"})),t+="</ul>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/filters/_old"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<ul class="j-filters filters">',_u.each(this.feed.filters(),(e=this,function(i){var r,n,s,o;return s=e.feed.get("display_filter"),n=e.filter||e.feed.filter,(i.filter(s)===n||null===i.filter("filter")&&""===n)&&(o=!0),t+="<li",r="",(r+=e.escape(i.filterClass(s,o))).length>0&&(t+=' class="',t+=r,t+='"'),t+=' data-filter="',t+=e.escape(i.filter(s)),t+='">',t+=e.escape(i.filterDisplay(s)),t+="</li>"})),t+="</ul>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_channel"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<h2 class="new-source-title">',t+=this.escape(this.source.title()),t+='</h2><form accept-charset="UTF-8" action="#" class="source-form" method="post"><div style="display:none"><input name="utf8" type="hidden" value="\u2713" /></div><input name="source" type="hidden" value="',t+=this.escape(this.source.source()),t+='" /><input name="feed_id" type="hidden" value="',t+=this.escape(this.feedId),t+='" /><input name="term_type" type="hidden" value="channel" /><label for="source_term">',t+=this.escape("https://www.youtube.com/"),t+='</label><input autocomplete="off" id="source_term" name="term" placeholder="YouTube_Channel_Name" type="text" /><input class="new-source-submit" name="commit" type="submit" value="Create Source">',t+=Juicer.Helpers.renderPartial("source_form/youtube_channel_name_example",{source:this.source}),t+="</input></form>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_groups"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<h2 class="new-source-title">Connect Facebook Group Posts</h2>',this.results?this.results.models.length>0?(t+='<form accept-charset="UTF-8" action="/feeds/',t+=this.escape(this.feedId),t+='/sources" class="source-form" method="post"><input name="source" type="hidden" value="Facebook" /><input name="feed_id" type="hidden" value="',t+=this.escape(this.feedId),t+='" /><input name="term_type" type="hidden" value="group" /><input class="result-term" name="term" type="hidden" /><input class="result-name" name="name" type="hidden" /><ul class="search-results">',_u.each(this.results.models,(e=this,function(i){return t+='<li class="search-result" data-id="',t+=e.escape(i.get("id")),t+='" data-name="',t+=e.escape(i.get("name")),t+='">',t+=e.escape(i.get("name")),t+="</li>"})),t+="</ul></form>"):t+="<h2>Sorry you aren't the admin of any facebook groups.</h2>":t+='<a class="j-button j-facebook j-facebook-border j-social-icon social-account social-j-button" href="/auth/facebook">Connect your Facebook account</a>',t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_hashtag"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",this.source.set("term_type","hashtag"),this.source.needsLogin()&&this.socialAccounts&&!this.socialAccounts.socialAccountForSource(this.source)?"Instagram"!==this.source.source()&&"InstagramReels"!==this.source.source()||(i=window.juicerWL?"?wl="+window.juicerWL:"",t+='<h2 class="new-source-title mb-20 mx-10 tac">Please connect your Instagram Business account.</h2><div class="connect-explanation tal"><ol class="tc-dark-gray mb-20"><li class="mb-20">We ask that you <strong>connect your Instagram Business account</strong> with Juicer so we can import Instagram hashtag posts for you. <br />This connection is made <strong>via Facebook</strong> (who own Instagram). </li><li class="mb-20">After you have connected your Instagram Business account, you\'ll be able to import Instagram hashtag posts.</li></ol><p class="mt-20">Any further questions? Our help article has your back:</p><a class="tc-green tdu bold" href="https://help.juicer.io/hc/en-us/articles/360040164671-How-to-add-an-Instagram-hashtag-source-to-Juicer" target="_blank">-> How to add an Instagram hashtag source to Juicer</a></div><div class="tac"></div><a class="j-button j-social-icon social-account social-j-button j-facebook j-facebook-bg j-facebook-border" data-method="post" href="/auth/facebook',t+=this.escape(i),t+='">Connect via Facebook</a>'):("Pinterest"===this.source.source()?t+='<h2 class="new-source-title">Add Pinterest Board</h2>':"Instagram"===this.source.source()?t+='<h2 class="new-source-title">Import posts for an Instagram hashtag</h2>':"InstagramReels"===this.source.source()?t+='<h2 class="new-source-title">Import reels for an Instagram hashtag</h2>':"Twitter"===this.source.source()?t+='<h2 class="new-source-title">Add X (Twitter) Hashtag</h2>':(t+='<h2 class="new-source-title">Add ',t+=this.escape(this.source.source()),t+=" Hashtag</h2>"),"Instagram"===this.source.source()&&this.isLoading?t+='<container class="tac pt-75"><h2>Checking the status of your Facebook social account connection, please wait...</h2><ul class="new-source"><div class="j-loading"></div></ul></container>':(t+='<form accept-charset="UTF-8" action="#" class="source-form" method="post"><div style="display:none"><input name="utf8" type="hidden" value="\u2713" /></div><input name="feed_id" type="hidden" value="',t+=this.escape(this.feedId),t+='" /><input name="term_type" type="hidden" value="',t+=this.escape(this.type),t+='" />',"InstagramReels"===this.source.source()?t+='<input name="only_reels" type="hidden" value="true" /><input name="source" type="hidden" value="Instagram" />':"Instagram"===this.source.source()?(t+='<input name="only_posts" type="hidden" value="true" /><input name="source" type="hidden" value="',t+=this.escape(this.source.source()),t+='" />'):(t+='<input name="source" type="hidden" value="',t+=this.escape(this.source.source()),t+='" />'),"Pinterest"===this.source.source()?(t+='<label for="source_term">',t+=this.escape(this.source.label()),t+="</label>"):t+='<label for="source_term">#</label>',e=this.source.placeholderHashtag(),"Instagram"===this.source.source()?(t+='<input autocomplete="off" data-filter_invalid_instagram_hashtag_characters="true" id="source_term" name="term" placeholder="',t+=this.escape(e),t+='" type="text" />'):(t+='<input autocomplete="off" id="source_term" name="term" placeholder="',t+=this.escape(e),t+='" type="text" />'),"Twitter"===this.source.source()&&(t+='<div class="feed-term-type"><input id="replies" name="replies" type="checkbox" value="replies" /><label for="replies">Include @replies</label></div><p class="mt-30 help-text">Please note: X (Twitter) only allows us to import hashtag posts <strong>from the last 7 days.</strong></p>'),"Instagram"!==this.source.source()&&"InstagramReels"!==this.source.source()||(t+='<p class="mt-30 help-text">Please note: Instagram only allows us to import hashtag posts <strong>from the last 24 hours</strong>. This is a technical limitation (see: <a class="tdu bold tc-black" href="https://developers.facebook.com/docs/instagram-api/reference/ig-hashtag/recent-media" target="_blank">Instagram API documentation</a>). </p>'),t+='<input class="new-source-submit" name="commit" type="submit" value="Create Source" /></form>')),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_max"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<h2>You need to upgrade to add more sources</h2><h3 style="margin-bottom:1.5rem">Unfortunately, the ',t+=this.escape(this.feed.get("plan")),t+=" plan only allows ",t+=this.escape(this.feed.get("max_sources")),t+=" sources per feed.</h3>",t+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed,mpevent:"source_form_max_reached"})}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_new"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r,n,s,o,a,l,c,u;return t="",c=(a=this.source.get("source")).toLowerCase(),n=this.source.findProvider(),"Instagram"!==this.source.source()&&"InstagramReels"!==this.source.source()&&this.source.needsLogin()&&!this.socialAccounts.socialAccountForSource(this.source)?(t+='<div class="new-source-container">',s=window.juicerWL?"?wl="+window.juicerWL:"","facebook"===c?(t+='<h2 class="new-source-title">Please connect your personal Facebook account.</h2><p class="connect-explanation">After you\'ve made this connection, you can choose from which Facebook (business) page Juicer should import posts or reviews. <br />Adding the connection <strong>will NOT import personal posts to your Juicer feed,</strong> it is only for verification purposes. </p><a class="j-button j-social-icon social-account social-j-button j-',t+=this.escape(c),t+=" j-",t+=this.escape(c),t+="-bg j-",t+=this.escape(c),t+='-border" data-method="post" href="/auth/',t+=this.escape(c),t+=this.escape(s),t+='">Connect your ',t+=this.escape(a),t+=" account</a>"):"twitter"===c?(t+='<h2 class="new-source-title">Please connect your X (Twitter) account.</h2><p class="connect-explanation">After you\'ve made this connection, you\'ll be able to import tweets. <br />Adding the connection <strong>will NOT import personal tweets to your Juicer feed,</strong> it is only for verification purposes. </p><a class="j-button j-social-icon social-account social-j-button j-',t+=this.escape(c),t+=" j-",t+=this.escape(c),t+="-bg j-",t+=this.escape(c),t+='-border" data-method="post" href="/auth/',t+=this.escape(c),t+=this.escape(s),t+='">Connect your X (Twitter) account</a>'):"tiktok"===c?(t+='<h2 class="new-source-title">Please connect your personal TikTok account.</h2><p class="connect-explanation">After you\'ve made this connection, you can import your personal posts into Juicer. Adding the connection <strong>will NOT import personal posts to your Juicer feed,</strong> it is only for verification purposes. </p><a class="j-button j-social-icon social-account social-j-button j-',t+=this.escape(c),t+="-white j-",t+=this.escape(c),t+="-bg j-",t+=this.escape(c),t+='-border" data-method="post" href="/auth/',t+=this.escape(c),t+=this.escape(s),t+='">Connect your ',t+=this.escape(a),t+=" account</a>"):(t+='<h2 class="new-source-title">Please connect your ',t+=this.escape(a),t+=' account.</h2><p class="connect-explanation">We ask that you connect your ',t+=this.escape(a),t+=" account so that we don't run into API rate limits. <strong>This will not automatically import your ",t+=this.escape(a),t+=" posts.</strong> ",e="instagram"===c?"add the posts of your connected account":"add the posts of ANY public user or hashtags",t+="After you have connected your account, you can ",t+=this.escape(e),t+='. </p><a class="j-button j-social-icon social-account social-j-button j-',t+=this.escape(c),t+=" j-",t+=this.escape(c),t+="-bg j-",t+=this.escape(c),t+='-border" data-method="post" href="/auth/',t+=this.escape(n),t+=this.escape(s),t+='">Connect your ',t+=this.escape(a),t+=" account</a>"),t+="</div>"):(this.source.hashtags()&&(!window.juicerData.user.instagramStoriesEnabled||"Instagram"!==this.source.source()&&"InstagramReels"!==this.source.source())&&(t+='<nav><ul class="source-types">',_u.each(["Username","Hashtag"],(u=this,function(e){var i;return i=e.toLowerCase()===u.type?"active":"","Pinterest"===u.source.source()&&"Hashtag"===e?(t+='<li class="source-type ',t+=u.escape(i),t+='" data-type="',t+=u.escape(e.toLowerCase()),t+='">Board</li>'):"Facebook"===u.source.source()&&"Username"===e?(t+='<li class="source-type ',t+=u.escape(i),t+='" data-type="',t+=u.escape(e.toLowerCase()),t+='">Your Page</li>'):"Facebook"!==u.source.source()||"Hashtag"!==e?(t+='<li class="source-type ',t+=u.escape(i),t+='" data-type="',t+=u.escape(e.toLowerCase()),t+='">',t+=u.escape(e),t+="</li>"):void 0})),"Facebook"===this.source.source()&&(o="reviews"===this.type?"active":"",t+='<li class="source-type ',t+=this.escape(o),t+='" data-type="reviews">Reviews</li>'),"YouTube"===this.source.source()&&(r="channel"===this.type?"active":"",t+='<li class="source-type ',t+=this.escape(r),t+='" data-type="channel">Channel</li>'),t+="</ul></nav>"),i=this.feed?this.feed.get("id"):void 0,t+='<div class="new-source-container">',(l={Blog:"360040453011-Blog-sources-Adding-and-troubleshooting",Facebook:"360039995932-Facebook-sources-Adding-and-troubleshooting",Flickr:"360040042652-Flickr-sources-Adding-and-troubleshooting",Giphy:"360040043352-Giphy-sources-Adding-and-troubleshooting",Pinterest:"360039996392-Pinterest-sources-Adding-and-troubleshooting",Slack:"360040448211-Slack-sources-Adding-and-troubleshooting",Soundcloud:"360040043512-Soundcloud-sources-Adding-and-troubleshooting",Tumblr:"360040038412-Tumblr-sources-Adding-and-troubleshooting",Twitter:"360040405811-Twitter-sources-Adding-and-troubleshooting",Vimeo:"360040448291-Vimeo-sources-adding-and-troubleshooting",Yelp:"360040042912-Yelp-sources-Adding-and-troubleshooting",YouTube:"360040406271-YouTube-sources-Adding-and-troubleshooting"})[a]&&(t+='<a aria-label="Learn more about ',t+=this.escape(a),t+=' sources" class="new-source-help hint--bottom-left" href="',t+=this.escape(Juicer.Constants.HELP_CENTER_URL),t+="/articles/",t+=this.escape(l[a]),t+='" target="_blank">Help</a>'),"instagram"===c||"instagramreels"===c||"tiktok"===c?t+=Juicer.Helpers.renderPartial("source_form/"+this.type,{source:this.source,csrf:this.csrf,feedId:i,feed:this.feed,type:this.type,socialAccounts:this.socialAccounts,results:this.results,isLoading:this.isLoading,post_type:this.postType}):Juicer.Constants.PROVIDERS_WITH_MULTIPLE_SOCIAL_ACCOUNTS.indexOf(n)>=0?t+=Juicer.Helpers.renderPartial("source_form/"+this.type,{source:this.source,csrf:this.csrf,feedId:i,type:this.type,socialAccounts:this.socialAccounts.findAllWithProvider(n),results:this.results,isLoading:this.isLoading,post_type:this.postType}):t+=Juicer.Helpers.renderPartial("source_form/"+this.type,{source:this.source,csrf:this.csrf,feedId:i,type:this.type,socialAccount:this.socialAccounts.socialAccount(n),results:this.results,isLoading:this.isLoading}),t+="</div>"),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_reviews"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<h2 class="new-source-title">Connect Facebook Page Reviews</h2>',this.results?this.results.models.length>0?(t+='<form accept-charset="UTF-8" action="/feeds/',t+=this.escape(this.feedId),t+='/sources" class="source-form" method="post"><input name="source" type="hidden" value="Facebook" /><input name="feed_id" type="hidden" value="',t+=this.escape(this.feedId),t+='" /><input name="term_type" type="hidden" value="reviews" /><input class="result-term" name="term" type="hidden" /><input class="result-name" name="name" type="hidden" /><ul class="search-results">',_u.each(this.results.models,(e=this,function(i){return t+='<li class="search-result" data-id="',t+=e.escape(i.get("id")),t+='" data-name="',t+=e.escape(i.get("name")),t+='">',t+=e.escape(i.get("name")),t+="</li>"})),t+="</ul></form>"):t+="<h2>Sorry you aren't the admin of any facebook pages.</h2>":t+='<a class="j-button j-facebook j-facebook-border j-social-icon social-account social-j-button" data-method="post" href="/auth/facebook">Connect your Facebook account</a>',t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),
!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="","Facebook"===this.source.source()?t+=Juicer.Helpers.renderPartial("source_form/username_pages",{source:this.source,csrf:this.csrf,feedId:this.feedId,type:this.type,socialAccount:this.socialAccount,results:this.results,isLoading:this.isLoading}):"Instagram"===this.source.source()?t+=Juicer.Helpers.renderPartial("source_form/username_instagram_basic_display",{source:this.source,csrf:this.csrf,feedId:this.feedId,feed:this.feed,type:this.type,socialAccounts:this.socialAccounts,results:this.results,isLoading:this.isLoading,post_type:"post"}):"InstagramReels"===this.source.source()?t+=Juicer.Helpers.renderPartial("source_form/username_instagram_basic_display",{source:this.source,csrf:this.csrf,feedId:this.feedId,feed:this.feed,type:this.type,socialAccounts:this.socialAccounts,results:this.results,isLoading:this.isLoading,post_type:"reel"}):"TikTok"===this.source.source()?t+=Juicer.Helpers.renderPartial("source_form/username_tiktok",{source:this.source,csrf:this.csrf,feedId:this.feedId,type:this.type,socialAccounts:this.socialAccounts,results:this.results,isLoading:this.isLoading}):"LinkedIn"===this.source.source()?(t+='<a class="load-form-async" hx-get="/sources/new?source=',t+=this.escape(this.source.source()),t+="&amp;feed_id=",t+=this.escape(this.feedId),t+="&amp;type=",t+=this.escape(this.type),t+='" hx-swap="afterend" hx-target="this"></a>'):t+=Juicer.Helpers.renderPartial("source_form/username_input",{source:this.source,csrf:this.csrf,feedId:this.feedId,type:this.type,socialAccount:this.socialAccount,results:this.results}),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username_example"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",(e=this.source.usernameExample())&&(t+='<div class="source-form-example mt-40"><h4 class="tc-orange ibt bold">For Example:</h4> if you want to add ',t+=this.escape(e.name),t+=', copy & paste the bold part: <br /><a href="',t+=this.escape(e.link),t+='" target="_blank">',t+=e.formattedLink,t+="</a></div>"),(i=this.source.usernameHelpLink())&&(t+='<div class="source-form-example mt-10"><h4 class="tc-orange ibt bold">Help:</h4> <a href="',t+=this.escape(i.link),t+='" target="_blank">',t+=i.text,t+="</a></div>"),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username_input"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<h2 class="new-source-title">',t+=this.escape(this.source.title()),t+='</h2><form accept-charset="UTF-8" action="#" class="source-form" method="post"><div style="display:none"><input name="utf8" type="hidden" value="\u2713" /></div><input name="source" type="hidden" value="',t+=this.escape(this.source.source()),t+='" /><input name="feed_id" type="hidden" value="',t+=this.escape(this.feedId),t+='" /><input name="term_type" type="hidden" value="',t+=this.escape(this.type),t+='" />',"Tumblr"===this.source.source()?(t+='<label for="source_term">http://</label><input autocomplete="off" id="source_term" name="term" placeholder="',t+=this.escape(this.source.placeholder()),t+='" type="text" /><label for="source_term">.tumblr.com</label>'):"Hashtag"===this.source.source()?(t+='<ul class="add-a-hashtag">',_u.each(_u.filter(this.source.hashtagSupporters,(function(t){return"Facebook"!==t})),(e=this,function(i){var r;return r=i.toLowerCase(),t+='<li class="j-',t+=e.escape(r),t+=" j-",t+=e.escape(r),t+='-color hashtag-source j-social-icon ibt tc-white" data-type="',t+=e.escape(i),t+='">',"InstagramReels"===i?(t+='<div class="tc-slevin">',t+=e.escape("Instagram reels"),t+="</div>"):(t+='<div class="tc-slevin">',t+=e.escape(i),t+="</div>"),t+="</li>"})),t+="</ul>"):(t+='<label for="source_term">',t+=this.escape(this.source.label()),t+='</label><input autocomplete="off" id="source_term" name="term" placeholder="',t+=this.escape(this.source.placeholder()),t+='" type="text" />',"Facebook"===this.source.source()&&(t+='<div class="feed-term-type"><input id="term_type" name="term_type" type="checkbox" value="feed" /><label for="term_type">Include posts that mention my page.</label></div>'),"Twitter"===this.source.source()&&(t+='<div class="feed-term-type"><input id="retweets" name="retweets" type="checkbox" value="retweets" /><label for="retweets">Include reposts</label><input id="replies" name="replies" type="checkbox" value="replies" /><label for="replies">Include @replies</label></div>')),"Hashtag"!==this.source.source()&&(t+='<input class="new-source-submit" name="commit" type="submit" value="Create Source" />',t+=Juicer.Helpers.renderPartial("source_form/username_example",{source:this.source})),t+="</form>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username_instagram_basic_display"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r;return t="",window.juicerData.user.instagramStoriesEnabled?(t+='<a class="load-form-async" hx-get="/sources/new?source=',t+=this.escape(this.source.source()),t+="&amp;feed_id=",t+=this.escape(this.feedId),t+="&amp;type=",t+=this.escape(this.type),t+='" hx-swap="afterend" hx-target="this"></a>'):(this.source.set("term_type","username"),this.source.needsLogin()&&0===this.socialAccounts.findAllWithProvider("instagram_basic_display").length?(e=window.juicerWL?"?wl="+window.juicerWL:"",t+='<h2 class="new-source-title">Please connect your Instagram account.</h2><p class="connect-explanation">We ask that you connect your Instagram account so that we don\'t run into API rate limits. <strong>This will not automatically import your Instagram posts.</strong> After you have connected your account, you can add the posts of your connected account. </p><a class="j-button j-social-icon social-account social-j-button j-instagram j-instagram-bg j-instagram-border" data-method="post" href="/auth/instagram_basic_display',t+=this.escape(e),t+='">Connect your Instagram account</a>'):(t+='<div class="mx-20 instagram-form"><div class="container-fluid"><div class="row px-20"><div class="col-12"><h2 class="new-source-title">Import ',t+=this.escape(this.post_type),t+='s for an Instagram username</h2></div><div class="col-12 border form-container px-20"><p class="new-source-subtitle">Choose existing Instagram username</p><form accept-charset="UTF-8" action="/feeds/',t+=this.escape(this.feedId),t+='/sources" class="source-form mt-10" method="post"><input name="source" type="hidden" value="Instagram" /><input name="feed_id" type="hidden" value="',t+=this.escape(this.feedId),t+='" /><input name="term_type" type="hidden" value="username" />',"reel"===this.post_type?t+='<input name="only_reels" type="hidden" value="true" />':t+='<input name="only_posts" type="hidden" value="true" />',t+='<div class="d-flex flex-row justify-content-between align-items-center"><span class="fs-1-5 at-sign">@</span><select class="p-10 username-select flex-grow-1 mx-10 shadow-sm" name="term">',i=this.socialAccounts.findAllWithProvider("instagram_basic_display"),_u.each(i,(r=this,function(e){return t+="<option>",t+=r.escape(e.attributes.name),t+="</option>"})),t+='</select><input class="new-source-submit" name="commit" type="submit" value="Create Source" /></div></form></div><div class="col-12"><div class="separator-text my-10">OR</div></div><div class="col-12 border form-container px-20"><p class="new-source-subtitle pb-10">Add a new Instagram username</p><p class="pb-20">Log out of Instagram before continuing to prevent reconnection already connected account.</p><a class="j-button j-instagram j-instagram-bg j-social-icon j-instagram-border social-account social-j-button" data-method="post" href="/auth/instagram_basic_display">Connect via Instagram</a></div></div></div></div>')),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username_linkedin_20"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){return""}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username_pages"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<h2 class="new-source-title">Add your Facebook Page</h2>',this.isLoading?t+='<container class="tac pt-75"><ul class="new-source"><div class="j-loading"></div></ul></container>':(this.results?this.results.models.length>0?(t+='<form accept-charset="UTF-8" action="/feeds/',t+=this.escape(this.feedId),t+='/sources" class="source-form mb-40" method="post"><input name="source" type="hidden" value="Facebook" /><input name="feed_id" type="hidden" value="',t+=this.escape(this.feedId),t+='" /><input name="term_type" type="hidden" value="username" /><input class="result-term" name="term" type="hidden" /><input class="result-name" name="name" type="hidden" /><ul class="search-results">',_u.each(this.results.models,(e=this,function(i){var r;return r=i.get("username")||i.get("id"),t+='<li class="search-result" data-id="',t+=e.escape(r),t+='" data-name="',t+=e.escape(i.get("name")),t+='">',t+=e.escape(i.get("name")),t+=e.escape(" ("+r+")"),t+="</li>"})),t+='</ul><div class="feed-term-type"><input id="term_type" name="term_type" type="checkbox" value="feed" /> <label for="term_type">Also import Facebook Visitor Posts (see: <a class="tc-blue" href="https://www.facebook.com/help/356113237741414" target="_blank">facebook.com/help/356113237741414</a>)</label></div></form>'):t+="<h2>Sorry you aren't the manager of any facebook pages.</h2>":t+='<a class="j-button j-facebook j-facebook-border j-social-icon social-account social-j-button" data-method="post" href="/auth/facebook">Connect your Facebook account</a>',t+='<div class="row new-source-warning"><div class="offset-2 col-8"><strong>Not seeing your page here?</strong> <br />Make sure the Facebook account that you\'ve connected has management access to the relevant Facebook Page. <br /><a aria-label="Learn more" class="tc-black bold tdu" href="',t+=this.escape(Juicer.Constants.HELP_CENTER_URL),t+='/articles/360039938752-Validating-ownership-of-your-Facebook-sources" target="_blank"> Learn more</a></div></div>'),t}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username_tiktok"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",t+='<div class="mx-20 tiktok-form"><div class="container-fluid"><div class="row px-20"><div class="col-12"><h2 class="new-source-title">Import posts for a TikTok username</h2></div><div class="col-12 border form-container px-20"><p class="new-source-subtitle">Choose existing TikTok username</p><form accept-charset="UTF-8" action="/feeds/',t+=this.escape(this.feedId),t+='/sources" class="source-form mt-10" method="post"><input name="source" type="hidden" value="TikTok" /><input name="feed_id" type="hidden" value="',t+=this.escape(this.feedId),t+='" /><input name="term_type" type="hidden" value="username" /><div class="d-flex flex-row justify-content-between align-items-center"><select class="p-10 username-select flex-grow-1 mr-10 shadow-sm" name="term">',e=this.socialAccounts.findAllWithProvider("tiktok"),_u.each(e,(i=this,function(e){return t+="<option>",t+=i.escape(e.attributes.name),t+="</option>"})),t+='</select><input class="new-source-submit" name="commit" type="submit" value="Create Source" /></div></form></div><div class="col-12"><div class="separator-text my-10">OR</div></div><div class="col-12 border form-container px-20"><p class="new-source-subtitle pb-10">Add a new TikTok username</p><p class="pb-20">If you have multiple TikTok accounts, you will be able to switch between them in the next step. Depending on the account you choose, we will either refresh the connection in Juicer or add a new one.</p><a class="j-button j-tiktok j-tiktok-bg j-social-icon j-tiktok-border social-account social-j-button" data-method="post" href="/auth/tiktok">Connect via TikTok</a></div></div></div></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_youtube_channel_name_example"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",e=this.source.youtubeChannelNameExample(),t+='<div class="source-form-example mt-40"><h4 class="tc-orange ibt bold">For Example:</h4> if you want to add ',t+=this.escape(e.name),t+=', copy & paste the bold part: <br /><a href="',t+=this.escape(e.link),t+='" target="_blank">',t+=e.formattedLink,t+="</a></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_blog_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;switch(t="",t+='<div class="video-wrapper">',t+='<video autoplay="autoplay"',e=!!this.overlay){case!0:t+=' controls="controls"';break;case!1:case null:break;default:t+=' controls="',t+=this.escape(e),t+='"'}return t+=' loop="true"><source src="',t+=this.escape(this.video),t+='" type="video/mp4" /></video></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_facebook_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;switch(t="",t+='<div class="video-wrapper">',t+='<video autoplay="autoplay"',e=!!this.overlay){case!0:t+=' controls="controls"';break;case!1:case null:break;default:t+=' controls="',t+=this.escape(e),t+='"'}return t+=' loop="true"><source src="',t+=this.escape(this.video),t+='" type="video/mp4" /></video></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_flickr_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="video-wrapper"><embed autoplay="true" autostart="true" play="true" src="',t+=this.escape(this.video),t+='&amp;autoPlay=true" wmode="transparent" /></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_instagram_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r,n;switch(t="",t+='<div class="instagram-wrapper"',e=n=this.height?"height: "+this.height+"px":""){case!0:t+=' style="style"';break;case!1:case null:break;default:t+=' style="',t+=this.escape(e),t+='"'}switch(t+=">",t+='<video autoplay="autoplay"',i=!!this.overlay){case!0:t+=' controls="controls"';break;case!1:case null:break;default:t+=' controls="',t+=this.escape(i),t+='"'}switch(t+=' id="video" loop="true"',r=n){case!0:t+=' style="style"';break;case!1:case null:break;default:t+=' style="',t+=this.escape(r),t+='"'}return t+='><source src="',t+=this.escape(this.video),t+='" /></video>',this.post&&(t+='<a class="j-video-fallback" href="',t+=this.escape(this.post.link()),t+='" style="display: none;" target="_blank"><img data-lazy="',t+=this.escape(this.post.get("image")),t+='" /></a>'),t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_linkedin_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;switch(t="",t+='<div class="video-wrapper linkedin-wrapper">',t+='<video autoplay="autoplay"',e=!!this.overlay){case!0:t+=' controls="controls"';break;case!1:case null:break;default:t+=' controls="',t+=this.escape(e),t+='"'}return t+=' loop="true"><source src="',t+=this.escape(this.video),t+='" type="video/mp4" /></video></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_slack_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;switch(t="",t+='<div class="video-wrapper">',t+='<video autoplay="autoplay"',e=!!this.overlay){case!0:t+=' controls="controls"';break;case!1:case null:break;default:t+=' controls="',t+=this.escape(e),t+='"'}return t+=' loop="true"><source src="',t+=this.escape(this.video),t+='" type="video/mp4" /></video></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_soundcloud_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="video-wrapper"><iframe allow="autoplay" frameborder="no" scrolling="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/',t+=this.escape(this.id),t+='&amp;auto_play=true&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true&amp;show_teaser=false"></iframe></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_spotify_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="video-wrapper"><iframe allowtransparency="true" frameborder="0" src="https://embed.spotify.com/?uri=spotify:track:',t+=this.escape(this.id),t+='"></iframe></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_tiktok_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="video-wrapper tiktok-wrapper"><iframe frameborder="0" src="',t+=this.escape(this.video),t+='"></iframe></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_tumblr_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,
s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="video-wrapper">',t+=this.video,t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_vimeo_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="video-wrapper"><iframe allowfullscreen="true" frameborder="0" mozallowfullscreen="true" src="//player.vimeo.com/video/',t+=this.escape(this.id),t+='?autoplay=1&amp;title=0&amp;byline=0&amp;portrait=0" webkitallowfullscreen="true"></iframe></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_vine_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="vine-wrapper"><iframe frameborder="0" src="',t+=this.escape(this.id),t+='/card?audio=1"></iframe><script src="https://platform.vine.co/static/scripts/embed.js"></script></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_x-twitter_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;switch(t="",t+='<div class="twitter-wrapper">',t+='<video autoplay="autoplay"',e=!!this.overlay){case!0:t+=' controls="controls"';break;case!1:case null:break;default:t+=' controls="',t+=this.escape(e),t+='"'}return t+=' loop="true"><source src="',t+=this.escape(this.video),t+='" type="video/mp4" /></video></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_youtube_embed"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;return t="",t+='<div class="video-wrapper">',e=this.overlay?"autoplay=1&rel=0":"autoplay=1&rel=0&controls=0",t+='<iframe allowfullscreen="allowfullscreen" frameborder="0" src="https://www.youtube-nocookie.com/embed/',t+=this.escape(this.id),t+="?",t+=this.escape(e),t+='"></iframe></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.plan_change=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r;if(t="",t+='<div class="change-plan-overlay"><h2 class="tc-dark-gray fs-1-75">Changing Your Juicer Plan </h2><div class="plan-change-summary cf mb-40 pb-40 relative"><div class="existing-plan fl"><h3 class="bold tc-dark-gray fs-1-5">Current Plan: <br />',this.model.get("year")?(t+=this.escape(this.model.planCapital()),t+=": ",t+=this.escape(this.model.get("cost_formatted")),t+="/yr "):(t+=this.escape(this.model.planCapital()),t+=": ",t+=this.escape(this.model.get("cost_formatted")),t+="/mo "),t+="</h3><h4>",t+=this.model.get("subtitle"),t+='</h4></div><div class="change-plan-arrow"></div><div class="new-plan fr"><h3 class="bold tc-dark-gray fs-1-5">New Plan: <br />',this.model.get("new_plan_yearly")?(t+=this.escape(this.model.newPlanCapital()),t+=": ",t+=this.escape(this.model.get("new_cost_formatted")),t+="/yr "):(t+=this.escape(this.model.newPlanCapital()),t+=": ",t+=this.escape(this.model.get("new_cost_formatted")),t+="/mo "),t+="</h3><h4>",t+=this.model.get("new_subtitle"),t+="</h4></div></div>","small"===this.model.get("new_plan")){switch(t+='<div class="change-plan-explainer mb-25">Your subscription will no longer renew and your Juicer account will automatically downgrade to a <strong>Small</strong> plan on <strong>',t+=this.escape(this.model.downgradeDate()),t+='</strong></div><div class="archive-mode-explainer"><strong class="tc-grapefruit up">Notice:</strong> Fully downgrading will remove all extra sources and feeds from your Juicer account. If you\u2019d like to keep an archive of these feeds, consider downgrading to <a class="tc-grapefruit tdu" data-method="put" href="/plans/archive">Archive Mode</a> for $5/Month! <form action="/churns" class="tac mt-30" method="post"><input name="authenticity_token" type="hidden"',e=this.csrf){case!0:t+=' value="value"';break;case!1:case null:break;default:t+=' value="',t+=this.escape(e),t+='"'}t+=' /><input name="redirect_path" type="hidden" value="/downgrade" /><input class="j-button" data-confirm="Are you sure you want to downgrade to small?" data-disable-with="Downgrading..." type="submit" value="Downgrade to Small" /></form></div>'}else{switch(this.model.downgradeDate()&&(t+='<div class="change-plan-explainer">You will be charged a prorated amount for the remainer of this month for this new plan, and fully charged next on your normal billing date <strong>',t+=this.escape(this.model.downgradeDate()),t+="</strong></div>"),t+='<form action="/plans/',t+=this.escape(this.model.get("new_plan")),t+="?interval=",t+=this.escape(this.model.newInterval()),t+='" class="tac mt-30" method="post"><input name="_method" type="hidden" value="put" /><input name="authenticity_token" type="hidden"',i=this.csrf){case!0:t+=' value="value"';break;case!1:case null:break;default:t+=' value="',t+=this.escape(i),t+='"'}switch(t+=' /><input class="j-button" data-disable-with="Loading..." type="submit"',r=this.model.get("plan_button_label_for_price_table")){case!0:t+=' value="value"';break;case!1:case null:break;default:t+=' value="',t+=this.escape(r),t+='"'}t+=" /></form>"}return t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.please_wait=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="mt-15 tc-gray fourteen please-wait"><h3 class="strong">Please be patient.</h3><p>It can take up to 30 seconds to import all the posts.</p><p>Taking forever? <a class="tc-gray bold" href="/contact">Contact us</a></p></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.post_edit=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e;if(t="",t+='<div class="p-50"><h2 class="tac fs-2 tc-orange mb-30">Edit Post</h2>',t+=Juicer.Helpers.renderPartial("poster",{post:this.post}),t+='<div class="message-container">',t+=Juicer.Helpers.renderPartial("message",{post:this.post}),t+="</div>",this.feed.get("moderation_allowed?")){if(t+='<form><textarea class="bordered my-25" placeholder="Add text or links to the post">',t+=this.escape(this.post.get("edit")),t+="</textarea>",this.post.linkedin()){switch(t+='<div>By changing import date you can change LinkedIn post position in the feed.</div><input class="datetime-external-created-at my-25 center" name="external_created_at" type="datetime-local"',e=this.post.get("formatted_external_created_at")){case!0:t+=' value="value"';break;case!1:case null:break;default:t+=' value="',t+=this.escape(e),t+='"'}t+=" />"}t+='<div class="tac"><input class="j-button" type="submit" value="Update Post" /></div></form>'}else t+='<h3>Only paid plans can edit posts. <a href="/plans?mpevent=moderation_edit_post">Upgrade your plan.</a></h3>';return t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.post_overlay=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",e="YouTube"!==this.post.sourceType()?"is-not-youTube":"",i="YouTube"===this.post.sourceType()?"is-youTube":"",t+='<div class="j-post-overlay juicer-feed loaded ',t+=this.escape(i),t+=" ",t+=this.escape(this.post.gallery()?"j-gallery":void 0),t+='" data-id="',t+=this.escape(this.post.get("id")),t+='">',this.post.isVideo()?t+=Juicer.Helpers.renderPartial("video/"+this.post.lowerType()+"_embed",{id:this.post.get("external_id"),video:this.post.get("video"),overlay:!0,post:this.post}):(t+='<div class="image">',t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed,overlay:!0}),t+="</div>"),t+='<div class="j-overlay-text ',t+=this.escape(this.post.postType()),t+=" ",t+=this.escape(e),t+='">',t+=Juicer.Helpers.renderPartial("poster",{post:this.post,lazyLoad:!1}),this.post.get("unformatted_message")&&(t+='<div class="j-message" tabindex="0">',t+=this.post.fullMessage(),t+="</div>"),t+=Juicer.Helpers.renderPartial("edit",{post:this.post}),t+=Juicer.Helpers.renderPartial("meta",{post:this.post}),t+='<div class="j-bottom">',t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:"View on "+this.post.sourceType(),class:"juicer-button "+("YouTube"===this.post.sourceType()?"":"j-"+this.post.lowerType()),aria:this.post.lowerType()}),t+="</div>",window.juicerDashboard&&"Instagram"===this.post.sourceType()&&"stories"===this.post.termType()&&(t+='<div class="jcr-mt-5"><h3 class="jcr-text-normal"><i class="ri-bar-chart-fill jcr-mr-2 jcr-border-2 jcr-border-solid jcr-rounded-full jcr-p-1"></i>Story insights <div class="jcr-mt-3" hx-get="/posts/',t+=this.escape(this.post.get("id")),t+='/story_insights" hx-trigger="load"><i class="ri-loader-2-line jcr-animate-spin jcr-inline-block jcr-w-fit jcr-h-fit"></i>Loading </div></h3></div>'),t+='<div class="j-navigate"><button aria-label="Previous Post" class="j-previous" data-post-id="',t+=this.escape(this.previous.get("id")),t+='"><span>Previous</span></button>',this.next&&(t+='<button aria-label="Next Post" class="j-next" data-post-id="',t+=this.escape(this.next.get("id")),t+='"><span>Next</span></button>'),t+="</div></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.sidebar=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i,r,n,s,o;return t="",t+='<h1 class="fs-1-5 tc-dark-blue sidebar-feed-name"><a class="js-feed-name-edit tdu-hover d-flex align-items-center pointer px-15" title="Edit feed name and URL">',t+=this.escape(this.feed.get("name")),t+='<span class="ml-10 juicer-fa-edit fs-1 hide-on-white-label"></span></a></h1><a class="tdu-hover d-flex px-15 align-items-center tc-dark-blue pt-10 pb-20 fs-0-75" href="#" hx-get="/paywall?source=update_frequency_upgrade&amp;feed_id=',t+=this.escape(this.feed.get("id")),t+='" hx-swap="beforeend" hx-target="body" title="Change the feed&#39;s update frequency">Updates: ',t+=window.juicerDashboard.updateFrequencyInWords.toLowerCase(),t+=' <div class="ml-10 juicer-fa-edit hide-on-white-label"></div></a>',r=this.feed.get("manual_source_limit"),t+='<div class="relative add-source-container" x-data="{ tooltip: &#39;&#39;, disabledMessage: &#39;Your account owner set a limit of maximum ',t+=this.escape(r),t+=" feed",t+=this.escape(r>1?"s":""),t+='. Please ask them to adjust the limit.&#39; }" x-on:disable-add-source-button="tooltip = disabledMessage" x-on:enable-add-source-button="tooltip = &#39;&#39;">',this.feed.manualSourceLimitReached()?t+='<div class="px-15 py-20 add-source-sidebar-container" style="border-top: 1px solid #e6e0d8;" x-init="$dispatch(&#39;disable-add-source-button&#39;)"><a class="j-button d-flex justify-content-center disabled" x-tooltip="tooltip">+ Add social media source </a></div>':t+='<div class="px-15 py-20 add-source add-source-sidebar-container" style="border-top: 1px solid #e6e0d8;" x-init="$dispatch(&#39;enable-add-source-button&#39;)"><a class="j-button d-flex justify-content-center" x-tooltip="tooltip">+ Add social media source </a></div>',t+='<ul class="sidebar-menu" style="border-top: 1px solid #e6e0d8;">',window.juicerDashboard.hasExpiredSocialAccounts,o=window.juicerDashboard.sourceIdsWhereUserActionRequired.length>0,s=window.juicerDashboard.showEmbedTour,n=window.juicerDashboard.showEmbedLayoutTour,window.juicerDashboard.hideConnectionsWarningPopover,e=window.juicerDashboard.hideEmbedInfoPopover,i=window.juicerDashboard.hideEmbedLayoutPopover,t+='<li class="menu-item menu-icon feed-icon ',t+=this.escape(o?"menu-item-with-icon":void 0),t+='" id="sources"><div class="d-flex align-items-center justify-content-between">Social Media Sources',o&&(t+='<a class="js-warning" href="/feeds/',t+=this.escape(this.feed.get("slug")),t+='/inspect">',t+=window.juicerDashboard.warningSvg,t+="</a>"),t+="</div>",o&&(t+='<a class="sidebar-popover" data-skip_opening_sub_view="true" href="/feeds/',t+=this.escape(this.feed.get("slug")),t+='/inspect " id="UserActionRequiredPopover"><div class="sidebar-popover-content">We cannot import posts for one of your sources, we need your help to fix this.<div class="popover-buttons"><div class="popover-button j-button cta">Fix Now!</div></div></div></a>'),t+='</li><li class="menu-item menu-icon design-icon" id="design">Feed Design</li><li class="menu-item menu-icon feed-settings-icon" id="settings">Feed Settings</li>',window.juicerDashboard&&window.juicerDashboard.ctaEnabled&&(t+='<li class="menu-item menu-icon cta-icon jcr-flex jcr-items-center" id="cta">CTA Settings<img class="jcr-h-[14px] jcr-px-1.5 jcr-ml-1.5" src="/standalone-sprites/premium-crown.svg" /></li>'),t+='<li class="menu-item menu-icon embed-icon ',t+=this.escape(s?"hide-embed-info-popover menu-item-with-icon":void 0),t+='" id="embed"><span class="d-flex align-items-center justify-content-between">Embed in your Site ',s&&(t+='<span class="embed-popover icon-warning d-flex align-items-center">',t+=window.juicerDashboard.infoSvg,t+="</span>"),n&&(t+="<span>",t+=window.juicerDashboard.warningSvg,t+="</span>"),t+="</span>",s&&(t+='<UserActionRequiredPopover class="embed-popover sidebar-popover ',t+=this.escape(e?"hide-popover":void 0),t+='"><div class="sidebar-popover-content">Embed your Juicer feed directly onto your own website with one short code snippet <div class="popover-hide-button" data-key="Embed">x</div><div class="popover-buttons"><div class="popover-button j-button popover-button mr-5">Try it out!</div></div></div></UserActionRequiredPopover>'),n&&(t+='<span class="sidebar-popover ',t+=this.escape(i?"hide-popover":void 0),t+='" data-skip_opening_sub_view="true" href="" id="UpdateEmbedLayoutPopover"><div class="sidebar-popover-content">There is a layout change available for your feed that handles accessibility support. Please take a moment to review the changes and upgrade to the new layout. <div class="popover-hide-button hide-embed-layout-popover" data-key="EmbedLayout">x</div></div></span>'),t+='</li><li class="menu-item menu-icon moderate-icon icon-menu-item" data-icon-label="',t+=this.escape(this.feed.moderationStatus()),t+='" id="moderate">Moderate and Filter</li><li class="menu-item menu-icon share-icon slide-menu-item" id="hub">Share your Feed</li><li class="menu-item menu-icon sync-icon slide-menu-item" id="synced">',this.feed.get("view_limit_reached")?(t+='\u26a0\ufe0f Next feed refresh on <div class="twelve">',t+=this.escape(Juicer.Helpers.fullDate(this.feed.get("view_limit_reset_date"),"%b/%-d/%y at %-l:%M%p")),t+=".</div>"):(t+='Last Sync <div class="twelve">',t+=this.escape(Juicer.Helpers.fullDate(this.feed.get("last_synced"),"%b/%-d/%y at %-l:%M%p")),t+="</div>"),t+="</li>","small"!==this.feed.get("plan")||this.feed.isTrial()||(t+='<a href="',t+=this.escape(window.juicerDashboard.userUpgradePath),t+='?mpevent=sidebar_upgrade_button" target="_blank"><li class="menu-item-unclickable menu-icon rocket-icon active slide-menu-item arrow-right-after">Upgrade</li>',t+=Juicer.Helpers.renderPartial("upgrade"),t+="</a>"),t+="</ul></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.source_form=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",i={source:this.source,csrf:this.csrf,feed:this.feed,type:this.type,socialAccounts:this.socialAccounts,results:this.results,isLoading:this.isLoading},t+='<div class="tac">',this.feed&&(this.plan&&this.plan.get("feed_limit_exceeded?")||!this.feed.get("more_sources_allowed?"))?(t+='<div class="p-50"><h2 class="fs-2">Upgrade to add more sources</h2>',this.plan.get("feed_limit_exceeded?")?(e=1===this.plan.get("max_feeds")?"1 feed":this.plan.get("max_feeds")+" feeds",t+="<h3>Unfortunately, the ",t+=this.escape(this.feed.get("plan")),t+=" plan only allows ",t+=this.escape(e),t+=' and you have exceeded this limit.</h3><h3 class="mb-25">Please upgrade your plan or delete the excessive feeds to add more sources.</h3>'):(t+='<h3 class="mb-25">Unfortunately, the ',t+=this.escape(this.feed.get("plan")),t+=" plan only allows ",t+=this.escape(this.feed.get("max_sources")),t+=" sources per feed.</h3>"),window.juicerWL||(t+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed,mpevent:"source_form_upgrade_plan"})),t+="</div>"):t+=Juicer.Helpers.renderPartial("source_form/new",i),t+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["sources/manual"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<form accept-charset="UTF-8" class="tac p-50" id="manual_post" method="post"><h2 class="fs-2 mb-30">Add a Post Manually to ',t+=this.escape(this.source.displayName()),t+="</h2>",this.feed.notSmall()||this.feed.isTrial()?(t+='<input name="source_id" type="hidden" value="',t+=this.escape(this.source.get("id")),t+='" /><input autocomplete="off" class="source-overlay-field" id="link" name="link" placeholder="ex: ',t+=this.escape(this.source.manualPostExamples[this.source.source()]||"https://facebook.com/..."),t+='" type="text" />',"LinkedIn"===this.source.source()&&(t+='<p class="mb-20">To receive the URL to your post click on the 3 dots menu in the top right of the post on LinkedIn and then "Copy link to post"</p>'),t+='<input class="j-button" name="commit" type="submit" value="Add Post" /><div class="j-loading-wrapper mt-20"></div>'):(t+='<h3 style="margin-bottom:1.5rem">Unfortunately, the ',t+=this.escape(this.feed.get("plan")),t+=" plan doesn't allow you to manually enter posts. Please upgrade!</h3>",t+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed,mpevent:"moderation_manual_add_upgrade"})),t+="</form>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["sources/moderation"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t,e,i;return t="",t+='<form accept-charset="UTF-8" class="tac p-50 source-update" method="post"><input name="id" type="hidden" value="',t+=this.escape(this.source.get("id")),t+='" /><h2 class="fs-2 mb-30">Set Moderation Filters for ',t+=this.escape(this.source.displayName()),t+='</h2><h3 class="fifteen tc-dark-gray mb-15">These work the same way as the moderation and filtering for your whole feed, but just apply to this one sources posts. Read more about it <a class="tc-dark-gray bold" href="/blog/walkthrough-moderating-and-filtering-your-social-posts-in-juicer">here</a>. </h3>',i="list words, @usernames, or #hastags",e="Separate filters with a comma. Filters are case-insensitive.",t+='<h3 class="settings-label">Disallow posts with these words:</h3><textarea class="moderation-filter source-overlay-textarea thirteen mb-10 bc-gray" name="disallowed" placeholder="',t+=this.escape(i),t+=" to block. ",t+=this.escape(e),t+='">',t+=this.source.disallowed(),t+='</textarea><h3 class="settings-label">Only allow posts with these words:</h3><textarea class="moderation-filter source-overlay-textarea thirteen mb-20" name="allowed" placeholder="',t+=this.escape(i),t+=" to allow. ",t+=this.escape(e),t+='">',t+=this.source.allowed(),t+='</textarea><div class="mb-15"><input name="queue" type="hidden" value="0" />',this.source.get("queue")?t+='<input checked="true" id="queue" name="queue" type="checkbox" />':t+='<input id="queue" name="queue" type="checkbox" />',t+='<label for="queue">Send all posts to moderation queue</label></div><input class="j-button" name="commit" type="submit" value="Save Moderation Settings" /></form>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["sources/rename"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<form accept-charset="UTF-8" class="tac p-50 source-update" method="post"><h2 class="fs-2 mb-30">Edit ',t+=this.escape(this.source.displayName()),t+='\'s filter button</h2><p class="mb-30">This will <strong>not</strong> show different posts but only change the label of the filter button above your feed. To display different posts through a new source, delete this source, and add a new one with your new hashtag or social account. </p><input name="id" type="hidden" value="',t+=this.escape(this.source.get("id")),t+='" /><input autocomplete="off" class="source-overlay-field" name="name" placeholder="How you want the name of your source to display on Juicer." type="text" value="',t+=this.escape(this.source.displayTerm()),t+='" /><input class="j-button" name="commit" type="submit" value="Save" /></form>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["sources/source_unavailable_for_small_plan"]=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,
s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="tac"><div class="p-50"><h2 class="fs-2">Upgrade to add ',t+=this.escape(this.source),t+='</h2><h3 class="mb-25">The small plan doesn\'t allow adding ',t+=this.escape(this.source),t+=" sources after the end of the trial period. </h3>",t+=Juicer.Helpers.renderPartial("upgrade_plan",{mpevent:"source_form_unavailable_provider"}),t+="</div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.widget=function(){return this.Skim={access:function(t){var e;return"function"==typeof(e=this[t])&&(e=e.call(this)),!0===e?[this]:!1!==e&&null!=e&&("[object Array]"!==Object.prototype.toString.call(e)?[e]:0!==e.length&&e)},withContext:function(t,e){var i;return(t=function(t){var e;return(e=function(){}).prototype=t,new e}(t)).safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:((e=new String(null!=t?t:"")).skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,r,n,s;for(r=[],n=0,s=t.length;n<s;n++)(e=t[n])instanceof Array?r=r.concat(i(e)):r.push(e);return r},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe((""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,(function(){var t;return t="",t+='<div class="flip-container"><div class="flipper">',"v2"===this.model.get("embed_layout")?(t+='<ul class="front">',t+=Juicer.Helpers.renderPartial("widget_card",{post:this.first,isOnFeedsDashboard:this.isOnFeedsDashboard}),t+='</ul><ul class="back">',t+=Juicer.Helpers.renderPartial("widget_card",{post:this.second,isOnFeedsDashboard:this.isOnFeedsDashboard}),t+="</ul>"):(t+='<div class="front">',t+=Juicer.Helpers.renderPartial("widget_card",{post:this.first,isOnFeedsDashboard:this.isOnFeedsDashboard}),t+='</div><div class="back">',t+=Juicer.Helpers.renderPartial("widget_card",{post:this.second,isOnFeedsDashboard:this.isOnFeedsDashboard}),t+="</div>"),t+="</div></div>"}))}}.call(this)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.AdReport=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.urlRoot=function(){return Juicer.Constants.API_ROOT+"/api/ad_reports"},i.prototype.save=function(t,e){return(e=null!=e?_u.clone(e):{}).xhrFields||(e.xhrFields={}),e.xhrFields.withCredentials=!1,i.__super__.save.call(this,t,e)},i}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.Assignment=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.urlRoot="/api/assignments",i}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.Click=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.urlRoot=function(){return Juicer.Constants.API_ROOT+"/api/clicks"},i.prototype.save=function(t,e){return(e=null!=e?_u.clone(e):{}).xhrFields||(e.xhrFields={}),e.xhrFields.withCredentials=!1,i.__super__.save.call(this,t,e)},i}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.Enterprise=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.idAttribute="slug",i.prototype.urlRoot="/api/enterprise",i.prototype.page=1,i.prototype.fetch=function(t){return(t=null!=t?_u.clone(t):{}).data=null!=t.data?_u.extend(t.data,this.data()):this.data(),i.__super__.fetch.call(this,t)},i.prototype.parse=function(t,e){var r,n;return t.current_page>1&&t.feeds.length>0&&(r=_u.map(this.get("feeds").models,(function(t){return t.attributes})),n=t.feeds,t.feeds=r.concat(n),t.new_feeds=n),i.__super__.parse.call(this,t,e)},i.prototype.data=function(){var t;return t={page:this.page},this.query&&(t.query=this.query),t},i.prototype.nextPage=function(){return this.page+=1},i.prototype.resetPage=function(){return this.page=1},i.prototype.moreFeeds=function(){return this.get("current_page")<this.get("total_pages")},i.prototype.relations=[{type:JuicerBackbone.Many,key:"feeds",relatedModel:"Juicer.Models.Feed"},{type:JuicerBackbone.Many,key:"new_feeds",relatedModel:"Juicer.Models.Feed"},{type:JuicerBackbone.Many,key:"users",relatedModel:"Juicer.Models.User"}],i}(JuicerBackbone.AssociatedModel)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.EnterpriseUsers=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.idAttribute="slug",i.prototype.url=function(){return"/api/enterprise/"+this.get("slug")+"/users"},i.prototype.relations=[{type:JuicerBackbone.Many,key:"admins",relatedModel:"Juicer.Models.User"},{type:JuicerBackbone.Many,key:"users",relatedModel:"Juicer.Models.User"}],i}(JuicerBackbone.AssociatedModel)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.Estimate=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.defaults={sources:5,frequency:3},i.prototype.frequencyInWords=function(){return this.frequencyMap[this.get("frequency")]},i.prototype.frequencyMap={1:"1 Day",2:"4 Hours",3:"1 Hour",4:"30 Minutes",5:"10 Minutes",6:"5 Minutes",7:"1 Minute"},i.prototype.frequencyMultiplier={1:4,2:6,3:8,4:14,5:20,6:40,7:200},i.prototype.price=function(){return this.get("sources")*this.frequencyCalculated()},i.prototype.frequencyCalculated=function(){return this.frequencyMultiplier[this.get("frequency")]},i.prototype.priceString=function(){return this.maxSources()?"$"+this.frequencyCalculated():"$"+this.price()},i.prototype.priceLabel=function(){return this.maxSources()?"<strong>per Source</strong> per month<br>(with a minimum fee of US$"+Juicer.Constants.MINIMUM_ENTERPRISE_FEE_IN_DOLLARS+"/mo)":"per month<br>(with a minimum fee of US$"+Juicer.Constants.MINIMUM_ENTERPRISE_FEE_IN_DOLLARS+"/mo)"},i.prototype.sources=function(){return this.maxSources()?"20+":this.get("sources")},i.prototype.maxSources=function(){return this.get("sources")>20},i}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Models.Feed=function(i){function r(){return this.fetchNewPosts=t(this.fetchNewPosts,this),this.poll=t(this.poll,this),this.startPolling=t(this.startPolling,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.idAttribute="slug",r.prototype.urlRoot=function(){return Juicer.Constants.API_ROOT+"/api/feeds"},r.prototype.parse=function(t,e){return null!=this.get("css")&&delete t.css,r.__super__.parse.call(this,t,e)},r.prototype.sync=function(t,e,i){var n;return n=i.url,"read"!==t&&(i.url="/api/feeds/"+this.get("id")),n&&(n.match("fetch_all")||n.match("bulk_moderate"))&&(i.url=n),i.headers={"X-Juicer-Referrer":window.location.href},r.__super__.sync.call(this,t,e,i)},r.prototype.defaults={slug:"error"},r.prototype.manualSourceLimitReached=function(){return!!this.get("manual_source_limit")&&!this.get("more_sources_allowed?")},r.prototype.allowed=function(){return null!=this.get("allowed")?this.get("allowed"):""},r.prototype.disallowed=function(){return null!=this.get("disallowed")?this.get("disallowed"):""},r.prototype.moderation=function(){return!!(this.get("allowed")||this.get("disallowed")||this.get("profanity")||this.get("queue")||this.get("prevent_duplicates"))},r.prototype.entertainment=function(){return"entertainment"===this.get("css")},r.prototype.widget=function(){return"widget"===this.get("css")},r.prototype.slider=function(){return"slider"===this.get("css")},r.prototype.livingWall=function(){return"living-wall"===this.get("css")},r.prototype.defaultHeight=function(){switch(this.get("css")){case"slider":return 300;case"widget":return 400;default:return null}},r.prototype.height=function(){return this.get("height")||this.defaultHeight()},r.prototype.defaultWidth=function(){return this.widget()?400:null},r.prototype.numberOfPostsPerOneAd=function(){switch(this.get("css")){case"slider":return this.get("columns");case"widget":return 3;default:return _u.min([10,this.per])}},r.prototype.initialize=function(t){return null==t&&(t={}),this.endingAt=t.endingAt,this.filter=t.filter,this.isOnFeedsDashboard=t.isOnFeedsDashboard,this.page=t.page,this.per=t.per,this.search=t.search,this.startingAt=t.startingAt,this.truncate=t.truncate,this.origin=t.origin,this.per=this.per||100,this.page=this.page||1,this.once("sync",this.startPolling)},r.prototype.startPolling=function(){if(this.shouldPoll())return this.poll()},r.prototype.shouldPoll=function(){return this.pollingAllowed()&&this.isGrid()},r.prototype.pollingAllowed=function(){return this.notSmall()&&!!this.get("poll")&&!!this.get("update_frequency")},r.prototype.poll=function(){return this.timeout=setTimeout(this.fetchNewPosts,this.pollInterval())},r.prototype.fetchNewPosts=function(t){var e,i;return null==t&&(t=!0),this.polling=!0,e=this.get("requested_at"),this.fetch({success:(i=this,function(){if(i.get("requested_at")!==e&&i.trigger("new-posts"),i.polling=!1,t)return i.poll()})})},r.prototype.pollInterval=function(){var t;return t=60*this.get("update_frequency")*1e3/this.divisor(),t=Math.floor(t),t=Math.max(t,15e3)},r.prototype.divisor=function(){var t;return(t=this.get("sources").length)<2&&(t=2),t>10&&(t=10),t},r.prototype.fetch=function(t){var e;return e=null!=(t=null!=t?_u.clone(t):{}).data?_u.extend(t.data,this.queryParams()):this.queryParams(),t.data=this.queryParamsToArray(e),t.xhrFields||(t.xhrFields={}),t.xhrFields.withCredentials=!1,t.beforeSend=function(t){return t.setRequestHeader("Cache-Control","no-cache")},r.__super__.fetch.call(this,t)},r.prototype.queryParams=function(){var t;return t={},this.per&&(t=_u.extend(t,{per:this.per})),this.endingAt&&(t=_u.extend(t,{ending_at:this.endingAt})),this.filter&&(t=_u.extend(t,{filter:this.filter})),this.origin&&(t=_u.extend(t,{origin:this.origin})),this.isOnFeedsDashboard&&(t=_u.extend(t,{is_on_feeds_dashboard:!0})),this.page&&!this.polling&&(t=_u.extend(t,{page:this.page})),this.search&&(t=_u.extend(t,{search:this.search})),this.startingAt&&(t=_u.extend(t,{starting_at:this.startingAt})),this.truncate&&(t=_u.extend(t,{truncate:this.truncate})),t},r.prototype.queryParamsToArray=function(t){return Object.keys(t).reduce((function(e,i){return e.concat({name:i,value:t[i]})}),[]).sort((function(t,e){return t.name>e.name}))},r.prototype.nextPage=function(){return this.page+=1,this},r.prototype.previousPage=function(){return this.page-=1,this},r.prototype.resetPage=function(){return this.page=1,this},r.prototype.nextSync=function(){var t;switch(t=new Date(this.get("last_synced")),this.get("plan")){case"medium":t.setHours(t.getHours()+1);break;case"large":t.setMinutes(t.getMinutes()+10);break;case"custom":case"enterprise":t.setMinutes(t.getMinutes()+this.get("update_frequency"));break;default:t.setDate(t.getDate()+1)}return t},r.prototype.paid=function(){return _u.contains(Juicer.Constants.PAID_PLANS,this.get("plan"))},r.prototype.notSmall=function(){return"small"!==this.get("plan")},r.prototype.onSmallPlan=function(){return"small"===this.get("plan")},r.prototype.isTrial=function(){return this.get("trial?")},r.prototype.cssClass=function(){var t;return"widget"===(t=this.get("css")||"image-grid")&&(t="juicer-widget"),this.get("colored_icons")&&"classic"!==this.get("css")&&(t+=" colored-icons"),this.hoverImages()&&(t+=" hover-images"),t},r.prototype.isGrid=function(){return!_u.contains(["classic","dark","slider","widget","living-wall"],this.get("css"))},r.prototype.classic=function(){return"classic"===this.get("css")},r.prototype.hasInterval=function(){return _u.contains(["widget","slider","living-wall"],this.get("css"))},r.prototype.hasColumns=function(){return!_u.contains(["widget","classic"],this.get("css"))},r.prototype.hoverImages=function(){return _u.contains(["image-grid","slider","hip","night"],this.get("css"))},r.prototype.hasHeight=function(){return this.get("height")},r.prototype.termsByType=function(t){var e;return e=this.get("sources").where({source:t}),_u.map(e,(function(t){return t.get("term")}))},r.prototype.fetchAll=function(){var t;return t={url:this.url()+"/fetch_all",type:"POST"},(this.sync||JuicerBackbone.sync).call(this,null,this,t)},r.prototype.bulkModerate=function(t,e){var i,r,n;return null==t&&(t=!0),null==e&&(e=null),n="/api/feeds/"+this.get("slug")+"/bulk_moderate",i={},t&&(i.approve=!0),null!=e&&(i.filter=e),r={url:n,type:"POST",data:$.param(i)},(this.sync||JuicerBackbone.sync).call(this,null,this,r)},r.prototype.partial=function(){switch(this.get("css")||this.get("style")){case"modern":case"user":return"user";case"slider":case"image-grid":case"hip":return"image";case"classic":return"classic";case"living-wall":return"wall";case"polaroid":return"polaroid";case"night":return"night";default:return"standard"}},r.prototype.displayFilters=function(){return _u.contains(this.validFilters,this.get("display_filter"))&&!this.hasInterval()&&this.get("sources").length>1},r.prototype.validFilters=["Social Type","Social Account","Grouped Terms"],r.prototype.filterPartial=function(){var t,e;e=void 0;try{e=new URLSearchParams(window.location.search).get("display_filter_type")}catch(i){t=i,console.error(t),e=null}return e||(this.get("display_filter_type")?"new":"old")},r.prototype.filters=function(){var t;return(t=(t=function(){switch(this.get("display_filter")){case"Social Type":return this.accountTypes();case"Social Account":return this.get("sources").models;case"Grouped Terms":return this.uniqSources()}}.call(this)).slice(0)).unshift(this.allSource()),t},r.prototype.allSource=function(){return new Juicer.Models.Source({source:"All"})},r.prototype.accountTypes=function(){var t,e;return t=[],e=[],_u.each(this.get("sources").models,(function(i){if(!_u.contains(e,i.source()))return t.push(i),e.push(i.source())})),t},r.prototype.uniqSources=function(){var t,e;return t=[],e=[],_u.map(this.get("sources").models,(function(i){if(!_u.contains(e,i.displayName()))return t.push(i),e.push(i.displayName())})),t},r.prototype.moderationStatus=function(){return this.moderation()?"ON":"OFF"},r.prototype.colors=["text","link","data","hover","post_background","feed_background"],r.prototype.customColors=function(){return _u.some(this.getColors())},r.prototype.getColor=function(t){return this.getCustomColor(t)||this.getDefaultColor(t)},r.prototype.getCustomColor=function(t){return this.getColors()[t+"_color"]},r.prototype.getColors=function(){return this.get("colors")},r.prototype.getDefaultColor=function(t){var e;return"cta_button"===t?"#4AB890":"cta_text"===t?"#fff":"hover"===t?"#F17E6F":"feed_background"===t?"#f9fafb":(e=this.customColorMap[t],(t=jQuery(e.selector).css(e.attribute))?Juicer.Helpers.rgb2hex(t):"#fff")},r.prototype.customColorMap={text:{label:"Text",selector:".juicer-feed .feed-item .j-message, .juicer-feed .feed-item .j-message p",attribute:"color"},link:{label:"Link",selector:".juicer-feed .is-not-youTube a, .is-not-youTube .j-poster h3",attribute:"color"},data:{label:"Metadata",description:"The color of metadata such as the post creation date, the number of likes, or the number of comments.",selector:".juicer-feed .is-not-youTube .j-meta a, .juicer-feed .is-not-youTube .j-meta a *, .is-not-youTube .j-poster .j-date",attribute:"color"},hover:{label:"Hover",selector:".juicer-feed .is-not-youTube a:hover",attribute:"color"},post_background:{label:"Post Background",selector:".juicer-feed li.feed-item",attribute:"background-color"},feed_background:{label:"Feed Background",selector:".juicer-feed",attribute:"background-color"},cta_button_color:{label:"Button Color",selector:".juicer-feed .cta-button",attribute:"background-color"},cta_text_color:{label:"Text Color",selector:".juicer-feed .cta-button",attribute:"color"}},r.prototype.customStyles=function(){var t,e;return t="",_u.each(this.colors,(e=this,function(i){var r,n;if(n=e.customColorMap[i],r=e.getCustomColor(i))return t+=n.selector+" { "+n.attribute+": "+r+" !important; }"})),this.get("custom_css")&&(t+=this.get("custom_css")),t},r.prototype.updateColor=function(t,e){var i,r,n;if((i=this.getColors())[r=t+"_color"]=e,this.set("colors",i),this.set(r,e),this.trigger("update:colors"),t.match(/cta_/))return n=this.customColorMap[t+"_color"],$(n.selector).css(n.attribute,e)},r.prototype.resetColors=function(){return _u.each(this.colors,(t=this,function(e){return t.set(e+"_color",null)}));var t},r.prototype.shouldShowGallery=function(){var t;return t=this.get("css")||this.get("style"),_u.contains(["modern","polaroid","image-grid","hip","night"],t)},r.prototype.relations=[{type:JuicerBackbone.Many,key:"posts",collectionType:"Juicer.Collections.Posts"},{type:JuicerBackbone.Many,key:"sources",relatedModel:"Juicer.Models.Source"},{type:JuicerBackbone.Many,key:"assignments",relatedModel:"Juicer.Models.Assignment"},{type:JuicerBackbone.Many,key:"social_accounts",collectionType:"Juicer.Collections.SocialAccounts"}],r}(JuicerBackbone.AssociatedModel)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.JuicerAd=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.defaults=function(){return{poster_name:"Juicer",poster_image:Juicer.Constants.BASE_URL+"/logo-without-text.svg",external_created_at:new Date}},i.prototype.ad=!0,i.prototype.toJSON=function(){return _u.clone(_u.omit(this.attributes,"feed"))},i.prototype.twitter=function(){return!1},i.prototype.hashtag=function(){return!1},i.prototype.instagram=function(){return!1},i.prototype.gallery=function(){return!1},i.prototype.poster=function(){return!0},i.prototype.stickied=function(){return!1},i.prototype.tumblr=function(){return!1},i.prototype.tumblrTitle=function(){return!1},i.prototype.sourceType=function(){return"Juicer"},i.prototype.postType=function(){return"image-post"},i.prototype.isVideo=function(){return!1},i.prototype.edited=function(){return!1},i.prototype.editClass=function(){return""},i.prototype.userId=function(){return 1},i.prototype.lowerType=function(){return"juicer"},i.prototype.term=function(){return"juicer"},i.prototype.link=function(){return"https://www.juicer.io/?"+this.utm_params()},i.prototype.utm_params=function(){return jQuery.param({utm_source:"JuicerFreeFeed",utm_medium:"feed_ads",utm_campaign:"ad"+this.imagePosition(),utm_content:"message"+this.messagePosition(),utm_term:window.location.href,utm_id:this.feed_slug(),referrer:window.location.hostname})},i.prototype.feed_slug=function(){return this.get("feed")?this.get("feed").get("slug"):""},i.prototype.blogPost=function(){return!1},i.prototype.commentClass=function(){return""},i.prototype.likeClass=function(){return""},i.prototype.classes=function(){return"feed-item juicer image-post juicer-about"},i.prototype.alt=function(){return"Embed Social Media Feeds on your website with Juicer!"},i.prototype.message=function(){return this.messages()[this.messagePosition()]},i.prototype.posterImage=function(){return this.get("poster_image")},i.prototype.messages=function(){return["Like this feed? Want one of your own? Visit <a href='"+this.link()+"' rel='nofollow'>Juicer.io</a> to get your own free social media feed!","<a href='"+this.link()+"' rel='nofollow'>Juicer.io</a> lets you easily create and embed social media feeds like this one on to your site for free!","<a href='"+this.link()+"' rel='nofollow'>Juicer.io</a> lets you easily create and embed social media feeds like this one on to your site for free!","Engage your users on social media with a <a href='"+this.link()+"' rel='nofollow'>Juicer.io</a> feed on your website or blog for free.","This feed is Powered by <a href='"+this.link()+"' rel='nofollow'>Juicer.io</a>"]},i.prototype.randomImage=function(){return"https://static.juicer.io/about/juicer-about-"+this.imagePosition()+".svg"},i.prototype.image=function(){return this.randomImage()},i.prototype.posterUrl=function(){return this.link()},i.prototype.imagePosition=function(){return this.randomImagePosition?this.randomImagePosition:(this.randomImagePosition=_u.random(1,12),this.randomImagePosition<10?this.randomImagePosition="0"+this.randomImagePosition:void 0)},i.prototype.messagePosition=function(){return this.randomMessagePosition?this.randomMessagePosition:this.randomMessagePosition=_u.random(1,4)},i.prototype.noMeta=function(){return!0},i}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.Moderated=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.url=function(){return"/api/feeds/"+this.slug+"/moderated"},i.prototype.initialize=function(t){return this.revalidating=!0,this.slug=t.slug,this.starting_at=t.starting_at,this.once("sync",this.startPolling)},i.prototype.moderated=!0,i}(Juicer.Models.Feed)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.PageView=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.urlRoot=function(){return Juicer.Constants.API_ROOT+"/api/page_views"},i.prototype.save=function(t,e){return(e=null!=e?_u.clone(e):{}).xhrFields||(e.xhrFields={}),e.xhrFields.withCredentials=!1,i.__super__.save.call(this,t,e)},i}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.Plan=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.urlRoot="/api/plan",i.prototype.downgradeDate=function(){var t;if(this.get("next_billing_date"))return t=new Date(this.get("next_billing_date")),strftime("%B %-d, %Y",t)},i.prototype.planCapital=function(){return this.capitalize(this.get("plan"))},i.prototype.newPlanCapital=function(){return this.capitalize(this.get("new_plan"))},i.prototype.newInterval=function(){return this.get("new_plan_yearly")?"year":"month"},i.prototype.capitalize=function(t){return"ad_free"===t?"Ad-Free":_u.titleize(t)},i}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.Post=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.urlRoot="/api/posts",i.prototype.restore=function(){return this.callSubUrl("/restore")},i.prototype.reject=function(){return this.callSubUrl("/reject")},i.prototype.stick=function(t){return this.callSubUrl("/stick",t)},i.prototype.unstick=function(t){return this.callSubUrl("/unstick",t)},i.prototype.hardDeletePost=function(t){var e;return e={url:this.url()+"?hard_delete=true",type:"DELETE"},_u.extend(e,t),(this.sync||JuicerBackbone.sync).call(this,null,this,e)},i.prototype.callSubUrl=function(t,e){var i;return null==e&&(e={}),i={url:t=this.url()+t,type:"POST"},_u.extend(i,e),(this.sync||JuicerBackbone.sync).call(this,null,this,i)},i.prototype.stickied=function(){return!!this.get("position")},i.prototype.ctaAdded=function(){return!!this.get("cta_added?")},i.prototype.edited=function(){return!!this.get("edit")},i.prototype.editClass=function(){return this.edited()?"j-edited":""},i.prototype.stickyClass=function(){return this.stickied()?"j-sticky":""},i.prototype.classes=function(){return"feed-item j-"+this.lowerType()+" j-"+this.lowerType()+"-bg "+this.postType()+" "+this.term()+" "+this.editClass()+" j-"+this.termType()+" "+this.stickyClass()+" "+("YouTube"!==this.sourceType()?"is-not-youTube":"")},i.prototype.sourceType=function(){return this.get("source").source()},i.prototype.blogPost=function(){return"Blog"===this.sourceType()},i.prototype.linkedin=function(){return"LinkedIn"===this.sourceType()},i.prototype.tiktok=function(){return"TikTok"===this.sourceType()},i.prototype.twitter=function(){return"Twitter"===this.sourceType()},i.prototype.instagram=function(){return"Instagram"===this.sourceType()},i.prototype.tumblrTitle=function(){return"Tumblr"===this.sourceType()&&!!this.get("source").get("options")&&!!this.get("source").get("options").match("title")},i.prototype.gallery=function(){return!!this.get("additional_photos")&&this.get("additional_photos").length>0},i.prototype.postType=function(){return this.isVideo()?"j-video":this.gallery()?"j-gallery":this.get("image")?"image-post":"words"},i.prototype.isVideo=function(){return _u.contains(["youtube","vine","vimeo","soundcloud"],this.lowerType())||!!this.get("video")},i.prototype.termType=function(){return this.get("source").termType()},i.prototype.hashtag=function(){return"hashtag"===this.termType()},i.prototype.term=function(){return this.get("source").get("term")},i.prototype.userId=function(){return this.term()},i.prototype.lowerType=function(){return this.get("source").lowerSource()},i.prototype.likes=function(){return this.pluralize(this.get("like_count"),"like")},i.prototype.comments=function(){return this.pluralize(this.get("comment_count"),"comment")},i.prototype.poster=function(){return this.get("poster_name")||this.get("poster_image")},i.prototype.posterImage=function(){return"facebook"===this.lowerType()&&"username"!==this.get("source").termType()?this.facebookPosterImage():this.get("poster_image")},i.prototype.facebookPosterImage=function(){var t,e,i,r;return this.get("source").fetchedFacebookPosterUrls[this.get("poster_id")]||(this.get("source").fetchedFacebookPosterUrls[this.get("poster_id")]=Juicer.Constants.BASE_URL+"/silhouette-avatar.jpg",i=(t=this.get("poster_image")).match("\\?")?"&":"?",e=t+i+"redirect=false",jQuery.getJSON(e,(r=this,function(t){var e;return e=t.data.url,r.get("source").fetchedFacebookPosterUrls[r.get("poster_id")]=e,jQuery("[data-poster-id='"+r.get("poster_id")+"']").attr("src",e)}))),this.get("source").fetchedFacebookPosterUrls[this.get("poster_id")]},i.prototype.pluralize=function(t,e){return 1===t?t+" "+e:t+" "+_u.pluralize(e)},i.prototype.link=function(){switch(this.lowerType()){case"facebook":return"reviews"===this.termType()?"https://www.facebook.com/"+this.term()+"/reviews":"group"===this.termType()||"username"===this.termType()?"https://www.facebook.com/"+this.term()+"/posts/"+this.get("external_id"):"https://www.facebook.com/"+this.get("poster_id")+"/posts/"+this.get("external_id");case"twitter":case"x-twitter":return"https://twitter.com/"+this.get("poster_name")+"/status/"+this.get("external_id");case"instagram":return"stories"===this.termType()?"https://www.instagram.com"+this.get("external_id")+"/":"https://www.instagram.com/p/"+this.get("external_id")+"/";case"youtube":return"https://www.youtube.com/watch?v="+this.get("external_id");case"googleplus":return this.get("poster_url")+"/posts/"+this.get("external_id");case"tumblr":return"https://"+this.get("poster_name")+".tumblr.com/post/"+this.get("external_id");case"pinterest":return"https://www.pinterest.com/pin/"+this.get("external_id");case"vimeo":return"https://vimeo.com/"+this.get("external_id");case"linkedin":return this.get("linkedin_external_id")?"https://www.linkedin.com/feed/update/urn:li:activity:"+this.get("linkedin_external_id")+"/":"https://www.linkedin.com/company/"+this.term();case"soundcloud":return this.get("description");case"slack":return this.get("poster_url");case"spotify":return"https://open.spotify.com/track/"+this.get("external_id");case"blog":return this.blogLink();case"giphy":return this.get("external");case"tiktok":return"https://tiktok.com/"+this.get("poster_display_name")+"/video/"+this.get("external_id");default:return this.get("external_id")}},i.prototype.blogLink=function(){return this.get("external")||this.get("external_id")},i.prototype.parseBlogUrl=function(){var t;if((t=this.term().match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i))&&t[1])return t[1]},i.prototype.termLink=function(){switch(this.lowerType()){case"twitter":return"https://twitter.com/hashtag/"+this.term();case"instagram":return this.link();case"tumblr":return"https://tumblr.com/tagged/"+this.term();case"vine":return"https://vine.co/tags/"+this.term();case"facebook":return"https://www.facebook.com/hashtag/"+this.term();case"youtube":return"https://www.youtube.com/results?search_query=%23"+this.term();default:return this.get("external_id")}},i.prototype.commentClass=function(){switch(this.lowerType()){case"twitter":return"retweets";case"pinterest":return"repins";default:return"comments"}},i.prototype.likeClass=function(){switch(this.lowerType()){case"twitter":case"instagram":case"tumblr":return"heart";case"youtube":return"views";default:return"likes"}},i.prototype.likeVerb=function(){return"twitter"===this.lowerType()?"favorites":"likes"},i.prototype.alt=function(){return this.get("image_alt_text")?this.get("image_alt_text"):"Photo from "+this.get("source").displayName()+" on "+this.sourceType()+" on "+this.get("poster_name")+" at "+this.postedDate()},i.prototype.postedDate=function(){return Juicer.Helpers.fullDate(this.get("external_created_at"))},i.prototype.noMeta=function(){return _u.contains(["Blog"],this.sourceType())},i.prototype.encodedImage=function(){return encodeURIComponent(this.get("image"))},i.prototype.message=function(){return this.blogPost()||this.tumblrTitle()?"<strong class='j-title'>"+this.get("message")+"</strong> "+this.get("excerpt"):this.get("excerpt")?this.get("excerpt"):this.get("message")},i.prototype.fullMessage=function(){return this.blogPost()||this.tumblrTitle()?"<strong class='j-title'>"+this.get("message")+"</strong> "+this.get("description"):this.get("message")},i.prototype.stripped=function(){return null!=this.get("unformatted_message")?this.get("unformatted_message").replace(/<(?:.|\n)*?>/gm," ").replace(this.emojiRegex,""):""},i.prototype.emojiRegex=/([\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2694-\u2697]|\uD83E[\uDD10-\uDD5D])/g,i.prototype.status=function(){return encodeURIComponent(this.stripped())},i.prototype.twitterStatus=function(){var t;return this.stripped().length<=140?this.status():(t=this.stripped().substr(0,137)).substr(t.length-1).codePointAt(0)>255?encodeURIComponent(t.slice(0,-1)+"..."):encodeURIComponent(t+"...")},i.prototype.shouldIncludeLink=function(){return(this.twitterStatus()+this.currentUrl).length<=140},i.prototype.currentUrl=function(){return window.location.href},i.prototype.replyIntent=function(){return"https://twitter.com/intent/tweet?in_reply_to="+this.get("external_id")},i.prototype.retweetIntent=function(){return"https://twitter.com/intent/retweet?tweet_id="+this.get("external_id")},i.prototype.likeIntent=function(){return"https://twitter.com/intent/like?tweet_id="+this.get("external_id")},
i.prototype.relations=[{type:JuicerBackbone.One,key:"source",relatedModel:"Juicer.Models.Source"}],i}(JuicerBackbone.AssociatedModel)}.call(this),function(){var t,e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;t=["Facebook","Instagram","Pinterest","Tumblr","Twitter","YouTube","InstagramReels"],Juicer.Models.Source=function(i){function r(){return r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.urlRoot="/api/sources",r.prototype.toJSON=function(){return{source:_u.clone(this.attributes)}},r.prototype.source=function(){return"TwitterAPIv2"===this.get("source")||"X (Twitter)"===this.get("source")?"Twitter":this.get("source")},r.prototype.termType=function(){return this.get("term_type")},r.prototype.lowerSource=function(){return"Twitter"===this.source()?"x-twitter":this.source().toLowerCase()},r.prototype.allowed=function(){return null!=this.get("allowed")?this.get("allowed"):""},r.prototype.disallowed=function(){return null!=this.get("disallowed")?this.get("disallowed"):""},r.prototype.findProvider=function(){return"Instagram"!==this.source()&&"InstagramReels"!==this.source()||"hashtag"!==this.termType()?Juicer.Constants.SOURCE_TO_PROVIDER_MAP[this.source()]||this.source().toLowerCase():"facebook"},r.prototype.fetchedFacebookPosterUrls={},r.prototype.title=function(){switch(this.source()){case"Blog":return"Add an RSS feed";case"Facebook":return"Add a Facebook business page";case"Flickr":return"Add a Flickr user's photos";case"Giphy":return"Add a Giphy search term";case"Hashtag":return"Choose a type of hashtag";case"Instagram":return"Import Instagram user posts";case"LinkedIn":return"Add a LinkedIn company or school";case"Pinterest":return"Add a Pinterest user's pins";case"Slack":return"Add a Slack channel";case"Soundcloud":return"Add a Soundcloud account";case"Tumblr":return"Add a Tumblr blog";case"Twitter":return"Add a X (Twitter) account";case"Vimeo":return"Add a Vimeo user's videos";case"Yelp":return"Add a Yelp Business's Reviews";case"YouTube":return"Add a YouTube channel";case"TikTok":return"Add a TikTok user's videos"}},r.prototype.label=function(){switch(this.source()){case"Blog":return"RSS Feed URL: ";case"Facebook":return"https://www.facebook.com/";case"Flickr":return"https://www.flickr.com/photos/";case"Giphy":case"Slack":return"#";case"Instagram":return"https://www.instagram.com/";case"LinkedIn":return"https://www.linkedin.com/company/";case"Pinterest":return"https://www.pinterest.com/";case"Soundcloud":return"https://soundcloud.com/";case"Twitter":return"@";case"Vimeo":return"http://vimeo.com/";case"Yelp":return"http://www.yelp.com/biz/";case"YouTube":return"https://www.youtube.com/user/";case"TikTok":return"https://www.tiktok.com/@"}},r.prototype.options=function(){var t,e,i,r,n,s,o;if(o=[],"Twitter"===this.source()){for(r=[],e=[],i=0,n=(t="hashtag"===this.get("term_type")?["retweets"]:["retweets","replies"]).length;i<n;i++)s=t[i],this.get("options")&&-1!==this.get("options").indexOf(s)?r.push(s):e.push(s);r.length>0&&o.push("including: "+r.join(", ")),e.length>0&&o.push("excluding: "+e.join(", "))}else"Instagram"===this.source()&&"reel"===this.get("post_type")?o.push("reels"):"Instagram"===this.source()&&"stories"===this.get("term_type")&&o.push("stories");return o},r.prototype.placeholder=function(){switch(this.source()){case"Blog":return"RSS_or_Atom_or_FeedBurner_URL";case"Facebook":return"Facebook_page_vanity_URL";case"Flickr":return"Flickr_username";case"Giphy":return"search_term";case"Instagram":return"Instagram_username";case"LinkedIn":return"company_OR_school_name";case"Pinterest":return"Pinterest_username";case"Slack":return"Slack_channel_name";case"Soundcloud":return"Soundcloud_username";case"Tumblr":return"Tumblr_username";case"Twitter":return"X (Twitter)_username";case"Vimeo":return"Vimeo_username";case"Yelp":return"business_name_URL";case"YouTube":return"YouTube_username_or_channel_ID"}},r.prototype.placeholderHashtag=function(){switch(this.source()){case"Twitter":return"X (Twitter)_hashtag";case"Pinterest":return"pinterest-username/board-name";case"YouTube":return"YouTube_hashtag";case"Tumblr":return"Tumblr_hashtag"}},r.prototype.typeSymbol=function(){return"hashtag"===this.get("term_type")?"#":"location"===this.get("term_type")?"\u25c9":"@"},r.prototype.displayTerm=function(){var t;return this.get("name")&&(t=this.get("name")),t||(t=this.get("term")),t},r.prototype.displayName=function(){return""+this.typeSymbol()+this.displayTerm()},r.prototype.displayNameWithOptions=function(){var t;return t=this.displayName(),"Instagram"===this.source()&&"reel"===this.get("post_type")?t+" (reels)":"Instagram"===this.source()&&"stories"===this.get("term_type")?t+" (stories)":t},r.prototype.hashtags=function(){return _u.contains(this.hashtagSupporters,this.source())},r.prototype.needsLogin=function(){return _u.contains(this.requiresLogin,this.source())},r.prototype.manual=function(){return _u.contains(Juicer.Constants.SOURCES_WHERE_POSTS_CAN_BE_ADDED_MANUALLY,this.source())},r.prototype.hashtagSupporters=t,r.prototype.requiresLogin=["Facebook","Instagram","InstagramReels","Slack","Twitter","TikTok"],r.prototype.alternateNames=["location","group"],r.prototype.filterClass=function(t,e,i){var r,n,s;return null==e&&(e=null),null==i&&(i=!1),n=s="j-"+this.lowerSource().replace(/@|#/,""),i||(n+=" "+s+"-bg"),i&&(n+=" "+s+"-text "+s+"-hover j-social-icon"),this.all()&&(n="all j-social-icon"),r=n,"Grouped Terms"===t&&(r+=" grouped"),e&&(r+=" highlight"),r},r.prototype.all=function(){return"all"===this.lowerSource()},r.prototype.filter=function(t){if(this.all())return null;switch(t){case"Social Type":return this.source();case"Social Account":return this.get("id");case"Grouped Terms":return this.get("term")}},r.prototype.filterDisplay=function(t){if(this.all())return"All";switch(t){case"Social Type":return this.source();case"Social Account":return this.displayNameWithOptions();case"Grouped Terms":return this.displayName()}},r.prototype.youtubeChannelNameExample=function(){return{name:"mkbhd (Marques Brownlee)",link:"https://www.youtube.com/mkbhd",formattedLink:"https://www.youtube.com/<span class='example-link-highlight'>mkbhd</span>"}},r.prototype.usernameExample=function(){return this.usernameExamples[this.lowerSource()]},r.prototype.usernameHelpLink=function(){return this.usernameHelpLinks[this.lowerSource()]},r.prototype.usernameExamples={facebook:{name:"Netflix",link:"https://www.facebook.com/netflix",formattedLink:"https://www.facebook.com/<span class='example-link-highlight'>netflix</span>"},twitter:{name:"SpaceX",link:"https://twitter.com/spacex",formattedLink:"https://twitter.com/<span class='example-link-highlight'>spacex</span>"},instagram:{name:"Dwayne Johnson",link:"https://www.instagram.com/therock",formattedLink:"https://www.instagram.com/<span class='example-link-highlight'>therock</span>"},youtube:{name:"NASA",link:"https://www.youtube.com/@NASA",formattedLink:"https://www.youtube.com/<span class='example-link-highlight'>@NASA</span>"},tumblr:{name:"A Well Traveled Woman",link:"http://awelltraveledwoman.tumblr.com",formattedLink:"http://<span class='example-link-highlight'>awelltraveledwoman</span>.tumblr.com"},pinterest:{name:"The New Yorker",link:"https://www.pinterest.com/thenewyorker",formattedLink:"https://www.pinterest.com/<span class='example-link-highlight'>thenewyorker</span>"},blog:{name:"Wired",link:"https://www.wired.com/feed/rss",formattedLink:"<span class='example-link-highlight'>https://www.wired.com/feed/rss</span>"},soundcloud:{name:"Imagine Dragons",link:"https://soundcloud.com/imaginedragons",formattedLink:"https://soundcloud.com/<span class='example-link-highlight'>imaginedragons</span>"},linkedin:{name:"Harvard University",link:"https://www.linkedin.com/school/harvard-university",formattedLink:"https://www.linkedin.com/school/<span class='example-link-highlight'>harvard-university</span>"},flickr:{name:"NASA Johnson",link:"https://www.flickr.com/photos/nasa2explore",formattedLink:"https://www.flickr.com/photos/<span class='example-link-highlight'>nasa2explore</span>"},vimeo:{name:"The New Yorker",link:"https://vimeo.com/newyorker",formattedLink:"https://vimeo.com/<span class='example-link-highlight'>newyorker</span>"},yelp:{name:"Microsoft",link:"https://www.yelp.com/biz/microsoft-mountain-view",formattedLink:"https://www.yelp.com/biz/<span class='example-link-highlight'>microsoft-mountain-view</span>"},tiktok:{name:"@pepsi",link:"https://www.tiktok.com/@pepsi",formattedLink:"https://www.tiktok.com/@<span class='example-link-highlight'>pepsi</span>"}},r.prototype.manualPostExamples={Facebook:"https://www.facebook.com/your-page/posts/4424595830956366",LinkedIn:"https://www.linkedin.com/posts/your-post-6805790914514816-iOSl",Twitter:"https://twitter.com/your-profile/status/14320590123109220999058",YouTube:"https://www.youtube.com/watch?v=Fasd9wbHWU_v8",Vimeo:"https://vimeo.com/4488123012127",Soundcloud:"https://soundcloud.com/profile-862007284/song",Tumblr:"https://you.tumblr.com/post/239123054282105"},r.prototype.usernameHelpLinks={linkedin:{link:"https://help.juicer.io/hc/en-us/articles/360040406391-LinkedIn-sources-Adding-and-troubleshooting",text:"LinkedIn - notes and troubleshooting"}},r}(JuicerBackbone.AssociatedModel)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.User=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.relations=[{type:JuicerBackbone.Many,key:"feeds",relatedModel:"Juicer.Models.Feed"}],i}(JuicerBackbone.AssociatedModel)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.FeedValidation=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.validation={name:{required:!0}},i}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.UserSignupValidation=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.validation={email:{required:!0,pattern:"email"},password:{required:!0,minLength:8,validatePassword:!0}},i}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.UserUpdateValidation=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.initialize=function(t){return this.email=t.email,this.noPassword=t.noPassword},i.prototype.validation={email:{required:function(){if(this.noPassword)return!1}},current_password:{required:function(){return!this.noPassword&&this.email!==this.get("email")},minLength:8},password:{minLength:8,required:function(){if(this.noPassword)return!1},validatePassword:i.noPassword},current_password_two:{minLength:8,required:function(){return!!this.get("password")}}},i}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Models.UserValidation=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.validation={email:{required:!0,pattern:"email"},password:{required:!0,minLength:8}},i}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Collections.FacebookResults=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.initialize=function(t){return this.type={username:"pages",reviews:"reviews"}[t.type]},i.prototype.url=function(){return"/api/facebook_results/"+this.type},i}(JuicerBackbone.Collection)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Collections.InstagramBusinessAccounts=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.url=function(){return"/api/instagram_business_accounts/"},i}(JuicerBackbone.Collection)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Collections.Posts=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.paginatingAttributes=["current_page","limit_value"],i.prototype.model=Juicer.Models.Post,i.prototype.parse=function(t){var e;return _u.each(this.paginatingAttributes,(e=this,function(i){return e[i]=t[i]})),i.__super__.parse.call(this,t.items)},i}(JuicerBackbone.Collection)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Collections.SocialAccounts=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.url="/api/social_accounts",i.prototype.socialAccountForSource=function(t){var e;return e=t.findProvider(),"Instagram"!==t.source()&&"InstagramReels"!==t.source()||"hashtag"!==t.termType()?this.findWhere({provider:e}):this.filter((function(t){return t.attributes.provider===e&&(void 0===t.attributes.instagramBusinessAccounts||0!==t.attributes.instagramBusinessAccounts.length)}))[0]},i.prototype.socialAccount=function(t){return this.findWhere({provider:t})},i.prototype.findAllWithProvider=function(t){var e;return"instagramreels"===t&&(t="instagram_basic_display"),e=function(e){return e.attributes.provider===t&&e.attributes.name},this.filter(e).sort((function(t,e){return t.attributes.name>e.attributes.name}))},i}(JuicerBackbone.Collection)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Collections.Users=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.model=Juicer.Models.User,i.prototype.url="/api/users",i}(JuicerBackbone.Collection)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.AdminDowngrade=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST.admin_downgrade,i.prototype.initialize=function(t){return this.userId=t.userId,this.csrf=$('meta[name="csrf-token"]').attr("content")},i.prototype.events={click:"openOverlay"},i.prototype.openOverlay=function(t){var e;return t.preventDefault(),e=$(t.target).attr("href"),this.overlay=new Juicer.Views.Overlay({content:this.template({userId:this.userId,reasons:this.reasons,csrf:this.csrf,action:e}),element:"body",width:"50%"}),this.overlay.render()},i.prototype.reasons=["Temporary campaign/event is over","Switching to another service","Too expensive","Too difficult to use","They had technical issues","Not satisfied with the support team","Other"],i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.AdminPasswordReset=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST.admin_password_reset,i.prototype.initialize=function(t){return this.userId=t.userId,this.csrf=$('meta[name="csrf-token"]').attr("content")},i.prototype.events={click:"openOverlay"},i.prototype.openOverlay=function(t){var e;return t.preventDefault(),e=$(t.target).attr("href"),this.overlay=new Juicer.Views.Overlay({content:this.template({userId:this.userId,csrf:this.csrf,action:e}),element:"body",width:"50%"}),this.overlay.render()},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.AdminUsers=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.events={"click .toggle-favorite":"toggleFavorite"},i.prototype.toggleFavorite=function(t){var e,i;return t.preventDefault(),i=(e=$(t.target)).data("id"),jQuery.get("/admin/users/"+i+"/favorite"),"\u2605"===e.html()?e.html("\u2606"):e.html("\u2605")},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.AnalyticsDateRange=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST.analytics_date_range,i.prototype.events={"click .date-range":"openDateRangeOverlay"},i.prototype.openDateRangeOverlay=function(t){var e,i;return console.log("open"),i=$(t.target),e=this.template({start:i.data("start"),end:i.data("end")}),this.overlay=new Juicer.Views.Overlay({content:e,element:this.el,width:"50%"}),this.overlay.render()},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.BrokenImage=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.initialize=function(t){return null==t&&(t={}),this.feed=t.feed,this.model=this.feed,this.el=t.el,this.handleBrokenImages()},i.prototype.handleBrokenImages=function(){var t;return this.$("img.j-content-image").on("error",(t=this,function(e){var i;return i=jQuery(e.target),t.handleBrokenImage(i)})),this.$("img.j-content-image").on("load",function(t){return function(e){var i;if(i=jQuery(e.target),e.target.naturalWidth<20)return t.handleBrokenImage(i)}}(this)),this.$(".j-poster img").on("error",function(t){return function(e){var i;return i=jQuery(e.target),t.handleBrokenPosterImage(i)}}(this))},i.prototype.handleBrokenImage=function(t){return new Juicer.Views.ImageHandler({target:t,feed:this.feed,theme:this.feed.get("css"),el:this.el})},i.prototype.handleBrokenPosterImage=function(t){return new Juicer.Views.PosterImageHandler({target:t,feed:this.feed,theme:this.feed.get("css")})},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.Churn=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST.churn,i.prototype.initialize=function(){return null!=this.el&&(this.overlay=new Juicer.Views.Overlay({content:this.template(),element:this.el,width:"50%"}),this.overlay.render())},i.prototype.events={"click .delete":"closeOverlay"},i.prototype.closeOverlay=function(){return this.overlay.removeView()},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.BlogShow=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.el=window,i.prototype.initialize=function(){return this.loaded=!1,this.triggerPoint=$("#disqus_thread").offset().top},i.prototype.events=function(){return{scroll:"lazyLoadDisqus"}},i.prototype.lazyLoadDisqus=_u.debounce((function(){return this.checkScroll()}),300),i.prototype.checkScroll=function(){if(this.scrollPoint()>this.triggerPoint&&!this.loaded)return this.loadDisqus()},i.prototype.loadDisqus=function(){var t;return this.loaded=!0,(t=document.createElement("script")).type="text/javascript",t.async=!0,t.src="//juicerio.disqus.com/embed.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(t)},i.prototype.scrollPoint=function(){return this.$el.scrollTop()+this.$el.height()},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.DowngradeOverlay=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST.downgrade_overlay,i.prototype.initialize=function(){return!!this.$el.data("downgrade-at")&&(this.plan=this.$el.data("plan"),this.downgradeAt=this.$el.data("downgrade-at"),this.overlay=new Juicer.Views.Overlay({content:this.template({plan:this.plan,downgradeAt:this.downgradeAt}),element:this.el,width:"50%"}),this.overlay.render())},i.prototype.events={"click .delete":"closeOverlay"},i.prototype.closeOverlay=function(){return this.overlay.removeView()},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Calculator=function(i){function r(){return this.updateValues=t(this.updateValues,this),this.render=t(this.render,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST["enterprise/calculator"],r.prototype.initialize=function(){return this.model=new Juicer.Models.Estimate,this.model.on("change",this.updateValues),this.render()},r.prototype.render=function(){return this.$el.html(this.template({model:this.model}))},r.prototype.updateValues=function(){return this.$(".calculator-sources").html(this.model.sources()),this.$(".calculator-frequency").html(this.model.frequencyInWords()),this.$(".calculator-price").html(this.model.priceString()),this.$(".calculator-price-label").html(this.model.priceLabel())},r.prototype.events={"change input":"updateModel","input input":"updateModel"},r.prototype.updateModel=function(t){var e;return e=$(t.target),this.model.set(e.data("attribute"),e.val())},r}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Enterprise=function(i){function r(){return this.close=t(this.close,this),this.append=t(this.append,this),this.afterRender=t(this.afterRender,this),this.render=t(this.render,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST["enterprise/show"],r.prototype.initialize=function(t){return this.on("render",this.afterRender),this.model=new Juicer.Models.Enterprise({slug:t.slug}),this.model.on("sync",this.render),this.model.fetch({error:function(){return alert("Something went wrong. Please try again.")}})},r.prototype.render=function(){return this.model.get("current_page")>1&&this.model.get("new_feeds")?this.append():(this.$el.html(this.template({model:this.model})),this.renderFeeds(this.model.get("feeds"))),this.trigger("render")},r.prototype.afterRender=function(){var t,e;if(this.focusedInput)return e=(t=$("#js-enterprise-search")).val(),t.focus().val("").val(e)},r.prototype.renderFeeds=function(t){return this.feeds=new Juicer.Views.EnterpriseFeeds({el:"ul.feeds",collection:t,model:this.model}).render(),this.feeds.on("removeFocus",(e=this,function(){return e.focusedInput=!1}));var e},r.prototype.append=function(){return this.feeds.append()},r.prototype.events={"input input[type=search]":_u.debounce((function(t){return this.search(t)}),500),"search input[type=search]":"search"},r.prototype.search=function(t){return this.model.resetPage(),this.focusedInput=!0,t.preventDefault(),this.model.query=$(t.target).val(),this.model.get("feeds"),this.model.fetch()},r.prototype.close=function(){return this.model.off("sync"),this.feeds.close()},r}(JuicerBackbone.View),Juicer.Views.EnterpriseFeeds=function(i){function r(){return this.close=t(this.close,this),this.loadNextPage=t(this.loadNextPage,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.render=function(){return this.addToSubViews(this.collection.models),this.model.moreFeeds()&&this.addLoadMore(),this.$el.html(this.subviews),this},r.prototype.addToSubViews=function(t){return this.subviews||(this.subviews=[]),_u.each(t,(e=this,function(t){var i;return i=new Juicer.Views.EnterpriseFeed({model:t,account:e.model}).render(),e.subviews.push(i.el)}));var e},r.prototype.addLoadMore=function(){var t;return this.loadMore=new Juicer.Views.EnterpriseLoadMore,this.loadMore.on("next:page:clicked",this.loadNextPage),this.loadMore.on("removeFocus",(t=this,function(){return t.trigger("removeFocus")})),this.loadMore.render(),this.subviews.push(this.loadMore.el)},r.prototype.removeLoadMore=function(){var t;return this.loadMore.off("next:page:clicked"),t=this.subviews.indexOf(this.loadMore.el),this.subviews.splice(t,1),this.loadMore.remove(),t},r.prototype.loadNextPage=function(){return this.model.nextPage(),this.model.fetch()},r.prototype.append=function(){var t;return t=this.removeLoadMore(),this.addToSubViews(this.model.get("new_feeds").models),this.model.moreFeeds()&&this.addLoadMore(),this.$el.append(this.subviews.slice(t))},r.prototype.close=function(){return _u.each(this.subviews,(function(t){return t.remove()})),this.loadMore&&this.loadMore.off("next:page:clicked"),this.$el.empty().off(),this.stopListening(),this},r}(JuicerBackbone.View),Juicer.Views.EnterpriseFeed=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST["enterprise/feed"],i.prototype.createAssignmentForm=JST["enterprise/create_assignment_form"],i.prototype.tagName="li",i.prototype.className="border bg-white p-25 relative mb-20 tal",i.prototype.initialize=function(t){return this.account=t.account},i.prototype.render=function(){return this.$el.html(this.template({model:this.model,assignments:this.model.get("assignments").models,sources:this.model.get("sources").models,account:this.account})),this},i.prototype.events={"click .delete-dashboard-assignment":"deleteAssignment","click .add-assignment":"openAssignmentForm","click .fetch-all":"fetchAllPosts","submit .new-assignment":"createAssignment"},i.prototype.deleteAssignment=function(t){var e;if(t.preventDefault(),e=$(t.target).parents(".enterprise-user-dashboard-assignment"),Juicer.Helpers.confirm("Are you sure you want to remove this user from this feed?"))return new Juicer.Models.Assignment({id:$(t.target).data("id")}).destroy({success:function(){return e.remove()},error:function(t,e){return 422===e.status?alert(e.responseJSON.errors):alert("Something went wrong!")}})},i.prototype.openAssignmentForm=function(){return new Juicer.Views.Overlay({content:this.createAssignmentForm({model:this.model,csrf:this.csrf,account:this.account}),width:"35%",element:this.el}).render()},i.prototype.createAssignment=function(t){var e,i;return t.preventDefault(),!!(e=$(t.target).serializeHash()).email&&(this.assignment=new Juicer.Models.Assignment(e),this.assignment.save(null,{success:(i=this,function(){return i.model.get("assignments").add(i.assignment),i.render()}),error:function(t,e){return 422===e.status?alert(e.responseJSON.errors.base.join()):alert("Something went wrong!")}}))},i.prototype.fetchAllPosts=function(t){return!!Juicer.Helpers.confirm("Fetching all posts for this feed can take 10+ minutes. Please be patient and check back later.")&&(t.preventDefault(),this.model.fetchAll(),$(t.target).replaceWith("Fetching all posts."))},i.prototype.close=function(){return this.$el.remove()},i}(JuicerBackbone.View),Juicer.Views.EnterpriseLoadMore=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.tagName="a",i.prototype.className="load-more j-button mt-30",i.prototype.render=function(){return this.$el.text("Load More Feeds"),this},i.prototype.events={click:"triggerClick"},i.prototype.triggerClick=function(){return this.trigger("removeFocus"),this.trigger("next:page:clicked")},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.EnterpriseAdmin=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST["enterprise/admin"],i.prototype.tagName="li",i.prototype.className="enterprise-user",i.prototype.initialize=function(t){return this.account=t.account,this.index=t.index},i.prototype.render=function(){return this.$el.html(this.template({model:this.model,account:this.account,index:this.index}))},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.EnterpriseUser=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST["enterprise/user"],i.prototype.tagName="li",i.prototype.className="bg-white border mb-25",i.prototype.initialize=function(t){return this.account=t.account},i.prototype.render=function(){return this.$el.html(this.template({model:this.model,account:this.account}))},i.prototype.events={"click .delete-assignment":"deleteAssignment"},i.prototype.deleteAssignment=function(t){var e;if(t.preventDefault(),e=$(t.target).parents(".enterprise-user-assignment"),Juicer.Helpers.confirm("Are you sure you want to remove this user from this feed?"))return new Juicer.Models.Assignment({id:$(t.target).data("id")}).destroy({success:function(){return e.remove()},error:function(){return alert("Something went wrong!")}})},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.EnterpriseUsers=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST["enterprise/users"],i.prototype.inviteAdminForm=JST["enterprise/invite_admin"],i.prototype.initialize=function(t){return this.model=new Juicer.Models.EnterpriseUsers({slug:t.slug}),this.model.fetch({success:(e=this,function(){return e.render()}),error:function(){return alert("uh oh something went wrong")}});var e},i.prototype.render=function(){return this.$el.html(this.template({model:this.model})),this.renderAdmins(),this.renderUsers()},i.prototype.renderAdmins=function(){var t,e;return t=[],_u.each(this.model.get("admins").models,(e=this,function(i,r){return t.push(new Juicer.Views.EnterpriseAdmin({model:i,account:e.model,index:r}).render())})),this.$(".enterprise-admins").html(t)},i.prototype.renderUsers=function(){var t,e;return t=_u.map(this.model.get("users").models,(e=this,function(t){return new Juicer.Views.EnterpriseUser({model:t,account:e.model}).render()})),this.$(".enterprise-users").html(t)},i.prototype.events={"click a.new-enterprise-admin":"openNewAdminOverlay"},i.prototype.openNewAdminOverlay=function(t){return t.preventDefault(),this.csrf=$('meta[name="csrf-token"]').attr("content"),
new Juicer.Views.Overlay({content:this.inviteAdminForm({model:this.model,csrf:this.csrf}),width:"35%"}).render()},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.EnterpriseWhiteLabel=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST["enterprise/white_label"],i.prototype.initialize=function(t){return this.model=new Juicer.Models.Enterprise({slug:t.slug}),this.model.fetch({success:(e=this,function(){return e.render()}),error:function(){return alert("uh oh something went wrong")}});var e},i.prototype.render=function(){return this.$el.html(this.template({model:this.model}))},i.prototype.events={"submit .white-label-url":"updateAccount"},i.prototype.updateAccount=function(t){var e,i,r;return t.preventDefault(),(i=$(t.target)).find("input[type=submit]").attr("disabled","disabled").val("Loading..."),e=JuicerBackbone.Syphon.serialize(i),this.model.set(e),this.model.save(null,{success:(r=this,function(){return r.render()})})},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Entertainment=function(i){function r(){return this.setPostSizes=t(this.setPostSizes,this),this.setPosts=t(this.setPosts,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST.entertainment,r.prototype.card=JST["partials/_widget_card"],r.prototype.customCss=JST["partials/_custom_styles"],r.prototype.initialize=function(t){return this.interval=t.interval,this.isOnFeedsDashboard=t.isOnFeedsDashboard,this.setPosts(),this.setPostSizes(),this.render()},r.prototype.setPosts=function(){return this.posts=this.model.get("posts").models},r.prototype.setPostSizes=function(){return this.largePosts=this.posts.filter((function(t){return t.get("edit")})),this.smallPosts=this.posts-this.largePosts},r.prototype.render=function(){return this.$el.append(this.template({model:this.model,largePosts:this.largePosts,smallPosts:this.smallPosts,chunks:this.chunkArray(this.posts,3),posts:this.posts,feed:this.model,isOnFeedsDashboard:this.isOnFeedsDashboard})),this.container=this.$(".entertainment-container"),this.handleBrokenImages(),this.$el.append(this.customCss({feed:this.model}))},r.prototype.handleBrokenImages=function(){return new Juicer.Views.BrokenImage({el:this.el,feed:this.model})},r.prototype.chunkArray=function(t,e){var i,r,n,s;for(n=0,i=t.length,s=[];n<i;)r=t.slice(n,n+e),s.push(r),n+=e;return s},r}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.Errors=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST.errors,i.prototype.initialize=function(t){var e;try{this.errors=$.parseJSON(t.errors.responseText).errors}catch(i){i,e=(t&&t.errors&&t.errors.statusText||"").match(/(timeout|unavailable)/i)?'The request timed out. Please try again by pressing "Create Source" below.':"An unspecified error occurred.",this.errors={errorMessage:[e]}}return this.$(".errors, .j-loading, .please-wait").remove(),this.$("input[type=submit]").show(),this.$el.prepend(this.template({errors:this.errors,source:t.source}))},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Feed=function(i){function r(){return this.reRender=t(this.reRender,this),this.stopVideoAndResumeJuicerSlider=t(this.stopVideoAndResumeJuicerSlider,this),this.stopVideo=t(this.stopVideo,this),this.forceShowJuicerAds=t(this.forceShowJuicerAds,this),this.addJuicerAds=t(this.addJuicerAds,this),this.reRenderFeedAfterEvent=t(this.reRenderFeedAfterEvent,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST.feed,r.prototype.referral=JST["partials/_referral"],r.prototype.loading=JST["partials/_loading"],r.prototype.postNotificationBanner=JST["partials/_post_notification_banner"],r.prototype.permittedOptions=["feedId","gutter","per","page","pages","overlay","interval","filter","startingAt","endingAt","search","truncate","equal","style","after","columns","origin","visible"],r.prototype.initialize=function(t){return this.userOptions=_u.pick(this.$el.data(),this.permittedOptions),this.userOptions=this.setDefaultOptions(this.userOptions),this.showLoader(!1,!0),this.isOnFeedsDashboard=t.isOnFeedsDashboard||!1,this.model=t.model||this.newModel(),this.tracked=!1,this.model.on("new-posts",this.reRender),this.model.on("showLoader",(e=this,function(){return e.showLoader(!0)}));var e},r.prototype.reRenderFeedAfterEvent=function(){return this.model.fetch({success:(t=this,function(){return t.reRender(),"htmx"===t.model.get("version")&&window.juicerUtil.updateSidebarSourcesMenu(),jQuery(".juicer2-close").click(),jQuery(".close-subview").click()}),error:function(){return console.log("Juicer Problem")}});var t},r.prototype.setDefaultOptions=function(t){var e,i;i=void 0;try{i=new URLSearchParams(window.location.search).get("feed_style"),i=Juicer.Constants.FEED_CLASSES.indexOf(i)>=0&&i}catch(t){e=t,console.error(e),i=null}return t.slug=t.feedId,t.css=i||t.style,t.per||(t.per=100),t.page||(t.page=1),null!=t.overlay&&(t.overlay=!!t.overlay),t},r.prototype.newModel=function(){var t;return t=["origin","slug","per","page","filter","startingAt","endingAt","search","css","truncate"],new Juicer.Models.Feed(_u.pick(this.userOptions,t))},r.prototype.events=function(){return{"click li.feed-item":"triggerEvent","click ul.j-filters li":"filterFeed","click ul.j-display-filters li":"filterFeed","click .j-paginate":"appendNextPage","keyup li.feed-item":"triggerEventByKeyboard"}},r.prototype.render=function(){var t;return null!=this.model.get("posts")?this.renderFeed():this.model.fetch({success:(t=this,function(){return t.renderFeed()}),error:function(){return console.log("Juicer Problem")}}),this},r.prototype.renderFeed=function(){if(!this.rewriteFeedTag())return document.body.addEventListener("jcr.rerenderfeed",this.reRenderFeedAfterEvent),this.hideLoader(),this.setUserOptionsFromModel(),this.model.paid()||this.model.isTrial()||this.adsAdded||this.addJuicerAds(),this.setDimensions(),this.determineBrowser(),this.model.widget()?this.renderWidget():this.model.slider()?this.renderSlider():this.model.livingWall()?this.renderLivingWall():this.model.entertainment()?this.renderEntertainment():this.renderFeedList(),this.setClass(),this.model.hasInterval()||this.handleBrokenImages(),this.$el.addClass("loaded"),this.shouldTrackAnalytics()&&this.trackPageView(),this.runAfter("load"),window.juicerDashboard&&this.addJuicerAlerts(),this},r.prototype.rewriteFeedTag=function(){var t,e;return e=function(t,e){var i;return t.wrap("<"+e+">"),i=t.parent(),jQuery.each(t.prop("attributes"),(function(){return i.attr(this.name,this.value)})),t.contents().unwrap(),i},!!(t="v1"===this.model.get("embed_layout")&&this.$el.is("div")?"ul":"v2"===this.model.get("embed_layout")&&this.$el.is("ul")?"div":void 0)&&(this.$el=e(this.$el,t),this.$el.empty(),new Juicer.Views.Feed({el:this.$el.get()}).render(),!0)},r.prototype.setUserOptionsFromModel=function(){var t;return _u.each(this.modelAttrs,(t=this,function(e){if(null==t.userOptions[e]&&0!==t.userOptions[e])return t.userOptions[e]=t.model.get(e)})),null==this.userOptions.gutter&&(this.userOptions.gutter=this.defaultGutter()),this.userOptions},r.prototype.modelAttrs=["columns","interval","overlay"],r.prototype.defaultGutter=function(){return this.noGutter()?0:20},r.prototype.noGutter=function(){return _u.contains(["image-grid","hip","living-wall"],this.model.get("css"))},r.prototype.determineBrowser=function(){var t,e;return t=navigator.userAgent.match(/MSIE|Trident|Edge/)?"j-ie":"j-modern",e=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i)?"j-mobile":"j-desktop",this.$el.addClass(t).addClass(e)},r.prototype.runAfter=function(t){if(null==t&&(t="load"),void 0!==this.userOptions.after)return this.afterFunction=new Function("event",this.userOptions.after),this.afterFunction(t)},r.prototype.showLoader=function(t,e){return null==t&&(t=!1),null==e&&(e=!1),this.$el.append(this.loading({container:t,wrapper:e}))},r.prototype.hideLoader=function(){return this.$(".j-loading-container, .j-loading-wrapper, .j-loading").remove()},r.prototype.renderEntertainment=function(){return this.entertainment=new Juicer.Views.Entertainment(this.feedOptions())},r.prototype.renderWidget=function(){return this.widget=new Juicer.Views.Widget(this.feedOptions())},r.prototype.renderSlider=function(){return this.handleReferral(),this.slider=new Juicer.Views.Slider(this.feedOptions()).render(),this.slider.on("slide",(t=this,function(){return t.stopCurrentlyPlaying()}));var t},r.prototype.renderLivingWall=function(){var t,e;return e=this.feedOptions(),"v2"===this.model.get("embed_layout")&&(t=document.createElement("ul"),e.el=this.el.appendChild(t)),this.livingWall=new Juicer.Views.LivingWall(e).render(),this.handleReferral()},r.prototype.feedOptions=function(){return{columns:this.userOptions.columns,el:this.el,equal:this.userOptions.equal,gutter:this.userOptions.gutter,interval:this.userOptions.interval,isOnFeedsDashboard:this.isOnFeedsDashboard,visible:this.userOptions.visible,model:this.model}},r.prototype.renderFeedList=function(){return this.$el.append(this.template({isOnFeedsDashboard:this.isOnFeedsDashboard,feed:this.model,filter:this.currentFilter()})),this.handleReferral(),this.infiniteScroll=new Juicer.Views.InfiniteScroll({container:this.$el,isOnFeedsDashboard:this.isOnFeedsDashboard,model:this.model,pages:this.userOptions.pages,template:JST.infinite_scroll}),this.model.isGrid()&&this.setupGrid(),this.model.classic()&&this.setGutterOnClassic(),this.setupAccessibilityAttributes(),this.infiniteScroll.on("paginate",(t=this,function(){return t.runAfter("paginate"),null!=t.lazyLoad&&t.lazyLoad.checkImages(),t.handleBrokenImages()}));var t},r.prototype.setupAccessibilityAttributes=function(){return this.$(".feed-item").attr("tabindex","0").attr("aria-label","Social media post"),this.$(".feed-item").find("a, input, button, select").attr("tabindex","-1")},r.prototype.handleBrokenImages=function(){return new Juicer.Views.BrokenImage({el:this.el,feed:this.model})},r.prototype.currentFilter=function(){return null!=this.model&&null!=this.model.filter?this.model.filter:this.userOptions.filter},r.prototype.setDimensions=function(){if(this.$el.removeAttr("style"),this.dimensions["max-width"]=this.$el.data("width")||this.model.get("width")||this.model.defaultHeight(),this.dimensions["max-height"]=this.$el.data("height")||this.model.get("height")||this.model.defaultWidth(),!this.model.slider())return this.$el.css(this.dimensions)},r.prototype.dimensions={"max-width":null,"max-height":null},r.prototype.addJuicerAds=function(){var t,e,i,r;return i=this.model.numberOfPostsPerOneAd(),t=this.model.get("posts").length+1,(e=Math.floor(t/i))>0&&_u(e).times((r=this,function(t){var e,n,s;return s=Math.floor(Math.random()*i),e=t*i+s,n=new Juicer.Models.JuicerAd({feed:r.model}),r.model.get("posts").add(n,{at:e})})),this.adsAdded=!0,this.adRemovalReported=!1,this.currentInterval=100,setTimeout(this.forceShowJuicerAds,this.currentInterval)},r.prototype.forceShowJuicerAds=function(){var t,e,i,r,n,s;return e=function(t){return t.style.setProperty("display","block","important"),t.style.setProperty("visibility","visible","important"),t.style.setProperty("opacity","1","important")},s=this,n=function(t){if(!s.adRemovalReported)return new Juicer.Models.AdReport(_u.extend(t,{feed_id:s.model.get("id"),url:window.location.href})).save(),s.adRemovalReported=!0},r=(i=jQuery("h1.referral")).find("a"),0!==i.length&&0!==r.length||(this.handleReferral(),n({reason:"powered_by_header_removed"})),(i.is(":hidden")||r.is(":hidden"))&&(e(i[0]),e(r[0]),n({reason:"powered_by_header_hidden"})),0===(t=jQuery(".juicer-about")).length&&n({reason:"ads_removed"}),t.each((function(){if(jQuery(this).is(":hidden"))return e(this),n({reason:"ads_hidden"})})),this.currentInterval*=2,setTimeout(this.forceShowJuicerAds,this.currentInterval)},r.prototype.addJuicerAlerts=function(){var t,e;if(this.model.get("show_trial_notifications")&&(e=this,t=this.model.isTrial()?"ends on "+this.model.get("trial_ends_at"):"ended",this.$(".feed-item.j-linkedin").each((function(){var i;return i="Your LinkedIn Power-Up "+t+": <a href='/plans?mpevent=post_notification_linkedin_ending' target='_blank'>Upgrade</a> to keep your feed active.",jQuery(this).append(e.postNotificationBanner({content:i,backgroundClass:"yellow"}))})),this.$(".feed-item.j-x-twitter").each((function(){var i;return i="Your X (Twitter) Power-Up "+t+": <a href='/plans?mpevent=post_notification_x_twitter_ending' target='_blank'>Upgrade</a> to keep your feed active.",jQuery(this).append(e.postNotificationBanner({content:i,backgroundClass:"yellow"}))})),this.$(".feed-item.j-instagram.j-stories").each((function(){var i;return i="Your Instagram Stories Power-Up "+t+": <a href='/plans?mpevent=post_notification_ig_stories_ending' target='_blank'>Upgrade</a> to keep your feed active.",jQuery(this).append(e.postNotificationBanner({content:i,backgroundClass:"yellow"}))})),this.model.get("free_hashtags_disabled")))return this.$(".feed-item.j-hashtag").not(".j-twitter").not(".j-linkedin").each((function(){var i;return i="Your Hashtag Power-Up "+t+": <a href='/plans?mpevent=post_notification_hashtag_ending' target='_blank'>Upgrade</a> to keep your feed active.",jQuery(this).append(e.postNotificationBanner({content:i,backgroundClass:"yellow"}))}))},r.prototype.setupGrid=function(){var t,e,i;if((e=Math.floor(this.$el.outerWidth()/this.userOptions.columns))<(t=window.devicePixelRatio>2?225:200)&&(e=t),this.$el.gridalicious({animate:!0,selector:".feed-item",width:e,gutter:this.userOptions.gutter,columns:this.userOptions.columns,embedLayout:this.model.get("embed_layout"),animationOptions:{queue:!0,speed:100,duration:300,complete:(i=this,function(){return null==i.infiniteScroll||(i.infiniteScroll.shouldShowLoadMore()?void 0:i.infiniteScroll.removeLoadMore())})}}),this.model.get("lazy_load"))return this.lazyLoad=new Juicer.Views.LazyLoad({model:this.model,view:this})},r.prototype.setGutterOnClassic=function(){var t,e;return t="2%",null==this.userOptions.gutter&&(e=t),this.$(".feed-item").css("margin-bottom",e)},r.prototype.appendNextPage=function(t){return null==t&&(t=null),t&&t.preventDefault(),this.$(".j-paginate").replaceWith(this.loading({inFeed:!0})),this.infiniteScroll.nextPage()},r.prototype.setClass=function(){if(this.$el.removeClass(Juicer.Constants.FEED_CLASSES.join(" ")),this.$el.removeClass(this.cssClasses),this.$el.addClass(this.model.cssClass()),this.model.slider()&&(this.$el.attr("role","region"),this.$el.attr("aria-label","Carousel")),this.model.get("photos"))return this.$el.addClass("photos-only")},r.prototype.cssClasses="photo photos-only juicer-widget gridalicious slick-initialized slick-slider modern ie colored-icons hover-images",r.prototype.handleReferral=function(){if(this.model.paid()||this.isOnFeedsDashboard||this.$el.find("h1.referral").length>0||this.$el.prepend(this.referral({feed:this.model})),this.model.paid())return this.$el.find("h1.referral").remove()},r.prototype.isCrawler=function(t){return Juicer.Constants.CRAVLER_USER_AGENTS.some((function(e){return-1!==t.toLowerCase().indexOf(e)}))},r.prototype.trackPageView=function(){if(!this.isCrawler(navigator.userAgent)&&!this.tracked)return new Juicer.Models.PageView({feed_id:this.model.get("id")}).save(),this.tracked=!0},r.prototype.shouldTrackAnalytics=function(){return!window.juicerDashboard},r.prototype.triggerEvent=function(t){var e,i,r,n,s;if(s=jQuery(t.target),this.shouldTrackAnalytics()&&this.trackClick(s),s.hasClass("delete"))return t.preventDefault(),this.deletePost(s);if(s.hasClass("cta-button"));else{if(s.hasClass("edit-cta"))return i=function(t,e){return e.xhr.response.length>0?jQuery("body").append(e.xhr.response):htmx.ajax("GET","/posts/"+s.parents("ul.actions").data("id")+"/cta/edit",{target:"body",swap:"beforeend"})},htmx.ajax("GET","/paywall?source=cta&feed_id="+this.model.get("id"),{target:"body",swap:"beforeend",handler:i});if(s.hasClass("sticky"))return t.preventDefault(),this.toggleSticky(s,"stick");if(s.hasClass("unstick"))return t.preventDefault(),this.toggleSticky(s,"un-stick");if(s.hasClass("edit"))return new Juicer.Views.PostEdit({id:s.parents("ul.actions").data("id"),model:this.model}).render();if(s.hasClass("j-image")&&s.parents("li.j-video").length>0&&!this.model.get("video_overlay"))return t.preventDefault(),this.model.hasInterval()&&this.userOptions.overlay||s.parents("li.j-tiktok").length>0?(this.stopCurrentlyPlaying(),this.openOverlay({target:s})):this.playVideo(s,s.parents("li.j-video"));if(s.hasClass("j-gallery-arrow"))return t.preventDefault(),new Juicer.Views.Gallery({target:s,el:this.el,model:this.model});if(s.parents(".j-twitter-intents").length>0)return t.preventDefault(),this.handleTwitterIntent(s);if(s.parents(".feed-item.j-twitter").length>0){if(!(s.is("a")||s.parents("a").length>0))return r=s.parents(".feed-item").data("id"),n=this.model.get("posts").findWhere({id:r}),window.open(n.link(),"_blank")}else{if(s.is("a")&&!s.hasClass("j-image")&&0===s.parents("li.j-video").length)return t.preventDefault(),window.open(s.attr("href"),"_blank");if(this.userOptions.overlay&&!s.hasClass(".feed-item.juicer")&&!s.parents(".feed-item.juicer").length>0&&!s.parents(".feed-item.j-twitter").length>0)return t.preventDefault(),this.stopCurrentlyPlaying(),this.openOverlay({target:s});if(s.is(".juicer-about")||s.parents(".juicer-about").length>0)return t.preventDefault(),e=s.is(".juicer-about")?s:s.parents(".juicer-about"),window.open(e.find("a").attr("href"),"_blank")}}},r.prototype.triggerEventByKeyboard=function(t){if(13===t.keyCode)return this.triggerEvent(t)},r.prototype.trackClick=function(t){return t=t.is("li.feed-item")?t:t.parents("li.feed-item"),new Juicer.Models.Click({feed_id:this.model.get("id"),post_id:t.data("id")}).save()},r.prototype.openOverlay=function(t){var e;return this.postOverlay=new Juicer.Views.PostOverlay({target:t.target,model:this.model}),this.postOverlay.on("render",(e=this,function(){return e.runAfter("overlay")})),this.postOverlay.render()},r.prototype.deletePost=function(t){var e;return!!Juicer.Helpers.confirm("Are you sure you want to delete this post?")&&(t=t.parents("ul.actions"),e=new Juicer.Models.Post({id:t.data("id")}),t.parents(".feed-item").remove(),e.destroy())},r.prototype.toggleSticky=function(t,e){var i,r,n;return null==e&&(e="stick"),t=t.parents("ul.actions"),r=new Juicer.Models.Post({id:t.data("id")}),i={success:(n=this,function(t){return n.model.set(t,{parse:!0}),n.model.trigger("action")}),error:function(){return alert("Something went wrong.")}},"stick"===e?r.stick(i):r.unstick(i)},r.prototype.openPopupOnError=function(t,e){return this.hasVideoLoadingErrorOccurred?(this.hasVideoLoadingErrorOccurred=!1,window.open(t)):e>0?setTimeout((i=this,function(){return i.openPopupOnError(t,e-1)}),100):void 0;var i},r.prototype.playVideo=function(t,e){return(t=t.is(".j-image")?t:t.parents(".j-image")).hasClass("playing")?this.stopVideoAndResumeJuicerSlider(t):(this.stopCurrentlyPlaying(),this.slider&&this.slider.stop(),t.addClass("playing"),t.html(this.embedVideo(t.data("external-id"),e,t.data("video-url"))),setTimeout((i=this,function(){return i.openPopupOnError(jQuery(t).attr("href"),29)}),100),jQuery(t).find("video source").on("error",function(e){return function(){return e.hasVideoLoadingErrorOccurred=!0,e.stopVideoAndResumeJuicerSlider(t),console.log("broken video in feed, stopping playback and redirecting to target url")}}(this)),null!=this.slider?this.slider.$el.slick("slickPause"):void 0);var i},r.prototype.stopVideo=function(t){var e;return t.removeClass("playing"),null!=this.slider?(e="height:"+this.model.height()+"px",this.slider.$el.slick("slickPlay")):e="width:100%;display:block;",t.html("<img src='"+t.data("image")+"' style='"+e+"' />")},r.prototype.stopVideoAndResumeJuicerSlider=function(t){if(this.stopVideo(t),this.slider)return this.slider.play()},r.prototype.embedVideo=function(t,e,i){var r,n;return null==i&&(i=null),"tumblr"===(r=e.data("source"))&&(i=this.parseTumblrVideo(e,i)),null!=this.slider&&(n=this.model.height()),JST["partials/video/_"+r+"_embed"]({id:t,video:i,height:n})},r.prototype.parseTumblrVideo=function(t,e){var i,r;return(i=jQuery(jQuery.parseHTML(e))).removeAttr("id class width height poster preload data-crt-video data-crt-options"),i.attr("src")&&(r=i.attr("src")+"&autoplay=1",i.attr("src",r)),window.setTimeout((function(){return t.find("video")[0].play()}),500),i[0].outerHTML},r.prototype.stopCurrentlyPlaying=function(){return _u.each(this.$(".playing"),(t=this,function(e){return t.stopVideo(jQuery(e))}));var t},r.prototype.handleTwitterIntent=function(t){var e,i,r,n,s,o;return n=550,e=420,s=screen.height,o=screen.width,r=0,i=Math.round(o/2-n/2),s>e&&(r=Math.round(s/2-e/2)),window.open(t.attr("href"),"intent","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width="+n+",height="+e+",top="+r+",left="+i)},r.prototype.filterFeed=function(t){var e,i;return t.preventDefault(),(e=jQuery(t.target)).attr("data-filter"),e.attr("class").replace("selected","").replace(" ",""),this.model.filter!==e.data("filter")&&(this.model.filter=e.data("filter"),this.filter=e.data("filter"),this.model.resetPage(),this.model.fetch({success:(i=this,function(){return i.$el.empty(),i.infiniteScroll&&i.infiniteScroll.close(),i.render(),i.delegateEvents()})}))},r.prototype.close=function(){return this.unbindChildren(),this.$el.removeClass("j-initialized"),this.model.off("new-posts"),this.model.off("showLoader"),this},r.prototype.unbindChildren=function(){return null!=this.widget&&this.widget.close(),null!=this.livingWall&&this.livingWall.close(),null!=this.infiniteScroll&&this.infiniteScroll.close(),null!=this.lazyLoad&&this.lazyLoad.close(),null!=this.slider&&this.slider.off("slide"),this.$el.empty().off(),document.body.removeEventListener("jcr.rerenderfeed",this.reRenderFeedAfterEvent),this.stopListening()},r.prototype.reRender=function(){return this.unbindChildren(),this.render(),this.delegateEvents()},r}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Design=function(i){function r(){return this.afterCssParsing=t(this.afterCssParsing,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST["feeds/design"],r.prototype.colorPicker=JST["feeds/color_picker"],r.prototype.cssOverlay=JST["feeds/css_overlay"],r.prototype.title="Feed Design",r.prototype.events={"change .css":"updateStyle","input input.width":"updateDimensions","input input.height":"updateDimensions","input input.columns":"updateColumns","input input.interval":"updateInterval","click .feed-color":"showColorPicker","change .color-input":"updateColor","input .hex-input":"updateColor","click .save-style":"saveStyle","click .reset-style":"resetStyle","click .customize-css":"openCustomCssOverlay","submit .css-form":"submitCssForm","change input[type=checkbox]":"updateCheckbox"},r.prototype.showColorPicker=function(t){var e,i;return(i=$(t.target)).hasClass("feed-color")||(i=i.parents(".feed-color")),this.$(".color-fields").remove(),e=i.data("color"),i.after(this.colorPicker({color:this.feed.getColor(e),pattern:this.pattern,colorAttr:e}))},r.prototype.pattern="^#+([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",r.prototype.render=function(){return r.__super__.render.apply(this,arguments),this.toggleSettings()},r.prototype.toggleSettings=function(){return this.toggleInterval(this.feed.hasInterval()),this.toggleColumns(this.feed.hasColumns())},r.prototype.toggleColumns=function(t){return this.$(".columns").toggle(t)},r.prototype.toggleInterval=function(t){return this.$(".interval").toggle(t)},r.prototype.saveAndRender=function(){return this.feed.trigger("showLoader"),this.feed.save(null,{success:(t=this,function(){return t.feed.trigger("action"),t.toggleSettings()}),error:function(){return alert("Something went wrong.")}});var t},r.prototype.updateCheckbox=function(t){var e,i;return i=(e=$(t.target)).is(":checked")?"1":"0",this.feed.set(e.data("attribute"),i),this.saveAndRender()},r.prototype.updateColor=function(t){var e,i,r,n;return!!(n=(r=$(t.target)).val()).match(this.pattern)&&(i=r.hasClass("hex-input")?".color-input":".hex-input",this.$(i).val(n),e=r.parents(".color-fields").data("color"),this.$(".color-example, .feed-color[data-color='"+e+"'] .color-picker-circle").css({backgroundColor:n}),this.updateModel(e,n))},r.prototype.updateStyle=function(t){return this.feed.set("css",$(t.target).val()),this.saveAndRender()},r.prototype.updateDimensions=function(t){var e,i,r,n;if(n=(r=$(t.target)).val(),e=r.attr("class"),2<(i=n.length)&&i<5&&99<n&&n<5001||""===n)return this.feed.set(e,n),this.saveAndRender()},r.prototype.updateColumns=function(t){var e,i;if(0<(e=(i=$(t.target).val()).length)&&e<2)return this.feed.set("columns",i),this.saveAndRender()},r.prototype.updateInterval=function(t){var e,i;if(3<(e=(i=$(t.target).val()).length)&&e<10||"0"===i)return this.feed.set("interval",i),this.saveAndRender()},r.prototype.updateModel=function(t,e){return this.feed.updateColor(t,e)},r.prototype.saveStyle=function(t){return this.feed.save(null,{success:(e=this,function(){return e.notifySuccess($(t.target))}),error:function(){return alert("Sorry your design didn't save properly. Please try again.")}});var e},r.prototype.resetStyle=function(){if(confirm("Are you sure you want to set your feed custom styles back to default?"))return this.feed.resetColors(),this.feed.save(null,{success:(t=this,function(){return t.feed.trigger("action"),t.render()})});var t},r.prototype.notifySuccess=function(t){return t.text("Saved!"),setTimeout((function(){return t.text("Save Custom Style")}),3e3)},r.prototype.openCustomCssOverlay=function(){return this.overlay=new Juicer.Views.Overlay({content:this.cssOverlay({feed:this.feed}),element:this.el,width:"50%"}),this.overlay.render()},r.prototype.submitCssForm=function(t){var e;return t.preventDefault(),e=$(t.target).serializeHash(),$.parsecss(e.css,this.afterCssParsing)},r.prototype.afterCssParsing=function(t){return this.feed.set("custom_css",this.stringifyCss(t)),this.feed.save(null,{success:(e=this,function(){return e.overlay.removeView(),e.feed.trigger("action")}),error:function(){return alert("Something went wrong")}});var e},r.prototype.stringifyCss=function(t){var e;return e="",_u.each(t,(function(t,i){return e+=i+" {\n",_u.each(t,(function(t,i){return e+="  "+i+": "+t+";\n"})),e+="}\n\n"})),e},r}(Juicer.Views.SubView)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Embed=function(i){function r(){return this.afterClose=t(this.afterClose,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.embed=JST["feeds/embed_code"],r.prototype.template=JST["feeds/embed"],r.prototype.wordpress=JST["feeds/wordpress"],r.prototype.iframe=JST["feeds/iframe"],r.prototype.menu=JST["feeds/embed_menu"],r.prototype.title="Embed in your Site",r.prototype.accessibilityConfirm=JST["feeds/accessibility_confirm"],r.prototype.accessibilityToggle=JST["feeds/accessibility_toggle"],r.prototype.initialize=function(){return r.__super__.initialize.apply(this,arguments),this.currentlySelected="site"},r.prototype.embedOptions=[{value:"site",label:"Standard Website"},{value:"wordpress",label:"Wordpress Site"},{value:"iframe",label:"iframe"}],r.prototype.events={"change .embed-menu":"switchEmbed","focus textarea":"highlightField","change #feed-layout-change":"upgradeLayout","click .accessibility-confirm":"saveLayout","click .accessibility-close":"closeAccessibilityConfirm"},r.prototype.afterClose=function(){return window.mixpanel&&mixpanel.track("accessibility-modal",{action:"closed",feed:this.feed.get("slug")}),this.renderTemplate(),this.renderTitle()},r.prototype.closeAccessibilityConfirm=function(t){return this.accessibilityOverlay.closeOverlay(t),this.afterClose()},r.prototype.upgradeLayout=function(){return"v2"===this.feed.get("embed_layout")?this.saveLayout(null):(window.mixpanel&&mixpanel.track("accessibility-modal",{action:"opened",feed:this.feed.get("slug")}),$("#UpdateEmbedLayoutPopover").css("display","none"),this.accessibilityOverlay=new Juicer.Views.Overlay({content:this.accessibilityConfirm({feed:this.feed,embedOptions:this.embedOptions,currentlySelected:this.currentlySelected}),width:"50%",element:this.$el}),this.accessibilityOverlay.on("close",this.afterClose),this.accessibilityOverlay.render())},r.prototype.saveLayout=function(t){var e,i;return e="v2"===this.feed.get("embed_layout")?"v1":"v2",this.feed.set("embed_layout",e),this.feed.save(null,{success:(i=this,function(){return i.accessibilityOverlay&&t&&i.accessibilityOverlay.closeOverlay(t),i.renderTemplate(),i.renderTitle(),window.location.reload()}),error:function(){return alert("Something went wrong.")}})},r.prototype.switchEmbed=function(t){return this.currentlySelected=$(t.target).val(),this.renderTemplate(),this.renderTitle()},r.prototype.renderTemplate=function(){return this.renderContent(),this.renderMenu()},r.prototype.renderContent=function(t,e){switch(null==t&&(t=this.$el),null==e&&(e=null),this.currentlySelected){case"wordpress":return this.showWordPress(t);case"iframe":return this.showIframe(t);default:return this.showEmbed(t,e)}},r.prototype.renderMenu=function(){var t;if(t="v2"===this.feed.get("embed_layout"),this.$el.prepend(this.menu({feed:this.feed,embedOptions:this.embedOptions,currentlySelected:this.currentlySelected})),this.feed.get("allow_embed_layout_change?"))return this.$el.append(this.accessibilityToggle({accessibility_checked:t}))},r.prototype.javascriptPath=function(){return this.assetPath("embed.js")},r.prototype.stylesheetPath=function(){return this.assetPath("embed.css")},r.prototype.assetPath=function(t){return"https://assets.juicer.io/"+t},r.prototype.showEmbed=function(t,e){var i;return i=(i=this.embed({feed:this.feed,javascript:this.javascriptPath(),javascriptV2Path:"https://www.juicer.io/embed/"+this.feed.get("slug")+"/embed-code.js",stylesheet:this.stylesheetPath(),overrideEmbedLayout:e})).replace(/<br \/>/g,"\n"),t.html(this.template({embed:i,feed:this.feed}))},r.prototype.showWordPress=function(t){return t.html(this.wordpress({feed:this.feed}))},r.prototype.showIframe=function(t){var e,i,r;return e=this.feed.get("height")||1e3,r=this.feed.get("width")||1e3,1e3===e&&this.feed.slider()&&(e=300),i="<iframe src='https://www.juicer.io/api/feeds/"+this.feed.get("slug")+"/iframe' frameborder='0' width='"+r+"' height='"+e+"' style='display:block;margin:0 auto;'></iframe>",t.html(this.iframe({iframe:i,feed:this.feed}))},r.prototype.highlightField=function(t){var e;if(e!==$(t.target))return e=$(t.target),setTimeout((function(){return e.select()}),50)},r}(Juicer.Views.SubView)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.Features=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST["feeds/features"],i}(Juicer.Views.SubViewSlide)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.Hub=function(e){function i(){
return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST["feeds/hub"],i}(Juicer.Views.SubViewSlide)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Moderate=function(i){function r(){return this.pollForRevalidating=t(this.pollForRevalidating,this),this.revalidatingPoll=t(this.revalidatingPoll,this),this.closeOverlay=t(this.closeOverlay,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST["feeds/moderate"],r.prototype.revalidateOverlay=JST["feeds/revalidate_overlay"],r.prototype.title="Moderate and Filter",r.prototype.initialize=function(){return r.__super__.initialize.apply(this,arguments),this.initialAttributes=_u.pick(this.feed.attributes,"lazy_load","css")},r.prototype.render=function(){return r.__super__.render.apply(this,arguments),this.toggleFilterBlocker()},r.prototype.events={"submit .filters":"openOverlay","click .moderate-confirm":"submitConfirmation","click .moderated":"viewModeratedPosts","click .public":"showPublic","change input#queue":"toggleAndSubmit"},r.prototype.showPublic=function(t){return this.fetchFeed(),$(".moderation-nav .active").removeClass("active"),$(t.target).addClass("active")},r.prototype.viewModeratedPosts=function(t){return t.preventDefault(),$(window).unbind("scroll"),this.renderModeratedPosts()},r.prototype.renderModeratedPosts=function(){return this.moderated=new Juicer.Models.Moderated({slug:this.feed.get("slug")}),$(".moderation-nav .active").removeClass("active"),$(".moderation-nav .moderated").addClass("active"),this.moderated.fetch({success:(t=this,function(){return t.feedView&&t.feedView.close(),new Juicer.Views.Moderated({el:".juicer-feed",model:t.moderated}).render()}),error:function(){return alert("Something went wrong pulling in your moderated posts.")}});var t},r.prototype.openOverlay=function(t){var e;return t.preventDefault(),e=$(t.target).serializeHash().feed,this.overlay=new Juicer.Views.Overlay({content:this.revalidateOverlay({data:e}),element:this.el,width:"50%"}),this.overlay.render()},r.prototype.closeOverlay=function(){return this.overlay.removeView()},r.prototype.submitConfirmation=function(t){var e,i;return t.preventDefault(),e=(i=$(t.target)).parents("form").serializeHash(),i.data("revalidate")?(i.parents(".submits").html("<div class='j-loading'>Loading...</div><div class='mt-15 fifteen tc-gray'>Applying filter settings to existing posts. This can take a while. Please hold.</div>"),e.revalidating=!0,this.updateFilters(e,this.revalidatingPoll)):(i.parents(".submits").html("<div class='j-loading'>Loading...</div>"),this.updateFilters(e,this.closeOverlay))},r.prototype.updateFilters=function(t,e){return this.feed.set(t),this.feed.save(null,{success:function(){return e()},error:function(){return alert("Something went wrong!")}})},r.prototype.revalidatingPoll=function(){return setTimeout(this.pollForRevalidating,5e3)},r.prototype.pollForRevalidating=function(){return this.feed.fetch({success:(t=this,function(){return t.feed.get("revalidating")?t.revalidatingPoll():(t.closeOverlay(),t.feed.trigger("action"))}),error:function(){return alert("Something happened with polling. Please refresh page.")}});var t},r.prototype.toggleAndSubmit=function(){if(this.toggleFilterBlocker(),this.queueChecked())return this.$("form").trigger("submit")},r.prototype.toggleFilterBlocker=function(){var t;return t=this.$(".filter-blocker"),this.queueChecked()?t.show():t.hide()},r.prototype.queueChecked=function(){return this.$("#queue").is(":checked")},r.prototype.close=function(t){if(null==t&&(t=null),null!=t&&t.preventDefault(),$("li.selected").removeClass("selected"),r.__super__.close.apply(this,arguments),null!=this.moderated)return this.fetchFeed()},r.prototype.fetchFeed=function(){return this.feed.set(this.initialAttributes),this.feed.moderated?window.location="/feeds/"+this.feed.get("slug"):this.feed.fetch({success:(t=this,function(){return t.feed.trigger("action")})});var t},r}(Juicer.Views.SubView)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Settings=function(i){function r(){return this.reRender=t(this.reRender,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST["feeds/settings"],r.prototype.title="Feed Settings",r.prototype.events={"change input[type=checkbox]":"updateCheckbox","change .order":"updateOrder","change .filter_setting":"updateFilter","focus input[type=number]":"highlightField"},r.prototype.render=function(){return r.__super__.render.apply(this,arguments),this.toggleSettings()},r.prototype.toggleSettings=function(){return this.toggleFilter(!this.feed.hasInterval())},r.prototype.toggleFilter=function(t){return this.$(".filter_setting").toggle(t)},r.prototype.renderTemplate=function(){return this.$el.html(this.template({feed:this.feed,checkboxes:this.checkboxes}))},r.prototype.reRender=function(){return this.$el.html(this.template({feed:this.feed,checkboxes:this.checkboxes})),this.renderTitle(),this.toggleSettings()},r.prototype.checkboxes=[{attr:"photos",label:"Only show posts with images"},{attr:"videos",label:"Only show posts with videos"},{attr:"lazy_load",label:"Lazy-load images",tooltip:"Won't load images until they are scrolled to on your site. This will save on bandwidth and decrease page load time. Only use if Juicer feed is below the fold."},{attr:"overlay",label:"Open overlay on post click",tooltip:"With this box checked, when you click on a post it will open in an overlay view with the post larger and sharing icons. Otherwise it will link directly to the post."},{attr:"video_overlay",label:"Only play videos in overlay",tooltip:"With this box checked, videos will open in an overlay and play. If not checked, the videos will play inline in the feed."},{attr:"infinite_scroll",label:"Infinite Scroll",tooltip:'If you scroll to the bottom of your Juicer feed, automatically load in more posts. If not, you\'ll see a "Load More" button instead'},{attr:"poll",label:"Auto-Refresh for Live Events",tooltip:"Refreshes the feed automatically when new posts are imported. Great for using on a display at a live event."},{attr:"hide_title_on_hub_page",label:"Hide title on hub page",tooltip:"Hides title on feeds hub page"}],r.prototype.updateCheckbox=function(t){var e,i;return i=(e=$(t.target)).is(":checked")?"1":"0",this.feed.set(e.data("attribute"),i),this.saveAndRender()},r.prototype.updateOrder=function(t){return this.feed.set("order",$(t.target).val()),this.saveAndRender()},r.prototype.updateFilter=function(t){return this.feed.set("display_filter",$(t.target).val()),this.saveAndRender()},r.prototype.saveAndRender=function(){return this.feed.trigger("showLoader"),this.feed.save(null,{success:(t=this,function(){return t.feed.trigger("action")}),error:function(){return alert("Something went wrong.")}});var t},r.prototype.highlightField=function(t){var e;if(e!==$(t.target))return e=$(t.target),setTimeout((function(){return e.select()}),50)},r}(Juicer.Views.SubView)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Sources=function(i){function r(){return this.reRender=t(this.reRender,this),this.sort=t(this.sort,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST["feeds/sources"],r.prototype.title="Social Media Sources",r.prototype.render=function(t){if(r.__super__.render.apply(this,arguments),jQuery(".juicer-feed").hasClass("j-modern"))return sortable(".source-list",{items:".existing-source",forcePlaceholderSize:!0})[0].addEventListener("sortupdate",this.sort)},r.prototype.events={"click .delete":"removeSource","click .source-submenu-item":"openSourceOverlay","click .rename":"openSourceEditOverlay","click .moderate":"openSourceModerateOverlay","submit #manual_post":"addPostManually","submit .source-update":"updateSource","click .existing-source .js-warning":"handleWarningClick","click .existing-source":"toggleSubMenu","click .js-add-source-submenu:not(.disabled)":"openSourceForm"},r.prototype.handleWarningClick=function(t){return t.stopPropagation(),jQuery("body").html("<div class='d-flex' style='background:white; height:100vh; width: 100vw; align-items: center; justify-content: center'><div class='j-loading'></div></div>")},r.prototype.removeSource=function(t){var e,i,r;if(t.preventDefault(),i=$(t.target),Juicer.Helpers.confirm("Confirm source deletion?\nThis action will permanently delete all posts from your Juicer feed.\nNote: Re-adding the source may not retrieve all posts."))return e=i.data("id"),new Juicer.Models.Source({id:e}).destroy({success:(r=this,function(t,n){return r.feed.set(n,{parse:!0}),$(".existing-source[data-id='"+e+"']").remove(),"htmx"===r.feed.get("version")&&window.juicerUtil.updateSidebarSourcesMenu(),i.parents(".source-submenu").remove(),r.feed.trigger("action")}),error:function(){return alert("uh oh, something went wrong.")}})},r.prototype.openSourceForm=function(){return this.trigger("openSourceForm",this)},r.prototype.openSourceOverlay=function(t){var e,i,r,n,s,o;return t.preventDefault(),n=$(t.target),r=this.feed.get("sources").findWhere({id:n.data("id")}),s=n.data("template"),o=this,i=function(){return o.overlay=new Juicer.Views.Overlay({content:JST["sources/"+s]({source:r,feed:o.feed}),width:"50%",element:o.el}),o.overlay.render()},"manual"===s?(e=function(t,e){return e.xhr.response.length>0?jQuery("body").append(e.xhr.response):i()},htmx.ajax("GET","/paywall?source=manual_add_post&feed_id="+this.feed.get("id"),{target:"body",swap:"beforeend",handler:e})):i()},r.prototype.addPostManually=function(t){var e,i,r;return t.preventDefault(),(i=$(t.target)).find(".j-loading-wrapper").html("<div class='j-loading'>Loading...</div>"),i.find(".j-button").attr("disabled",!0),i.find("ul.errors").remove(),e=i.serializeHash(),this.post=new Juicer.Models.Post(e),this.post.save(null,{success:(r=this,function(t,e){return r.feed.set(e,{parse:!0}),r.reRender(),r.feed.trigger("action")}),error:function(t,e){return i.find(".j-button").attr("disabled",!1),new Juicer.Views.Errors({el:i,errors:e})}})},r.prototype.updateSource=function(t){var e,i;return t.preventDefault(),e=$(t.target).serializeHash(),this.source=new Juicer.Models.Source(e),this.source.save(null,{success:(i=this,function(t,e){return i.feed.set(e,{parse:!0}),i.reRender(),i.feed.trigger("action")}),error:function(){return alert("Something went wrong.")}})},r.prototype.sort=function(t){var e;return e=_u.map($(t.target).find(".existing-source"),(function(t){return $(t).data("id")})),this.feed.set({source_ids:e}),this.saveAndRender()},r.prototype.reRender=function(){return this.sidebarView.renderSidebar()},r.prototype.toggleSubMenu=function(t){var e;return(e=jQuery(t.target)).hasClass("existing-source")||(e=e.parents(".existing-source")),e.next(".source-submenu").slideToggle(),e.toggleClass("open")},r.prototype.saveAndRender=function(){return this.feed.trigger("showLoader"),this.feed.save(null,{success:(t=this,function(){return t.feed.set({source_ids:null}),t.feed.trigger("action")})});var t},r}(Juicer.Views.SubView)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.Synced=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST["feeds/synced"],i}(Juicer.Views.SubViewSlide)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.ChurnForm=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.namespace="churn",i.prototype.createModel=function(){return new JuicerBackbone.Model},i}(Juicer.Views.FormView)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.FeedForm=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.namespace="feed",i.prototype.createModel=function(){return new Juicer.Models.FeedValidation},i}(Juicer.Views.FormView)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.UserForm=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.namespace="user",i.prototype.createModel=function(){return new Juicer.Models.UserValidation},i}(Juicer.Views.FormView)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.UserSignupForm=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.namespace="user",i.prototype.createModel=function(){return new Juicer.Models.UserSignupValidation},i}(Juicer.Views.FormView)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.UserUpdateForm=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.namespace="user",i.prototype.createModel=function(){var t;return t={email:$("#user_email").val(),noPassword:$("#user_password").length<1},new Juicer.Models.UserUpdateValidation(t)},i}(Juicer.Views.FormView)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.Gallery=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.initialize=function(t){var e,i,r,n,s,o,a,l,c;if(i=(s=(c=t.target).parents(".j-gallery")).data("id"),a=this.model.get("posts").findWhere({id:i}),l=(r=s.find(".j-image img")).attr("src"),(o=JSON.parse(JSON.stringify(a.get("additional_photos")))).unshift(a.get("image")),(e=null!=(e=JSON.parse(JSON.stringify(a.get("additional_photos_alt_text"))))?e:[]).unshift(a.get("image_alt_text")),-1===(n=o.indexOf(l))&&(n=0),c.hasClass("j-gallery-next")?n+=1:c.hasClass("j-gallery-previous")&&(n-=1),n>=o.length&&(n=0),n<0&&(n=o.length-1),r.attr("src",o[n]),e[n])return r.attr("alt",e[n])},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.GdprOverlay=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST.gdpr_form,i.prototype.initialize=function(){return this.overlay=new Juicer.Views.Overlay({content:this.template(),element:this.el,width:"50%"}),this.overlay.render()},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.Home=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.initialize=function(){return this.$("input").placeholder(),new Juicer.Views.HomeSlider({el:".js-features"})},i.prototype.events={"click .show":"renderExample","change select":"reRenderFeed","click .hide-feed":"hideFeed"},i.prototype.renderExample=function(t){var e,i;return t.preventDefault(),(e=jQuery(t.target)).html("Loading..."),this.model=new Juicer.Models.Feed({slug:"juicer",per:16,order:"random"}),this.model.fetch({success:(i=this,function(){return i.renderFeed(),jQuery(".style-picker").css("display","inline-block"),jQuery(".hide-feed").show(),e.hide()}),error:function(){return console.log("Example did not load!")}})},i.prototype.reRenderFeed=function(t){var e,i,r;return this.$(".juicer-feed").remove(),i="v2"===this.model.get("embed_layout")?"<div class='juicer-feed' data-pages='1'></div>":"<ul class='juicer-feed' data-pages='1'></ul>",this.$(".js-juicer-example .container-fluid").append(i),r=jQuery(t.target).val(),e=this.map(r),this.model.set(e),this.renderFeed()},i.prototype.renderFeed=function(){return new Juicer.Views.Feed({el:".juicer-feed",model:this.model}).render()},i.prototype.hideFeed=function(t){return t.preventDefault(),this.$(".juicer-feed").html(""),jQuery(".style-picker").hide(),jQuery(t.target).hide(),this.$(".show").show().html("Show me an example feed!")},i.prototype.map=function(t){switch(t){case"classic":return{css:"classic",photos:!1};case"white":return{css:"white",photos:!1};case"widget":return{css:"widget",photos:!1};case"colored-icons":return{css:"colored-icons",photos:!1};case"gray":return{css:"gray",photos:!1};case"slider":return{css:"slider",photos:!0};case"user":return{css:"user",photos:!1};case"hip":return{css:"hip",photos:!1};case"living-wall":return{css:"living-wall",photos:!1};case"modern":return{css:"modern",photos:!1};case"polaroid":return{css:"polaroid",photos:!1};case"night":return{css:"night",photos:!1};default:return{css:"image-grid",photos:!0}}},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.HomeSlider=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.item=".explainer-list-item",i.prototype.initialize=function(){return this.activate(this.$(this.item).first())},i.prototype.events={"mouseenter .explainer-list-item":"toggleSlider","click .explainer-list-item":"toggleSlider"},i.prototype.toggleSlider=function(t){var e;if((e=$(t.target)).is(this.item)||(e=e.parents(this.item)),!e.hasClass("active"))return this.activate(e)},i.prototype.activate=function(t){var e,i;return i=t.data("slide"),this.$(".explainer-list-item.active").removeClass("active"),t.addClass("active"),e=this.$(".slider-images ."+i),this.$(".slider-images .active").removeClass("active"),e.addClass("active")},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.ImageHandler=function(i){function r(){return this.levelGridHeight=t(this.levelGridHeight,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.initialize=function(t){return null==t&&(t={}),this.image=jQuery(t.target),this.feedItem=this.image.parents(".feed-item"),this.postId=this.feedItem.data("id"),this.theme=t.theme,this.feed=t.feed,this.el=t.el||null,this.testRefreshed=t.testRefreshedImages||!1,this.handeBrokenImage()},r.prototype.handeBrokenImage=function(){return!this.postId||"facebook"!==this.feedItem.data("source")||this.image.attr("src").match(Juicer.Constants.BASE_URL)?this.invokeFallback():(this.image.attr("src",Juicer.Constants.BASE_URL+"/api/posts/"+this.postId+"/image"),this.testRefreshed?this.testImage():void 0)},r.prototype.testImage=function(){return imagesLoaded(this.image).on("fail",function(){return this.invokeFallback()}.bind(this))},r.prototype.invokeFallback=function(){switch(this.theme){case"widget":case"slider":case"entertainment":this.convertToText();break;case"livingWall":this.removeImage();break;default:this.tryConvertingThenHide()}if(r.reportInvalidImage(this.postId,"content","feed"),this.feed.isGrid()&&this.el)return this.levelGridHeight()},r.prototype.tryConvertingThenHide=function(){if(!this.feed.get("photos")||!this.feed.get("isOnFeedsDashboard"))return this.feedItem.find(".j-message").length>0?this.convertToText():this.hidePost()},r.prototype.convertToText=function(){var t;return this.logFallback("Converting to a text post."),(t=this.image.parents(".feed-item")).removeClass("image-post").removeClass("j-video").addClass("words"),t.find(".j-image").remove()},r.prototype.hidePost=function(){return this.logFallback("Hiding the post."),this.image.parents(".feed-item").hide()},r.prototype.hideImage=function(){return this.logFallback("Hiding the image."),this.image.hide()},r.prototype.removeImage=function(){return this.logFallback("Removing the image."),this.image.remove()},r.prototype.logFallback=function(t){var e;return e=this.feedItem.data("source"),console.log("Juicer: "+e+" post with id "+this.postId+" has a broken image. "+t)},r.prototype.levelGridHeight=function(){var t,e,i,r,n,s,o;if(o=this.el.querySelectorAll(".j-stack"),s={},t=0,o.forEach((function(e,i){var r,n;if(n=e.querySelectorAll("li.feed-item"),r=Array.from(e.querySelectorAll("li.feed-item")).reduce((function(t,e){return t+e.clientHeight}),0),s[i]=r,n.length>0&&0===t)return t=r/n.length})),e=Object.entries(s).reduce((function(t,e){return t[1]>e[1]?t:e}))[0],n=Object.entries(s).reduce((function(t,e){return t[1]<e[1]?t:e}))[0],r=0,i=function(){var a;if(e=Object.entries(s).reduce((function(t,e){return t[1]>e[1]?t:e}))[0],n=Object.entries(s).reduce((function(t,e){return t[1]<e[1]?t:e}))[0],s[e]-s[n]>1.5*t&&r<20)return a=o[e].querySelector("li.feed-item:last-child"),o[n].appendChild(a),s[e]-=a.clientHeight,s[n]+=a.clientHeight,r+=1,i()},s[e]-s[n]>1.5*t)return i()},r.reportInvalidImage=function(t,e,i){if(t)return jQuery.get(Juicer.Constants.BASE_URL+"/api/posts/"+t+"/images/invalidate",{type:e,source:i})},r}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.InfiniteScroll=function(i){function r(){return this.checkForPagination=t(this.checkForPagination,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.el=function(){return this.model.hasHeight()?".juicer-feed":window},r.prototype.initialize=function(t){if(this.template=t.template||JST["partials/_moderated_posts"],this.container=t.container,this.isOnFeedsDashboard=t.isOnFeedsDashboard||!1,this.posts=this.model.get("posts"),this.pages=_u.min([t.pages,1e3]),this.stopped=this.pages<2||this.limitReached(),this.shouldInfinitelyScroll())return this.$el.on("scroll.juicerInfiniteScroll",_u.debounce(this.checkForPagination,300))},r.prototype.limitReached=function(){return this.lessThanLimit()||this.setPagesLimit()},r.prototype.lessThanLimit=function(){return this.posts.length<this.posts.limit_value},r.prototype.setPagesLimit=function(){return this.posts.current_page>=this.pages},r.prototype.removeLoadMore=function(){return jQuery(".j-paginate").remove()},r.prototype.checkForPagination=function(){if(this.scrollPoint()>this.triggerPoint()&&!this.stopped)return this.nextPage()},r.prototype.shouldInfinitelyScroll=function(){return this.model.get("infinite_scroll")&&!this.stopped},r.prototype.shouldShowLoadMore=function(){return!this.model.get("infinite_scroll")&&!this.stopped},r.prototype.nextPage=function(){return this.stop(),this.model.nextPage(),this.model.fetch({remove:!1,success:(t=this,function(e,i){return t.appendPosts(i),t.trigger("paginate")}),error:function(){return console.log("Juicer Infinite Scroll Problem.")}});var t},r.prototype.appendPosts=function(t){var e,i;if(jQuery(".j-loading, .j-loading-wrapper").remove(),i=new Juicer.Models.Feed(t,{parse:!0}),this.posts=i.get("posts"),this.posts.length>0&&(e=jQuery(this.template({isOnFeedsDashboard:this.isOnFeedsDashboard,feed:i}))),this.model.isGrid()?this.container.gridalicious("append",e):this.container.append(e),this.limitReached()||this.start(),!this.shouldShowLoadMore())return this.removeLoadMore()},r.prototype.scrollPoint=function(){return this.$el.scrollTop()+2*this.$el.outerHeight()},r.prototype.triggerPoint=function(){return this.model.hasHeight()?this.container.prop("scrollHeight"):this.container.offset().top+this.container.outerHeight()},r.prototype.start=function(){return this.stopped=!1},r.prototype.stop=function(){return this.stopped=!0},r.prototype.close=function(){return this.$el.empty().off("scroll.juicerInfiniteScroll"),this.model.resetPage(),this.stopListening(),this},r}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.LazyLoad=function(i){function r(){return this.checkImages=t(this.checkImages,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.el=window,r.prototype.initialize=function(t){return this.view=t.view,this.$el.on("scroll",_u.debounce(this.checkImages,_u.random(250,350))),this.model.hasHeight()&&this.feed().on("scroll",_u.debounce(this.checkImages,_u.random(250,350))),this.checkImages()},r.prototype.checkImages=function(){return _u.each(this.view.$el.find("img[data-lazy]:not([src])"),(t=this,function(e){if((e=jQuery(e)).offset().top<t.scrollPoint(t.$el)&&e.attr("src",e.data("lazy")),t.model.hasHeight()&&e.offset().top<t.scrollPoint(t.feed()))return e.attr("src",e.data("lazy"))}));var t},r.prototype.scrollPoint=function(t){return t.scrollTop()+t.height()+500},r.prototype.feed=function(){return jQuery(".juicer-feed")},r.prototype.close=function(){return this.$el.off("scroll"),this.feed().off("scroll")},r}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.LivingWall=function(i){function r(){return this.rotatePost=t(this.rotatePost,this),this.imageHandler=t(this.imageHandler,this),this.brokenImageCallback=t(this.brokenImageCallback,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST["partials/feeds/_wall"],r.prototype.customCss=JST["partials/_custom_styles"],r.prototype.initialize=function(t){return this.columns=t.columns,this.equal=t.equal,this.gutter=t.gutter,this.interval=t.interval,this.isOnFeedsDashboard=t.isOnFeedsDashboard,this.visible=t.visible,0===this.interval&&(this.interval=5e7),this.defaultColumns=this.columns,this.gutter||(this.gutter=0),this.setSizes(),jQuery(window).on("resize",_u.debounce((e=this,function(){return e.resize()}),300));var e},r.prototype.setSizes=function(){var t;return this.handleResponsiveColumns(),t=this.gutter*(2*this.columns-1),this.width=this.$el.width()-t,this.small=this.width/(2*this.columns),this.$el.hasClass("j-ie")&&(this.small=Math.floor(this.small-this.columns-1)),this.large=2*this.small+this.gutter,this.retryTimes=0},r.prototype.handleResponsiveColumns=function(){return this.windowWidth=this.$el.width(),this.windowWidth<400?this.columns=1:this.windowWidth<600?this.columns=2:this.windowWidth<900?this.columns=3:this.columns=this.defaultColumns},r.prototype.render=function(){var t,e,i,r;return t=8*this.columns,this.setLargeCount(),this.smallCount=t-4*this.largeCount,this.total=this.largeCount+this.smallCount,this.visible>this.total&&(this.visible=this.total),i=_u.map(this.initialPosts(),(r=this,function(t){var e;return(e=r.renderPost(t)).find("img").on("error",function(t){var e;return e=jQuery(t.target),this.imageHandler({target:e,feed:this.model,theme:"livingWall",testRefreshedImages:!0})}.bind(r)),e})),e=_u.sample(i,this.largeCount),_u.each(e,function(t){return function(e){return e.addClass("j-large"),t.setDimensions(e)}}(this)),_u.each(i,function(t){return function(e){return!e.hasClass("j-large")&&(e.addClass("j-small"),t.setDimensions(e))}}(this)),this.$el.append(this.customCss({feed:this.model})),this.$el.append(i),this.$el.packery(this.packeryOptions()),this.handleInterval(),this.ensureProperSize(),this},r.prototype.resize=function(){if(this.$el.outerWidth()!==this.windowWidth)return this.reRender()},r.prototype.reRender=function(){return this.setSizes(),this.render()},r.prototype.setLargeCount=function(){return this.largeCount=this.equal?0:this.columns%2!=0?this.columns-1:this.columns},r.prototype.packeryOptions=function(){return{gutter:this.gutter,itemSelector:".feed-item",resize:!1}},r.prototype.handleInterval=function(){var t;return document.hidden||this.startInterval(),jQuery(document).on("show",(t=this,function(){return t.startInterval()})),jQuery(document).on("hide",function(t){return function(){return t.stopInterval()}}(this))},r.prototype.startInterval=function(){if(null==this.id)return this.id=setInterval(this.rotatePost,this.interval)},r.prototype.stopInterval=function(){return null!=this.id&&window.clearInterval(this.id),this.id=null},r.prototype.ensureProperSize=function(){var t,e,i;return!(this.retryTimes>9)&&(i=3*this.gutter,t=4*this.small,Math.floor(t)-i<=(e=this.$el.height())&&e<=Math.ceil(t)+i?void 0:(this.retryTimes++,this.close(),this.render()))},r.prototype.renderPost=function(t,e,i){var r,n;return null==e&&(e=null),null==i&&(i=null),r=jQuery(this.template({isOnFeedsDashboard:this.isOnFeedsDashboard,post:t})),(n=imagesLoaded(r[0])).on("done",(function(){var t;if(e&&e(r),(t=r.find("img")).width()>t.height())return t.addClass("landscape")})),n.on("fail",function(t){return this.brokenImageCallback(t)}.bind(this)),r},r.prototype.brokenImageCallback=function(t){var e;return e=$(t.images[0].img),this.imageHandler({target:e,feed:this.model,theme:"livingWall",testRefreshedImages:!0})},r.prototype.imageHandler=function(t){return new Juicer.Views.ImageHandler(t)},r.prototype.initialPosts=function(){var t;return t=this.visible-1,this.posts().slice(0,+t+1||9e9)},r.prototype.nextPost=function(){return this.total++,this.total>=this.posts().length&&(this.model.pollingAllowed()&&this.model.fetchNewPosts(!1),this.total=0),this.posts()[this.total]},r.prototype.posts=function(){var t;return t=this.model.get("posts").models,t=_u.filter(t,(function(t){return"Twitter"!==t.sourceType()&&"YouTube"!==t.sourceType()}))},r.prototype.randomPost=function(){return jQuery(_u.sample(this.$(".feed-item").not(".j-sticky")))},r.prototype.setDimensions=function(t){return t.hasClass("j-small")?this.small:this.large,t.css({width:this.size(t),height:this.size(t)})},r.prototype.rotatePost=function(){var t,e,i;return e=this.randomPost(),(t=this.nextPost())&&t.stickied()&&(t=this.nextPost()),this.renderPost(t,(i=this,function(t){return i.cloneStyle(e,t)}))},r.prototype.cloneStyle=function(t,e){var i,r,n,s,o,a,l;return e.addClass(t.hasClass("j-small")?"j-small":"j-large"),this.setDimensions(e),r={top:l=this.size(t),left:l},i=this.merge(this.vectorMap(),r,"*"),n=a=t.position(),s=this.merge(a,i,"-"),o=this.merge(a,i,"+"),e.css(_u.extend(s,this.underCss)),t.css(this.underCss),t.before(e),window.setTimeout((function(){return t.css(o),e.css(n),window.setTimeout((function(){return t.remove(),e.css({zIndex:2})}),500)}),100)},r.prototype.size=function(t){return t.hasClass("j-small")?this.small:this.large},r.prototype.merge=function(t,e,i){var r;return null==i&&(i="+"),r={},_u.each(_u.keys(t),(function(n){return"+"===i?r[n]=t[n]+e[n]:"*"===i?r[n]=t[n]*e[n]:"-"===i?r[n]=t[n]-e[n]:void 0})),r},r.prototype.vectorMap=function(){var t,e;return e=_u.sample([-1,1]),{top:(t=_u.shuffle([e,0]))[0],left:t[1]}},r.prototype.underCss={zIndex:1},r.prototype.close=function(){return this.stopInterval(),this.$el.empty(),this.$el.packery("destroy"),jQuery(document).off("show hide"),this.stopListening(),this},r
}(JuicerBackbone.View)}.call(this),jQuery(document).ready((function(){function t(){e.removeClass("visible"),e.find(".active").removeClass("active")}var e=jQuery(".mobileNavigation");jQuery(".js-mobileNavigationTrigger").click((function(){e.hasClass("visible")?t():e.addClass("visible")})),jQuery(".js-mobileNavigation_close").click((function(){t()})),jQuery(".mobileNavigation_entry.expandable .level-1").click((function(t){jQuery(t.currentTarget).parent(".mobileNavigation_entry.expandable").toggleClass("open")})),jQuery("a.mobileNavigation_entry_label").click((function(t){jQuery(t.currentTarget).addClass("active")})),jQuery("a.mobileNavigation_entry_label[href*='/#']").click((function(){t()}));var i=navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPhone/i)?"pagehide":"unload";jQuery(window).on(i,(function(){t(),e.children(".expandable").removeClass("open")}))})),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Moderated=function(i){function r(){return this.reRender=t(this.reRender,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST.moderated,r.prototype.loading=JST["partials/_loading"],r.prototype.events={"click ul.j-filters li":"filterFeed","click ul.j-display-filters li":"filterFeed","click .approve":"restorePost","click .reject":"rejectPost","click .j-paginate":"appendNextPage","click .bulk-moderate":"bulkModerate","click .delete":"deletePost"},r.prototype.render=function(){var t;return this.model.set({lazy_load:!1,css:"modern"}),this.$el.css({maxWidth:"none",maxHeight:"none"}),this.startInfiniteScroll(),this.$el.html(this.template({feed:this.model,menuItems:this.menuItems()})),(t=Math.floor(this.$el.outerWidth()/3))<200&&(t=200),this.model.on("new-posts",this.reRender),!(this.model.get("posts").models.length<1)&&(this.$el.removeClass(Juicer.Constants.FEED_CLASSES.join(" ")),this.$el.addClass("modern"),this.$el.removeClass("hover-images"),this.$el.gridalicious({selector:".feed-item",width:t,gutter:this.gutter}),null==this.infiniteScroll||(this.infiniteScroll.shouldShowLoadMore()?void 0:this.infiniteScroll.removeLoadMore()))},r.prototype.startInfiniteScroll=function(){return this.model.resetPage(),this.infiniteScroll=new Juicer.Views.InfiniteScroll({container:this.$el,model:this.model})},r.prototype.appendNextPage=function(t){return t.preventDefault(),this.$(".j-paginate").replaceWith(this.loading()),this.infiniteScroll.nextPage()},r.prototype.restorePost=function(t){return this.hidePost(t,"Approving...").restore()},r.prototype.rejectPost=function(t){return this.hidePost(t,"Rejecting...").reject()},r.prototype.deletePost=function(t){return this.hidePost(t,"Deleting...").hardDeletePost()},r.prototype.hidePost=function(t,e,i){var r,n;return null==i&&(i=!0),t.preventDefault(),null!=e&&$(t.target).html(e),n=$(t.target).parents(".actions"),r=this.fetchPost(n.data("id")),i&&n.parents(".feed-item").hide().remove(),r},r.prototype.fetchPost=function(t){return this.model.get("posts").findWhere({id:t})},r.prototype.filterFeed=function(t){var e,i;return t.preventDefault(),(e=jQuery(t.target)).attr("data-filter"),e.parents("ul"),this.model.filter=e.data("filter"),this.model.resetPage(),this.model.fetch({success:(i=this,function(){return i.reRender()})})},r.prototype.bulkModerate=function(t){var e,i;if(i=(e=null!=$(t.target).data("approve"))?"approve":"reject",Juicer.Helpers.confirm("Are you sure you want to "+i+" all of these posts?"))return this.$(".bulk-moderate-nav").html("<div class='j-loading'>Loading...</div>"),this.model.bulkModerate(e,this.model.filter),setTimeout((function(){return location.reload()}),1e4)},r.prototype.unbindChildren=function(){return this.$el.empty().off(),this.infiniteScroll&&this.infiniteScroll.close(),this.model.off("new-posts",this.reRender),this.stopListening()},r.prototype.reRender=function(){return this.unbindChildren(),this.render(),this.delegateEvents()},r.prototype.menuItems=function(){var t;return t=this.baseMenuItems,t=this.allMenu.concat(t)},r.prototype.baseMenuItems=[{filter:"Filter",title:"Text Filtered"},{filter:"Profanity",title:"Profanity"},{filter:"User",title:"Manually Deleted"},{filter:"Queue",title:"Moderation Queue"},{filter:"Similarity",title:"Duplicate Posts"},{filter:"Rejected",title:"Rejected"}],r.prototype.allMenu=[{filter:void 0,title:"All"}],r}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.Nav=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.events={"click .js-Header_burgerMenu":"toggleMenuOpen","click .sidebar-toggle":"toggleSidebarOpen","click .main-container":"toggleMenuClose"},i.prototype.toggleMenuOpen=function(){var t;return $(".main-container").removeClass("open-right open-right_mobile").toggleClass("open-left"),(t=$(".side-nav")).hasClass("opened")?t.removeClass("opened"):setTimeout((function(){return t.addClass("opened")}),200)},i.prototype.toggleMenuClose=function(){var t;if((t=$(".side-nav")).hasClass("opened"))return t.removeClass("opened")},i.prototype.toggleSidebarOpen=function(){return $(".main-container").hasClass("open-right_mobile")?$(".main-container").removeClass("open-left").removeClass("open-right_mobile"):$(".main-container").removeClass("open-left").toggleClass("open-right"),$(".opened-sidebar-option").removeClass("visible")},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.NewFeed=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST.new_feed,i.prototype.initialize=function(){return this.socialAccounts=new Juicer.Collections.SocialAccounts,this.socialAccounts.fetch({success:(t=this,function(){return t.sourceForm=new Juicer.Views.SourceForm({el:t.el,socialAccounts:t.socialAccounts}),t.sourceForm.on("create",t.nextPage,t),t.render(),new Juicer.Views.OverlayReopener({model:t.feed,sourceForm:t.sourceForm}).render(t.el)}),error:function(){return alert("Something went wrong while fetching your connected social accounts")}});var t},i.prototype.render=function(){return this.$el.html(this.template())},i.prototype.nextPage=function(t){return window.location="/feeds/"+t.get("slug")},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Overlay=function(i){function r(){return this.handleKeypress=t(this.handleKeypress,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.className="j-overlay",r.prototype.template=JST.overlay,r.prototype.initialize=function(t){return this.element=t.element||"body",this.content=t.content,this.width=t.width,this.close=!1!==t.close,this.ariaLabel=t.ariaLabel,jQuery(document).bind("keydown",this.handleKeypress)},r.prototype.render=function(){return this.$el.html(this.template({content:this.content,close:this.close})),jQuery(this.element).children(".j-overlay")&&jQuery(this.element).children(".j-overlay").remove(),this.$el.attr("role","dialog").attr("aria-modal","true"),this.ariaLabel&&this.$el.attr("aria-label",this.ariaLabel),jQuery(this.element).append(this.el),this.$el.find(".j-message").first().focus(),this.handleBrokenImages(),this},r.prototype.events=function(){return{"click .j-close":"closeOverlay","click .juicer2-close":"closeOverlay",mousedown:"removeOverlay","click .j-navigate button":"triggerNavigate","click a.share":"openPopup","click .j-gallery-arrow":"gallery"}},r.prototype.gallery=function(t){return t.preventDefault(),this.trigger("trigger:gallery",jQuery(t.target))},r.prototype.removeOverlay=function(t){var e;if(!((e=jQuery(t.target)).hasClass("j-overlay-content")||e.parents(".j-overlay-content").length>0))return this.removeView()},r.prototype.closeOverlay=function(t){return t.preventDefault(),this.removeView()},r.prototype.removeView=function(){return this.trigger("close"),this.unbind(),this.remove(),this.$(".j-overlay").remove(),jQuery(this.element).find(".j-overlay").remove(),jQuery(document).unbind("keydown",this.handleKeypress)},r.prototype.triggerNavigate=function(t){return t.preventDefault(),this.trigger("trigger:navigate",jQuery(t.target).data("post-id"))},r.prototype.openPopup=function(t){var e;return t.preventDefault(),e=jQuery(t.target),window.open(e.attr("href"),"pop","width=600, height=400, scrollbars=no")},r.prototype.handleKeypress=function(t){var e,i,r,n,s;switch(t.keyCode){case 37:this.$(".j-previous").click();break;case 39:this.$(".j-next").click();break;case 27:this.closeOverlay(t)}if(9===t.keyCode&&(i=jQuery(t.target)).parents("[role=dialog]").length&&(s=t.shiftKey,n=i.closest("[role=dialog]").find("input:visible,select:visible,button:visible,textarea:visible"),r=s?n.first():n.last(),(e=jQuery(r)).length))return!i.is(e)},r.prototype.handleBrokenImages=function(){var t;return this.$(".j-poster img").on("error",(t=this,function(e){return console.log("hiding broken profile image in overlay."),jQuery(e.target).hide(),Juicer.Views.ImageHandler.reportInvalidImage(t.postId,"poster","overlay")})),this.$("img.j-content-image").on("error",function(t){return function(e){var i,r,n;if(i=(n=jQuery(e.target)).parents(".image"),r=n.parents(".j-post-overlay[data-id]").data("id"),Juicer.Views.ImageHandler.reportInvalidImage(t.postId,"content","overlay"),!r||!n.attr("src").match("fbcdn.net")||n.attr("src").match(Juicer.Constants.BASE_URL))return i.length>0?(console.log("Hiding broken image in overlay."),i.hide()):void 0;n.attr("src",Juicer.Constants.BASE_URL+"/api/posts/"+r+"/image")}}(this)),this.$("video source").on("error",(function(t){var e,i,r;return r=jQuery(t.target).parents(".instagram-wrapper, .twitter-wrapper, .video-wrapper"),i=jQuery(t.target).parents("video").first(),e=r.children(".j-video-fallback").first(),jQuery(t.target),e.length?(console.log("converting broken video in overlay to thumbnail"),i.hide(),e.children("img").each((function(t,e){if(!jQuery(e).attr("src")&&jQuery(e).attr("data-lazy"))return jQuery(e).attr("src",jQuery(e).attr("data-lazy"))})),e.show()):(console.log("hiding broken video in overlay"),r.hide())}))},r}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.OverlayReopener=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.storageKey="juicer_overlay_open",i.prototype.initialize=function(t){return null==t&&(t={}),this.sourceForm=t.sourceForm,this.sidebarView=t.sidebarView,this.reopened=!1},i.prototype.render=function(t){var e;return this.overlayShouldReopen()&&(null==this.sourceForm&&(this.sourceForm=new Juicer.Views.SourceForm({el:t,feed:this.model})),e=this.get(),this.sourceForm.openOverlay(e),e.htmx?(this.sourceForm.overlay.$el.find(".new-source-container").append("<a class='load-form-async' hx-get='/sources/new?show_success_message=true&source="+e.source+"&feed_id="+(e.feed_id||"")+"&type="+e.term_type+"&selected_type="+e.type+"' hx-target='this' hx-swap='afterend' hx-trigger='load' />"),htmx.process(".new-source-container"),jQuery(".new-source-container").addClass("jcr-p-0"),jQuery(".new-source-container").parents(".j-overlay-content").addClass("jcr-w-[800px] jcr-rounded-xl"),jQuery(".new-source-container").parents(".j-overlay-content").find(".j-close").remove()):null!=this.sidebarView&&this.sourceForm.on("create",this.sidebarView.renderSidebar),this.clear(),this.reopened=!0),this},i.prototype.overlayShouldReopen=function(){return!!this.get()},i.prototype.get=function(){var t;return t=window.localStorage.getItem(this.storageKey),JSON.parse(t)},i.prototype.set=function(t){var e;return e=JSON.stringify(t),window.localStorage.setItem(this.storageKey,e)},i.prototype.clear=function(){return window.localStorage.setItem(this.storageKey,null)},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.Payment=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.initialize=function(){return window.location.search.indexOf("interval=year")>-1&&(this.$("#year").prop("checked",!0),$("#invisible-form").find('input[name="year"]').val(1)),this.toggleYear()},i.prototype.events={"change #year":"toggleYear"},i.prototype.toggleYear=function(){var t,e,i,r,n;return r=this.$("#year"),i=$("[data-price]"),e=$(".simple-plan-monthly"),t=i.data("price"),r.is(":checked")?($(".js-discount-applied").length>0?0:.1,n=parseFloat(i.data("yearly-price")).toFixed(2),i.html("$"+n),e.html("/ yr"),$(".simple-plan-discounted-price .yearly").removeClass("hide"),$(".simple-plan-discounted-price .monthly").addClass("hide"),$(".year-hidden").addClass("hide")):(i.html("$"+t),e.html("/ mo"),$(".simple-plan-discounted-price .yearly").addClass("hide"),$(".simple-plan-discounted-price .monthly").removeClass("hide"),$(".year-hidden").removeClass("hide"))},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.Plans=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST.plan_change,i.prototype.initialize=function(){var t,e;return this.queryParams=new URLSearchParams(window.location.search),(t=this.queryParams.get("plan"))&&$("button[data-plan='"+t+"']").click(),$(window).on("load",(e=this,function(){return e.changePrices()}))},i.prototype.events={"click [data-plan]":"openNewPlanOverlay","change #pricing-switch":"changePrices"},i.prototype.openNewPlanOverlay=function(t){var e,i,r;return t.preventDefault(),e=$(t.target),i=$("#pricing-switch").prop("checked")||this.queryParams.get("yearly"),this.model=new Juicer.Models.Plan,this.model.fetch({data:{plan:e.data("plan"),yearly:i},success:(r=this,function(){return r.csrf=$('meta[name="csrf-token"]').attr("content"),r.overlay=new Juicer.Views.Overlay({content:r.template({model:r.model,csrf:r.csrf}),element:r.el,width:"50%"}),r.overlay.render(),htmx.ajax("POST","/track",{values:{event_name:"subscription_plan_selected",mixpanel_version:"v2",properties:{plan:e.data("plan"),yearly:i}}})})})},i.prototype.changePrices=function(){return $("#pricing-switch").prop("checked")?($(".Plans_plan .monthly").addClass("hidden"),$(".Plans_plan .yearly").removeClass("hidden"),$(".plan-monthly").each((function(){return $(this).html($(this).html().replace("Per month","Per year"))})),$(".js-plans a").each((function(){return $(this).attr("href",$(this).attr("href").replace("interval=month","interval=year"))})),$(".js-plans form").each((function(){return $(this).attr("action",$(this).attr("action").replace("interval=month","interval=year"))})),$(".year-hidden").addClass("hidden")):($(".Plans_plan .monthly").removeClass("hidden"),$(".Plans_plan .yearly").addClass("hidden"),$(".plan-monthly").each((function(){return $(this).html($(this).html().replace("Per year","Per month"))})),$(".js-plans a").each((function(){return $(this).attr("href",$(this).attr("href").replace("interval=year","interval=month"))})),$(".js-plans form").each((function(){return $(this).attr("action",$(this).attr("action").replace("interval=year","interval=month"))})),$(".year-hidden").removeClass("hidden"))},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.PostEdit=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST.post_edit,i.prototype.message=JST["partials/_message"],i.prototype.className="j-overlay",i.prototype.initialize=function(t){return this.setPost(t)},i.prototype.setPost=function(t){var e;return e=this.model.get("posts"),this.post=e.get(t.id)},i.prototype.render=function(){var t,e;return e=this,t=function(t,i){return i.xhr.response.length>0?jQuery("body").append(i.xhr.response):(e.overlay=new Juicer.Views.Overlay({content:e.template({post:e.post,feed:e.model}),width:"50%",el:e.el}),e.overlay.render())},htmx.ajax("GET","/paywall?source=feed_edit_post&feed_id="+this.model.get("id"),{target:"body",swap:"beforeend",handler:t})},i.prototype.events=function(){return{"input textarea":"updatePreview","submit form":"savePost","change .datetime-external-created-at":"updateTimestamp"}},i.prototype.updatePreview=function(t){return this.post.set("edit",$(t.target).val()),this.$(".message-container").html(this.message({post:this.post}))},i.prototype.updateTimestamp=function(t){return this.post.set("external_created_at",$(t.target).val())},i.prototype.savePost=function(t){return t.preventDefault(),this.post.save(null,{success:(e=this,function(t,i){return e.overlay.removeView(),e.model.set(i,{parse:!0}),e.model.trigger("action")}),error:function(){return alert("Something went wrong. Please try again.")}});var e},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.PostOverlay=function(i){function r(){return this.cycleGallery=t(this.cycleGallery,this),this.navigateOverlay=t(this.navigateOverlay,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST.post_overlay,r.prototype.initialize=function(t){return this.model=t.model,this.setPost(t.target)},r.prototype.triggers=function(){return{"click a.next":"navigateOverlay","click a.previous":"navigateOverlay"}},r.prototype.setPost=function(t){var e;return e=(t=t.is("li.feed-item")?t:t.parents("li.feed-item")).data("id"),this.assignPosts(e)},r.prototype.assignPosts=function(t){var e,i,r,n;if(r=this.model.get("posts"),this.post=r.get(t),i=(e=r.indexOf(this.post))+1<r.length?e+1:0,n=e-1>=0?e-1:r.length-1,this.next=r.at(i),"Juicer"===this.next.sourceType()&&(this.next=r.at(i+1)),this.previous=r.at(n),"Juicer"===this.previous.sourceType())return this.previous=r.at(n-1)},r.prototype.render=function(){return this.overlay=new Juicer.Views.Overlay({element:"body",ariaLabel:this.post.sourceType()+" content",content:this.template({post:this.post,next:this.next,previous:this.previous,feed:this.model}),width:"75%"}),this.overlay.on("trigger:navigate",this.navigateOverlay),this.overlay.on("trigger:gallery",this.cycleGallery),this.overlay.render(),this.trigger("render",this),htmx.process(this.overlay.el)},r.prototype.navigateOverlay=function(t){return this.overlay.removeView(),this.assignPosts(t),this.render()},r.prototype.cycleGallery=function(t){return new Juicer.Views.Gallery({target:t,el:this.el,model:this.model})},r}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.PosterImageHandler=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.initialize=function(t){return null==t&&(t={}),this.image=$(t.target),this.feedItem=this.image.parents(".feed-item"),this.postId=this.feedItem.data("id"),this.theme=t.theme,this.feed=t.feed,this.invokeFallback()},i.prototype.invokeFallback=function(){return"polaroid"===this.theme?this.convertToNoPoster():this.hideImage(),Juicer.Views.ImageHandler.reportInvalidImage(this.postId,"poster","feed")},i.prototype.hideImage=function(){return this.logFallback("Hiding the image."),this.image.hide()},i.prototype.convertToNoPoster=function(){return this.logFallback("Converting to a no-poster post."),this.image.parents(".j-post-container").addClass("no-poster"),this.image.parents(".j-poster").hide()},i.prototype.logFallback=function(t){var e;return e=this.feedItem.data("source"),console.log("Juicer: "+e+" post with id "+this.postId+" has a broken poster image. "+t)},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.SideNav=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.events={"click li#collapseable":"toggleOtherFeeds"},i.prototype.toggleOtherFeeds=function(t){var e,i;return t.preventDefault(),(e=(i=$(t.target)).next()).is(":visible")?(e.slideUp(),i.removeClass("selected")):(e.slideDown(),i.addClass("selected"))},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Sidebar=function(i){function r(){return this.openSourceFormFromSources=t(this.openSourceFormFromSources,this),this.closeSubViewSlide=t(this.closeSubViewSlide,this),this.closeSubView=t(this.closeSubView,this),this.openSubView=t(this.openSubView,this),this.openNewSource=t(this.openNewSource,this),this.handleSkipOpeningSubView=t(this.handleSkipOpeningSubView,this),this.renderSidebar=t(this.renderSidebar,this),this.reRenderCss=t(this.reRenderCss,this),this.reRender=t(this.reRender,this),this.render=t(this.render,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST.sidebar,r.prototype.nameEdit=JST["feeds/feed_name_edit"],r.prototype.newSource=JST["feeds/new_source"],r.prototype.initialize=function(t){var e,i;return this.renderedFromModerationUrl=t.renderedFromModerationUrl,this.renderedFromModerationUrl?this.model=new Juicer.Models.Moderated({slug:t.slug}):this.model=new Juicer.Models.Feed({isOnFeedsDashboard:!0,slug:t.slug,starting_at:t.starting_at,origin:Juicer.Constants.PAGE_URL_DASHBOARD_ORIGIN}),this.model.fetch({success:(i=this,function(){if(i.hideLoader(),i.renderSidebar(),null==i.reopener||!i.reopener.reopened)return i.setupNewSources()}),error:function(t){return function(){return t.hideLoader(),alert("Sorry something is going wrong.")}}(this)}),this.model.on("action",this.reRender,this),this.model.once("sync",this.initialRender,this),this.model.on("update:colors",this.reRenderCss,this),e=new URLSearchParams(window.location.search),this.renderAddSourceModalOnLoad="dashboard_add_source"===e.get("mpevent")},r.prototype.openSourceModalIfAddSourceParamPresent=function(){if(this.renderAddSourceModalOnLoad)return this.openNewSource({showFeedName:this.model.get("name")}),this.renderAddSourceModalOnLoad=!1},r.prototype.initialRender=function(){return this.render(!0)},r.prototype.render=function(t){return null==t&&(t=!1),1===this.model.get("posts").current_page&&(this.renderedFromModerationUrl&&t?($(".main-container").addClass("open-right_mobile"),this.renderModeration()):this.feed=new Juicer.Views.Feed({el:".juicer-feed",isOnFeedsDashboard:!0,model:this.model}).render()),this.openSourceModalIfAddSourceParamPresent(),this.toggleAddSourceButton(),htmx.process(this.el)},r.prototype.toggleAddSourceButton=function(){return this.model.manualSourceLimitReached()?(jQuery(".add-source-sidebar-container").removeClass("add-source"),jQuery(".add-source-container").find("a.j-button").addClass("disabled"),jQuery(".add-source-container").each((function(){return this.dispatchEvent(new CustomEvent("disable-add-source-button"))}))):(jQuery(".add-source-sidebar-container").addClass("add-source"),jQuery(".add-source-container").find("a.j-button").removeClass("disabled"),jQuery(".add-source-container").each((function(){return this.dispatchEvent(new CustomEvent("enable-add-source-button"))})))},r.prototype.reRender=function(){return null!=this.feed&&this.feed.close(),null!=this.overlay&&this.overlay.removeView(),null!=this.sourcesView&&this.sourcesView.reRender(),this.sourcesView=null,this.subView=null,this.render()},r.prototype.reRenderCss=function(){return jQuery(".juicer-custom-styles").length>0?jQuery(".juicer-custom-styles").html("<style>"+this.model.customStyles()+"</style>"):jQuery(".juicer-feed").prepend("<div class='juicer-custom-styles'><style>"+this.model.customStyles()+"</style></div>")},r.prototype.renderSidebar=function(){return this.$el.html(this.template({feed:this.model})),this.reopener=new Juicer.Views.OverlayReopener({model:this.model,sidebarView:this}).render(this.el)},r.prototype.hideLoader=function(){return jQuery(".loading-overlay").fadeOut()},r.prototype.setupNewSources=function(){return this.sourceForm=new Juicer.Views.SourceForm({feed:this.model,el:this.el,socialAccounts:this.model.get("social_accounts")}),this.sourceForm.on("create",this.reRender)},r.prototype.renderModeration=function(){if(this.renderSubView(this.viewMap.moderate,this.$("#moderate")),this.subView)return this.subView.renderModeratedPosts()},r.prototype.events=function(){return{"click .js-feed-name-edit":"renderFeedNameEdit","submit .js-feed-name-edit-form":"updateFeedName","click .add-source:not(.disabled)":"openNewSource","click .menu-item .js-warning":"handleWarningClick","click .menu-item *[data-skip_opening_sub_view]":"handleSkipOpeningSubView","click .menu-item":"openSubView","click .slide-menu-item.active":"closeSubViewSlide","change #slug_update":"toggleSlugWarning","click .hide-embed-info-popover":"handleEmbedInfoPopover","click .hide-embed-layout-popover":"handleEmbedLayoutPopover","click .popover-hide-button":"handlePopoverHide"}},r.prototype.handleSkipOpeningSubView=function(t){return t.stopPropagation()},r.prototype.handleWarningClick=function(t){return t.stopPropagation(),jQuery("body").html("<div class='d-flex' style='background:white; height:100vh; width: 100vw; align-items: center; justify-content: center'><div class='j-loading'></div></div>")},r.prototype.openNewSource=function(t){var e,i;return i=this,e=function(e,r){return r.xhr.response.length>0?jQuery("body").append(r.xhr.response):(i.overlay=new Juicer.Views.Overlay({content:i.newSource({showFeedName:null!=t?t.showFeedName:void 0,model:i.model}),width:"85%",element:i.el}),i.overlay.render())},htmx.ajax("GET","/paywall?source=feed_add_source&feed_id="+this.model.get("id"),{target:"body",swap:"beforeend",handler:e})},r.prototype.openSubView=function(t){var e,i,r,n,s;return"cta"===(e=$(t.currentTarget)).prop("id")?(s=this,i=function(t,e){var r;return e.xhr.response.length>0?(jQuery("body").append(e.xhr.response),(r=htmx.find(".cta-global-settings-modal"))?htmx.process(r):void 0):htmx.ajax("GET","/feed/"+s.model.get("id")+"/cta_settings",{target:"body",swap:"beforeend",handler:i})},void htmx.ajax("GET","/paywall?source=cta&feed_id="+this.model.get("id"),{target:"body",swap:"beforeend",handler:i})):($(".slide-menu-item").removeClass("active"),e.addClass("active"),"social_accounts"!==e.prop("id")?(t.preventDefault(),n=e.prop("id"),r=function(t){return function(){var i;return i=t.viewMap[n],t.renderSubView(i,e)}}(this),"moderate"===n?(i=function(t,e){return e.xhr.response.length>0?jQuery("body").append(e.xhr.response):r()},htmx.ajax("GET","/paywall?source=sidebar_"+n+"&feed_id="+this.model.get("id"),{target:"body",swap:"beforeend",handler:i})):("embed"===n&&htmx.ajax("POST","/track",{values:{event_name:"embed_started",mixpanel_version:"v2",properties:{location_button:"Feed"}}}),r())):void 0)},r.prototype.closeSubView=function(){return this.subView=null},r.prototype.closeSubViewSlide=function(){if($(".slide-menu-item").removeClass("active"),this.subView)return this.subView.close()},r.prototype.renderSubView=function(t,e){if((this.subView&&this.subView.$target.prop("id"))!==e.prop("id"))return this.subView&&this.subView.close(),this.subView=new t({feed:this.model,$target:e,sidebarView:this,feedView:this.feed}),this.subView.on("openSourceForm",this.openSourceFormFromSources),this.subView.render()},r.prototype.openSourceFormFromSources=function(t){return this.sourcesView=t,this.openNewSource()},r.prototype.viewMap={design:Juicer.Views.Design,embed:Juicer.Views.Embed,features:Juicer.Views.Features,hub:Juicer.Views.Hub,moderate:Juicer.Views.Moderate,settings:Juicer.Views.Settings,sources:Juicer.Views.Sources,synced:Juicer.Views.Synced},r.prototype.renderFeedNameEdit=function(t){return t.preventDefault(),this.overlay=new Juicer.Views.Overlay({content:this.nameEdit({feed:this.model}),element:this.el,width:"50%"}),this.overlay.render()},r.prototype.updateFeedName=function(t){var e;return t.preventDefault(),e=$(t.target).serializeHash(),this.model.set(e),this.model.save(null,{success:function(t,e){return window.location="/feeds/"+e.slug}})},r.prototype.toggleSlugWarning=function(){return this.$(".slug-warning").toggle()},r.prototype.handleEmbedInfoPopover=function(t){var e;return t.stopPropagation(),Array.from(document.getElementsByClassName("embed-popover")).forEach((function(t){return t.remove()})),e={url:"/tour",type:"PUT",data:$.param({tour:{tour_show_embed_info_block:!1}})},(this.sync||JuicerBackbone.sync).call(this,null,this,e)},r.prototype.handleEmbedLayoutPopover=function(){var t;return t={url:"/tour",type:"PUT",data:$.param({tour:{tour_show_embed_layout:!1}})},(this.sync||JuicerBackbone.sync).call(this,null,this,t)},r.prototype.handlePopoverHide=function(t){var e,i,r;return t.preventDefault(),t.stopPropagation(),e=t.target.dataset.key,r=t.target.parentNode.parentNode,i=r.parentNode,r.remove(),setTimeout((function(){return r.classList.add("hide-popover"),i.appendChild(r)}),200),localStorage.setItem("hide"+e+"Popover",!0)},r}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Slider=function(i){function r(){return this.posterImageHandler=t(this.posterImageHandler,this),this.imageHandler=t(this.imageHandler,this),this.setFeedItemHeight=t(this.setFeedItemHeight,this),this.beforeChange=t(this.beforeChange,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST.feed,r.prototype.initialize=function(t){return this.columns=t.columns,this.interval=t.interval,this.isOnFeedsDashboard=t.isOnFeedsDashboard,this.slidesToShow=this.columns},r.prototype.render=function(){var t;return this.$el.append(this.template({isOnFeedsDashboard:this.isOnFeedsDashboard,feed:this.model})),this.$(".j-image, .j-image img, li.words, .slick-track").css({height:this.model.height()}),this.$el.slick(this.sliderSettings()),this.$el.on("beforeChange",this.beforeChange),this.$el.on("afterChange",(t=this,function(){return t.trigger("slide")})),window.imagesLoaded(this.$el,this.setFeedItemHeight),this.$el.hasClass("j-ie")&&this.setBackgroundImages(),jQuery(window).on("resize",_u.debounce(function(t){return function(){return t.setFeedItemHeight()}}(this),300)),this},r.prototype.beforeChange=function(t,e,i,r){if(0===r&&this.model.pollingAllowed())return this.model.fetchNewPosts(!1)},r.prototype.sliderSettings=function(){return jQuery.extend(this.sliderDefaults(),{responsive:this.breakpoints()})},r.prototype.breakpoints=function(){return _u.map(this.breakpointArray,(t=this,function(e){return{breakpoint:e[0],settings:{slidesToShow:_u.min([e[1],t.slidesToShow]),slidesToScroll:_u.min([e[1],t.slidesToShow])}}}));var t},r.prototype.breakpointArray=[[1700,6],[1450,5],[1024,4],[960,3],[786,2],[480,1]],r.prototype.sliderDefaults=function(){return{slidesToShow:this.slidesToShow,autoplay:0!==this.interval,autoplaySpeed:this.interval,slidesToScroll:this.slidesToShow,slide:"li",
adaptiveHeight:0===!this.$("a.j-images").length,cssEase:"ease",pauseOnHover:!0}},r.prototype.setBackgroundImages=function(){return _u.each(this.$("[data-image]"),(function(t){var e;return(e=jQuery(t)).css("background-image","url('"+e.data("image")+"')")}))},r.prototype.setFeedItemHeight=function(t){return _u.each(this.$(".j-image img"),(function(t){if(t.width>t.height)return jQuery(t).addClass("j-landscape")})),this.$(".j-image img, li.words, .slick-track").css({height:this.model.height()}),!this.model.get("lazy_load")&&(null!=t&&(_u.each(t.images,(e=this,function(t){var i;if(!t.isLoaded)return(i=$(t.img)).parents(".j-poster").length>0?e.posterImageHandler({target:i,feed:e.model,theme:"slider"}):e.imageHandler({target:i,feed:e.model,theme:"slider",testRefreshedImages:!0})})),$(".words > .j-text").each((function(){return $(this).css("display","none"),$(this).height(),$(this).css("display","")}))));var e},r.prototype.imageHandler=function(t){return new Juicer.Views.ImageHandler(t)},r.prototype.posterImageHandler=function(t){return new Juicer.Views.PosterImageHandler(t)},r.prototype.stop=function(){return this.$el.slick("stop")},r.prototype.play=function(){return this.$el.slick("play")},r}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.SourceForm=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.template=JST.source_form,i.prototype.pleaseWait=JST.please_wait,i.prototype.sourceUnavailableForSmallPlan=JST["sources/source_unavailable_for_small_plan"],i.prototype.initialize=function(t){var e;return this.feed=t.feed,(new Juicer.Models.Plan).fetch({success:(e=this,function(t){return e.plan=t,e.currentPlanName=t.get("plan"),e.isTrial=t.get("trial")})}),this.socialAccounts=t.socialAccounts?t.socialAccounts:this.feed.get("social_accounts"),this.rendered=!1,this.submitting=!1,this.isLoading=!0},i.prototype.events=function(){return{'input #source_term[data-filter_invalid_instagram_hashtag_characters="true"]':"filterInvalidInstagramHashtagCharacters","click .add-a-hashtag li":"openHashtag",'click .js-source[data-term="hashtag"]':"openHashtag",'click .js-source:not([data-term="hashtag"])':"handleOverlay","submit .source-form":"createSource","click .source-type":"redrawOverlay","click a.social-account":"setOverlayStorage","click .search-result":"submitSearchResult"}},i.prototype.filterInvalidInstagramHashtagCharacters=function(){var t,e,i,r,n;if(r=(i=(t=$('#source_term[data-filter_invalid_instagram_hashtag_characters="true"]'))[0]).selectionStart,e=/[# \/]/gi,n=t.val(),e.test(n))return t.val(n.replace(e,"")),r--,i.setSelectionRange(r,r)},i.prototype.handleOverlay=function(t,e){var i,r;return null==e&&(e="username"),(i=$(t.target)).hasClass("j-social-icon")||(i=i.parents(".j-social-icon")),r=i.data("type"),window.mixpanel&&mixpanel.track("ui-action",{action:"social-icon-clicked",source:r,trial:juicerData.user.trial}),htmx.ajax("POST","/track",{values:{event_name:"source_selected",properties:{source_name:r}}}),juicerUtil.doesPlanContainPlatform(juicerData.user.plan,r)?this.openOverlay({type:e,source:r}):(alert("Sorry, please upgrade to a paid plan to create a "+r+" source."),!1)},i.prototype.openOverlay=function(t){return this.type=t.type,this.source=t.source,("Twitter"===this.source||"LinkedIn"===this.source||"Hashtag"===this.source&&this.feed&&this.feed.get("free_hashtags_disabled"))&&"small"===this.currentPlanName&&!1===this.isTrial?htmx.ajax("GET","/paywall?source=add_"+this.source.toLowerCase()+"_source",{target:"body",swap:"beforeend"}):(this.model=new Juicer.Models.Source({source:this.source,term_type:this.type}),this.renderOverlay())},i.prototype.openHashtag=function(t){return this.handleOverlay(t,"hashtag")},i.prototype.drawTemplate=function(){return this.template({source:this.model,feed:this.feed,plan:this.plan,type:this.type,results:this.results,socialAccounts:this.socialAccounts,isLoading:this.isLoading})},i.prototype.renderOverlay=function(){var t;if(this.overlay=new Juicer.Views.Overlay({content:this.drawTemplate(),element:this.el,width:"50%",close:!0}),this.overlay.render(),this.resultsNeedFetching()?(this.fetchResults(this.type),this.isLoading=!1):this.instagramHashtagStatusNeedsFetching()&&(this.fetchInstagramHashtagStatus(),this.isLoading=!1),t=htmx.find(".load-form-async"))return htmx.process(".new-source-container"),htmx.trigger(t,"click"),jQuery(".new-source-container").addClass("jcr-p-0"),jQuery(".new-source-container").parents(".j-overlay-content").addClass("jcr-w-[800px] jcr-rounded-xl"),jQuery(".new-source-container").parents(".j-overlay-content").find(".j-close").remove()},i.prototype.resultsNeedFetching=function(){var t;return t=this.socialAccounts.socialAccount("facebook"),"Facebook"===this.source&&t&&_u.contains(["username","groups","reviews"],this.type)&&this.rendered!==this.type},i.prototype.redrawOverlay=function(t){return t.preventDefault(),this.type=$(t.target).data("type"),"hashtag"===this.type&&"small"===this.currentPlanName&&!1===this.isTrial&&this.feed.get("free_hashtags_disabled")?htmx.ajax("GET","/paywall?source=add_hashtag_source",{target:"body",swap:"beforeend"}):(this.overlay.removeView(),this.renderOverlay())},i.prototype.fetchResults=function(t){return null==t&&(t="pages"),this.results=new Juicer.Collections.FacebookResults({type:t}),this.results.fetch({success:(e=this,function(){return e.rendered=e.type,e.renderOverlay()}),error:function(t){return function(){if(t.results.reset(),t.rendered=t.type,t.renderOverlay(),confirm("Something went wrong. Hit okay to go to the social accounts page and reset your Facebook token."))return window.location="/social-accounts"}}(this)});var e},i.prototype.instagramHashtagStatusNeedsFetching=function(){return"Instagram"===this.source&&"hashtag"===this.type&&"hashtag"!==this.rendered},i.prototype.setMissingInstagramBusinessAccounts=function(){return this.socialAccounts.findAllWithProvider("facebook").forEach((function(t){return t.set({instagramBusinessAccounts:[]})}))},i.prototype.fetchInstagramHashtagStatus=function(){var t;if(this.socialAccounts.socialAccount("facebook"))return this.results=new Juicer.Collections.InstagramBusinessAccounts,this.results.fetch({success:(t=this,function(e){return 0===e.length&&t.setMissingInstagramBusinessAccounts(),t.rendered="hashtag",t.renderOverlay()}),error:function(t){return function(){return t.setMissingInstagramBusinessAccounts(),t.rendered="hashtag",t.renderOverlay()}}(this)})},i.prototype.createSource=function(t){var e,i;if(t.preventDefault(),!this.submitting)return this.submitting=!0,(e=$(t.target)).find("input[type=submit]").hide(),e.append("<div class='j-loading'>Loading...</div>"),this.timeout=setTimeout((i=this,function(){return e.append(i.pleaseWait())}),5e3),e.find("ul.errors").remove(),window.hj&&window.hj("event","source_creation_initated"),this.submitSource(e.serializeHash())},i.prototype.submitSource=function(t){return this.model.set(t),this.model.save(null,{success:(e=this,function(t,i){if(e.submitting=!1,e.feedObject().set(i,{parse:!0}),e.feed.trigger("action"),e.timeout&&window.clearInterval(e.timeout),e.trigger("create",e.feed),juicerUtil.showFlashMessage(i.juicer_flash_message),"htmx"===e.feed.get("version"))return window.juicerUtil.updateSidebarSourcesMenu()}),error:function(t){return function(e,i){return t.submitting=!1,t.timeout&&window.clearInterval(t.timeout),new Juicer.Views.Errors({el:t.$("form"),errors:i,source:Juicer.Constants.PROVIDER_TO_SOURCE_MAP[t.model.findProvider()]||t.source})}}(this)});var e},i.prototype.feedObject=function(){return this.feed||(this.feed=new Juicer.Models.Feed)},i.prototype.submitSearchResult=function(t){var e;return t.preventDefault(),e=$(t.target),this.$(".result-term").val(e.data("id")),this.$(".result-name").val(e.data("name")),e.parents("form").trigger("submit")},i.prototype.setOverlayStorage=function(t){return t.preventDefault(),(new Juicer.Views.OverlayReopener).set({type:this.type,source:this.source}),window.location=jQuery(t.target).attr("href")},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,i){function r(){this.constructor=t}for(var n in i)e.call(i,n)&&(t[n]=i[n]);return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t},e={}.hasOwnProperty;Juicer.Views.UserAccount=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.initialize=function(){return this.toggleDigest()},i.prototype.events={"change input[type=checkbox]":"toggleDigest"},i.prototype.toggleDigest=function(){var t,e;return e=this.$("#user_digest"),t=this.$(".digest-label"),this.$("input[type=checkbox]").is(":checked")?(e.removeAttr("disabled"),t.removeClass("disabled")):(e.attr("disabled","disabled"),t.addClass("disabled"),e.val("Never"))},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;Juicer.Views.Widget=function(i){function r(){return this.addPost=t(this.addPost,this),this.showNextPost=t(this.showNextPost,this),this.setPosts=t(this.setPosts,this),r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.template=JST.widget,r.prototype.card=JST["partials/_widget_card"],r.prototype.referral=JST["partials/_referral"],r.prototype.customCss=JST["partials/_custom_styles"],r.prototype.initialize=function(t){return this.interval=t.interval,this.isOnFeedsDashboard=t.isOnFeedsDashboard,this.index=0,this.setPosts(),this.render(),5e3!==this.model.get("interval")&&5e3===this.interval&&(this.interval=this.model.get("interval")),0===this.interval&&(this.interval=5e7),window.juicerWidget=this,this.id=setInterval(this.showNextPost,this.interval)},r.prototype.setPosts=function(){return this.posts=this.model.get("posts").models},r.prototype.render=function(){return this.$el.append(this.template({model:this.model,first:this.posts[this.index],isOnFeedsDashboard:this.isOnFeedsDashboard,second:this.posts[this.index+1]})),this.container=this.$(".flip-container"),this.handleReferral(),this.handleBrokenImages(),this.$el.append(this.customCss({feed:this.model}))},r.prototype.handleBrokenImages=function(){return new Juicer.Views.BrokenImage({el:this.el,feed:this.model})},r.prototype.showNextPost=function(){if(this.container.toggleClass("flip"),setTimeout(this.addPost,600),this.index++,this.index>=this.posts.length-1)return this.model.pollingAllowed()&&this.model.fetchNewPosts(!1),this.index=-1},r.prototype.addPost=function(){return this.element().html(this.card({isOnFeedsDashboard:this.isOnFeedsDashboard,post:this.posts[this.index+1],truncate:this.truncate})),this.handleBrokenImages()},r.prototype.element=function(){return this.container.hasClass("flip")?this.$(".front"):this.$(".back")},r.prototype.other=function(){return this.element().siblings()},r.prototype.handleReferral=function(){if(this.model.paid()||this.isOnFeedsDashboard||this.$el.find("h1.referral").length>0||this.$el.append(this.referral({feed:this.model})),this.model.paid())return this.$el.find("h1.referral").remove()},r.prototype.close=function(){return null!=this.id&&window.clearInterval(this.id),this.$el.empty().off(),this.stopListening(),this},r}(JuicerBackbone.View)}.call(this),Juicer.Constants={},Juicer.Constants.API_ROOT="//www.juicer.io",(navigator.userAgent.match(/MSIE 9/)||navigator.userAgent.match(/MSIE 8/)||"file:"===window.location.protocol)&&(Juicer.Constants.API_ROOT="https:"+Juicer.Constants.API_ROOT),Juicer.Constants.BASE_URL="https://www.juicer.io",Juicer.Constants.FACEBOOK_APP_ID="731223346944897",Juicer.Constants.FEED_CLASSES=["modern","night","polaroid","image-grid","widget","slider","hip","living-wall"],Juicer.Constants.HELP_CENTER_URL="http://help.juicer.io/hc/en-us",Juicer.Constants.MINIMUM_ENTERPRISE_FEE_IN_DOLLARS=199,Juicer.Constants.PAID_ONLY_PLATFORMS=[],Juicer.Constants.PLATFORMS_WITHOUT_LIKES=["LinkedIn","Instagram","Blog","Giphy","YouTube"],Juicer.Constants.PAID_PLANS=["ad_free","medium","large","enterprise","custom","archive"],Juicer.Constants.SOURCES_REQUIRING_OAUTH_TOKENS=["Facebook","Instagram","Slack","TikTok","Twitter","TwitterAPIv2","TwitterV3"],Juicer.Constants.SOURCES_WHERE_POSTS_CAN_BE_ADDED_MANUALLY=["Facebook","LinkedIn","Soundcloud","Tumblr","Twitter","Vimeo","YouTube"],Juicer.Constants.SOURCE_TO_PROVIDER_MAP={Facebook:"facebook",Instagram:"instagram_basic_display",Slack:"slack",Tumblr:"tumblr",TwitterAPIv2:"twitter",TwitterV3:"twitter",TikTok:"tiktok"},Juicer.Constants.PROVIDER_TO_SOURCE_MAP={facebook:"Facebook",instagram_basic_display:"Instagram",slack:"Slack",tumblr:"Tumblr",twitter:"Twitter",tiktok:"TikTok"},Juicer.Constants.PROVIDERS_WITH_MULTIPLE_SOCIAL_ACCOUNTS=["instagram_basic_display","instagramreels","tiktok"],Juicer.Constants.STRIPE_PUBLISHABLE_KEY="pk_live_O4R3D1OryggCLZEsquEjTNBW",Juicer.Constants.SVG_ICONS={externalLink:'<svg class="external-link" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M432 320h-32a16 16 0 00-16 16v112H64V128h144a16 16 0 0016-16V80a16 16 0 00-16-16H48a48 48 0 00-48 48v352a48 48 0 0048 48h352a48 48 0 0048-48V336a16 16 0 00-16-16zM488 0H360c-21 0-32 26-17 41l36 36-244 243a24 24 0 000 34l23 23a24 24 0 0034 0l243-244 36 36c15 15 41 5 41-17V24a24 24 0 00-24-24z"/></svg>',play:'<svg class="" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1366 768"><path d="M683 79a303 303 0 01281 186 303 303 0 01-65 335 304 304 0 01-521-216 303 303 0 01186-281c38-16 78-24 119-24m0-40a345 345 0 100 690 345 345 0 000-690z"/><path d="M592 557c-13 0-15-15-15-21V232c0-6 2-21 14-21 5 0 10 2 15 5l263 152c8 4 13 10 13 16s-5 12-13 16L606 552c-5 3-10 5-14 5z"/><path d="M592 222c1 0 4 0 9 3l263 152c6 3 8 7 8 7s-2 4-8 8L601 544c-5 3-8 3-9 3l-2-1c-1-1-3-4-3-10V232c0-5 2-9 3-10h2m0-20c-15 0-25 11-25 30v304c0 20 10 31 24 31 6 0 13-2 20-6l263-152c24-13 24-36 0-50L611 208c-7-4-14-6-19-6z"/></svg>'},Juicer.Constants.PAGE_URL_EMBED_CODE_ORIGIN="embed-code",Juicer.Constants.PAGE_URL_DASHBOARD_ORIGIN="dashboard",Juicer.Constants.CRAVLER_USER_AGENTS=["200pleasebot","360spider","abot","addthis","adldxbot","admantx","adsbot-google","adstxtcrawler","advbot","ahrefsbot","alexa","anderspink","apache-httpclient","apachebench","apis-google","appengine-google","applebot","archive.org_bot","archiveteam archivebot","ask jeeves","asynchttpclient","awe.sm","baidu","barkrowler","bdcbot","bingbot","bingpreview","bitlybot","blekkobot","blexbot","bot@linkfluence.net","bubing","bufferbot","buibui-checkbot","butterfly","buzzbot","buzztalk","catchbot","check_http","chrome-lighthouse","cipacrawler","cliqzbot","cloudflare","cmradar/0.1","coldfusion","commoncrawl","comodo ssl checker","comodo-webinspector-crawler","copypants","crowsnest","curabot","curl","dap/nethttp","datafeedwatch","datagnionbot","datanyze","daumoa","developers.google.com/+/web/snippet/","diffbot","digitalpersona fingerprint software","domain re-animator bot","domainsbot","domaintunocrawler","dotbot","duckduckbot","elb-healthchecker","embedly","eoaagent","everyonesocialbot","evrinid","exabot","exaleadcloudview","ez publish","facebookexternalhit","facebot","feedburner","feedfetcher-google","findxbot","flipboardproxy","friendfeedbot","fyrebot","garlik","genieo","germcrawler","getprismatic.com","gigabot","gimme60bot","gimmeusabot","go http package","go-http-client","google page speed insights","google web preview","google-site-verification","google-structured-data-testing-tool","google-structureddatatestingtool","google-xrawler","googlebot","googleimageproxy","googlestackdrivermonitoring-uptimechecks","grapeshotcrawler","gravitybot","hatena::bookmark","heritrix","https://developers.google.com/+/web/snippet","httrack","hubspot","ia_archiver","icoreservice","idmarch","implisensebot","inagist","insieve","insitesbot","instapaper","istellabot","jaunt","jetslide","jobseeker","jooble","js-kit","kemvibot","kimengi","knows.is","kojitsubot","komodiabot","kraken","laconica","lijit crawler","linkdexbot","linkedinbot","linkscrawler","linode","lipperhey","livelapbot","loadtimebot","longurl","ltx71","lumibot","magpie-crawler","mail.ru_bot","mappydata","mastodon","mauibot","meanpathbot","mediapartners-google","megaindex.ru","memorybot","metauri","mfe_expand","mir web crawler","mj12bot","mojeekbot","ms search 6.0 robot","msnbot-media","msnbot","nerdybot","netcraft","netstate","netvibes","netzcheckbot","newrelicmonitor","newrelicpinger","newsme","niki-bot","ning","nutch","openhosebot","orangebot","paessler","pagesinventory","panopta","paperlibot","peerindex","percolatecrawler","perfectmarketkwtbot","phantomjs","pingdom","pinterest","plukkie","pr-cy.ru","privacyawarebot","proximic","psbot-page","pu_in","publiclibraryarchive.org","pycurl","python-httplib2","python-requests","python-urllib","queryseeker","quick-crawler","quicklook","re-animator","readability","rebelmouse","redditbot","relateiq","riddler","rogerbot","rssmicro","scouturlmonitor","scrapy","screaming frog seo spider","searchmetricsbot","semanticbot","semrushbot","seo-audit","seobilitybot","seodiver","seokicks","seznambot","shopwiki","shortlinktranslate","showyoubot","siege","sistrix","sitecheck","siteuptime","skypeuripreview","slack-imgproxy","slack-linkexpanding","slack","slackbot","slurp","smtbot","snapchat","socialrank","sogou","spbot","spinn3r","sputnikbot","squider","statuscake","swiftbot","tangibleebot","teeraid","test certificate info","the knowledge ai","tineye","traackr","trendictionbot","trendsmap","turnitinbot","tweetedtimes","tweetmemebot","twikle","twitjobsearch","twitmunin","twitterbot","twurly","typhoeus","umbot","unwindfetch","updown","uptimerobot","vagabondo","vb project","vigil","vkshare","voilabot","vrcrawler","wasalive-bot","watchsumo","wbsearchbot","webceo","webscout","wesee","wget","whatsapp","wikido","woorank","wordpress","woriobot","wormly","wotbox","xenu link sleuth","xing-contenttabreceiver","xovibot","yacybot","yahoo-ad-monitoring","yandex","yanga","yeti","yourls","zabbix","zelist.ro","zibb","zitebot","zoombot","zoominfobot","zyborg","eventmachine httpclient","go 1.1 package http","htmlparser","http_request2","httpclient","jakarta commons","java","libwww-perl","lwp-trivial","ruby"];
(function(e){var c=false;var d="";var a="Do you really want to cancel the payment?";var b=function(g){if(typeof g.data==="string"){var f={};try{f=JSON.parse(g.data)}catch(g){}if(f.payrexx){jQuery.each(f.payrexx,function(h,i){switch(h){case"transaction":if(typeof i==="object"){e.fn.payrexxModal.transaction=i}break;case"closeModal":c=true;if(i){d=i}e.fn.payrexxModal.modalInstance.modalPx("hide");break;case"closeConfirmation":if(i){a=i}break}})}}};window.addEventListener("message",b,false);e.fn.payrexxModal=function(f){var g=e.extend({},e.fn.payrexxModal.defaults,f);e("head").append(e('<style type="text/css">html.payrexx-modal-open, html.payrexx-modal-open > body {\n    overflow: hidden;\n}\n\n@media (max-width: 1024px) {\n    html.payrexx-modal-open > body > *:not(#payrexx-modal):not(.px-modal-backdrop) {\n        display: none;\n    }\n}\n\n#payrexx-modal #payrexx-modal-iframe {\n    display: block;\n    visibility: hidden;\n    width: 100%;\n    border: 0;\n}\n\n#payrexx-modal #payrexx-modal-footer {\n    float: left;\n    width: 100%;\n    padding: 0 10px;\n    margin-top: 15px;\n    text-align: center;\n    font-size: 15px;\n    color: #FFF;\n}\n\n#payrexx-modal #payrexx-modal-footer img {\n    height: 15px !important\n}\n\n#payrexx-modal #payrexx-modal-footer .ssl {\n    float: left\n}\n\n#payrexx-modal #payrexx-modal-footer .copyright {\n    float: right\n}\n\n#payrexx-modal html {\n    font-family: sans-serif;\n    -ms-text-size-adjust: 100%;\n    -webkit-text-size-adjust: 100%\n}\n\n#payrexx-modal article, #payrexx-modal aside, #payrexx-modal details, #payrexx-modal figcaption, #payrexx-modal figure, #payrexx-modal footer, #payrexx-modal header, #payrexx-modal hgroup, #payrexx-modal main, #payrexx-modal nav, #payrexx-modal section, #payrexx-modal summary {\n    display: block\n}\n\n#payrexx-modal audio, #payrexx-modal canvas, #payrexx-modal progress, #payrexx-modal video {\n    display: inline-block;\n    vertical-align: baseline\n}\n\n#payrexx-modal audio:not([controls]) {\n    display: none;\n    height: 0\n}\n\n#payrexx-modal [hidden], #payrexx-modal template {\n    display: none\n}\n\n#payrexx-modal a {\n    background: 0;\n    color: #428bca;\n    text-decoration: none\n}\n\n#payrexx-modal a:active, #payrexx-modal a:hover {\n    outline: 0\n}\n\n#payrexx-modal abbr[title] {\n    border-bottom: 1px dotted\n}\n\n#payrexx-modal b, #payrexx-modal optgroup, #payrexx-modal strong {\n    font-weight: 700\n}\n\n#payrexx-modal dfn {\n    font-style: italic\n}\n\n#payrexx-modal h1 {\n    font-size: 2em;\n    margin: .67em 0\n}\n\n#payrexx-modal mark {\n    background: #ff0;\n    color: #000\n}\n\n#payrexx-modal .px-btn, #payrexx-modal .px-btn-danger.active, #payrexx-modal .px-btn-danger:active, #payrexx-modal .px-btn-default.active, #payrexx-modal .px-btn-default:active, #payrexx-modal .px-btn-info.active, #payrexx-modal .px-btn-info:active, #payrexx-modal .px-btn-primary.active, #payrexx-modal .px-btn-primary:active, #payrexx-modal .px-btn-success.active, #payrexx-modal .px-btn-success:active, #payrexx-modal .px-btn-warning.active, #payrexx-modal .px-btn-warning:active, #payrexx-modal .open > .px-dropdown-toggle.px-btn-danger, #payrexx-modal .open > .px-dropdown-toggle.px-btn-default, #payrexx-modal .open > .px-dropdown-toggle.px-btn-info, #payrexx-modal .open > .px-dropdown-toggle.px-btn-primary, #payrexx-modal .open > .px-dropdown-toggle.px-btn-success, #payrexx-modal .open > .px-dropdown-toggle.px-btn-warning {\n    background-image: none\n}\n\n#payrexx-modal small {\n    font-size: 80%\n}\n\n#payrexx-modal sub, #payrexx-modal sup {\n    font-size: 75%;\n    line-height: 0;\n    position: relative;\n    vertical-align: baseline\n}\n\n#payrexx-modal sup {\n    top: -.5em\n}\n\n#payrexx-modal sub {\n    bottom: -.25em\n}\n\n#payrexx-modal img {\n    border: 0;\n    vertical-align: middle\n}\n\n#payrexx-modal svg:not(:root) {\n    overflow: hidden\n}\n\n#payrexx-modal hr {\n    -moz-box-sizing: content-box;\n    box-sizing: content-box;\n    height: 0\n}\n\n#payrexx-modal pre, #payrexx-modal textarea {\n    overflow: auto\n}\n\n#payrexx-modal code, #payrexx-modal kbd, #payrexx-modal pre, #payrexx-modal samp {\n    font-family: monospace, monospace;\n    font-size: 1em\n}\n\n#payrexx-modal button, #payrexx-modal input, #payrexx-modal optgroup, #payrexx-modal select, #payrexx-modal textarea {\n    color: inherit;\n    font: inherit;\n    margin: 0\n}\n\n#payrexx-modal *, #payrexx-modal body {\n    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif\n}\n\n#payrexx-modal button {\n    width: auto;\n    overflow: visible\n}\n\n#payrexx-modal button, #payrexx-modal select {\n    text-transform: none\n}\n\n#payrexx-modal button, #payrexx-modal html input[type=button], #payrexx-modal input[type=reset], #payrexx-modal input[type=submit] {\n    -webkit-appearance: button;\n    cursor: pointer\n}\n\n#payrexx-modal button[disabled], #payrexx-modal html input[disabled] {\n    cursor: default\n}\n\n#payrexx-modal button::-moz-focus-inner, #payrexx-modal input::-moz-focus-inner {\n    border: 0;\n    padding: 0\n}\n\n#payrexx-modal input[type=checkbox], #payrexx-modal input[type=radio] {\n    box-sizing: border-box;\n    padding: 0\n}\n\n#payrexx-modal input[type=number]::-webkit-inner-spin-button, #payrexx-modal input[type=number]::-webkit-outer-spin-button {\n    height: auto\n}\n\n#payrexx-modal input[type=search] {\n    -webkit-appearance: textfield;\n    -moz-box-sizing: content-box;\n    -webkit-box-sizing: content-box;\n    box-sizing: content-box\n}\n\n#payrexx-modal input[type=search]::-webkit-search-cancel-button, #payrexx-modal input[type=search]::-webkit-search-decoration {\n    -webkit-appearance: none\n}\n\n#payrexx-modal fieldset {\n    border: 1px solid silver;\n    margin: 0 2px;\n    padding: .35em .625em .75em\n}\n\n#payrexx-modal legend {\n    border: 0;\n    padding: 0\n}\n\n#payrexx-modal table {\n    border-collapse: collapse;\n    border-spacing: 0\n}\n\n#payrexx-modal td, #payrexx-modal th {\n    padding: 0\n}\n\n#payrexx-modal *, #payrexx-modal :after, #payrexx-modal :before {\n    -webkit-box-sizing: border-box;\n    -moz-box-sizing: border-box;\n    box-sizing: border-box\n}\n\n#payrexx-modal html {\n    font-size: 10px;\n    -webkit-tap-highlight-color: transparent\n}\n\n#payrexx-modal body {\n    margin: 0;\n    font-size: 14px;\n    line-height: 1.42857143;\n    color: #333;\n    background-color: #fff\n}\n\n#payrexx-modal button, #payrexx-modal input, #payrexx-modal select, #payrexx-modal textarea {\n    font-family: inherit;\n    font-size: inherit;\n    line-height: inherit\n}\n\n#payrexx-modal a:focus, #payrexx-modal a:hover {\n    color: #2a6496;\n    text-decoration: underline\n}\n\n#payrexx-modal a:focus {\n    outline: dotted thin;\n    outline: -webkit-focus-ring-color auto 5px;\n    outline-offset: -2px\n}\n\n#payrexx-modal figure {\n    margin: 0\n}\n\n#payrexx-modal .img-responsive {\n    display: block;\n    max-width: 100%;\n    height: auto\n}\n\n#payrexx-modal .img-rounded {\n    border-radius: 6px\n}\n\n#payrexx-modal .img-thumbnail {\n    padding: 4px;\n    line-height: 1.42857143;\n    background-color: #fff;\n    border: 1px solid #ddd;\n    border-radius: 4px;\n    -webkit-transition: all .2s ease-in-out;\n    -o-transition: all .2s ease-in-out;\n    transition: all .2s ease-in-out;\n    display: inline-block;\n    max-width: 100%;\n    height: auto\n}\n\n#payrexx-modal .img-circle {\n    border-radius: 50%\n}\n\n#payrexx-modal hr {\n    margin-top: 20px;\n    margin-bottom: 20px;\n    border: 0;\n    border-top: 1px solid #eee\n}\n\n#payrexx-modal .sr-only {\n    position: absolute;\n    width: 1px;\n    height: 1px;\n    margin: -1px;\n    padding: 0;\n    overflow: hidden;\n    clip: rect(0, 0, 0, 0);\n    border: 0\n}\n\n#payrexx-modal .sr-only-focusable:active, #payrexx-modal .sr-only-focusable:focus {\n    position: static;\n    width: auto;\n    height: auto;\n    margin: 0;\n    overflow: visible;\n    clip: auto\n}\n#payrexx-modal .fade {\n    opacity: 0;\n    -webkit-transition: opacity .15s linear;\n    -o-transition: opacity .15s linear;\n    transition: opacity .15s linear\n}\n\n#payrexx-modal .fade.in {\n    opacity: 1\n}\n\n#payrexx-modal .collapse {\n    display: none\n}\n\n#payrexx-modal .collapse.in {\n    display: block\n}\n\n#payrexx-modal tr.collapse.in {\n    display: table-row\n}\n\n#payrexx-modal tbody.collapse.in {\n    display: table-row-group\n}\n\n#payrexx-modal .collapsing {\n    position: relative;\n    height: 0;\n    overflow: hidden;\n    -webkit-transition: height .35s ease;\n    -o-transition: height .35s ease;\n    transition: height .35s ease\n}\n\n#payrexx-modal .close {\n    float: right;\n    font-size: 21px;\n    font-weight: 700;\n    line-height: 1;\n    color: #000;\n    text-shadow: 0 1px 0 #fff;\n    opacity: .2;\n    filter: alpha(opacity=20)\n}\n\n#payrexx-modal .close:focus, #payrexx-modal .close:hover {\n    color: #000;\n    text-decoration: none;\n    cursor: pointer;\n    opacity: .5;\n    filter: alpha(opacity=50)\n}\n\n#payrexx-modal button.close {\n    padding: 0;\n    cursor: pointer;\n    background: 0;\n    border: 0;\n    -webkit-appearance: none\n}\n\n#payrexx-modal .px-modal-open {\n    overflow: hidden\n}\n\n#payrexx-modal.px-modal {\n    display: none;\n    overflow: hidden;\n    position: fixed;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n    z-index: 9050;\n    -webkit-overflow-scrolling: touch;\n    outline: 0\n}\n\n#payrexx-modal.px-modal.fade .px-modal-dialog {\n    -webkit-transform: translate3d(0, -25%, 0);\n    transform: translate3d(0, -25%, 0);\n    -webkit-transition: -webkit-transform .3s ease-out;\n    -moz-transition: -moz-transform .3s ease-out;\n    -o-transition: -o-transform .3s ease-out;\n    transition: transform .3s ease-out\n}\n\n#payrexx-modal.px-modal.in .px-modal-dialog {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0)\n}\n\n#payrexx-modal .px-modal-open .px-modal {\n    overflow-x: hidden;\n    overflow-y: auto\n}\n\n#payrexx-modal .px-modal-dialog {\n    position: relative;\n    width: auto;\n    margin: 10px;\n    z-index: 9050\n}\n\n#payrexx-modal .px-modal-content {\n    position: relative;\n    background-color: #fff;\n    border: 1px solid #999;\n    border: 1px solid rgba(0, 0, 0, .2);\n    border-radius: 0;\n    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);\n    box-shadow: 0 3px 9px rgba(0, 0, 0, .5);\n    background-clip: padding-box;\n    outline: 0\n}\n\n.px-modal-backdrop {\n    position: fixed;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n    z-index: 9000;\n    background-color: rgba(0, 0, 0, .498039)\n}\n\n.px-modal-backdrop.fade {\n    opacity: 0;\n    filter: alpha(opacity=0)\n}\n\n.px-modal-backdrop.in {\n    opacity: 1;\n    filter: alpha(opacity=100);\n    background-image: radial-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .74902))\n}\n\n#payrexx-modal .px-modal-header {\n    padding: 10px 10px 18px;\n    border-bottom: 0;\n    min-height: 16.43px\n}\n\n#payrexx-modal .px-modal-header .close {\n    margin-top: -2px\n}\n\n#payrexx-modal .px-modal-body {\n    float: none;\n    position: relative;\n    padding: 0;\n    background: url(https://media.payrexx.com/modal/v1/iframe-spinner.gif) center center no-repeat\n}\n\n#payrexx-modal .px-modal-scrollbar-measure {\n    position: absolute;\n    top: -9999px;\n    width: 50px;\n    height: 50px;\n    overflow: scroll\n}\n\n@media (min-width: 820px) {\n    #payrexx-modal .px-modal-dialog {\n        width: 800px;\n        margin: 30px auto\n    }\n\n    #payrexx-modal .px-modal-content {\n        -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);\n        box-shadow: 0 5px 15px rgba(0, 0, 0, .5)\n    }\n\n    #payrexx-modal .px-modal-sm {\n        width: 300px\n    }\n}\n\n@media (min-width: 992px) {\n    #payrexx-modal .px-modal-lg {\n        width: 900px\n    }\n}\n\n#payrexx-modal .clearfix:after, #payrexx-modal .clearfix:before {\n    content: " ";\n    display: table\n}\n\n#payrexx-modal .clearfix:after {\n    clear: both\n}\n\n#payrexx-modal .center-block {\n    display: block;\n    margin-left: auto;\n    margin-right: auto\n}\n\n#payrexx-modal .pull-right {\n    float: right !important\n}\n\n#payrexx-modal .pull-left {\n    float: left !important\n}\n\n#payrexx-modal .hide {\n    display: none !important\n}\n\n#payrexx-modal .show {\n    display: block !important\n}\n\n#payrexx-modal .invisible {\n    visibility: hidden\n}\n\n#payrexx-modal .text-hide {\n    font: 0/0 a;\n    color: transparent;\n    text-shadow: none;\n    background-color: transparent;\n    border: 0\n}\n\n#payrexx-modal .hidden {\n    display: none !important;\n    visibility: hidden !important\n}\n\n#payrexx-modal .affix {\n    position: fixed;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0)\n}\n\n@media (max-width: 1024px) {\n    #payrexx-modal .px-modal-dialog {\n        width: 100%;\n        height: 100%;\n        margin: 0\n    }\n\n    #payrexx-modal .px-modal-content {\n        height: 100%;\n        border: 0;\n        box-shadow: none;\n        padding-bottom: 70px\n    }\n\n    #payrexx-modal .px-modal-body, #payrexx-modal .payrexx-modal-iframe {\n        height: 100%\n    }\n\n    #payrexx-modal-footer {\n        display: none\n    }\n}</style>'));if("undefined"==typeof jQuery){throw new Error("Bootstrap's JavaScript requires jQuery")}(function(k){var i=function(m,l){this.options=l;this.$body=k(document.body);this.$element=k(m);this.$backdrop=this.isShown=null;this.scrollbarWidth=0;if(this.options.remote){this.$element.find(".px-modal-content").load(this.options.remote,k.proxy(function(){this.$element.trigger("loaded.bs.modal.px")},this))}};i.VERSION="3.2.0";i.DEFAULTS={backdrop:true,keyboard:true,show:true};i.prototype.toggle=function(l){return this.isShown?this.hide():this.show(l)};i.prototype.show=function(n){var l=this;var m=k.Event("show.bs.modal.px",{relatedTarget:n});this.$element.trigger(m);if(this.isShown||m.isDefaultPrevented()){return}this.isShown=true;this.checkScrollbar();this.$body.addClass("px-modal-open");this.setScrollbar();this.escape();this.$element.on("click.dismiss.bs.modal.px",'[data-dismiss="px-modal"]',k.proxy(this.hide,this));this.backdrop(function(){var p=k.support.transition&&l.$element.hasClass("fade");if(!l.$element.parent().length){l.$element.appendTo(l.$body)}l.$element.show().scrollTop(0);if(p){l.$element[0].offsetWidth}l.$element.addClass("in").attr("aria-hidden",false);l.enforceFocus();var o=k.Event("shown.bs.modal.px",{relatedTarget:n});p?l.$element.find(".px-modal-dialog").one("bsTransitionEnd",function(){l.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(300):l.$element.trigger("focus").trigger(o)})};i.prototype.hide=function(l){if(l){l.preventDefault()}l=k.Event("hide.bs.modal.px");this.$element.trigger(l);if(!this.isShown||l.isDefaultPrevented()){return}this.isShown=false;this.$body.removeClass("px-modal-open");this.resetScrollbar();this.escape();k(document).off("focusin.bs.modal.px");this.$element.removeClass("in").attr("aria-hidden",true).off("click.dismiss.bs.modal.px");k.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",k.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal()};i.prototype.enforceFocus=function(){k(document).off("focusin.bs.modal.px").on("focusin.bs.modal.px",k.proxy(function(l){if(this.$element[0]!==l.target&&!this.$element.has(l.target).length){this.$element.trigger("focus")}},this))};i.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on("keyup.dismiss.bs.modal.px",k.proxy(function(l){l.which==27&&this.hide()},this))}else{if(!this.isShown){this.$element.off("keyup.dismiss.bs.modal.px")}}};i.prototype.hideModal=function(){var l=this;this.$element.hide();this.backdrop(function(){l.$element.trigger("hidden.bs.modal.px")})};i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};i.prototype.backdrop=function(p){var o=this;var m=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var l=k.support.transition&&m;this.$backdrop=k('<div class="px-modal-backdrop '+m+'" />').appendTo(this.$body);this.$element.on("click.dismiss.bs.modal.px",k.proxy(function(q){if(q.target!==q.currentTarget){return}this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this)},this));if(l){this.$backdrop[0].offsetWidth}this.$backdrop.addClass("in");if(!p){return}l?this.$backdrop.one("bsTransitionEnd",p).emulateTransitionEnd(150):p()}else{if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var n=function(){o.removeBackdrop();p&&p()};k.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(150):n()}else{if(p){p()}}}};i.prototype.checkScrollbar=function(){if(document.body.clientWidth>=window.innerWidth){return}this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar()};i.prototype.setScrollbar=function(){var l=parseInt((this.$body.css("padding-right")||0),10);if(this.scrollbarWidth){this.$body.css("padding-right",l+this.scrollbarWidth)}};i.prototype.resetScrollbar=function(){this.$body.css("padding-right","")};i.prototype.measureScrollbar=function(){var m=document.createElement("div");m.className="px-modal-scrollbar-measure";this.$body.append(m);var l=m.offsetWidth-m.clientWidth;this.$body[0].removeChild(m);return l};function j(l,m){return this.each(function(){var p=k(this);var o=p.data("bs.modal.px");var n=k.extend({},i.DEFAULTS,p.data(),typeof l=="object"&&l);if(!o){p.data("bs.modal.px",(o=new i(this,n)))}if(typeof l=="string"){o[l](m)}else{if(n.show){o.show(m)}}})}var h=k.fn.modalPx;k.fn.modalPx=j;k.fn.modalPx.Constructor=i;k.fn.modalPx.noConflict=function(){k.fn.modalPx=h;return this};k(document).on("click.bs.modal.data-api.px",'[data-toggle="px-modal"]',function(p){var o=k(this);var m=o.attr("href");var l=k(o.attr("data-target")||(m&&m.replace(/.*(?=#[^\s]+$)/,"")));var n=l.data("bs.modal.px")?"toggle":k.extend({remote:!/#/.test(m)&&m},l.data(),o.data());if(o.is("a")){p.preventDefault()}l.one("show.bs.modal.px",function(q){if(q.isDefaultPrevented()){return}l.one("hidden.bs.modal.px",function(){o.is(":visible")&&o.trigger("focus")})});j.call(l,n,this)})}(jQuery));return this.each(function(){e(this).click(function(j){j.preventDefault();var i=e(this).attr("href");var k=e(this).data("href");if((typeof k!==typeof undefined&&k!==false)){i=k}i+="&appview=1";var h=new Date();e.fn.payrexxModal.modalInstance=e('<div class="px-modal fade" id="payrexx-modal" tabindex="-1" role="dialog" aria-labelledby="payrexx-modal-label" aria-hidden="true"><div class="px-modal-dialog"><div class="px-modal-content nano"><div class="px-modal-header"><button type="button" class="close" data-dismiss="px-modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button></div><div class="px-modal-body nano-content"><iframe id="payrexx-modal-iframe" name="payment-modal-iframe" allow="payment *" src="'+i+'"></iframe></div></div><div id="payrexx-modal-footer"><div class="ssl"><img src="https://media.payrexx.com/modal/v1/lock-icon.png" title="HTTPS Secure" alt="Lock-Icon" /></div><a href="https://www.payrexx.com" target="_blank"><img src="https://media.payrexx.com/modal/v1/logo.png" alt="Payrexx" /></a><div class="copyright">&copy; '+h.getFullYear()+"</div></div></div></div>").on("show.bs.modal.px",function(l){e("html").addClass("payrexx-modal-open");return g.show(l)}).on("shown.bs.modal.px",function(){e("#payrexx-modal-iframe").on("load",function(){if(!window.location.origin){window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}try{var l={origin:window.location.origin,integrationMode:"modal",hideObjects:g.hideObjects};e(this).get(0,1).contentWindow.postMessage(JSON.stringify(l),i);e(this).css("visibility","visible");function n(){if(window.innerWidth<=1024){e("#payrexx-modal-iframe").css("height","100%")}else{var o=window.innerHeight-parseInt(e("#payrexx-modal .px-modal-header").height())-parseInt(e("#payrexx-modal .px-modal-header").css("padding-top"))-parseInt(e("#payrexx-modal .px-modal-header").css("padding-bottom"))-parseInt(e("#payrexx-modal .px-modal-body").css("padding-bottom"))-parseInt(e("#payrexx-modal .px-modal-dialog").css("margin-top"))-parseInt(e("#payrexx-modal-footer").height())-2*parseInt(e("#payrexx-modal-footer").css("margin-top"));if(o>800){o=800}e("#payrexx-modal-iframe").css("height",o+"px")}}e(window).resize(n);n();g.shown()}catch(m){}})}).on("hide.bs.modal.px",function(){if(e.isEmptyObject(e.fn.payrexxModal.transaction)&&!c){var l=confirm(a);if(!l){return false}}g.hide(e.fn.payrexxModal.transaction);if(d){window.location=d}}).on("hidden.bs.modal.px",function(){e(this).remove();g.hidden(e.fn.payrexxModal.transaction);e("html").removeClass("payrexx-modal-open")}).modalPx({backdrop:"static",keyboard:false})})})};e.fn.payrexxModal.modalInstance=null;e.fn.payrexxModal.transaction=new Object();e.fn.payrexxModal.defaults={hideObjects:[],show:function(f){},shown:function(){},hide:function(f){},hidden:function(f){}}})(jQuery);
/**
* jQuery ReadabilityBar plugin
* Version 1.0.5
* Support for readability related buttons like fontscaling and highcontrast
* Has CSS3 Animations and Cookie support
* Remember: 100% = 1em = 16px
* 
* You can call a function after the font is in or decreased:
* after:function( obj ) { }
* the obj contains the following:
*     obj.currSize    ->  the current fontsize, int or float
*     obj.currUnit    ->  the current unit, string
*     obj.currContent ->  the current content, which is in or decreased, string
*     obj.currTask    ->  the current action which has been called, (increaseFont|defaultFont|decreaseFont), string
*     obj.currLvl     ->  the current lvl, an empty string or (max|default|min),
*                         max = maximun zoomlvl arrived
*                         default = default zoom lvl
*                         min = minimum zoom lvl arrived
* 
* *****************************************************
* EDITED BY Nico Lüthi 2017
* 	- added setting useCookie
* 	- fixed plugin for Chrome (set default unit to em fixes it... weird bug)
* 	- removed jQuery.animate in favor of native transition
* 	- added highcontrast-button support
* 	- would have added CSS-animation support highcontrast, BUT https://bugs.webkit.org/show_bug.cgi?id=46041
* 		browser starts lagging and stuttering and doing weird shit. FUCK!
* *****************************************************
*/
(function ($) {
    "use strict";
    $.readabilityBar = function (options) {

        var settings = {
                content               :           'body', // container of the content which should be in/decrased, body is all / string
                defaultSize           :           1, // Stock Fontsize in % / integer or float 
                maxSize               :           1.6, // Maximum Fontsize in % / integer or float 
                minSize               :           0.6, // Minimum Fontsize in % / integer or float 
                stepSize              :           0.1, // steps / integer or float 
                unit                  :           'em', // stock unit is % / string
                highContrastClass	  :			  'highcontrast', //class to set for the highcontrast area / string
                bFontLarge            :           undefined, // Selector from the increase button / string
                bFontDefault          :           undefined, // Selector from stock button / string
                bFontSmall            :           undefined, // Selector from decrease button / string
                bHighContrast		  :			  undefined, // Selector from high constrast button / string
                animate               :           true, // Use Animation? / bool
                animateSpeed          :           500, // Animation Speed (milisec)/ int
                useCookie			  :			  true, // Set Cookie? / bool
                cookieNameFont        :           'readBarfontSize', // Name of the Cookie / string
                cookieNameHighC       :           'readBarhighContrast', // Name of the Cookie / string
                cookiePath            :           '/', // Path of the Cookie, / is the whole domain / string
                cookieLifetime        :           60 // Cookie lifetime in days integer
            },
            opt = $.extend(true, settings, options),
            currentSize = opt.defaultSize,
            currLvl = '',
            version = '1.0.5 Custom',
            newsize;
        
		
		//Read settings from Cookie and set them
		if (opt.useCookie && mycookie(opt.cookieNameFont)) {
            newsize = mycookie(opt.cookieNameFont);
            currentSize = Math.round(parseFloat(newsize, 10) * 100) / 100;
            sizeIT(opt.content, currentSize);
        }
		
		if (opt.useCookie && mycookie(opt.cookieNameHighC)) {
			setContrast(mycookie(opt.cookieNameHighC) === "true");
		}
		
        //Button Events
		if (opt.bFontLarge) {
			$(opt.bFontLarge).click(function(){
				increaseFont();
				return false;
			});
		}
    
        if (opt.bFontDefault) {
			$(opt.bFontDefault).click(function () {
	            defaultFont();
	            return false;
	        });
		}
    
        if (opt.bFontSmall) {
			$(opt.bFontSmall).click(function () {
	            decreaseFont();
	            return false;
	        });
		}
    
		if (opt.bHighContrast) {
			$(opt.bHighContrast).click(function(){
				setContrast(!getContrast());
				return false;
			});
		}
		
		
		//set CSS animation if desired
        if(opt.animate) {
			var cont = $(opt.content);
			var head = $('head');
			//would be needed for every element to also animate his own color but due to the bug(look above) not possible
			//head.append('<style>'+ opt.content + ',' + opt.content + ' * {transition: inherit;}</style>');
			
			var existingTransition = cont.css('transition');
			var transitionString = 'font-size ' + opt.animateSpeed + 'ms ease,' + 
									'background-color ' + opt.animateSpeed + 'ms ease';
									//'color ' + opt.animateSpeed + 'ms ease,' +
									//'text-decoration ' + opt.animateSpeed + 'ms ease';
			
			if (existingTransition && existingTransition.trim().length !== 0 && existingTransition !== 'all 0s ease 0s') {
				cont.css('transition', existingTransition + ', ' + transitionString);
			} else {
				cont.css('transition', transitionString);
			}
		}
    
        function increaseFont() {
            currentSize = currentSize + opt.stepSize;
            if (currentSize >= opt.maxSize) {
                currentSize = opt.maxSize;
                currLvl = 'max';
            } else {
                currLvl = '';
            }
            sizeIT(opt.content, currentSize);
            if (opt.useCookie) {
				mycookie(opt.cookieNameFont, currentSize.toFixed(2), {
					path: opt.cookiePath,
					expires: opt.cookieLifetime
				});
			}
            var objects = {
                currSize : currentSize,
                currUnit : opt.unit,
                currContent : opt.content,
                currTask : 'increaseFont',
                currLvl : currLvl
            };
            if ($.isFunction(opt.after)) {
                if (opt.animate) {
                    setTimeout(function(){
                          opt.after(objects);
                    },opt.animateSpeed + 100);
                }else {
                    opt.after(objects);
                }
            }
        }
    
        function defaultFont() {
            currentSize = opt.defaultSize;
            currLvl = 'default';
            sizeIT(opt.content, currentSize);
            if (opt.useCookie) {
				mycookie(opt.cookieNameFont, currentSize.toFixed(2), {
					path: opt.cookiePath,
					expires: -100
				});
			}
            var objects = {
                currSize : currentSize,
                currUnit : opt.unit,
                currContent : opt.content,
                currTask : 'defaultFont',
                currLvl : currLvl
            };
            if ($.isFunction(opt.after)) {
                if (opt.animate) {
                    setTimeout(function(){
                          opt.after(objects);
                    },opt.animateSpeed + 100);
                }else {
                    opt.after(objects);
                }
            }
        }
    
        function decreaseFont() {
            currentSize = currentSize - opt.stepSize;
            if (currentSize <= opt.minSize) {
                currentSize = opt.minSize;
                currLvl = 'min';
            } else {
                currLvl = '';
            }
            sizeIT(opt.content, currentSize);
            if (opt.useCookie) {
				mycookie(opt.cookieNameFont, currentSize.toFixed(2), {
					path: opt.cookiePath,
					expires: opt.cookieLifetime
				});
			}
            var objects = {
                currSize : currentSize,
                currUnit : opt.unit,
                currContent : opt.content,
                currTask : 'decreaseFont',
                currLvl : currLvl
            };
            if ($.isFunction(opt.after)) {
                if (opt.animate) {
                    setTimeout(function(){
                          opt.after(objects);
                    },opt.animateSpeed + 100);
                }else {
                    opt.after(objects);
                }
            }
        }
    
        function sizeIT(cn, sz) {
			var jQcont;
			if (typeof (cn) === 'object' && (cn instanceof Array)) {
			    jQcont = cn;
			} else {
				jQcont = $(cn);
			}
			
			jQcont.css('font-size', sz + opt.unit);
        }
		
		function getContrast() {
			return $(opt.content).hasClass(opt.highContrastClass);
		}
		
		function setContrast(highC) {
			if(highC) {
				$(opt.content).addClass(opt.highContrastClass);
			} else {
				$(opt.content).removeClass(opt.highContrastClass);
			}	
			
			 if (opt.useCookie) {
				mycookie(opt.cookieNameHighC, highC, {
					path: opt.cookiePath,
					expires: opt.cookieLifetime
				});
			}		
		}
		
        /* Cookie  
        * used code from jQuery Cookie plugin by Klaus Hartl (stilbuero.de)
        */
        function mycookie(key, value, cookieOptions) {
          // key and at least value given, set cookie...
            if (arguments.length > 1 && String(value) !== "[object Object]") {
                var cOptions = $.extend({}, cookieOptions);
    
                if (value === null || value === undefined) {
                    cOptions.expires = -1000;
                }
    
                if (typeof cOptions.expires === 'number') {
                    var days = cOptions.expires, t = cOptions.expires = new Date();
                    t.setDate(t.getDate() + days);
                }
    
                value = String(value);
    
                return (document.cookie = [
                    encodeURIComponent(key), '=',
                    cOptions.raw ? value : encodeURIComponent(value),
                    cOptions.expires ? '; expires=' + cOptions.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
                    cOptions.path ? '; path=' + cOptions.path : '',
                    cOptions.domain ? '; domain=' + cOptions.domain : '',
                    cOptions.secure ? '; secure' : ''
                ].join(''));
            }
            // key and possibly options given, get cookie...
            var cOptions = value || {};
            var result, decode = cOptions.raw ? function (s) {
                return s;
            } : decodeURIComponent;
            return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
        };
    // Cookie    
    };
})(jQuery);
const
    $kopf = $('#kopf'),
    $wrapper = $('#wrapper'),
    $content = $('#content'),
    $fuss = $('#fuss'),
    $html = $('html'),

    lang = $html.attr('lang').split('_')[0]
;


/**
 * Trab Focus (Tab-Navigation soll nicht aus PopUp raus fallen
 **********************************************************************************************************************/
const
    // add all the elements inside modal which you want to make focusable
    focusableElements = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';

function trabFocus(id) {
    var modal = document.querySelector(id),
        firstFocusableElement = modal.querySelectorAll(focusableElements)[0],
        focusableContent = modal.querySelectorAll(focusableElements),
        lastFocusableElement = focusableContent[focusableContent.length - 1]; // get last element to be focused inside modal

    if(firstFocusableElement) {
        document.addEventListener('keydown', function(e) {
            let isTabPressed = e.key === 'Tab' || e.keyCode === 9;

            if (!isTabPressed) {
                return;
            }

            if (e.shiftKey) { // if shift key pressed for shift + tab combination
                if (document.activeElement === firstFocusableElement) {
                    lastFocusableElement.focus(); // add focus for the last focusable element
                    e.preventDefault();
                }
            } else { // if tab key is pressed
                // if focused has reached to last focusable element then focus first focusable element after pressing tab
                if (document.activeElement === lastFocusableElement) {
                    firstFocusableElement.focus(); // add focus for the first focusable element
                    e.preventDefault();
                }
            }
        });

        firstFocusableElement.focus();
    }
}


/**
 * Button toggle collapse
 **********************************************************************************************************************/
$('button[data-toggle="collapse"]').click(function(e) {
    e.stopPropagation();
    var target = $(this).attr('data-target');
    trabFocus(target);

    if(!$(this).hasClass('disabled')) {
        if($(target).length === 1) {
            $(this)
                .attr('aria-expanded', function (i, attr) { return attr === 'true' ? 'false' : 'true' })
                .parent().siblings().children('button.open').click();
            $(target)
                .slideToggle().toggleClass('open')
                .siblings('button').toggleClass('open')
            ;
        } else {
            //console.log('multiple targets found: ' + $(this).parents('li').attr('id'));
            $(this).toggleClass('open').siblings(target).slideToggle().toggleClass('open');
        }
    }
});

// Close on Click outside
$html.click(function(event) {
    var clickover = $(event.target);

    $('button[data-toggle="collapse"]').each(function() {
        var target = $(this).attr('data-target');
        if($(target).hasClass('open') && clickover.parents(target).length < 1) {
            $(target).siblings('button[data-toggle="collapse"]').click();
        }
    });
});

// Close on esc
$(document).keyup(function(e) {
    if (e.keyCode === 27) {
        $('button[data-toggle="collapse"]').each(function() {
            var target = $(this).attr('data-target');
            if($(target).hasClass('open')) {
                $(target).siblings('button[data-toggle="collapse"]').click();
            }
        });
    }
});

// Navigate Dropdowns with Arrows Up / Down
$(document).keydown(function (e) {
    if (e.keyCode === 40 || e.keyCode === 38) {

        var $focus = $(':focus');

        if($focus.data('toggle') === "collapse" || $('button[data-toggle="collapse"]').hasClass('open')) {
            e.preventDefault();
            if($focus.data('toggle') === "collapse" && !$focus.hasClass('open')) $focus.click();

            var $focusableElements = $('.collapse.open, .dropdown-menu.open').find(focusableElements).filter(':visible'),
                cur = $focusableElements.index($focus),
                next = (e.keyCode === 40) ? cur + 1 : cur - 1;

            if(cur === -1) cur = (e.keyCode === 40) ? 0 : $focusableElements.length - 1;
            if(next < 0 || next > $focusableElements.length - 1) next = cur;

            $focusableElements[next].focus();
        }
    }
});


/**
 * Colorbox (Lightbox)
 **********************************************************************************************************************/
$('a.lightbox').colorbox({
    showImageNumberLabel: false,
    albumLabel: false,
    maxWidth:'85%',
    maxHeight:'85%'
});


/**
 * Slider
 **********************************************************************************************************************/
$('button.slick-pause-play').click(function() {
    if($(this).attr('aria-pressed') === 'true') {
        $(this).attr('aria-pressed', 'false');
        $('#' + $(this).data('slider-id') + ' div.slides').slick('slickPlay');
    } else {
        $(this).attr('aria-pressed', 'true');
        $('#' + $(this).data('slider-id') + ' div.slides').slick('slickPause');
    }
});

var $dotsText = {
    'en': ['Jump to teaser ', ' from ', '.'],
    'de': ['Zum Teaser ', ' von ', ' springen.'],
    'fr': ['Aller au teaser ', ' de ', '.'],
    'it': ['Passare al teaser ', ' da ', '.']
}
$('.slick-controls .slick-dots button').each(function(i,e) {
    var numbers = $(e).attr('aria-label').split(' '),
        text = $dotsText[lang][0] + numbers[0] + $dotsText[$lang][1] + numbers[2] + $dotsText[$lang][2];
    $(e).attr('aria-label', text);
});


/**
 * Tabs
 **********************************************************************************************************************/
$('.tab-toggle').click(function() {
    var id = $(this).attr('data-toggle');

    $(this).addClass('active').siblings('.active').removeClass('active');

    $(id).siblings('.active')
        .fadeOut(200, function() {
            $(this).removeClass('active');
            $(id).fadeIn(200).addClass('active');
        });
});


/**
 * Video
 **********************************************************************************************************************/
$('.video-preview-image').one('click', function (e) {
    var $video = $(this).siblings('.video-embed').children('iframe');

    $(this).css('visibility', 'hidden')
        .siblings('.video-embed').show()
        .children('iframe').attr('src', $video.data('src'));
});


/**
 * Powermail (Formulare)
 **********************************************************************************************************************/
$('form.powermail_form').submit(function (e) {
    if ($(this).parsley().isValid()) {
        $(this).find('input[type="submit"]').attr('disabled', 'disabled')
            .parent('.powermail_field').addClass('sending');
    }
});


/**
 * scrollTop
 **********************************************************************************************************************/
$('#scrollTop').click(function() {
    $('html, body').animate({
        scrollTop: 0
    }, 400);
});
/*
 * Replace all SVG images with inline SVG
 * Quelle: https://gist.github.com/Bloggerschmidt/61beeca2cce94a70c9df
 */
jQuery('img').filter(function() {
    return this.src.match(/.*\.svg$/);
}).each(function(){
    var $img = jQuery(this),
        imgID = $img.attr('id'),
        imgClass = $img.attr('class'),
        imgURL = $img.attr('src'),
        imgWidth = $img.attr('width'),
        imgHeight = $img.attr('height'),
        imgTitle = $img.attr('title'),
        imgAlt = $img.attr('alt');
    
    if(! $img.hasClass( "noreplace" )) {
        jQuery.get(imgURL, function(data) {
            // Get the SVG tag, ignore the rest
            var $svg = jQuery(data).find('svg');
                $svg = $svg.attr('role', 'img');                

            // Add replaced image's ID to the new SVG
            if(typeof imgTitle !== 'undefined') {
                $svg = $svg.attr('aria-labelledby', 'uniqueTitleID uniqueDescID');                
                $svg = $svg.prepend('<desc id="uniqueDescID">' + imgAlt + '</desc>');
                $svg = $svg.prepend('<title id="uniqueTitleID">' + imgTitle + '</title>');
            }

            // Add replaced image's ID to the new SVG
            if(typeof imgID !== 'undefined') {
                $svg = $svg.attr('id', imgID);
            }
            // Add replaced image's classes to the new SVG
            if(typeof imgClass !== 'undefined') {
                $svg = $svg.attr('class', imgClass+' replaced-svg');
            }

            if(typeof imgWidth !== 'undefined') {
                $svg = $svg.attr('width', imgWidth);
            }

            if(typeof imgHeight !== 'undefined') {
                $svg = $svg.attr('height', imgHeight);
            }

            if(!$svg.attr('viewBox')){
                $svg.attr('viewBox', ('0 0 '
                    + $svg.attr('width').match(/[0-9]+\.[0-9]*/) + ' '
                    + $svg.attr('height').match(/[0-9]+\.[0-9]*/)));
            }


            // Remove any invalid XML tags as per http://validator.w3.org
            $svg = $svg.removeAttr('xmlns:a');

            // Replace image with new SVG
            $img.replaceWith($svg);

        }, 'xml');
    }
});
const
    $screenxs = 480,
    $screensm = 768,
    $screenmd = 992,
    $screenlg = 1200,

    $screenxsmax = $screensm - 1,
    $screensmmax = $screenmd - 1,
    $screenmdmax = $screenlg - 1,

    $gridfloatbreakpoint = $screenmd,
    $gridfloatbreakpointmax = $gridfloatbreakpoint - 1;


/**
 * Navigation
 ******************************************************************************/

$('#button-mobileNav, #button-mobileNav-close').click(function() {
    $('#nav-toggle').slideToggle().toggleClass('open');
});


// Subnavigation
function toggleSubNav(obj) {
    obj.toggleClass('open')
        .siblings('.dropdown-menu').slideToggle()
        .parent().toggleClass('open');
}

$('#navigation button.dropdown-toggle').click(function() {
    toggleSubNav( $(this).parent().siblings('.open').children('button'));
    toggleSubNav( $(this));
});

$("#stoerer_421").payrexxModal();


/*
$('#stoerer').click(function() {
    location.href='https://www.langmatt.ch/langmatt/gesamtsanierung';
});
*/


/**
 * Suche
 ******************************************************************************/
//Suche auf und zu
$('.button-suche').click(function() {
    $('#suchformular').slideToggle();
});




/**
 * Colorbox (Lightbox)
 ******************************************************************************/
$('a.lightbox').colorbox({
    showImageNumberLabel: false,
    albumLabel: false,
    maxWidth:'85%',
    maxHeight:'85%'
});




/**
 * Slider
 * for more options see http://kenwheeler.github.io/slick/#settings
 ******************************************************************************/
var $prevArrow = '<button type="button" class="slick-prev">&lsaquo;</button>',
    $nextArrow = '<button type="button" class="slick-next">&rsaquo;</button>';

function randomStart(total, nrSlidesToShow) {
    if(total > nrSlidesToShow) {
        return Math.floor( Math.random() * total );
    } else {
        return 0
    }
}


$('div.slides').slick({
    autoplay: true,
    infinite: true,
    autoplaySpeed: 4000,
    speed: 1000,
    arrows: true,
    dots: true,

    prevArrow: $prevArrow,
    nextArrow: $nextArrow,
});

$('.slick-sammlung').each(function(i,e) {
    var total = $(e).children('div').length,
        totWidth = 0,
        viewport = $(e).width(),
        nrSlidesToShow = total + 1;

    $(e).find('img').each(function(i,el) {
        totWidth += parseInt($(el).attr('width'));

        if(totWidth < viewport) {
            nrSlidesToShow = i+1;
        }
    });

    if(totWidth > viewport) {
        $(e).slick({
            autoplay: true,
            infinite: true,
            slidesToShow: nrSlidesToShow,
            slidesToScroll: 1, //getDirection(i),
            variableWidth: true,

            initialSlide: randomStart(total, nrSlidesToShow),

            prevArrow: $prevArrow,
            nextArrow: $nextArrow,

            responsive: [
                {
                    breakpoint: 992,
                    settings: {
                        slidesToShow: 3
                    }
                },
                {
                    breakpoint: 768,
                    settings: {
                        slidesToShow: 2
                    }
                },
                {
                    breakpoint: 480,
                    settings: {
                        slidesToShow: 1
                    }
                }
            ]
        })
    }
});


/**
 * Accordion
 ******************************************************************************/
$('.panel-heading').click(function() {
    $(this).toggleClass('active').siblings('.panel-collapse').slideToggle();
});

$('.frame-layout-300 header').click(function() {
    $(this).toggleClass('active').siblings('div').slideToggle();
});




/**
 * Tabs
 ******************************************************************************/
$('.tab-toggle').click(function() {
    var id = $(this).attr('data-toggle');

    $(this).addClass('active').siblings('.active').removeClass('active');

    $(id).siblings('.active')
        .fadeOut(200, function() {
            $(this).removeClass('active');
            $(id).fadeIn(200).addClass('active');
        });
});




/**
 * Video
 ******************************************************************************/
$('.video-preview-image').one('click', function (e) {
    var $video = $(this).siblings('.video-embed').children('iframe');

    $(this).css('visibility', 'hidden').siblings('.video-embed').show().children('iframe').attr('src', $video.data('src'));
});




/**
 * Powermail (Formulare)
 ******************************************************************************/
$('form.powermail_form').submit(function (e) {
    if ($(this).parsley().isValid()) {
        $(this).find('input[type="submit"]').attr('disabled', 'disabled').parent('.powermail_field').addClass('sending');
    }
});


/**
 * Agenda
 ******************************************************************************/
function getUrlParameter(searchword) {
    for($query in window.location.search.replace('?', '').split('&')) {
        $query = $query.split('=');
        return ($query[searchword]) ? $query[searchword] : false;
    }
}

var agendaID = getUrlParameter('agendaItem');

if($('#c'+ agendaID).length > 0) {
    $('#c'+ agendaID).addClass('aktiv');
}


/**
 * ScrollTop
 *
 ******************************************************************************/
$('#scrollTop').click(function() {
    $('html, body').animate({
        scrollTop: $('body').offset().top
    }, 800 );
});





/**
 * $(window).scroll && resize
 *
 ******************************************************************************/
$(window).on({
    scroll: function () {
        if ($(window).scrollTop() > 90) {
            $('#kopf, #scrollTop').addClass('affix');
        } else {
            $('#kopf, #scrollTop').removeClass('affix');
        }

        if ($(window).scrollTop() > $('#wrapper').height() - $(window).innerHeight() + $('#scrollTop').outerHeight() + 200) {
            $('#scrollTop').addClass('affix-bottom');
        } else {
            $('#scrollTop').removeClass('affix-bottom');
        }
    },
    load: function() {
        // add rel="noopener" für externe Links
        $('a').each(function(){
            if ( $(this).attr('target') === '_blank'){
                $(this).attr('rel','noopener noreferrer');
            }
        })

        $('a.download').each(function(){
            $(this).attr('download','download');
        })

    },
});



/**
 * cleverreach
 *
 ******************************************************************************/
$(".cr_form").submit(function() {
    $(this).find('.clever_form_error').removeClass('clever_form_error');
    $(this).find('.clever_form_note').remove();
    $(this).find(".musthave").find('input, textarea').each(function() {
        if (jQuery.trim($(this).val()) == "" || ($(this).is(':checkbox')) || ($(this).is(':radio'))) {
            if ($(this).is(':checkbox') || ($(this).is(':radio'))) {
                if (!$(this).parent().find(":checked").is(":checked")) {
                    $(this).parent().addClass('clever_form_error')
                }
            } else {
                $(this).addClass('clever_form_error')
            }
        }
    });
    if ($(this).attr("action").search(document.domain) > 0 && $(".cr_form").attr("action").search("wcs") > 0) {
        var cr_email = $(this).find('input[name=email]');
        var unsub = false;
        if ($("input['name=cr_subunsubscribe'][value='false']").length) {
            if ($("input['name=cr_subunsubscribe'][value='false']").is(":checked")) {
                unsub = true
            }
        }
        if (cr_email.val() && !unsub) {
            $.ajax({
                type: "GET",
                url: $(".cr_form").attr("action").replace("wcs", "check_email") + $(this).find('input[name=email]').val(),
                success: function(data) {
                    if (data) {
                        cr_email.addClass('clever_form_error').before("<div class='clever_form_note cr_font'>" + data + "</div>");
                        return false
                    }
                },
                async: false
            })
        }
        var cr_captcha = $(this).find('input[name=captcha]');
        if (cr_captcha.val()) {
            $.ajax({
                type: "GET",
                url: $(".cr_form").attr("action").replace("wcs", "check_captcha") + $(this).find('input[name=captcha]').val(),
                success: function(data) {
                    if (data) {
                        cr_captcha.addClass('clever_form_error').after("<div style='display:block' class='clever_form_note cr_font'>" + data + "</div>");
                        return false
                    }
                },
                async: false
            })
        }
    }
    if ($(this).find('.clever_form_error').length) {
        return false
    }
    return true
});

$('input[class*="cr_number"]').change(function() {
    if (isNaN($(this).val())) {
        $(this).val(1)
    }
    if ($(this).attr("min")) {
        if (($(this).val() * 1) < ($(this).attr("min") * 1)) {
            $(this).val($(this).attr("min"))
        }
    }
    if ($(this).attr("max")) {
        if (($(this).val() * 1) > ($(this).attr("max") * 1)) {
            $(this).val($(this).attr("max"))
        }
    }
});

var $captcha = $("div[rel='captcha'] img:not(.captcha2_reload)"),
    old_src = $captcha.attr("src");

if ($captcha.length > 0) {
    var timestamp = new Date().getTime();
    $captcha.attr("src", "");
    $captcha.attr("src", old_src + "?t=" + timestamp);
}