assets.juicer.io
Open in
urlscan Pro
2606:4700:20::ac43:4743
Public Scan
URL:
https://assets.juicer.io/embed.js
Submission: On July 07 via api from US — Scanned from DE
Submission: On July 07 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){function i(e){var t=!!e&&"length"in e&&e.length,i=de.type(e);return"function"!==i&&!de.isWindow(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e,t,i){if(de.isFunction(t))return de.grep(e,(function(e,r){return!!t.call(e,r,e)!==i}));if(t.nodeType)return de.grep(e,(function(e){return e===t!==i}));if("string"==typeof t){if(_e.test(t))return de.filter(t,e,i);t=de.filter(t,e)}return de.grep(e,(function(e){return de.inArray(e,t)>-1!==i}))}function n(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function s(e){var t={};return de.each(e.match(Pe)||[],(function(e,i){t[i]=!0})),t}function o(){re.addEventListener?(re.removeEventListener("DOMContentLoaded",a),e.removeEventListener("load",a)):(re.detachEvent("onreadystatechange",a),e.detachEvent("onload",a))}function a(){(re.addEventListener||"load"===e.event.type||"complete"===re.readyState)&&(o(),de.ready())}function l(e,t,i){if(void 0===i&&1===e.nodeType){var r="data-"+t.replace(Ie,"-$1").toLowerCase();if("string"==typeof(i=e.getAttribute(r))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:$e.test(i)?de.parseJSON(i):i)}catch(e){}de.data(e,t,i)}else i=void 0}return i}function c(e){var t;for(t in e)if(("data"!==t||!de.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(e,t,i,r){if(Ee(e)){var n,s,o=de.expando,a=e.nodeType,l=a?de.cache:e,c=a?e[o]:e[o]&&o;if(c&&l[c]&&(r||l[c].data)||void 0!==i||"string"!=typeof t)return c||(c=a?e[o]=ie.pop()||de.guid++:o),l[c]||(l[c]=a?{}:{toJSON:de.noop}),"object"!=typeof t&&"function"!=typeof t||(r?l[c]=de.extend(l[c],t):l[c].data=de.extend(l[c].data,t)),s=l[c],r||(s.data||(s.data={}),s=s.data),void 0!==i&&(s[de.camelCase(t)]=i),"string"==typeof t?null==(n=s[t])&&(n=s[de.camelCase(t)]):n=s,n}}function p(e,t,i){if(Ee(e)){var r,n,s=e.nodeType,o=s?de.cache:e,a=s?e[de.expando]:de.expando;if(o[a]){if(t&&(r=i?o[a]:o[a].data)){n=(t=de.isArray(t)?t.concat(de.map(t,de.camelCase)):t in r||(t=de.camelCase(t))in r?[t]:t.split(" ")).length;for(;n--;)delete r[t[n]];if(i?!c(r):!de.isEmptyObject(r))return}(i||(delete o[a].data,c(o[a])))&&(s?de.cleanData([e],!0):pe.deleteExpando||o!=o.window?delete o[a]:o[a]=void 0)}}}function h(e,t,i,r){var n,s=1,o=20,a=r?function(){return r.cur()}:function(){return de.css(e,t,"")},l=a(),c=i&&i[3]||(de.cssNumber[t]?"":"px"),u=(de.cssNumber[t]||"px"!==c&&+l)&&He.exec(de.css(e,t));if(u&&u[3]!==c){c=c||u[3],i=i||[],u=+l||1;do{u/=s=s||".5",de.style(e,t,u+c)}while(s!==(s=a()/l)&&1!==s&&--o)}return i&&(u=+u||+l||0,n=i[1]?u+(i[1]+1)*i[2]:+i[2],r&&(r.unit=c,r.start=u,r.end=n)),n}function d(e){var t=Ue.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}function f(e,t){var i,r,n=0,s=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!s)for(s=[],i=e.childNodes||e;null!=(r=i[n]);n++)!t||de.nodeName(r,t)?s.push(r):de.merge(s,f(r,t));return void 0===t||t&&de.nodeName(e,t)?de.merge([e],s):s}function m(e,t){for(var i,r=0;null!=(i=e[r]);r++)de._data(i,"globalEval",!t||de._data(t[r],"globalEval"))}function g(e){qe.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t,i,r,n){for(var s,o,a,l,c,u,p,h=e.length,y=d(t),v=[],b=0;b<h;b++)if((o=e[b])||0===o)if("object"===de.type(o))de.merge(v,o.nodeType?[o]:o);else if(Ye.test(o)){for(l=l||y.appendChild(t.createElement("div")),c=(Ve.exec(o)||["",""])[1].toLowerCase(),p=Qe[c]||Qe._default,l.innerHTML=p[1]+de.htmlPrefilter(o)+p[2],s=p[0];s--;)l=l.lastChild;if(!pe.leadingWhitespace&&We.test(o)&&v.push(t.createTextNode(We.exec(o)[0])),!pe.tbody)for(s=(o="table"!==c||Ge.test(o)?"<table>"!==p[1]||Ge.test(o)?0:l:l.firstChild)&&o.childNodes.length;s--;)de.nodeName(u=o.childNodes[s],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(de.merge(v,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=y.lastChild}else v.push(t.createTextNode(o));for(l&&y.removeChild(l),pe.appendChecked||de.grep(f(v,"input"),g),b=0;o=v[b++];)if(r&&de.inArray(o,r)>-1)n&&n.push(o);else if(a=de.contains(o.ownerDocument,o),l=f(y.appendChild(o),"script"),a&&m(l),i)for(s=0;o=l[s++];)Be.test(o.type||"")&&i.push(o);return l=null,y}function v(){return!0}function b(){return!1}function w(){try{return re.activeElement}catch(e){}}function S(e,t,i,r,n,s){var o,a;if("object"==typeof t){for(a in"string"!=typeof i&&(r=r||i,i=void 0),t)S(e,a,i,r,t[a],s);return e}if(null==r&&null==n?(n=i,r=i=void 0):null==n&&("string"==typeof i?(n=r,r=void 0):(n=r,r=i,i=void 0)),!1===n)n=b;else if(!n)return e;return 1===s&&(o=n,n=function(e){return de().off(e),o.apply(this,arguments)},n.guid=o.guid||(o.guid=de.guid++)),e.each((function(){de.event.add(this,t,n,r,i)}))}function k(e,t){return de.nodeName(e,"table")&&de.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function _(e){return e.type=(null!==de.find.attr(e,"type"))+"/"+e.type,e}function x(e){var t=at.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function T(e,t){if(1===t.nodeType&&de.hasData(e)){var i,r,n,s=de._data(e),o=de._data(t,s),a=s.events;if(a)for(i in delete o.handle,o.events={},a)for(r=0,n=a[i].length;r<n;r++)de.event.add(t,i,a[i][r]);o.data&&(o.data=de.extend({},o.data))}}function A(e,t){var i,r,n;if(1===t.nodeType){if(i=t.nodeName.toLowerCase(),!pe.noCloneEvent&&t[de.expando]){for(r in(n=de._data(t)).events)de.removeEvent(t,r,n.handle);t.removeAttribute(de.expando)}"script"===i&&t.text!==e.text?(_(t).text=e.text,x(t)):"object"===i?(t.parentNode&&(t.outerHTML=e.outerHTML),pe.html5Clone&&e.innerHTML&&!de.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===i&&qe.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===i?t.defaultSelected=t.selected=e.defaultSelected:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}}function j(e,t,i,r){t=se.apply([],t);var n,s,o,a,l,c,u=0,p=e.length,h=p-1,d=t[0],m=de.isFunction(d);if(m||p>1&&"string"==typeof d&&!pe.checkClone&&ot.test(d))return e.each((function(n){var s=e.eq(n);m&&(t[0]=d.call(this,n,s.html())),j(s,t,i,r)}));if(p&&(n=(c=y(t,e[0].ownerDocument,!1,e,r)).firstChild,1===c.childNodes.length&&(c=n),n||r)){for(o=(a=de.map(f(c,"script"),_)).length;u<p;u++)s=c,u!==h&&(s=de.clone(s,!0,!0),o&&de.merge(a,f(s,"script"))),i.call(e[u],s,u);if(o)for(l=a[a.length-1].ownerDocument,de.map(a,x),u=0;u<o;u++)s=a[u],Be.test(s.type||"")&&!de._data(s,"globalEval")&&de.contains(l,s)&&(s.src?de._evalUrl&&de._evalUrl(s.src):de.globalEval((s.text||s.textContent||s.innerHTML||"").replace(lt,"")));c=n=null}return e}function C(e,t,i){for(var r,n=t?de.filter(t,e):e,s=0;null!=(r=n[s]);s++)i||1!==r.nodeType||de.cleanData(f(r)),r.parentNode&&(i&&de.contains(r.ownerDocument,r)&&m(f(r,"script")),r.parentNode.removeChild(r));return e}function J(e,t){var i=de(t.createElement(e)).appendTo(t.body),r=de.css(i[0],"display");return i.detach(),r}function P(e){var t=re,i=pt[e];return i||("none"!==(i=J(e,t))&&i||((t=((ut=(ut||de("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||ut[0].contentDocument).document).write(),t.close(),i=J(e,t),ut.detach()),pt[e]=i),i}function O(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function E(e){if(e in At)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),i=Tt.length;i--;)if((e=Tt[i]+t)in At)return e}function $(e,t){for(var i,r,n,s=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(s[o]=de._data(r,"olddisplay"),i=r.style.display,t?(s[o]||"none"!==i||(r.style.display=""),""===r.style.display&&Re(r)&&(s[o]=de._data(r,"olddisplay",P(r.nodeName)))):(n=Re(r),(i&&"none"!==i||!n)&&de._data(r,"olddisplay",n?i:de.css(r,"display"))));for(o=0;o<a;o++)(r=e[o]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?s[o]||"":"none"));return e}function I(e,t,i){var r=kt.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function L(e,t,i,r,n){for(var s=i===(r?"border":"content")?4:"width"===t?1:0,o=0;s<4;s+=2)"margin"===i&&(o+=de.css(e,i+Ne[s],!0,n)),r?("content"===i&&(o-=de.css(e,"padding"+Ne[s],!0,n)),"margin"!==i&&(o-=de.css(e,"border"+Ne[s]+"Width",!0,n))):(o+=de.css(e,"padding"+Ne[s],!0,n),"padding"!==i&&(o+=de.css(e,"border"+Ne[s]+"Width",!0,n)));return o}function M(e,t,i){var r=!0,n="width"===t?e.offsetWidth:e.offsetHeight,s=gt(e),o=pe.boxSizing&&"border-box"===de.css(e,"boxSizing",!1,s);if(n<=0||null==n){if(((n=yt(e,t,s))<0||null==n)&&(n=e.style[t]),dt.test(n))return n;r=o&&(pe.boxSizingReliable()||n===e.style[t]),n=parseFloat(n)||0}return n+L(e,t,i||(o?"border":"content"),r,s)+"px"}function F(e,t,i,r,n){return new F.prototype.init(e,t,i,r,n)}function D(){return e.setTimeout((function(){jt=void 0})),jt=de.now()}function H(e,t){var i,r={height:e},n=0;for(t=t?1:0;n<4;n+=2-t)r["margin"+(i=Ne[n])]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function N(e,t,i){for(var r,n=(q.tweeners[t]||[]).concat(q.tweeners["*"]),s=0,o=n.length;s<o;s++)if(r=n[s].call(i,t,e))return r}function R(e,t,i){var r,n,s,o,a,l,c,u=this,p={},h=e.style,d=e.nodeType&&Re(e),f=de._data(e,"fxshow");for(r in i.queue||(null==(a=de._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always((function(){u.always((function(){a.unqueued--,de.queue(e,"fx").length||a.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=de.css(e,"display"))?de._data(e,"olddisplay")||P(e.nodeName):c)&&"none"===de.css(e,"float")&&(pe.inlineBlockNeedsLayout&&"inline"!==P(e.nodeName)?h.zoom=1:h.display="inline-block")),i.overflow&&(h.overflow="hidden",pe.shrinkWrapBlocks()||u.always((function(){h.overflow=i.overflow[0],h.overflowX=i.overflow[1],h.overflowY=i.overflow[2]}))),t)if(n=t[r],Jt.exec(n)){if(delete t[r],s=s||"toggle"===n,n===(d?"hide":"show")){if("show"!==n||!f||void 0===f[r])continue;d=!0}p[r]=f&&f[r]||de.style(e,r)}else c=void 0;if(de.isEmptyObject(p))"inline"===("none"===c?P(e.nodeName):c)&&(h.display=c);else for(r in f?"hidden"in f&&(d=f.hidden):f=de._data(e,"fxshow",{}),s&&(f.hidden=!d),d?de(e).show():u.done((function(){de(e).hide()})),u.done((function(){var t;for(t in de._removeData(e,"fxshow"),p)de.style(e,t,p[t])})),p)o=N(d?f[r]:0,r,u),r in f||(f[r]=o.start,d&&(o.end=o.start,o.start="width"===r||"height"===r?1:0))}function z(e,t){var i,r,n,s,o;for(i in e)if(n=t[r=de.camelCase(i)],s=e[i],de.isArray(s)&&(n=s[1],s=e[i]=s[0]),i!==r&&(e[r]=s,delete e[i]),(o=de.cssHooks[r])&&"expand"in o)for(i in s=o.expand(s),delete e[r],s)i in e||(e[i]=s[i],t[i]=n);else t[r]=n}function q(e,t,i){var r,n,s=0,o=q.prefilters.length,a=de.Deferred().always((function(){delete l.elem})),l=function(){if(n)return!1;for(var t=jt||D(),i=Math.max(0,c.startTime+c.duration-t),r=1-(i/c.duration||0),s=0,o=c.tweens.length;s<o;s++)c.tweens[s].run(r);return a.notifyWith(e,[c,r,i]),r<1&&o?i:(a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:de.extend({},t),opts:de.extend(!0,{specialEasing:{},easing:de.easing._default},i),originalProperties:t,originalOptions:i,startTime:jt||D(),duration:i.duration,tweens:[],createTween:function(t,i){var r=de.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var i=0,r=t?c.tweens.length:0;if(n)return this;for(n=!0;i<r;i++)c.tweens[i].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(z(u,c.opts.specialEasing);s<o;s++)if(r=q.prefilters[s].call(c,e,u,c.opts))return de.isFunction(r.stop)&&(de._queueHooks(c.elem,c.opts.queue).stop=de.proxy(r.stop,r)),r;return de.map(u,N,c),de.isFunction(c.opts.start)&&c.opts.start.call(e,c),de.fx.timer(de.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function V(e){return de.attr(e,"class")||""}function B(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,n=0,s=t.toLowerCase().match(Pe)||[];if(de.isFunction(i))for(;r=s[n++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(i)):(e[r]=e[r]||[]).push(i)}}function W(e,t,i,r){function n(a){var l;return s[a]=!0,de.each(e[a]||[],(function(e,a){var c=a(t,i,r);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),n(c),!1)})),l}var s={},o=e===ei;return n(t.dataTypes[0])||!s["*"]&&n("*")}function U(e,t){var i,r,n=de.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((n[r]?e:i||(i={}))[r]=t[r]);return i&&de.extend(!0,e,i),e}function Q(e,t,i){for(var r,n,s,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(o in a)if(a[o]&&a[o].test(n)){l.unshift(o);break}if(l[0]in i)s=l[0];else{for(o in i){if(!l[0]||e.converters[o+" "+l[0]]){s=o;break}r||(r=o)}s=s||r}if(s)return s!==l[0]&&l.unshift(s),i[s]}function Y(e,t,i,r){var n,s,o,a,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(s=u.shift();s;)if(e.responseFields[s]&&(i[e.responseFields[s]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=c[l+" "+s]||c["* "+s]))for(n in c)if((a=n.split(" "))[1]===s&&(o=c[l+" "+a[0]]||c["* "+a[0]])){!0===o?o=c[n]:!0!==c[n]&&(s=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}function G(e){return e.style&&e.style.display||de.css(e,"display")}function X(e){if(!de.contains(e.ownerDocument||re,e))return!0;for(;e&&1===e.nodeType;){if("none"===G(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}function K(e,t,i,r){var n;if(de.isArray(t))de.each(t,(function(t,n){i||si.test(e)?r(e,n):K(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,i,r)}));else if(i||"object"!==de.type(t))r(e,t);else for(n in t)K(e+"["+n+"]",t[n],i,r)}function Z(){try{return new e.XMLHttpRequest}catch(e){}}function ee(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function te(e){return de.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var ie=[],re=e.document,ne=ie.slice,se=ie.concat,oe=ie.push,ae=ie.indexOf,le={},ce=le.toString,ue=le.hasOwnProperty,pe={},he="1.12.4",de=function(e,t){return new de.fn.init(e,t)},fe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,me=/^-ms-/,ge=/-([\da-z])/gi,ye=function(e,t){return t.toUpperCase()};de.fn=de.prototype={jquery:he,constructor:de,selector:"",length:0,toArray:function(){return ne.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:ne.call(this)},pushStack:function(e){var t=de.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return de.each(this,e)},map:function(e){return this.pushStack(de.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(ne.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:oe,sort:ie.sort,splice:ie.splice},de.extend=de.fn.extend=function(){var e,t,i,r,n,s,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||de.isFunction(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(n=arguments[a]))for(r in n)e=o[r],o!==(i=n[r])&&(c&&i&&(de.isPlainObject(i)||(t=de.isArray(i)))?(t?(t=!1,s=e&&de.isArray(e)?e:[]):s=e&&de.isPlainObject(e)?e:{},o[r]=de.extend(c,s,i)):void 0!==i&&(o[r]=i));return o},de.extend({expando:"jQuery"+(he+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===de.type(e)},isArray:Array.isArray||function(e){return"array"===de.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!de.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==de.type(e)||e.nodeType||de.isWindow(e))return!1;try{if(e.constructor&&!ue.call(e,"constructor")&&!ue.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!pe.ownFirst)for(t in e)return ue.call(e,t);for(t in e);return void 0===t||ue.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?le[ce.call(e)]||"object":typeof e},globalEval:function(t){t&&de.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(me,"ms-").replace(ge,ye)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var r,n=0;if(i(e))for(r=e.length;n<r&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(fe,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(i(Object(e))?de.merge(r,"string"==typeof e?[e]:e):oe.call(r,e)),r},inArray:function(e,t,i){var r;if(t){if(ae)return ae.call(t,e,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===e)return i}return-1},merge:function(e,t){for(var i=+t.length,r=0,n=e.length;r<i;)e[n++]=t[r++];if(i!=i)for(;void 0!==t[r];)e[n++]=t[r++];return e.length=n,e},grep:function(e,t,i){for(var r=[],n=0,s=e.length,o=!i;n<s;n++)!t(e[n],n)!==o&&r.push(e[n]);return r},map:function(e,t,r){var n,s,o=0,a=[];if(i(e))for(n=e.length;o<n;o++)null!=(s=t(e[o],o,r))&&a.push(s);else for(o in e)null!=(s=t(e[o],o,r))&&a.push(s);return se.apply([],a)},guid:1,proxy:function(e,t){var i,r,n;if("string"==typeof t&&(n=e[t],t=e,e=n),de.isFunction(e))return i=ne.call(arguments,2),r=function(){return e.apply(t||this,i.concat(ne.call(arguments)))},r.guid=e.guid=e.guid||de.guid++,r},now:function(){return+new Date},support:pe}),"function"==typeof Symbol&&(de.fn[Symbol.iterator]=ie[Symbol.iterator]),de.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){le["[object "+t+"]"]=t.toLowerCase()}));var ve=function(e){function t(e,t,i,r){var n,s,o,a,l,c,p,d,f=t&&t.ownerDocument,m=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return i;if(!r&&((t?t.ownerDocument||t:N)!==E&&O(t),t=t||E,I)){if(11!==m&&(c=ye.exec(e)))if(n=c[1]){if(9===m){if(!(o=t.getElementById(n)))return i;if(o.id===n)return i.push(o),i}else if(f&&(o=f.getElementById(n))&&D(t,o)&&o.id===n)return i.push(o),i}else{if(c[2])return K.apply(i,t.getElementsByTagName(e)),i;if((n=c[3])&&S.getElementsByClassName&&t.getElementsByClassName)return K.apply(i,t.getElementsByClassName(n)),i}if(S.qsa&&!B[e+" "]&&(!L||!L.test(e))){if(1!==m)f=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(be,"\\$&"):t.setAttribute("id",a=H),s=(p=T(e)).length,l=he.test(a)?"#"+a:"[id='"+a+"']";s--;)p[s]=l+" "+h(p[s]);d=p.join(","),f=ve.test(e)&&u(t.parentNode)||t}if(d)try{return K.apply(i,f.querySelectorAll(d)),i}catch(e){}finally{a===H&&t.removeAttribute("id")}}}return j(e.replace(ae,"$1"),t,i,r)}function i(){function e(i,r){return t.push(i+" ")>k.cacheLength&&delete e[t.shift()],e[i+" "]=r}var t=[];return e}function r(e){return e[H]=!0,e}function n(e){var t=E.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e,t){for(var i=e.split("|"),r=i.length;r--;)k.attrHandle[i[r]]=t}function o(e,t){var i=t&&e,r=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||U)-(~e.sourceIndex||U);if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function a(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function l(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function c(e){return r((function(t){return t=+t,r((function(i,r){for(var n,s=e([],i.length,t),o=s.length;o--;)i[n=s[o]]&&(i[n]=!(r[n]=i[n]))}))}))}function u(e){return e&&void 0!==e.getElementsByTagName&&e}function p(){}function h(e){for(var t=0,i=e.length,r="";t<i;t++)r+=e[t].value;return r}function d(e,t,i){var r=t.dir,n=i&&"parentNode"===r,s=z++;return t.first?function(t,i,s){for(;t=t[r];)if(1===t.nodeType||n)return e(t,i,s)}:function(t,i,o){var a,l,c,u=[R,s];if(o){for(;t=t[r];)if((1===t.nodeType||n)&&e(t,i,o))return!0}else for(;t=t[r];)if(1===t.nodeType||n){if((a=(l=(c=t[H]||(t[H]={}))[t.uniqueID]||(c[t.uniqueID]={}))[r])&&a[0]===R&&a[1]===s)return u[2]=a[2];if(l[r]=u,u[2]=e(t,i,o))return!0}}}function f(e){return e.length>1?function(t,i,r){for(var n=e.length;n--;)if(!e[n](t,i,r))return!1;return!0}:e[0]}function m(e,i,r){for(var n=0,s=i.length;n<s;n++)t(e,i[n],r);return r}function g(e,t,i,r,n){for(var s,o=[],a=0,l=e.length,c=null!=t;a<l;a++)(s=e[a])&&(i&&!i(s,r,n)||(o.push(s),c&&t.push(a)));return o}function y(e,t,i,n,s,o){return n&&!n[H]&&(n=y(n)),s&&!s[H]&&(s=y(s,o)),r((function(r,o,a,l){var c,u,p,h=[],d=[],f=o.length,y=r||m(t||"*",a.nodeType?[a]:a,[]),v=!e||!r&&t?y:g(y,h,e,a,l),b=i?s||(r?e:f||n)?[]:o:v;if(i&&i(v,b,a,l),n)for(c=g(b,d),n(c,[],a,l),u=c.length;u--;)(p=c[u])&&(b[d[u]]=!(v[d[u]]=p));if(r){if(s||e){if(s){for(c=[],u=b.length;u--;)(p=b[u])&&c.push(v[u]=p);s(null,b=[],c,l)}for(u=b.length;u--;)(p=b[u])&&(c=s?ee(r,p):h[u])>-1&&(r[c]=!(o[c]=p))}}else b=g(b===o?b.splice(f,b.length):b),s?s(null,o,b,l):K.apply(o,b)}))}function v(e){for(var t,i,r,n=e.length,s=k.relative[e[0].type],o=s||k.relative[" "],a=s?1:0,l=d((function(e){return e===t}),o,!0),c=d((function(e){return ee(t,e)>-1}),o,!0),u=[function(e,i,r){var n=!s&&(r||i!==C)||((t=i).nodeType?l(e,i,r):c(e,i,r));return t=null,n}];a<n;a++)if(i=k.relative[e[a].type])u=[d(f(u),i)];else{if((i=k.filter[e[a].type].apply(null,e[a].matches))[H]){for(r=++a;r<n&&!k.relative[e[r].type];r++);return y(a>1&&f(u),a>1&&h(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),i,a<r&&v(e.slice(a,r)),r<n&&v(e=e.slice(r)),r<n&&h(e))}u.push(i)}return f(u)}function b(e,i){var n=i.length>0,s=e.length>0,o=function(r,o,a,l,c){var u,p,h,d=0,f="0",m=r&&[],y=[],v=C,b=r||s&&k.find.TAG("*",c),w=R+=null==v?1:Math.random()||.1,S=b.length;for(c&&(C=o===E||o||c);f!==S&&null!=(u=b[f]);f++){if(s&&u){for(p=0,o||u.ownerDocument===E||(O(u),a=!I);h=e[p++];)if(h(u,o||E,a)){l.push(u);break}c&&(R=w)}n&&((u=!h&&u)&&d--,r&&m.push(u))}if(d+=f,n&&f!==d){for(p=0;h=i[p++];)h(m,y,o,a);if(r){if(d>0)for(;f--;)m[f]||y[f]||(y[f]=G.call(l));y=g(y)}K.apply(l,y),c&&!r&&y.length>0&&d+i.length>1&&t.uniqueSort(l)}return c&&(R=w,C=v),m};return n?r(o):o}var w,S,k,_,x,T,A,j,C,J,P,O,E,$,I,L,M,F,D,H="sizzle"+1*new Date,N=e.document,R=0,z=0,q=i(),V=i(),B=i(),W=function(e,t){return e===t&&(P=!0),0},U=1<<31,Q={}.hasOwnProperty,Y=[],G=Y.pop,X=Y.push,K=Y.push,Z=Y.slice,ee=function(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ie="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ne="\\["+ie+"*("+re+")(?:"+ie+"*([*^$|!~]?=)"+ie+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ie+"*\\]",se=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",oe=new RegExp(ie+"+","g"),ae=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g"),le=new RegExp("^"+ie+"*,"+ie+"*"),ce=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),ue=new RegExp("="+ie+"*([^\\]'\"]*?)"+ie+"*\\]","g"),pe=new RegExp(se),he=new RegExp("^"+re+"$"),de={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,be=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+ie+"?|("+ie+")|.)","ig"),Se=function(e,t,i){var r="0x"+t-65536;return r!=r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},ke=function(){O()};try{K.apply(Y=Z.call(N.childNodes),N.childNodes),Y[N.childNodes.length].nodeType}catch(e){K={apply:Y.length?function(e,t){X.apply(e,Z.call(t))}:function(e,t){for(var i=e.length,r=0;e[i++]=t[r++];);e.length=i-1}}}for(w in S=t.support={},x=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},O=t.setDocument=function(e){var t,i,r=e?e.ownerDocument||e:N;return r!==E&&9===r.nodeType&&r.documentElement?($=(E=r).documentElement,I=!x(E),(i=E.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ke,!1):i.attachEvent&&i.attachEvent("onunload",ke)),S.attributes=n((function(e){return e.className="i",!e.getAttribute("className")})),S.getElementsByTagName=n((function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length})),S.getElementsByClassName=ge.test(E.getElementsByClassName),S.getById=n((function(e){return $.appendChild(e).id=H,!E.getElementsByName||!E.getElementsByName(H).length})),S.getById?(k.find.ID=function(e,t){if(void 0!==t.getElementById&&I){var i=t.getElementById(e);return i?[i]:[]}},k.filter.ID=function(e){var t=e.replace(we,Se);return function(e){return e.getAttribute("id")===t}}):(delete k.find.ID,k.filter.ID=function(e){var t=e.replace(we,Se);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}}),k.find.TAG=S.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):S.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,r=[],n=0,s=t.getElementsByTagName(e);if("*"===e){for(;i=s[n++];)1===i.nodeType&&r.push(i);return r}return s},k.find.CLASS=S.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&I)return t.getElementsByClassName(e)},M=[],L=[],(S.qsa=ge.test(E.querySelectorAll))&&(n((function(e){$.appendChild(e).innerHTML="<a id='"+H+"'></a><select id='"+H+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+ie+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||L.push("\\["+ie+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+H+"-]").length||L.push("~="),e.querySelectorAll(":checked").length||L.push(":checked"),e.querySelectorAll("a#"+H+"+*").length||L.push(".#.+[+~]")})),n((function(e){var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&L.push("name"+ie+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),L.push(",.*:")}))),(S.matchesSelector=ge.test(F=$.matches||$.webkitMatchesSelector||$.mozMatchesSelector||$.oMatchesSelector||$.msMatchesSelector))&&n((function(e){S.disconnectedMatch=F.call(e,"div"),F.call(e,"[s!='']:x"),M.push("!=",se)})),L=L.length&&new RegExp(L.join("|")),M=M.length&&new RegExp(M.join("|")),t=ge.test($.compareDocumentPosition),D=t||ge.test($.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(i.contains?i.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return P=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!S.sortDetached&&t.compareDocumentPosition(e)===i?e===E||e.ownerDocument===N&&D(N,e)?-1:t===E||t.ownerDocument===N&&D(N,t)?1:J?ee(J,e)-ee(J,t):0:4&i?-1:1)}:function(e,t){if(e===t)return P=!0,0;var i,r=0,n=e.parentNode,s=t.parentNode,a=[e],l=[t];if(!n||!s)return e===E?-1:t===E?1:n?-1:s?1:J?ee(J,e)-ee(J,t):0;if(n===s)return o(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;a[r]===l[r];)r++;return r?o(a[r],l[r]):a[r]===N?-1:l[r]===N?1:0},E):E},t.matches=function(e,i){return t(e,null,null,i)},t.matchesSelector=function(e,i){if((e.ownerDocument||e)!==E&&O(e),i=i.replace(ue,"='$1']"),S.matchesSelector&&I&&!B[i+" "]&&(!M||!M.test(i))&&(!L||!L.test(i)))try{var r=F.call(e,i);if(r||S.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(i,E,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==E&&O(e),D(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==E&&O(e);var i=k.attrHandle[t.toLowerCase()],r=i&&Q.call(k.attrHandle,t.toLowerCase())?i(e,t,!I):void 0;return void 0!==r?r:S.attributes||!I?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,i=[],r=0,n=0;if(P=!S.detectDuplicates,J=!S.sortStable&&e.slice(0),e.sort(W),P){for(;t=e[n++];)t===e[n]&&(r=i.push(n));for(;r--;)e.splice(i[r],1)}return J=null,e},_=t.getText=function(e){var t,i="",r=0,n=e.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=_(e)}else if(3===n||4===n)return e.nodeValue}else for(;t=e[r++];)i+=_(t);return i},k=t.selectors={cacheLength:50,createPseudo:r,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,Se),e[3]=(e[3]||e[4]||e[5]||"").replace(we,Se),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&pe.test(i)&&(t=T(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(we,Se).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=q[e+" "];return t||(t=new RegExp("(^|"+ie+")"+e+"("+ie+"|$)"))&&q(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,i,r){return function(n){var s=t.attr(n,e);return null==s?"!="===i:!i||(s+="","="===i?s===r:"!="===i?s!==r:"^="===i?r&&0===s.indexOf(r):"*="===i?r&&s.indexOf(r)>-1:"$="===i?r&&s.slice(-r.length)===r:"~="===i?(" "+s.replace(oe," ")+" ").indexOf(r)>-1:"|="===i&&(s===r||s.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,i,r,n){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===n?function(e){return!!e.parentNode}:function(t,i,l){var c,u,p,h,d,f,m=s!==o?"nextSibling":"previousSibling",g=t.parentNode,y=a&&t.nodeName.toLowerCase(),v=!l&&!a,b=!1;if(g){if(s){for(;m;){for(h=t;h=h[m];)if(a?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&v){for(b=(d=(c=(u=(p=(h=g)[H]||(h[H]={}))[h.uniqueID]||(p[h.uniqueID]={}))[e]||[])[0]===R&&c[1])&&c[2],h=d&&g.childNodes[d];h=++d&&h&&h[m]||(b=d=0)||f.pop();)if(1===h.nodeType&&++b&&h===t){u[e]=[R,d,b];break}}else if(v&&(b=d=(c=(u=(p=(h=t)[H]||(h[H]={}))[h.uniqueID]||(p[h.uniqueID]={}))[e]||[])[0]===R&&c[1]),!1===b)for(;(h=++d&&h&&h[m]||(b=d=0)||f.pop())&&((a?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++b||(v&&((u=(p=h[H]||(h[H]={}))[h.uniqueID]||(p[h.uniqueID]={}))[e]=[R,b]),h!==t)););return(b-=n)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,i){var n,s=k.pseudos[e]||k.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return s[H]?s(i):s.length>1?(n=[e,e,"",i],k.setFilters.hasOwnProperty(e.toLowerCase())?r((function(e,t){for(var r,n=s(e,i),o=n.length;o--;)e[r=ee(e,n[o])]=!(t[r]=n[o])})):function(e){return s(e,0,n)}):s}},pseudos:{not:r((function(e){var t=[],i=[],n=A(e.replace(ae,"$1")) ;return n[H]?r((function(e,t,i,r){for(var s,o=n(e,null,r,[]),a=e.length;a--;)(s=o[a])&&(e[a]=!(t[a]=s))})):function(e,r,s){return t[0]=e,n(t,null,s,i),t[0]=null,!i.pop()}})),has:r((function(e){return function(i){return t(e,i).length>0}})),contains:r((function(e){return e=e.replace(we,Se),function(t){return(t.textContent||t.innerText||_(t)).indexOf(e)>-1}})),lang:r((function(e){return he.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,Se).toLowerCase(),function(t){var i;do{if(i=I?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===$},focus:function(e){return e===E.activeElement&&(!E.hasFocus||E.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!k.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c((function(){return[0]})),last:c((function(e,t){return[t-1]})),eq:c((function(e,t,i){return[i<0?i+t:i]})),even:c((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:c((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:c((function(e,t,i){for(var r=i<0?i+t:i;--r>=0;)e.push(r);return e})),gt:c((function(e,t,i){for(var r=i<0?i+t:i;++r<t;)e.push(r);return e}))}},k.pseudos.nth=k.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})k.pseudos[w]=l(w);return p.prototype=k.filters=k.pseudos,k.setFilters=new p,T=t.tokenize=function(e,i){var r,n,s,o,a,l,c,u=V[e+" "];if(u)return i?0:u.slice(0);for(a=e,l=[],c=k.preFilter;a;){for(o in r&&!(n=le.exec(a))||(n&&(a=a.slice(n[0].length)||a),l.push(s=[])),r=!1,(n=ce.exec(a))&&(r=n.shift(),s.push({value:r,type:n[0].replace(ae," ")}),a=a.slice(r.length)),k.filter)!(n=de[o].exec(a))||c[o]&&!(n=c[o](n))||(r=n.shift(),s.push({value:r,type:o,matches:n}),a=a.slice(r.length));if(!r)break}return i?a.length:a?t.error(e):V(e,l).slice(0)},A=t.compile=function(e,t){var i,r=[],n=[],s=B[e+" "];if(!s){for(t||(t=T(e)),i=t.length;i--;)(s=v(t[i]))[H]?r.push(s):n.push(s);(s=B(e,b(n,r))).selector=e}return s},j=t.select=function(e,t,i,r){var n,s,o,a,l,c="function"==typeof e&&e,p=!r&&T(e=c.selector||e);if(i=i||[],1===p.length){if((s=p[0]=p[0].slice(0)).length>2&&"ID"===(o=s[0]).type&&S.getById&&9===t.nodeType&&I&&k.relative[s[1].type]){if(!(t=(k.find.ID(o.matches[0].replace(we,Se),t)||[])[0]))return i;c&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(n=de.needsContext.test(e)?0:s.length;n--&&(o=s[n],!k.relative[a=o.type]);)if((l=k.find[a])&&(r=l(o.matches[0].replace(we,Se),ve.test(s[0].type)&&u(t.parentNode)||t))){if(s.splice(n,1),!(e=r.length&&h(s)))return K.apply(i,r),i;break}}return(c||A(e,p))(r,t,!I,i,!t||ve.test(e)&&u(t.parentNode)||t),i},S.sortStable=H.split("").sort(W).join("")===H,S.detectDuplicates=!!P,O(),S.sortDetached=n((function(e){return 1&e.compareDocumentPosition(E.createElement("div"))})),n((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||s("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),S.attributes&&n((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||s("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),n((function(e){return null==e.getAttribute("disabled")}))||s(te,(function(e,t,i){var r;if(!i)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),t}(e);de.find=ve,de.expr=ve.selectors,de.expr[":"]=de.expr.pseudos,de.uniqueSort=de.unique=ve.uniqueSort,de.text=ve.getText,de.isXMLDoc=ve.isXML,de.contains=ve.contains;var be=function(e,t,i){for(var r=[],n=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&de(e).is(i))break;r.push(e)}return r},we=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},Se=de.expr.match.needsContext,ke=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,_e=/^.[^:#\[\.,]*$/;de.filter=function(e,t,i){var r=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?de.find.matchesSelector(r,e)?[r]:[]:de.find.matches(e,de.grep(t,(function(e){return 1===e.nodeType})))},de.fn.extend({find:function(e){var t,i=[],r=this,n=r.length;if("string"!=typeof e)return this.pushStack(de(e).filter((function(){for(t=0;t<n;t++)if(de.contains(r[t],this))return!0})));for(t=0;t<n;t++)de.find(e,r[t],i);return(i=this.pushStack(n>1?de.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&Se.test(e)?de(e):e||[],!1).length}});var xe,Te=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(de.fn.init=function(e,t,i){var r,n;if(!e)return this;if(i=i||xe,"string"==typeof e){if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Te.exec(e))||!r[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof de?t[0]:t,de.merge(this,de.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:re,!0)),ke.test(r[1])&&de.isPlainObject(t))for(r in t)de.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if((n=re.getElementById(r[2]))&&n.parentNode){if(n.id!==r[2])return xe.find(e);this.length=1,this[0]=n}return this.context=re,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):de.isFunction(e)?void 0!==i.ready?i.ready(e):e(de):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),de.makeArray(e,this))}).prototype=de.fn,xe=de(re);var Ae=/^(?:parents|prev(?:Until|All))/,je={children:!0,contents:!0,next:!0,prev:!0};de.fn.extend({has:function(e){var t,i=de(e,this),r=i.length;return this.filter((function(){for(t=0;t<r;t++)if(de.contains(this,i[t]))return!0}))},closest:function(e,t){for(var i,r=0,n=this.length,s=[],o=Se.test(e)||"string"!=typeof e?de(e,t||this.context):0;r<n;r++)for(i=this[r];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&de.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(s.length>1?de.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?de.inArray(this[0],de(e)):de.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(de.uniqueSort(de.merge(this.get(),de(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),de.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,i){return be(e,"parentNode",i)},next:function(e){return n(e,"nextSibling")},prev:function(e){return n(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,i){return be(e,"nextSibling",i)},prevUntil:function(e,t,i){return be(e,"previousSibling",i)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return de.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:de.merge([],e.childNodes)}},(function(e,t){de.fn[e]=function(i,r){var n=de.map(this,t,i);return"Until"!==e.slice(-5)&&(r=i),r&&"string"==typeof r&&(n=de.filter(r,n)),this.length>1&&(je[e]||(n=de.uniqueSort(n)),Ae.test(e)&&(n=n.reverse())),this.pushStack(n)}}));var Ce,Je,Pe=/\S+/g;for(Je in de.Callbacks=function(e){e="string"==typeof e?s(e):de.extend({},e);var t,i,r,n,o=[],a=[],l=-1,c=function(){for(n=e.once,r=t=!0;a.length;l=-1)for(i=a.shift();++l<o.length;)!1===o[l].apply(i[0],i[1])&&e.stopOnFalse&&(l=o.length,i=!1);e.memory||(i=!1),t=!1,n&&(o=i?[]:"")},u={add:function(){return o&&(i&&!t&&(l=o.length-1,a.push(i)),function t(i){de.each(i,(function(i,r){de.isFunction(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==de.type(r)&&t(r)}))}(arguments),i&&!t&&c()),this},remove:function(){return de.each(arguments,(function(e,t){for(var i;(i=de.inArray(t,o,i))>-1;)o.splice(i,1),i<=l&&l--})),this},has:function(e){return e?de.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return n=a=[],o=i="",this},disabled:function(){return!o},lock:function(){return n=!0,i||u.disable(),this},locked:function(){return!!n},fireWith:function(e,i){return n||(i=[e,(i=i||[]).slice?i.slice():i],a.push(i),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},de.extend({Deferred:function(e){var t=[["resolve","done",de.Callbacks("once memory"),"resolved"],["reject","fail",de.Callbacks("once memory"),"rejected"],["notify","progress",de.Callbacks("memory")]],i="pending",r={state:function(){return i},always:function(){return n.done(arguments).fail(arguments),this},then:function(){var e=arguments;return de.Deferred((function(i){de.each(t,(function(t,s){var o=de.isFunction(e[t])&&e[t];n[s[1]]((function(){var e=o&&o.apply(this,arguments);e&&de.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[s[0]+"With"](this===r?i.promise():this,o?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?de.extend(e,r):r}},n={};return r.pipe=r.then,de.each(t,(function(e,s){var o=s[2],a=s[3];r[s[1]]=o.add,a&&o.add((function(){i=a}),t[1^e][2].disable,t[2][2].lock),n[s[0]]=function(){return n[s[0]+"With"](this===n?r:this,arguments),this},n[s[0]+"With"]=o.fireWith})),r.promise(n),e&&e.call(n,n),n},when:function(e){var t,i,r,n=0,s=ne.call(arguments),o=s.length,a=1!==o||e&&de.isFunction(e.promise)?o:0,l=1===a?e:de.Deferred(),c=function(e,i,r){return function(n){i[e]=this,r[e]=arguments.length>1?ne.call(arguments):n,r===t?l.notifyWith(i,r):--a||l.resolveWith(i,r)}};if(o>1)for(t=new Array(o),i=new Array(o),r=new Array(o);n<o;n++)s[n]&&de.isFunction(s[n].promise)?s[n].promise().progress(c(n,i,t)).done(c(n,r,s)).fail(l.reject):--a;return a||l.resolveWith(r,s),l.promise()}}),de.fn.ready=function(e){return de.ready.promise().done(e),this},de.extend({isReady:!1,readyWait:1,holdReady:function(e){e?de.readyWait++:de.ready(!0)},ready:function(e){(!0===e?--de.readyWait:de.isReady)||(de.isReady=!0,!0!==e&&--de.readyWait>0||(Ce.resolveWith(re,[de]),de.fn.triggerHandler&&(de(re).triggerHandler("ready"),de(re).off("ready"))))}}),de.ready.promise=function(t){if(!Ce)if(Ce=de.Deferred(),"complete"===re.readyState||"loading"!==re.readyState&&!re.documentElement.doScroll)e.setTimeout(de.ready);else if(re.addEventListener)re.addEventListener("DOMContentLoaded",a),e.addEventListener("load",a);else{re.attachEvent("onreadystatechange",a),e.attachEvent("onload",a);var i=!1;try{i=null==e.frameElement&&re.documentElement}catch(e){}i&&i.doScroll&&function t(){if(!de.isReady){try{i.doScroll("left")}catch(i){return e.setTimeout(t,50)}o(),de.ready()}}()}return Ce.promise(t)},de.ready.promise(),de(pe))break;pe.ownFirst="0"===Je,pe.inlineBlockNeedsLayout=!1,de((function(){var e,t,i,r;(i=re.getElementsByTagName("body")[0])&&i.style&&(t=re.createElement("div"),(r=re.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(r).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",pe.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(i.style.zoom=1)),i.removeChild(r))})),function(){var e=re.createElement("div");pe.deleteExpando=!0;try{delete e.test}catch(e){pe.deleteExpando=!1}e=null}();var Oe,Ee=function(e){var t=de.noData[(e.nodeName+" ").toLowerCase()],i=+e.nodeType||1;return(1===i||9===i)&&(!t||!0!==t&&e.getAttribute("classid")===t)},$e=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ie=/([A-Z])/g;de.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?de.cache[e[de.expando]]:e[de.expando])&&!c(e)},data:function(e,t,i){return u(e,t,i)},removeData:function(e,t){return p(e,t)},_data:function(e,t,i){return u(e,t,i,!0)},_removeData:function(e,t){return p(e,t,!0)}}),de.fn.extend({data:function(e,t){var i,r,n,s=this[0],o=s&&s.attributes;if(void 0===e){if(this.length&&(n=de.data(s),1===s.nodeType&&!de._data(s,"parsedAttrs"))){for(i=o.length;i--;)o[i]&&0===(r=o[i].name).indexOf("data-")&&l(s,r=de.camelCase(r.slice(5)),n[r]);de._data(s,"parsedAttrs",!0)}return n}return"object"==typeof e?this.each((function(){de.data(this,e)})):arguments.length>1?this.each((function(){de.data(this,e,t)})):s?l(s,e,de.data(s,e)):void 0},removeData:function(e){return this.each((function(){de.removeData(this,e)}))}}),de.extend({queue:function(e,t,i){var r;if(e)return t=(t||"fx")+"queue",r=de._data(e,t),i&&(!r||de.isArray(i)?r=de._data(e,t,de.makeArray(i)):r.push(i)),r||[]},dequeue:function(e,t){t=t||"fx";var i=de.queue(e,t),r=i.length,n=i.shift(),s=de._queueHooks(e,t),o=function(){de.dequeue(e,t)};"inprogress"===n&&(n=i.shift(),r--),n&&("fx"===t&&i.unshift("inprogress"),delete s.stop,n.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return de._data(e,i)||de._data(e,i,{empty:de.Callbacks("once memory").add((function(){de._removeData(e,t+"queue"),de._removeData(e,i)}))})}}),de.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?de.queue(this[0],e):void 0===t?this:this.each((function(){var i=de.queue(this,e,t);de._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&de.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){de.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,r=1,n=de.Deferred(),s=this,o=this.length,a=function(){--r||n.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(i=de._data(s[o],e+"queueHooks"))&&i.empty&&(r++,i.empty.add(a));return a(),n.promise(t)}}),pe.shrinkWrapBlocks=function(){return null!=Oe?Oe:(Oe=!1,(t=re.getElementsByTagName("body")[0])&&t.style?(e=re.createElement("div"),(i=re.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(i).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(re.createElement("div")).style.width="5px",Oe=3!==e.offsetWidth),t.removeChild(i),Oe):void 0);var e,t,i};var Le,Me,Fe,De=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,He=new RegExp("^(?:([+-])=|)("+De+")([a-z%]*)$","i"),Ne=["Top","Right","Bottom","Left"],Re=function(e,t){return e=t||e,"none"===de.css(e,"display")||!de.contains(e.ownerDocument,e)},ze=function(e,t,i,r,n,s,o){var a=0,l=e.length,c=null==i;if("object"===de.type(i))for(a in n=!0,i)ze(e,t,a,i[a],!0,s,o);else if(void 0!==r&&(n=!0,de.isFunction(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,i){return c.call(de(e),i)})),t))for(;a<l;a++)t(e[a],i,o?r:r.call(e[a],a,t(e[a],i)));return n?e:c?t.call(e):l?t(e[0],i):s},qe=/^(?:checkbox|radio)$/i,Ve=/<([\w:-]+)/,Be=/^$|\/(?:java|ecma)script/i,We=/^\s+/,Ue="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";Le=re.createElement("div"),Me=re.createDocumentFragment(),Fe=re.createElement("input"),Le.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",pe.leadingWhitespace=3===Le.firstChild.nodeType,pe.tbody=!Le.getElementsByTagName("tbody").length,pe.htmlSerialize=!!Le.getElementsByTagName("link").length,pe.html5Clone="<:nav></:nav>"!==re.createElement("nav").cloneNode(!0).outerHTML,Fe.type="checkbox",Fe.checked=!0,Me.appendChild(Fe),pe.appendChecked=Fe.checked,Le.innerHTML="<textarea>x</textarea>",pe.noCloneChecked=!!Le.cloneNode(!0).lastChild.defaultValue,Me.appendChild(Le),(Fe=re.createElement("input")).setAttribute("type","radio"),Fe.setAttribute("checked","checked"),Fe.setAttribute("name","t"),Le.appendChild(Fe),pe.checkClone=Le.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.noCloneEvent=!!Le.addEventListener,Le[de.expando]=1,pe.attributes=!Le.getAttribute(de.expando);var Qe={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:pe.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Qe.optgroup=Qe.option,Qe.tbody=Qe.tfoot=Qe.colgroup=Qe.caption=Qe.thead,Qe.th=Qe.td;var Ye=/<|&#?\w+;/,Ge=/<tbody/i;!function(){var t,i,r=re.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(pe[t]=i in e)||(r.setAttribute(i,"t"),pe[t]=!1===r.attributes[i].expando);r=null}();var Xe=/^(?:input|select|textarea)$/i,Ke=/^key/,Ze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,et=/^(?:focusinfocus|focusoutblur)$/,tt=/^([^.]*)(?:\.(.+)|)/;de.event={global:{},add:function(e,t,i,r,n){var s,o,a,l,c,u,p,h,d,f,m,g=de._data(e);if(g){for(i.handler&&(i=(l=i).handler,n=l.selector),i.guid||(i.guid=de.guid++),(o=g.events)||(o=g.events={}),(u=g.handle)||(u=g.handle=function(e){return void 0===de||e&&de.event.triggered===e.type?void 0:de.event.dispatch.apply(u.elem,arguments)},u.elem=e),a=(t=(t||"").match(Pe)||[""]).length;a--;)d=m=(s=tt.exec(t[a])||[])[1],f=(s[2]||"").split(".").sort(),d&&(c=de.event.special[d]||{},d=(n?c.delegateType:c.bindType)||d,c=de.event.special[d]||{},p=de.extend({type:d,origType:m,data:r,handler:i,guid:i.guid,selector:n,needsContext:n&&de.expr.match.needsContext.test(n),namespace:f.join(".")},l),(h=o[d])||((h=o[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,r,f,u)||(e.addEventListener?e.addEventListener(d,u,!1):e.attachEvent&&e.attachEvent("on"+d,u))),c.add&&(c.add.call(e,p),p.handler.guid||(p.handler.guid=i.guid)),n?h.splice(h.delegateCount++,0,p):h.push(p),de.event.global[d]=!0);e=null}},remove:function(e,t,i,r,n){var s,o,a,l,c,u,p,h,d,f,m,g=de.hasData(e)&&de._data(e);if(g&&(u=g.events)){for(c=(t=(t||"").match(Pe)||[""]).length;c--;)if(d=m=(a=tt.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),d){for(p=de.event.special[d]||{},h=u[d=(r?p.delegateType:p.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=s=h.length;s--;)o=h[s],!n&&m!==o.origType||i&&i.guid!==o.guid||a&&!a.test(o.namespace)||r&&r!==o.selector&&("**"!==r||!o.selector)||(h.splice(s,1),o.selector&&h.delegateCount--,p.remove&&p.remove.call(e,o));l&&!h.length&&(p.teardown&&!1!==p.teardown.call(e,f,g.handle)||de.removeEvent(e,d,g.handle),delete u[d])}else for(d in u)de.event.remove(e,d+t[c],i,r,!0);de.isEmptyObject(u)&&(delete g.handle,de._removeData(e,"events"))}},trigger:function(t,i,r,n){var s,o,a,l,c,u,p,h=[r||re],d=ue.call(t,"type")?t.type:t,f=ue.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||re,3!==r.nodeType&&8!==r.nodeType&&!et.test(d+de.event.triggered)&&(d.indexOf(".")>-1&&(f=d.split("."),d=f.shift(),f.sort()),o=d.indexOf(":")<0&&"on"+d,(t=t[de.expando]?t:new de.Event(d,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),i=null==i?[t]:de.makeArray(i,[t]),c=de.event.special[d]||{},n||!c.trigger||!1!==c.trigger.apply(r,i))){if(!n&&!c.noBubble&&!de.isWindow(r)){for(l=c.delegateType||d,et.test(l+d)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||re)&&h.push(u.defaultView||u.parentWindow||e)}for(p=0;(a=h[p++])&&!t.isPropagationStopped();)t.type=p>1?l:c.bindType||d,(s=(de._data(a,"events")||{})[t.type]&&de._data(a,"handle"))&&s.apply(a,i),(s=o&&a[o])&&s.apply&&Ee(a)&&(t.result=s.apply(a,i),!1===t.result&&t.preventDefault());if(t.type=d,!n&&!t.isDefaultPrevented()&&(!c._default||!1===c._default.apply(h.pop(),i))&&Ee(r)&&o&&r[d]&&!de.isWindow(r)){(u=r[o])&&(r[o]=null),de.event.triggered=d;try{r[d]()}catch(e){}de.event.triggered=void 0,u&&(r[o]=u)}return t.result}},dispatch:function(e){e=de.event.fix(e);var t,i,r,n,s,o=[],a=ne.call(arguments),l=(de._data(this,"events")||{})[e.type]||[],c=de.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(o=de.event.handlers.call(this,e,l),t=0;(n=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=n.elem,i=0;(s=n.handlers[i++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(s.namespace)||(e.handleObj=s,e.data=s.data,void 0!==(r=((de.event.special[s.origType]||{}).handle||s.handler).apply(n.elem,a))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,r,n,s,o=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(r=[],i=0;i<a;i++)void 0===r[n=(s=t[i]).selector+" "]&&(r[n]=s.needsContext?de(n,this).index(l)>-1:de.find(n,this,null,[l]).length),r[n]&&r.push(s);r.length&&o.push({elem:l,handlers:r})}return a<t.length&&o.push({elem:this,handlers:t.slice(a)}),o},fix:function(e){if(e[de.expando])return e;var t,i,r,n=e.type,s=e,o=this.fixHooks[n];for(o||(this.fixHooks[n]=o=Ze.test(n)?this.mouseHooks:Ke.test(n)?this.keyHooks:{}),r=o.props?this.props.concat(o.props):this.props,e=new de.Event(s),t=r.length;t--;)e[i=r[t]]=s[i];return e.target||(e.target=s.srcElement||re),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,o.filter?o.filter(e,s):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,r,n,s=t.button,o=t.fromElement;return null==e.pageX&&null!=t.clientX&&(n=(r=e.target.ownerDocument||re).documentElement,i=r.body,e.pageX=t.clientX+(n&&n.scrollLeft||i&&i.scrollLeft||0)-(n&&n.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||i&&i.scrollTop||0)-(n&&n.clientTop||i&&i.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),e.which||void 0===s||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==w()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===w()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(de.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return de.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,i){var r=de.extend(new de.Event,i,{type:e,isSimulated:!0});de.event.trigger(r,null,t),r.isDefaultPrevented()&&i.preventDefault()}},de.removeEvent=re.removeEventListener?function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)}:function(e,t,i){var r="on"+t;e.detachEvent&&(void 0===e[r]&&(e[r]=null),e.detachEvent(r,i))},de.Event=function(e,t){if(!(this instanceof de.Event))return new de.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?v:b):this.type=e,t&&de.extend(this,t),this.timeStamp=e&&e.timeStamp||de.now(),this[de.expando]=!0},de.Event.prototype={constructor:de.Event,isDefaultPrevented:b,isPropagationStopped:b,isImmediatePropagationStopped:b,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=v,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=v,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=v,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},de.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){de.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,r=this,n=e.relatedTarget,s=e.handleObj;return n&&(n===r||de.contains(r,n))||(e.type=s.origType,i=s.handler.apply(this,arguments),e.type=t),i}}})),pe.submit||(de.event.special.submit={setup:function(){if(de.nodeName(this,"form"))return!1;de.event.add(this,"click._submit keypress._submit",(function(e){var t=e.target,i=de.nodeName(t,"input")||de.nodeName(t,"button")?de.prop(t,"form"):void 0;i&&!de._data(i,"submit")&&(de.event.add(i,"submit._submit",(function(e){e._submitBubble=!0})),de._data(i,"submit",!0))}))},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&de.event.simulate("submit",this.parentNode,e))},teardown:function(){if(de.nodeName(this,"form"))return!1;de.event.remove(this,"._submit")}}),pe.change||(de.event.special.change={setup:function(){if(Xe.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(de.event.add(this,"propertychange._change",(function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)})),de.event.add(this,"click._change",(function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),de.event.simulate("change",this,e)}))),!1;de.event.add(this,"beforeactivate._change",(function(e){var t=e.target;Xe.test(t.nodeName)&&!de._data(t,"change")&&(de.event.add(t,"change._change",(function(e){!this.parentNode||e.isSimulated||e.isTrigger||de.event.simulate("change",this.parentNode,e)})),de._data(t,"change",!0))}))},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return de.event.remove(this,"._change"),!Xe.test(this.nodeName)}}),pe.focusin||de.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){de.event.simulate(t,e.target,de.event.fix(e))};de.event.special[t]={setup:function(){var r=this.ownerDocument||this,n=de._data(r,t);n||r.addEventListener(e,i,!0),de._data(r,t,(n||0)+1)},teardown:function(){var r=this.ownerDocument||this,n=de._data(r,t)-1;n?de._data(r,t,n):(r.removeEventListener(e,i,!0),de._removeData(r,t))}}})),de.fn.extend({on:function(e,t,i,r){return S(this,e,t,i,r)},one:function(e,t,i,r){return S(this,e,t,i,r,1)},off:function(e,t,i){var r,n;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,de(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(n in e)this.off(n,t,e[n]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=b),this.each((function(){de.event.remove(this,e,i,t)}))},trigger:function(e,t){return this.each((function(){de.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return de.event.trigger(e,t,i,!0)}});var it=/ jQuery\d+="(?:null|\d+)"/g,rt=new RegExp("<(?:"+Ue+")[\\s/>]","i"),nt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,st=/<script|<style|<link/i,ot=/checked\s*(?:[^=]|=\s*.checked.)/i,at=/^true\/(.*)/,lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ct=d(re).appendChild(re.createElement("div"));de.extend({htmlPrefilter:function(e){return e.replace(nt,"<$1></$2>")},clone:function(e,t,i){var r,n,s,o,a,l=de.contains(e.ownerDocument,e);if(pe.html5Clone||de.isXMLDoc(e)||!rt.test("<"+e.nodeName+">")?s=e.cloneNode(!0):(ct.innerHTML=e.outerHTML,ct.removeChild(s=ct.firstChild)),!(pe.noCloneEvent&&pe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||de.isXMLDoc(e)))for(r=f(s),a=f(e),o=0;null!=(n=a[o]);++o)r[o]&&A(n,r[o]);if(t)if(i)for(a=a||f(e),r=r||f(s),o=0;null!=(n=a[o]);o++)T(n,r[o]);else T(e,s);return(r=f(s,"script")).length>0&&m(r,!l&&f(e,"script")),r=a=n=null,s},cleanData:function(e,t){for(var i,r,n,s,o=0,a=de.expando,l=de.cache,c=pe.attributes,u=de.event.special;null!=(i=e[o]);o++)if((t||Ee(i))&&(s=(n=i[a])&&l[n])){if(s.events)for(r in s.events)u[r]?de.event.remove(i,r):de.removeEvent(i,r,s.handle);l[n]&&(delete l[n],c||void 0===i.removeAttribute?i[a]=void 0:i.removeAttribute(a),ie.push(n))}}}),de.fn.extend({domManip:j,detach:function(e){return C(this,e,!0)},remove:function(e){return C(this,e)},text:function(e){return ze(this,(function(e){return void 0===e?de.text(this):this.empty().append((this[0]&&this[0].ownerDocument||re).createTextNode(e))}),null,e,arguments.length)},append:function(){return j(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||k(this,e).appendChild(e)}))},prepend:function(){return j(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=k(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return j(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return j(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&de.cleanData(f(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&de.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return de.clone(this,e,t)}))},html:function(e){return ze(this,(function(e){var t=this[0]||{},i=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(it,""):void 0;if("string"==typeof e&&!st.test(e)&&(pe.htmlSerialize||!rt.test(e))&&(pe.leadingWhitespace||!We.test(e))&&!Qe[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=de.htmlPrefilter(e);try{for(;i<r;i++)1===(t=this[i]||{}).nodeType&&(de.cleanData(f(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return j(this,arguments,(function(t){var i=this.parentNode;de.inArray(this,e)<0&&(de.cleanData(f(this)),i&&i.replaceChild(t,this))}),e)}}),de.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){de.fn[e]=function(e){for(var i,r=0,n=[],s=de(e),o=s.length-1;r<=o;r++)i=r===o?this:this.clone(!0),de(s[r])[t](i),oe.apply(n,i.get());return this.pushStack(n)}}));var ut,pt={HTML:"block",BODY:"block"},ht=/^margin/,dt=new RegExp("^("+De+")(?!px)[a-z%]+$","i"),ft=function(e,t,i,r){var n,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];for(s in n=i.apply(e,r||[]),t)e.style[s]=o[s];return n},mt=re.documentElement;!function(){function t(){var t,u,p=re.documentElement;p.appendChild(l),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i=n=a=!1,r=o=!0,e.getComputedStyle&&(u=e.getComputedStyle(c),i="1%"!==(u||{}).top,a="2px"===(u||{}).marginLeft,n="4px"===(u||{width:"4px"}).width,c.style.marginRight="50%",r="4px"===(u||{marginRight:"4px"}).marginRight,(t=c.appendChild(re.createElement("div"))).style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",c.style.width="1px",o=!parseFloat((e.getComputedStyle(t)||{}).marginRight),c.removeChild(t)),c.style.display="none",(s=0===c.getClientRects().length)&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c.childNodes[0].style.borderCollapse="separate", (t=c.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===t[0].offsetHeight)&&(t[0].style.display="",t[1].style.display="none",s=0===t[0].offsetHeight)),p.removeChild(l)}var i,r,n,s,o,a,l=re.createElement("div"),c=re.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",pe.opacity="0.5"===c.style.opacity,pe.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",pe.clearCloneStyle="content-box"===c.style.backgroundClip,(l=re.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",l.appendChild(c),pe.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,de.extend(pe,{reliableHiddenOffsets:function(){return null==i&&t(),s},boxSizingReliable:function(){return null==i&&t(),n},pixelMarginRight:function(){return null==i&&t(),r},pixelPosition:function(){return null==i&&t(),i},reliableMarginRight:function(){return null==i&&t(),o},reliableMarginLeft:function(){return null==i&&t(),a}}))}();var gt,yt,vt=/^(top|right|bottom|left)$/;e.getComputedStyle?(gt=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},yt=function(e,t,i){var r,n,s,o,a=e.style;return""!==(o=(i=i||gt(e))?i.getPropertyValue(t)||i[t]:void 0)&&void 0!==o||de.contains(e.ownerDocument,e)||(o=de.style(e,t)),i&&!pe.pixelMarginRight()&&dt.test(o)&&ht.test(t)&&(r=a.width,n=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=r,a.minWidth=n,a.maxWidth=s),void 0===o?o:o+""}):mt.currentStyle&&(gt=function(e){return e.currentStyle},yt=function(e,t,i){var r,n,s,o,a=e.style;return null==(o=(i=i||gt(e))?i[t]:void 0)&&a&&a[t]&&(o=a[t]),dt.test(o)&&!vt.test(t)&&(r=a.left,(s=(n=e.runtimeStyle)&&n.left)&&(n.left=e.currentStyle.left),a.left="fontSize"===t?"1em":o,o=a.pixelLeft+"px",a.left=r,s&&(n.left=s)),void 0===o?o:o+""||"auto"});var bt=/alpha\([^)]*\)/i,wt=/opacity\s*=\s*([^)]*)/i,St=/^(none|table(?!-c[ea]).+)/,kt=new RegExp("^("+De+")(.*)$","i"),_t={position:"absolute",visibility:"hidden",display:"block"},xt={letterSpacing:"0",fontWeight:"400"},Tt=["Webkit","O","Moz","ms"],At=re.createElement("div").style;de.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=yt(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:pe.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,s,o,a=de.camelCase(t),l=e.style;if(t=de.cssProps[a]||(de.cssProps[a]=E(a)||a),o=de.cssHooks[t]||de.cssHooks[a],void 0===i)return o&&"get"in o&&void 0!==(n=o.get(e,!1,r))?n:l[t];if(!("string"===(s=typeof i)&&(n=He.exec(i))&&n[1]&&(i=h(e,t,n),s="number"),null==i||i!=i||("number"===s&&(i+=n&&n[3]||(de.cssNumber[a]?"":"px")),pe.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(i=o.set(e,i,r)))))try{l[t]=i}catch(e){}}},css:function(e,t,i,r){var n,s,o,a=de.camelCase(t);return t=de.cssProps[a]||(de.cssProps[a]=E(a)||a),(o=de.cssHooks[t]||de.cssHooks[a])&&"get"in o&&(s=o.get(e,!0,i)),void 0===s&&(s=yt(e,t,r)),"normal"===s&&t in xt&&(s=xt[t]),""===i||i?(n=parseFloat(s),!0===i||isFinite(n)?n||0:s):s}}),de.each(["height","width"],(function(e,t){de.cssHooks[t]={get:function(e,i,r){if(i)return St.test(de.css(e,"display"))&&0===e.offsetWidth?ft(e,_t,(function(){return M(e,t,r)})):M(e,t,r)},set:function(e,i,r){var n=r&>(e);return I(e,i,r?L(e,t,r,pe.boxSizing&&"border-box"===de.css(e,"boxSizing",!1,n),n):0)}}})),pe.opacity||(de.cssHooks.opacity={get:function(e,t){return wt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var i=e.style,r=e.currentStyle,n=de.isNumeric(t)?"alpha(opacity="+100*t+")":"",s=r&&r.filter||i.filter||"";i.zoom=1,(t>=1||""===t)&&""===de.trim(s.replace(bt,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===t||r&&!r.filter)||(i.filter=bt.test(s)?s.replace(bt,n):s+" "+n)}}),de.cssHooks.marginRight=O(pe.reliableMarginRight,(function(e,t){if(t)return ft(e,{display:"inline-block"},yt,[e,"marginRight"])})),de.cssHooks.marginLeft=O(pe.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(yt(e,"marginLeft"))||(de.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-ft(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})):0))+"px"})),de.each({margin:"",padding:"",border:"Width"},(function(e,t){de.cssHooks[e+t]={expand:function(i){for(var r=0,n={},s="string"==typeof i?i.split(" "):[i];r<4;r++)n[e+Ne[r]+t]=s[r]||s[r-2]||s[0];return n}},ht.test(e)||(de.cssHooks[e+t].set=I)})),de.fn.extend({css:function(e,t){return ze(this,(function(e,t,i){var r,n,s={},o=0;if(de.isArray(t)){for(r=gt(e),n=t.length;o<n;o++)s[t[o]]=de.css(e,t[o],!1,r);return s}return void 0!==i?de.style(e,t,i):de.css(e,t)}),e,t,arguments.length>1)},show:function(){return $(this,!0)},hide:function(){return $(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){Re(this)?de(this).show():de(this).hide()}))}}),de.Tween=F,F.prototype={constructor:F,init:function(e,t,i,r,n,s){this.elem=e,this.prop=i,this.easing=n||de.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(de.cssNumber[i]?"":"px")},cur:function(){var e=F.propHooks[this.prop];return e&&e.get?e.get(this):F.propHooks._default.get(this)},run:function(e){var t,i=F.propHooks[this.prop];return this.options.duration?this.pos=t=de.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):F.propHooks._default.set(this),this}},F.prototype.init.prototype=F.prototype,F.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=de.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){de.fx.step[e.prop]?de.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[de.cssProps[e.prop]]&&!de.cssHooks[e.prop]?e.elem[e.prop]=e.now:de.style(e.elem,e.prop,e.now+e.unit)}}},F.propHooks.scrollTop=F.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},de.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},de.fx=F.prototype.init,de.fx.step={};var jt,Ct,Jt=/^(?:toggle|show|hide)$/,Pt=/queueHooks$/;de.Animation=de.extend(q,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return h(i.elem,e,He.exec(t),i),i}]},tweener:function(e,t){de.isFunction(e)?(t=e,e=["*"]):e=e.match(Pe);for(var i,r=0,n=e.length;r<n;r++)i=e[r],q.tweeners[i]=q.tweeners[i]||[],q.tweeners[i].unshift(t)},prefilters:[R],prefilter:function(e,t){t?q.prefilters.unshift(e):q.prefilters.push(e)}}),de.speed=function(e,t,i){var r=e&&"object"==typeof e?de.extend({},e):{complete:i||!i&&t||de.isFunction(e)&&e,duration:e,easing:i&&t||t&&!de.isFunction(t)&&t};return r.duration=de.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in de.fx.speeds?de.fx.speeds[r.duration]:de.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){de.isFunction(r.old)&&r.old.call(this),r.queue&&de.dequeue(this,r.queue)},r},de.fn.extend({fadeTo:function(e,t,i,r){return this.filter(Re).css("opacity",0).show().end().animate({opacity:t},e,i,r)},animate:function(e,t,i,r){var n=de.isEmptyObject(e),s=de.speed(t,i,r),o=function(){var t=q(this,de.extend({},e),s);(n||de._data(this,"finish"))&&t.stop(!0)};return o.finish=o,n||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(e,t,i){var r=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,n=null!=e&&e+"queueHooks",s=de.timers,o=de._data(this);if(n)o[n]&&o[n].stop&&r(o[n]);else for(n in o)o[n]&&o[n].stop&&Pt.test(n)&&r(o[n]);for(n=s.length;n--;)s[n].elem!==this||null!=e&&s[n].queue!==e||(s[n].anim.stop(i),t=!1,s.splice(n,1));!t&&i||de.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=de._data(this),r=i[e+"queue"],n=i[e+"queueHooks"],s=de.timers,o=r?r.length:0;for(i.finish=!0,de.queue(this,e,[]),n&&n.stop&&n.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete i.finish}))}}),de.each(["toggle","show","hide"],(function(e,t){var i=de.fn[t];de.fn[t]=function(e,r,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(H(t,!0),e,r,n)}})),de.each({slideDown:H("show"),slideUp:H("hide"),slideToggle:H("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){de.fn[e]=function(e,i,r){return this.animate(t,e,i,r)}})),de.timers=[],de.fx.tick=function(){var e,t=de.timers,i=0;for(jt=de.now();i<t.length;i++)(e=t[i])()||t[i]!==e||t.splice(i--,1);t.length||de.fx.stop(),jt=void 0},de.fx.timer=function(e){de.timers.push(e),e()?de.fx.start():de.timers.pop()},de.fx.interval=13,de.fx.start=function(){Ct||(Ct=e.setInterval(de.fx.tick,de.fx.interval))},de.fx.stop=function(){e.clearInterval(Ct),Ct=null},de.fx.speeds={slow:600,fast:200,_default:400},de.fn.delay=function(t,i){return t=de.fx&&de.fx.speeds[t]||t,i=i||"fx",this.queue(i,(function(i,r){var n=e.setTimeout(i,t);r.stop=function(){e.clearTimeout(n)}}))},function(){var e,t=re.createElement("input"),i=re.createElement("div"),r=re.createElement("select"),n=r.appendChild(re.createElement("option"));(i=re.createElement("div")).setAttribute("className","t"),i.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=i.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),i.appendChild(t),(e=i.getElementsByTagName("a")[0]).style.cssText="top:1px",pe.getSetAttribute="t"!==i.className,pe.style=/top/.test(e.getAttribute("style")),pe.hrefNormalized="/a"===e.getAttribute("href"),pe.checkOn=!!t.value,pe.optSelected=n.selected,pe.enctype=!!re.createElement("form").enctype,r.disabled=!0,pe.optDisabled=!n.disabled,(t=re.createElement("input")).setAttribute("value",""),pe.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),pe.radioValue="t"===t.value}();var Ot=/\r/g,Et=/[\x20\t\r\n\f]+/g;de.fn.extend({val:function(e){var t,i,r,n=this[0];return arguments.length?(r=de.isFunction(e),this.each((function(i){var n;1===this.nodeType&&(null==(n=r?e.call(this,i,de(this).val()):e)?n="":"number"==typeof n?n+="":de.isArray(n)&&(n=de.map(n,(function(e){return null==e?"":e+""}))),(t=de.valHooks[this.type]||de.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))}))):n?(t=de.valHooks[n.type]||de.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(n,"value"))?i:"string"==typeof(i=n.value)?i.replace(Ot,""):null==i?"":i:void 0}}),de.extend({valHooks:{option:{get:function(e){var t=de.find.attr(e,"value");return null!=t?t:de.trim(de.text(e)).replace(Et," ")}},select:{get:function(e){for(var t,i,r=e.options,n=e.selectedIndex,s="select-one"===e.type||n<0,o=s?null:[],a=s?n+1:r.length,l=n<0?a:s?n:0;l<a;l++)if(((i=r[l]).selected||l===n)&&(pe.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!de.nodeName(i.parentNode,"optgroup"))){if(t=de(i).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var i,r,n=e.options,s=de.makeArray(t),o=n.length;o--;)if(r=n[o],de.inArray(de.valHooks.option.get(r),s)>-1)try{r.selected=i=!0}catch(e){r.scrollHeight}else r.selected=!1;return i||(e.selectedIndex=-1),n}}}}),de.each(["radio","checkbox"],(function(){de.valHooks[this]={set:function(e,t){if(de.isArray(t))return e.checked=de.inArray(de(e).val(),t)>-1}},pe.checkOn||(de.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var $t,It,Lt=de.expr.attrHandle,Mt=/^(?:checked|selected)$/i,Ft=pe.getSetAttribute,Dt=pe.input;de.fn.extend({attr:function(e,t){return ze(this,de.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){de.removeAttr(this,e)}))}}),de.extend({attr:function(e,t,i){var r,n,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?de.prop(e,t,i):(1===s&&de.isXMLDoc(e)||(t=t.toLowerCase(),n=de.attrHooks[t]||(de.expr.match.bool.test(t)?It:$t)),void 0!==i?null===i?void de.removeAttr(e,t):n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:(e.setAttribute(t,i+""),i):n&&"get"in n&&null!==(r=n.get(e,t))?r:null==(r=de.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!pe.radioValue&&"radio"===t&&de.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,r,n=0,s=t&&t.match(Pe);if(s&&1===e.nodeType)for(;i=s[n++];)r=de.propFix[i]||i,de.expr.match.bool.test(i)?Dt&&Ft||!Mt.test(i)?e[r]=!1:e[de.camelCase("default-"+i)]=e[r]=!1:de.attr(e,i,""),e.removeAttribute(Ft?i:r)}}),It={set:function(e,t,i){return!1===t?de.removeAttr(e,i):Dt&&Ft||!Mt.test(i)?e.setAttribute(!Ft&&de.propFix[i]||i,i):e[de.camelCase("default-"+i)]=e[i]=!0,i}},de.each(de.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=Lt[t]||de.find.attr;Dt&&Ft||!Mt.test(t)?Lt[t]=function(e,t,r){var n,s;return r||(s=Lt[t],Lt[t]=n,n=null!=i(e,t,r)?t.toLowerCase():null,Lt[t]=s),n}:Lt[t]=function(e,t,i){if(!i)return e[de.camelCase("default-"+t)]?t.toLowerCase():null}})),Dt&&Ft||(de.attrHooks.value={set:function(e,t,i){if(!de.nodeName(e,"input"))return $t&&$t.set(e,t,i);e.defaultValue=t}}),Ft||($t={set:function(e,t,i){var r=e.getAttributeNode(i);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===e.getAttribute(i))return t}},Lt.id=Lt.name=Lt.coords=function(e,t,i){var r;if(!i)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},de.valHooks.button={get:function(e,t){var i=e.getAttributeNode(t);if(i&&i.specified)return i.value},set:$t.set},de.attrHooks.contenteditable={set:function(e,t,i){$t.set(e,""!==t&&t,i)}},de.each(["width","height"],(function(e,t){de.attrHooks[t]={set:function(e,i){if(""===i)return e.setAttribute(t,"auto"),i}}}))),pe.style||(de.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Ht=/^(?:input|select|textarea|button|object)$/i,Nt=/^(?:a|area)$/i;de.fn.extend({prop:function(e,t){return ze(this,de.prop,e,t,arguments.length>1)},removeProp:function(e){return e=de.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(e){}}))}}),de.extend({prop:function(e,t,i){var r,n,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&de.isXMLDoc(e)||(t=de.propFix[t]||t,n=de.propHooks[t]),void 0!==i?n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:e[t]=i:n&&"get"in n&&null!==(r=n.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=de.find.attr(e,"tabindex");return t?parseInt(t,10):Ht.test(e.nodeName)||Nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),pe.hrefNormalized||de.each(["href","src"],(function(e,t){de.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),pe.optSelected||(de.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),de.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){de.propFix[this.toLowerCase()]=this})),pe.enctype||(de.propFix.enctype="encoding");var Rt=/[\t\r\n\f]/g;de.fn.extend({addClass:function(e){var t,i,r,n,s,o,a,l=0;if(de.isFunction(e))return this.each((function(t){de(this).addClass(e.call(this,t,V(this)))}));if("string"==typeof e&&e)for(t=e.match(Pe)||[];i=this[l++];)if(n=V(i),r=1===i.nodeType&&(" "+n+" ").replace(Rt," ")){for(o=0;s=t[o++];)r.indexOf(" "+s+" ")<0&&(r+=s+" ");n!==(a=de.trim(r))&&de.attr(i,"class",a)}return this},removeClass:function(e){var t,i,r,n,s,o,a,l=0;if(de.isFunction(e))return this.each((function(t){de(this).removeClass(e.call(this,t,V(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Pe)||[];i=this[l++];)if(n=V(i),r=1===i.nodeType&&(" "+n+" ").replace(Rt," ")){for(o=0;s=t[o++];)for(;r.indexOf(" "+s+" ")>-1;)r=r.replace(" "+s+" "," ");n!==(a=de.trim(r))&&de.attr(i,"class",a)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):de.isFunction(e)?this.each((function(i){de(this).toggleClass(e.call(this,i,V(this),t),t)})):this.each((function(){var t,r,n,s;if("string"===i)for(r=0,n=de(this),s=e.match(Pe)||[];t=s[r++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==e&&"boolean"!==i||((t=V(this))&&de._data(this,"__className__",t),de.attr(this,"class",t||!1===e?"":de._data(this,"__className__")||""))}))},hasClass:function(e){var t,i,r=0;for(t=" "+e+" ";i=this[r++];)if(1===i.nodeType&&(" "+V(i)+" ").replace(Rt," ").indexOf(t)>-1)return!0;return!1}}),de.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){de.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}})),de.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var zt=e.location,qt=de.now(),Vt=/\?/,Bt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;de.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var i,r=null,n=de.trim(t+"");return n&&!de.trim(n.replace(Bt,(function(e,t,n,s){return i&&t&&(r=0),0===r?e:(i=n||t,r+=!s-!n,"")})))?Function("return "+n)():de.error("Invalid JSON: "+t)},de.parseXML=function(t){var i;if(!t||"string"!=typeof t)return null;try{e.DOMParser?i=(new e.DOMParser).parseFromString(t,"text/xml"):((i=new e.ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(t))}catch(e){i=void 0}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||de.error("Invalid XML: "+t),i};var Wt=/#.*$/,Ut=/([?&])_=[^&]*/,Qt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Yt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gt=/^(?:GET|HEAD)$/,Xt=/^\/\//,Kt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Zt={},ei={},ti="*/".concat("*"),ii=zt.href,ri=Kt.exec(ii.toLowerCase())||[];de.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ii,type:"GET",isLocal:Yt.test(ri[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ti,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":de.parseJSON,"text xml":de.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?U(U(e,de.ajaxSettings),t):U(de.ajaxSettings,e)},ajaxPrefilter:B(Zt),ajaxTransport:B(ei),ajax:function(t,i){function r(t,i,r,n){var s,p,v,b,S,_=i;2!==w&&(w=2,l&&e.clearTimeout(l),u=void 0,a=n||"",k.readyState=t>0?4:0,s=t>=200&&t<300||304===t,r&&(b=Q(h,k,r)),b=Y(h,b,k,s),s?(h.ifModified&&((S=k.getResponseHeader("Last-Modified"))&&(de.lastModified[o]=S),(S=k.getResponseHeader("etag"))&&(de.etag[o]=S)),204===t||"HEAD"===h.type?_="nocontent":304===t?_="notmodified":(_=b.state,p=b.data,s=!(v=b.error))):(v=_,!t&&_||(_="error",t<0&&(t=0))),k.status=t,k.statusText=(i||_)+"",s?m.resolveWith(d,[p,_,k]):m.rejectWith(d,[k,_,v]),k.statusCode(y),y=void 0,c&&f.trigger(s?"ajaxSuccess":"ajaxError",[k,h,s?p:v]),g.fireWith(d,[k,_]),c&&(f.trigger("ajaxComplete",[k,h]),--de.active||de.event.trigger("ajaxStop")))}"object"==typeof t&&(i=t,t=void 0),i=i||{};var n,s,o,a,l,c,u,p,h=de.ajaxSetup({},i),d=h.context||h,f=h.context&&(d.nodeType||d.jquery)?de(d):de.event,m=de.Deferred(),g=de.Callbacks("once memory"),y=h.statusCode||{},v={},b={},w=0,S="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!p)for(p={};t=Qt.exec(a);)p[t[1].toLowerCase()]=t[2];t=p[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?a:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return w||(e=b[i]=b[i]||e,v[e]=t),this},overrideMimeType:function(e){return w||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(w<2)for(t in e)y[t]=[y[t],e[t]];else k.always(e[k.status]);return this},abort:function(e){var t=e||S;return u&&u.abort(t),r(0,t),this}};if(m.promise(k).complete=g.add,k.success=k.done,k.error=k.fail,h.url=((t||h.url||ii)+"").replace(Wt,"").replace(Xt,ri[1]+"//"),h.type=i.method||i.type||h.method||h.type,h.dataTypes=de.trim(h.dataType||"*").toLowerCase().match(Pe)||[""],null==h.crossDomain&&(n=Kt.exec(h.url.toLowerCase()),h.crossDomain=!(!n||n[1]===ri[1]&&n[2]===ri[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(ri[3]||("http:"===ri[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=de.param(h.data,h.traditional)),W(Zt,h,i,k),2===w)return k;for(s in(c=de.event&&h.global)&&0==de.active++&&de.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Gt.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(Vt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=Ut.test(o)?o.replace(Ut,"$1_="+qt++):o+(Vt.test(o)?"&":"?")+"_="+qt++)),h.ifModified&&(de.lastModified[o]&&k.setRequestHeader("If-Modified-Since",de.lastModified[o]),de.etag[o]&&k.setRequestHeader("If-None-Match",de.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||i.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+ti+"; q=0.01":""):h.accepts["*"]),h.headers)k.setRequestHeader(s,h.headers[s]);if(h.beforeSend&&(!1===h.beforeSend.call(d,k,h)||2===w))return k.abort();for(s in S="abort",{success:1,error:1,complete:1})k[s](h[s]);if(u=W(ei,h,i,k)){if(k.readyState=1,c&&f.trigger("ajaxSend",[k,h]),2===w)return k;h.async&&h.timeout>0&&(l=e.setTimeout((function(){k.abort("timeout")}),h.timeout));try{w=1,u.send(v,r)}catch(e){if(!(w<2))throw e;r(-1,e)}}else r(-1,"No Transport");return k},getJSON:function(e,t,i){return de.get(e,t,i,"json")},getScript:function(e,t){return de.get(e,void 0,t,"script")}}),de.each(["get","post"],(function(e,t){de[t]=function(e,i,r,n){return de.isFunction(i)&&(n=n||r,r=i,i=void 0),de.ajax(de.extend({url:e,type:t,dataType:n,data:i,success:r},de.isPlainObject(e)&&e))}})),de._evalUrl=function(e){return de.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},de.fn.extend({wrapAll:function(e){if(de.isFunction(e))return this.each((function(t){de(this).wrapAll(e.call(this,t))}));if(this[0]){var t=de(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return de.isFunction(e)?this.each((function(t){de(this).wrapInner(e.call(this,t))})):this.each((function(){var t=de(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=de.isFunction(e);return this.each((function(i){de(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(){return this.parent().each((function(){de.nodeName(this,"body")||de(this).replaceWith(this.childNodes)})).end()}}),de.expr.filters.hidden=function(e){return pe.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:X(e)},de.expr.filters.visible=function(e){return!de.expr.filters.hidden(e)};var ni=/%20/g,si=/\[\]$/,oi=/\r?\n/g,ai=/^(?:submit|button|image|reset|file)$/i,li=/^(?:input|select|textarea|keygen)/i;de.param=function(e,t){var i,r=[],n=function(e,t){t=de.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=de.ajaxSettings&&de.ajaxSettings.traditional),de.isArray(e)||e.jquery&&!de.isPlainObject(e))de.each(e,(function(){n(this.name,this.value)}));else for(i in e)K(i,e[i],t,n);return r.join("&").replace(ni,"+")},de.fn.extend({serialize:function(){return de.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=de.prop(this,"elements");return e?de.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!de(this).is(":disabled")&&li.test(this.nodeName)&&!ai.test(e)&&(this.checked||!qe.test(e))})).map((function(e,t){var i=de(this).val();return null==i?null:de.isArray(i)?de.map(i,(function(e){return{name:t.name,value:e.replace(oi,"\r\n")}})):{name:t.name,value:i.replace(oi,"\r\n")}})).get()}}),de.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?ee():re.documentMode>8?Z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Z()||ee()}:Z;var ci=0,ui={},pi=de.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",(function(){for(var e in ui)ui[e](void 0,!0)})),pe.cors=!!pi&&"withCredentials"in pi,(pi=pe.ajax=!!pi)&&de.ajaxTransport((function(t){var i;if(!t.crossDomain||pe.cors)return{send:function(r,n){var s,o=t.xhr(),a=++ci;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)o[s]=t.xhrFields[s];for(s in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)void 0!==r[s]&&o.setRequestHeader(s,r[s]+"");o.send(t.hasContent&&t.data||null),i=function(e,r){var s,l,c;if(i&&(r||4===o.readyState))if(delete ui[a],i=void 0,o.onreadystatechange=de.noop,r)4!==o.readyState&&o.abort();else{c={},s=o.status,"string"==typeof o.responseText&&(c.text=o.responseText);try{l=o.statusText}catch(e){l=""}s||!t.isLocal||t.crossDomain?1223===s&&(s=204):s=c.text?200:404}c&&n(s,l,c,o.getAllResponseHeaders())},t.async?4===o.readyState?e.setTimeout(i):o.onreadystatechange=ui[a]=i:i()},abort:function(){i&&i(void 0,!0)}}})),de.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return de.globalEval(e),e}}}),de.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),de.ajaxTransport("script",(function(e){if(e.crossDomain){var t,i=re.head||de("head")[0]||re.documentElement;return{send:function(r,n){(t=re.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||n(200,"success"))},i.insertBefore(t,i.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}));var hi=[],di=/(=)\?(?=&|$)|\?\?/;de.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=hi.pop()||de.expando+"_"+qt++;return this[e]=!0,e}}),de.ajaxPrefilter("json jsonp",(function(t,i,r){var n,s,o,a=!1!==t.jsonp&&(di.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&di.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=de.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(di,"$1"+n):!1!==t.jsonp&&(t.url+=(Vt.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return o||de.error(n+" was not called"),o[0]},t.dataTypes[0]="json",s=e[n],e[n]=function(){o=arguments},r.always((function(){void 0===s?de(e).removeProp(n):e[n]=s,t[n]&&(t.jsonpCallback=i.jsonpCallback,hi.push(n)),o&&de.isFunction(s)&&s(o[0]),o=s=void 0})),"script"})),de.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||re;var r=ke.exec(e),n=!i&&[];return r?[t.createElement(r[1])]:(r=y([e],t,n),n&&n.length&&de(n).remove(),de.merge([],r.childNodes))};var fi=de.fn.load;de.fn.load=function(e,t,i){if("string"!=typeof e&&fi)return fi.apply(this,arguments);var r,n,s,o=this,a=e.indexOf(" ");return a>-1&&(r=de.trim(e.slice(a,e.length)),e=e.slice(0,a)),de.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(n="POST"),o.length>0&&de.ajax({url:e,type:n||"GET",dataType:"html",data:t}).done((function(e){s=arguments,o.html(r?de("<div>").append(de.parseHTML(e)).find(r):e)})).always(i&&function(e,t){o.each((function(){i.apply(this,s||[e.responseText,t,e])}))}),this},de.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){de.fn[t]=function(e){return this.on(t,e)}})),de.expr.filters.animated=function(e){return de.grep(de.timers,(function(t){return e===t.elem})).length},de.offset={setOffset:function(e,t,i){var r,n,s,o,a,l,c=de.css(e,"position"),u=de(e),p={};"static"===c&&(e.style.position="relative"),a=u.offset(),s=de.css(e,"top"),l=de.css(e,"left"),("absolute"===c||"fixed"===c)&&de.inArray("auto",[s,l])>-1?(o=(r=u.position()).top,n=r.left):(o=parseFloat(s)||0,n=parseFloat(l)||0),de.isFunction(t)&&(t=t.call(e,i,de.extend({},a))),null!=t.top&&(p.top=t.top-a.top+o),null!=t.left&&(p.left=t.left-a.left+n),"using"in t?t.using.call(e,p):u.css(p)}},de.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){de.offset.setOffset(this,e,t)}));var t,i,r={top:0,left:0},n=this[0],s=n&&n.ownerDocument;return s?(t=s.documentElement,de.contains(t,n)?(void 0!==n.getBoundingClientRect&&(r=n.getBoundingClientRect()),i=te(s),{top:r.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r):void 0},position:function(){if(this[0]){var e,t,i={top:0,left:0},r=this[0];return"fixed"===de.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),de.nodeName(e[0],"html")||(i=e.offset()),i.top+=de.css(e[0],"borderTopWidth",!0),i.left+=de.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-de.css(r,"marginTop",!0),left:t.left-i.left-de.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&!de.nodeName(e,"html")&&"static"===de.css(e,"position");)e=e.offsetParent;return e||mt}))}}),de.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i=/Y/.test(t);de.fn[e]=function(r){return ze(this,(function(e,r,n){var s=te(e);if(void 0===n)return s?t in s?s[t]:s.document.documentElement[r]:e[r];s?s.scrollTo(i?de(s).scrollLeft():n,i?n:de(s).scrollTop()):e[r]=n}),e,r,arguments.length,null)}})),de.each(["top","left"],(function(e,t){de.cssHooks[t]=O(pe.pixelPosition,(function(e,i){if(i)return i=yt(e,t),dt.test(i)?de(e).position()[t]+"px":i}))})),de.each({Height:"height",Width:"width"},(function(e,t){de.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,r){de.fn[r]=function(r,n){var s=arguments.length&&(i||"boolean"!=typeof r),o=i||(!0===r||!0===n?"margin":"border");return ze(this,(function(t,i,r){var n;return de.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+e],n["scroll"+e],t.body["offset"+e],n["offset"+e],n["client"+e])):void 0===r?de.css(t,i,o):de.style(t,i,r,o)}),t,s?r:void 0,s,null)}}))})),de.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,r){return this.on(t,e,i,r)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}}),de.fn.size=function(){return this.length},de.fn.andSelf=de.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return de}));var mi=e.jQuery,gi=e.$;return de.noConflict=function(t){return e.$===de&&(e.$=gi),t&&e.jQuery===de&&(e.jQuery=mi),de},t||(e.jQuery=e.$=de),de})),function(e){e.fn.classes=function(t){var i=[];if(e.each(this,(function(e,t){var r=t.className.split(/\s+/);for(var n in r){var s=r[n];-1===i.indexOf(s)&&i.push(s)}})),"function"==typeof t)for(var r in i)t(i[r]);return i}}(jQuery),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],(function(i){return t(e,i)})):"object"==typeof exports?module.exports=t(e,require("jquery")):t(e,jQuery)}("undefined"!=typeof window?window:this,(function(e,t,i){"use strict";function r(){ "hidden"!==n&&(o.hidden=l.pageVisibility?o[n]:i)}for(var n,s,o=e.document,a=["webkit","o","ms","moz",""],l=t.support||{},c=("onfocusin"in o&&"hasFocus"in o?"focusin focusout":"focus blur");(s=a.pop())!==i;)if(n=(s?s+"H":"h")+"idden",l.pageVisibility=o[n]!==i,l.pageVisibility){c=s+"visibilitychange";break}r(),t(/blur$/.test(c)?e:o).on(c,(function(e){var s=e.type,a=e.originalEvent;if(a){var l=a.toElement;(!/^focus./.test(s)||l===i&&a.fromElement===i&&a.relatedTarget===i)&&t(o).triggerHandler(n&&o[n]||/^(?:blur|focusout)$/.test(s)?"hide":"show"),r()}}))})),function(){function e(e){function t(t,i,r,n,s,o){for(;s>=0&&s<o;s+=e){var a=n?n[s]:s;r=i(r,t[a],a,t)}return r}return function(i,r,n,s){r=b(r,s,4);var o=!A(i)&&v.keys(i),a=(o||i).length,l=e>0?0:a-1;return arguments.length<3&&(n=i[o?o[l]:l],l+=e),t(i,r,n,o,l,a)}}function t(e){return function(t,i,r){i=w(i,r);for(var n=T(t),s=e>0?0:n-1;s>=0&&s<n;s+=e)if(i(t[s],s,t))return s;return-1}}function i(e,t,i){return function(r,n,s){var o=0,a=T(r);if("number"==typeof s)e>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=t(u.call(r,o,a),v.isNaN))>=0?s+o:-1;for(s=e>0?o:a-1;s>=0&&s<a;s+=e)if(r[s]===n)return s;return-1}}function r(e,t){var i=O.length,r=e.constructor,n=v.isFunction(r)&&r.prototype||a,s="constructor";for(v.has(e,s)&&!v.contains(t,s)&&t.push(s);i--;)(s=O[i])in e&&e[s]!==n[s]&&!v.contains(t,s)&&t.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(e){return e instanceof v?e:this instanceof v?void(this._wrapped=e):new v(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=v),exports._=v):n._=v,v.VERSION="1.8.3";var b=function(e,t,i){if(void 0===t)return e;switch(null==i?3:i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,r){return e.call(t,i,r)};case 3:return function(i,r,n){return e.call(t,i,r,n)};case 4:return function(i,r,n,s){return e.call(t,i,r,n,s)}}return function(){return e.apply(t,arguments)}},w=function(e,t,i){return null==e?v.identity:v.isFunction(e)?b(e,t,i):v.isObject(e)?v.matcher(e):v.property(e)};v.iteratee=function(e,t){return w(e,t,1/0)};var S=function(e,t){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=e(s),a=o.length,l=0;l<a;l++){var c=o[l];t&&void 0!==i[c]||(i[c]=s[c])}return i}},k=function(e){if(!v.isObject(e))return{};if(g)return g(e);y.prototype=e;var t=new y;return y.prototype=null,t},_=function(e){return function(t){return null==t?void 0:t[e]}},x=Math.pow(2,53)-1,T=_("length"),A=function(e){var t=T(e);return"number"==typeof t&&t>=0&&t<=x};v.each=v.forEach=function(e,t,i){var r,n;if(t=b(t,i),A(e))for(r=0,n=e.length;r<n;r++)t(e[r],r,e);else{var s=v.keys(e);for(r=0,n=s.length;r<n;r++)t(e[s[r]],s[r],e)}return e},v.map=v.collect=function(e,t,i){t=w(t,i);for(var r=!A(e)&&v.keys(e),n=(r||e).length,s=Array(n),o=0;o<n;o++){var a=r?r[o]:o;s[o]=t(e[a],a,e)}return s},v.reduce=v.foldl=v.inject=e(1),v.reduceRight=v.foldr=e(-1),v.find=v.detect=function(e,t,i){var r;if(void 0!==(r=A(e)?v.findIndex(e,t,i):v.findKey(e,t,i))&&-1!==r)return e[r]},v.filter=v.select=function(e,t,i){var r=[];return t=w(t,i),v.each(e,(function(e,i,n){t(e,i,n)&&r.push(e)})),r},v.reject=function(e,t,i){return v.filter(e,v.negate(w(t)),i)},v.every=v.all=function(e,t,i){t=w(t,i);for(var r=!A(e)&&v.keys(e),n=(r||e).length,s=0;s<n;s++){var o=r?r[s]:s;if(!t(e[o],o,e))return!1}return!0},v.some=v.any=function(e,t,i){t=w(t,i);for(var r=!A(e)&&v.keys(e),n=(r||e).length,s=0;s<n;s++){var o=r?r[s]:s;if(t(e[o],o,e))return!0}return!1},v.contains=v.includes=v.include=function(e,t,i,r){return A(e)||(e=v.values(e)),("number"!=typeof i||r)&&(i=0),v.indexOf(e,t,i)>=0},v.invoke=function(e,t){var i=u.call(arguments,2),r=v.isFunction(t);return v.map(e,(function(e){var n=r?t:e[t];return null==n?n:n.apply(e,i)}))},v.pluck=function(e,t){return v.map(e,v.property(t))},v.where=function(e,t){return v.filter(e,v.matcher(t))},v.findWhere=function(e,t){return v.find(e,v.matcher(t))},v.max=function(e,t,i){var r,n,s=-1/0,o=-1/0;if(null==t&&null!=e)for(var a=0,l=(e=A(e)?e:v.values(e)).length;a<l;a++)(r=e[a])>s&&(s=r);else t=w(t,i),v.each(e,(function(e,i,r){((n=t(e,i,r))>o||n===-1/0&&s===-1/0)&&(s=e,o=n)}));return s},v.min=function(e,t,i){var r,n,s=1/0,o=1/0;if(null==t&&null!=e)for(var a=0,l=(e=A(e)?e:v.values(e)).length;a<l;a++)(r=e[a])<s&&(s=r);else t=w(t,i),v.each(e,(function(e,i,r){((n=t(e,i,r))<o||n===1/0&&s===1/0)&&(s=e,o=n)}));return s},v.shuffle=function(e){for(var t,i=A(e)?e:v.values(e),r=i.length,n=Array(r),s=0;s<r;s++)(t=v.random(0,s))!==s&&(n[s]=n[t]),n[t]=i[s];return n},v.sample=function(e,t,i){return null==t||i?(A(e)||(e=v.values(e)),e[v.random(e.length-1)]):v.shuffle(e).slice(0,Math.max(0,t))},v.sortBy=function(e,t,i){return t=w(t,i),v.pluck(v.map(e,(function(e,i,r){return{value:e,index:i,criteria:t(e,i,r)}})).sort((function(e,t){var i=e.criteria,r=t.criteria;if(i!==r){if(i>r||void 0===i)return 1;if(i<r||void 0===r)return-1}return e.index-t.index})),"value")};var j=function(e){return function(t,i,r){var n={};return i=w(i,r),v.each(t,(function(r,s){var o=i(r,s,t);e(n,r,o)})),n}};v.groupBy=j((function(e,t,i){v.has(e,i)?e[i].push(t):e[i]=[t]})),v.indexBy=j((function(e,t,i){e[i]=t})),v.countBy=j((function(e,t,i){v.has(e,i)?e[i]++:e[i]=1})),v.toArray=function(e){return e?v.isArray(e)?u.call(e):A(e)?v.map(e,v.identity):v.values(e):[]},v.size=function(e){return null==e?0:A(e)?e.length:v.keys(e).length},v.partition=function(e,t,i){t=w(t,i);var r=[],n=[];return v.each(e,(function(e,i,s){(t(e,i,s)?r:n).push(e)})),[r,n]},v.first=v.head=v.take=function(e,t,i){if(null!=e)return null==t||i?e[0]:v.initial(e,e.length-t)},v.initial=function(e,t,i){return u.call(e,0,Math.max(0,e.length-(null==t||i?1:t)))},v.last=function(e,t,i){if(null!=e)return null==t||i?e[e.length-1]:v.rest(e,Math.max(0,e.length-t))},v.rest=v.tail=v.drop=function(e,t,i){return u.call(e,null==t||i?1:t)},v.compact=function(e){return v.filter(e,v.identity)};var C=function(e,t,i,r){for(var n=[],s=0,o=r||0,a=T(e);o<a;o++){var l=e[o];if(A(l)&&(v.isArray(l)||v.isArguments(l))){t||(l=C(l,t,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(e,t){return C(e,t,!1)},v.without=function(e){return v.difference(e,u.call(arguments,1))},v.uniq=v.unique=function(e,t,i,r){v.isBoolean(t)||(r=i,i=t,t=!1),null!=i&&(i=w(i,r));for(var n=[],s=[],o=0,a=T(e);o<a;o++){var l=e[o],c=i?i(l,o,e):l;t?(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(e){for(var t=[],i=arguments.length,r=0,n=T(e);r<n;r++){var s=e[r];if(!v.contains(t,s)){for(var o=1;o<i&&v.contains(arguments[o],s);o++);o===i&&t.push(s)}}return t},v.difference=function(e){var t=C(arguments,!0,!0,1);return v.filter(e,(function(e){return!v.contains(t,e)}))},v.zip=function(){return v.unzip(arguments)},v.unzip=function(e){for(var t=e&&v.max(e,T).length||0,i=Array(t),r=0;r<t;r++)i[r]=v.pluck(e,r);return i},v.object=function(e,t){for(var i={},r=0,n=T(e);r<n;r++)t?i[e[r]]=t[r]:i[e[r][0]]=e[r][1];return i},v.findIndex=t(1),v.findLastIndex=t(-1),v.sortedIndex=function(e,t,i,r){for(var n=(i=w(i,r,1))(t),s=0,o=T(e);s<o;){var a=Math.floor((s+o)/2);i(e[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(e,t,i){null==t&&(t=e||0,e=0),i=i||1;for(var r=Math.max(Math.ceil((t-e)/i),0),n=Array(r),s=0;s<r;s++,e+=i)n[s]=e;return n};var J=function(e,t,i,r,n){if(!(r instanceof t))return e.apply(i,n);var s=k(e.prototype),o=e.apply(s,n);return v.isObject(o)?o:s};v.bind=function(e,t){if(m&&e.bind===m)return m.apply(e,u.call(arguments,1));if(!v.isFunction(e))throw new TypeError("Bind must be called on a function");var i=u.call(arguments,2),r=function(){return J(e,r,t,this,i.concat(u.call(arguments)))};return r},v.partial=function(e){var t=u.call(arguments,1),i=function(){for(var r=0,n=t.length,s=Array(n),o=0;o<n;o++)s[o]=t[o]===v?arguments[r++]:t[o];for(;r<arguments.length;)s.push(arguments[r++]);return J(e,i,this,this,s)};return i},v.bindAll=function(e){var t,i,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)e[i=arguments[t]]=v.bind(e[i],e);return e},v.memoize=function(e,t){var i=function(r){var n=i.cache,s=""+(t?t.apply(this,arguments):r);return v.has(n,s)||(n[s]=e.apply(this,arguments)),n[s]};return i.cache={},i},v.delay=function(e,t){var i=u.call(arguments,2);return setTimeout((function(){return e.apply(null,i)}),t)},v.defer=v.partial(v.delay,v,1),v.throttle=function(e,t,i){var r,n,s,o=null,a=0;i||(i={});var l=function(){a=!1===i.leading?0:v.now(),o=null,s=e.apply(r,n),o||(r=n=null)};return function(){var c=v.now();a||!1!==i.leading||(a=c);var u=t-(c-a);return r=this,n=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),a=c,s=e.apply(r,n),o||(r=n=null)):o||!1===i.trailing||(o=setTimeout(l,u)),s}},v.debounce=function(e,t,i){var r,n,s,o,a,l=function(){var c=v.now()-o;c<t&&c>=0?r=setTimeout(l,t-c):(r=null,i||(a=e.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,t)),c&&(a=e.apply(s,n),s=n=null),a}},v.wrap=function(e,t){return v.partial(t,e)},v.negate=function(e){return function(){return!e.apply(this,arguments)}},v.compose=function(){var e=arguments,t=e.length-1;return function(){for(var i=t,r=e[t].apply(this,arguments);i--;)r=e[i].call(this,r);return r}},v.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},v.before=function(e,t){var i;return function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=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(e){if(!v.isObject(e))return[];if(f)return f(e);var t=[];for(var i in e)v.has(e,i)&&t.push(i);return P&&r(e,t),t},v.allKeys=function(e){if(!v.isObject(e))return[];var t=[];for(var i in e)t.push(i);return P&&r(e,t),t},v.values=function(e){for(var t=v.keys(e),i=t.length,r=Array(i),n=0;n<i;n++)r[n]=e[t[n]];return r},v.mapObject=function(e,t,i){t=w(t,i);for(var r,n=v.keys(e),s=n.length,o={},a=0;a<s;a++)o[r=n[a]]=t(e[r],r,e);return o},v.pairs=function(e){for(var t=v.keys(e),i=t.length,r=Array(i),n=0;n<i;n++)r[n]=[t[n],e[t[n]]];return r},v.invert=function(e){for(var t={},i=v.keys(e),r=0,n=i.length;r<n;r++)t[e[i[r]]]=i[r];return t},v.functions=v.methods=function(e){var t=[];for(var i in e)v.isFunction(e[i])&&t.push(i);return t.sort()},v.extend=S(v.allKeys),v.extendOwn=v.assign=S(v.keys),v.findKey=function(e,t,i){t=w(t,i);for(var r,n=v.keys(e),s=0,o=n.length;s<o;s++)if(t(e[r=n[s]],r,e))return r},v.pick=function(e,t,i){var r,n,s={},o=e;if(null==o)return s;v.isFunction(t)?(n=v.allKeys(o),r=b(t,i)):(n=C(arguments,!1,!1,1),r=function(e,t,i){return t 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(e,t,i){if(v.isFunction(t))t=v.negate(t);else{var r=v.map(C(arguments,!1,!1,1),String);t=function(e,t){return!v.contains(r,t)}}return v.pick(e,t,i)},v.defaults=S(v.allKeys,!0),v.create=function(e,t){var i=k(e);return t&&v.extendOwn(i,t),i},v.clone=function(e){return v.isObject(e)?v.isArray(e)?e.slice():v.extend({},e):e},v.tap=function(e,t){return t(e),e},v.isMatch=function(e,t){var i=v.keys(t),r=i.length;if(null==e)return!r;for(var n=Object(e),s=0;s<r;s++){var o=i[s];if(t[o]!==n[o]||!(o in n))return!1}return!0};var E=function(e,t,i,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof v&&(e=e._wrapped),t instanceof v&&(t=t._wrapped);var n=p.call(e);if(n!==p.call(t))return!1;switch(n){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}var s="[object Array]"===n;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(v.isFunction(o)&&o instanceof o&&v.isFunction(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var l=(i=i||[]).length;l--;)if(i[l]===e)return r[l]===t;if(i.push(e),r.push(t),s){if((l=e.length)!==t.length)return!1;for(;l--;)if(!E(e[l],t[l],i,r))return!1}else{var c,u=v.keys(e);if(l=u.length,v.keys(t).length!==l)return!1;for(;l--;)if(c=u[l],!v.has(t,c)||!E(e[c],t[c],i,r))return!1}return i.pop(),r.pop(),!0};v.isEqual=function(e,t){return E(e,t)},v.isEmpty=function(e){return null==e||(A(e)&&(v.isArray(e)||v.isString(e)||v.isArguments(e))?0===e.length:0===v.keys(e).length)},v.isElement=function(e){return!(!e||1!==e.nodeType)},v.isArray=d||function(e){return"[object Array]"===p.call(e)},v.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},v.each(["Arguments","Function","String","Number","Date","RegExp","Error"],(function(e){v["is"+e]=function(t){return p.call(t)==="[object "+e+"]"}})),v.isArguments(arguments)||(v.isArguments=function(e){return v.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(v.isFunction=function(e){return"function"==typeof e||!1}),v.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},v.isNaN=function(e){return v.isNumber(e)&&e!==+e},v.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===p.call(e)},v.isNull=function(e){return null===e},v.isUndefined=function(e){return void 0===e},v.has=function(e,t){return null!=e&&h.call(e,t)},v.noConflict=function(){return n._=s,this},v.identity=function(e){return e},v.constant=function(e){return function(){return e}},v.noop=function(){},v.property=_,v.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},v.matcher=v.matches=function(e){return e=v.extendOwn({},e),function(t){return v.isMatch(t,e)}},v.times=function(e,t,i){var r=Array(Math.max(0,e));t=b(t,i,1);for(var n=0;n<e;n++)r[n]=t(n);return r},v.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},v.now=Date.now||function(){return(new Date).getTime()};var $={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},I=v.invert($),L=function(e){var t=function(t){return e[t]},i="(?:"+v.keys(e).join("|")+")",r=RegExp(i),n=RegExp(i,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(n,t):e}};v.escape=L($),v.unescape=L(I),v.result=function(e,t,i){var r=null==e?void 0:e[t];return void 0===r&&(r=i),v.isFunction(r)?r.call(e):r};var M=0;v.uniqueId=function(e){var t=++M+"";return e?e+t:t},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var F=/(.)^/,D={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,N=function(e){return"\\"+D[e]};v.template=function(e,t,i){!t&&i&&(t=i),t=v.defaults({},t,v.templateSettings);var r=RegExp([(t.escape||F).source,(t.interpolate||F).source,(t.evaluate||F).source].join("|")+"|$","g"),n=0,s="__p+='";e.replace(r,(function(t,i,r,o,a){return s+=e.slice(n,a).replace(H,N),n=a+t.length,i?s+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(s+="';\n"+o+"\n__p+='"),t})),s+="';\n",t.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(t.variable||"obj","_",s)}catch(e){throw e.source=s,e}var a=function(e){return o.call(this,e,v)},l=t.variable||"obj";return a.source="function("+l+"){\n"+s+"}",a},v.chain=function(e){var t=v(e);return t._chain=!0,t};var R=function(e,t){return e._chain?v(t).chain():t};v.mixin=function(e){v.each(v.functions(e),(function(t){var i=v[t]=e[t];v.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),R(this,i.apply(v,e))}}))},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];v.prototype[e]=function(){var i=this._wrapped;return t.apply(i,arguments),"shift"!==e&&"splice"!==e||0!==i.length||delete i[0],R(this,i)}})),v.each(["concat","join","slice"],(function(e){var t=o[e];v.prototype[e]=function(){return R(this,t.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(e,t){var i=[],r=[],n=[],s={gsub:function(e,t,i){var r=new RegExp(t.source||t,"gi");return r.test(e)?e.replace(r,i):null},plural:function(e,t){i.unshift([e,t])},pluralize:function(r,s,o){var a;if(s!==t)s=parseFloat(s),a=1===s?this.singularize(r):this.pluralize(r),a=o?[s,a].join(" "):a;else{if(e(n).include(r))return r;a=r,e(i).detect((function(e){var t=this.gsub(r,e[0],e[1]);return!!t&&(a=t)}),this)}return a},singular:function(e,t){r.unshift([e,t])},singularize:function(t){if(e(n).include(t))return t;var i=t;return e(r).detect((function(e){var r=this.gsub(t,e[0],e[1]);return!!r&&(i=r)}),this),i},irregular:function(e,t){this.plural("\\b"+e+"\\b",t),this.singular("\\b"+t+"\\b",e)},uncountable:function(e){n.unshift(e)},ordinalize:function(e){if(isNaN(e))return e;var t=(e=e.toString()).slice(-1),i=e.slice(-2);if("11"===i||"12"===i||"13"===i)return e+"th";switch(t){case"1":return e+"st";case"2":return e+"nd";case"3":return e+"rd";default:return e+"th"}},titleize:function(e){return"string"!=typeof e?e:e.replace(/\S+/g,(function(e){return e.charAt(0).toUpperCase()+e.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}};e.mixin(s.resetInflections())}(_),function(e){var t="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){t.Backbone=e(t,n,i,r)}));else if("undefined"!=typeof exports){var i,r=require("underscore");try{i=require("jquery")}catch(e){}e(t,exports,r,i)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}((function(e,t,i,r){var n=e.Backbone,s=[].slice;t.VERSION="1.2.1",t.$=r,t.noConflict=function(){return e.Backbone=n,this},t.emulateHTTP=!1,t.emulateJSON=!1;var o=function(e,t,r){switch(e){case 1:return function(){return i[t](this[r])};case 2:return function(e){return i[t](this[r],e)};case 3:return function(e,n){return i[t](this[r],e,n)};case 4:return function(e,n,s){return i[t](this[r],e,n,s)};default:return function(){var e=s.call(arguments);return e.unshift(this[r]),i[t].apply(i,e)}}},a=function(e,t,r){i.each(t,(function(t,n){i[n]&&(e.prototype[n]=o(t,n,r))}))},l=t.Events={},c=/\s+/,u=function(e,t,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++)t=e(t,o[a],r[o[a]],s)}else if(r&&c.test(r))for(o=r.split(c);a<o.length;a++)t=e(t,o[a],n,s);else t=e(t,r,n,s);return t};l.on=function(e,t,i){return p(this,e,t,i)};var p=function(e,t,i,r,n){(e._events=u(h,e._events||{},t,i,{context:r,ctx:e,listening:n}),n)&&((e._listeners||(e._listeners={}))[n.id]=n);return e};l.listenTo=function(e,t,r){if(!e)return this;var n=e._listenId||(e._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:e,objId:n,id:a,listeningTo:s,count:0}}return p(e,t,r,this,o),this};var h=function(e,t,i,r){if(i){var n=e[t]||(e[t]=[]),s=r.context,o=r.ctx,a=r.listening;a&&a.count++,n.push({callback:i,context:s,ctx:s||o,listening:a})}return e};l.off=function(e,t,i){return this._events?(this._events=u(d,this._events,e,t,{context:i,listeners:this._listeners}),this):this},l.stopListening=function(e,t,r){var n=this._listeningTo;if(!n)return this;for(var s=e?[e._listenId]:i.keys(n),o=0;o<s.length;o++){var a=n[s[o]];if(!a)break;a.obj.off(t,r,this)}return i.isEmpty(n)&&(this._listeningTo=void 0),this};var d=function(e,t,r,n){if(e){var s,o=0,a=n.context,l=n.listeners;if(t||r||a){for(var c=t?[t]:i.keys(e);o<c.length;o++){var u=e[t=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?e[t]=p:delete e[t]}return i.size(e)?e: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(e,t,r){var n=u(f,{},e,t,i.bind(this.off,this));return this.on(n,void 0,r)},l.listenToOnce=function(e,t,r){var n=u(f,{},t,r,i.bind(this.stopListening,this,e));return this.listenTo(e,n)};var f=function(e,t,r,n){if(r){var s=e[t]=i.once((function(){n(t,s),r.apply(this,arguments)}));s._callback=r}return e};l.trigger=function(e){if(!this._events)return this;for(var t=Math.max(0,arguments.length-1),i=Array(t),r=0;r<t;r++)i[r]=arguments[r+1];return u(m,this._events,e,void 0,i),this};var m=function(e,t,i,r){if(e){var n=e[t],s=e.all;n&&s&&(s=s.slice()),n&&g(n,r),s&&g(s,[t].concat(r))}return e},g=function(e,t){var i,r=-1,n=e.length,s=t[0],o=t[1],a=t[2];switch(t.length){case 0:for(;++r<n;)(i=e[r]).callback.call(i.ctx);return;case 1:for(;++r<n;)(i=e[r]).callback.call(i.ctx,s);return;case 2:for(;++r<n;)(i=e[r]).callback.call(i.ctx,s,o);return;case 3:for(;++r<n;)(i=e[r]).callback.call(i.ctx,s,o,a);return;default:for(;++r<n;)(i=e[r]).callback.apply(i.ctx,t);return}};l.bind=l.on,l.unbind=l.off,i.extend(t,l);var y=t.Model=function(e,t){var r=e||{};t||(t={}),this.cid=i.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(r=this.parse(r,t)||{}),r=i.defaults({},r,i.result(this,"defaults")),this.set(r,t),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 t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return i.escape(this.get(e))},has:function(e){return null!=this.get(e)},matches:function(e){return!!i.iteratee(e,this)(this.attributes)},set:function(e,t,r){if(null==e)return this;var n;if("object"==typeof e?(n=e,r=t):(n={})[e]=t,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)t=n[h],i.isEqual(c[h],t)||a.push(h),i.isEqual(p[h],t)?delete u[h]:u[h]=t,s?delete c[h]:c[h]=t;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(e,t){return this.set(e,void 0,i.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,i.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!i.isEmpty(this.changed):i.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&i.clone(this.changed);var t=this._changing?this._previousAttributes:this.attributes,r={};for(var n in e){var s=e[n];i.isEqual(t[n],s)||(r[n]=s)}return!!i.size(r)&&r},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(e){e=i.extend({parse:!0},e);var t=this,r=e.success;return e.success=function(i){var n=e.parse?t.parse(i,e):i;if(!t.set(n,e))return!1;r&&r.call(e.context,t,i,e),t.trigger("sync",t,i,e)},F(this,e),this.sync("read",this,e)},save:function(e,t,r){var n;null==e||"object"==typeof e?(n=e,r=t):(n={})[e]=t;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(e){o.attributes=l;var t=r.parse?o.parse(e,r):e;if(s&&(t=i.extend({},n,t)),t&&!o.set(t,r))return!1;a&&a.call(r.context,o,e,r),o.trigger("sync",o,e,r)},F(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(e){e=e?i.clone(e):{};var t=this,r=e.success,n=e.wait,s=function(){t.stopListening(),t.trigger("destroy",t,t.collection,e)};e.success=function(i){n&&s(),r&&r.call(e.context,t,i,e),t.isNew()||t.trigger("sync",t,i,e)};var o=!1;return this.isNew()?i.defer(e.success):(F(this,e),o=this.sync("delete",this,e)),n||s(),o},url:function(){var e=i.result(this,"urlRoot")||i.result(this.collection,"url")||M();if(this.isNew())return e;var t=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t)},parse:function(e){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},i.defaults({validate:!0},e))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=i.extend({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return!r||(this.trigger("invalid",this,r,i.extend(t,{validationError:r})),!1)}}),a(y,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes");var v=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,i.extend({silent:!0},t))},b={add:!0,remove:!0,merge:!0},w={add:!0,remove:!1};i.extend(v.prototype,l,{model:y,initialize:function(){},toJSON:function(e){return this.map((function(t){return t.toJSON(e)}))},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,i.extend({merge:!1},t,w))},remove:function(e,t){t=i.extend({},t);var r=!i.isArray(e);e=r?[e]:i.clone(e);var n=this._removeModels(e,t);return!t.silent&&n&&this.trigger("update",this,t),r?n[0]:n},set:function(e,t){(t=i.defaults({},t,b)).parse&&!this._isModel(e)&&(e=this.parse(e,t));var r,n,s,o,a,l=!i.isArray(e);e=l?e?[e]:[]:e.slice();var c=t.at;null!=c&&(c=+c),c<0&&(c+=this.length+1);for(var u=this.comparator&&null==c&&!1!==t.sort,p=i.isString(this.comparator)?this.comparator:null,h=[],d=[],f={},m=t.add,g=t.merge,y=t.remove,v=!(u||!m||!y)&&[],w=!1,S=0;S<e.length;S++){if(s=e[S],o=this.get(s))y&&(f[o.cid]=!0),g&&s!==o&&(s=this._isModel(s)?s.attributes:s,t.parse&&(s=o.parse(s,t)),o.set(s,t),u&&!a&&o.hasChanged(p)&&(a=!0)),e[S]=o;else if(m){if(!(n=e[S]=this._prepareModel(s,t)))continue;h.push(n),this._addReference(n,t)}(n=o||n)&&(r=this.modelId(n.attributes),!v||!n.isNew()&&f[r]||(v.push(n),w=w||!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,t)}if(h.length||w)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 k=v||h;for(S=0;S<k.length;S++)this.models.push(k[S])}if(a&&this.sort({silent:!0}),!t.silent){var _=null!=c?i.clone(t):t;for(S=0;S<h.length;S++)null!=c&&(_.index=c+S),(n=h[S]).trigger("add",n,this,_);(a||w)&&this.trigger("sort",this,t),(h.length||d.length)&&this.trigger("update",this,t)}return l?e[0]:e},reset:function(e,t){t=t?i.clone(t):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,i.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,i.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(e,t){return this.add(e,i.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return s.apply(this.models,arguments)},get:function(e){if(null!=e){var t=this.modelId(this._isModel(e)?e.attributes:e);return this._byId[e]||this._byId[t]||this._byId[e.cid]}},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,t){var r=i.matches(e);return this[t?"find":"filter"]((function(e){return r(e.attributes)}))},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return i.invoke(this.models,"get",e)},fetch:function(e){var t=(e=i.extend({parse:!0},e)).success,r=this;return e.success=function(i){var n=e.reset?"reset":"set";r[n](i,e),t&&t.call(e.context,r,i,e),r.trigger("sync",r,i,e)},F(this,e),this.sync("read",this,e)},create:function(e,t){var r=(t=t?i.clone(t):{}).wait;if(!(e=this._prepareModel(e,t)))return!1;r||this.add(e,t);var n=this,s=t.success;return t.success=function(e,t,i){r&&n.add(e,i),s&&s.call(i.context,e,t,i)},e.save(null,t),e},parse:function(e){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e){return e[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(this._isModel(e))return e.collection||(e.collection=this),e;(t=t?i.clone(t):{}).collection=this;var r=new this.model(e,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_removeModels:function(e,t){for(var i=[],r=0;r<e.length;r++){var n=this.get(e[r]);if(n){var s=this.indexOf(n);this.models.splice(s,1),this.length--,t.silent||(t.index=s,n.trigger("remove",n,this,t)),i.push(n),this._removeReference(n,t)}}return!!i.length&&i},_isModel:function(e){return e instanceof y},_addReference:function(e){this._byId[e.cid]=e;var t=this.modelId(e.attributes);null!=t&&(this._byId[t]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e){delete this._byId[e.cid];var t=this.modelId(e.attributes);null!=t&&delete this._byId[t],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,i,r){if("add"!==e&&"remove"!==e||i===this){ if("destroy"===e&&this.remove(t,r),"change"===e){var n=this.modelId(t.previousAttributes()),s=this.modelId(t.attributes);n!==s&&(null!=n&&delete this._byId[n],null!=s&&(this._byId[s]=t))}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(e){i[e]&&(v.prototype[e]=function(t,r){var n=i.isFunction(t)?t:function(e){return e.get(t)};return i[e](this.models,n,r)})}));var k=t.View=function(e){this.cid=i.uniqueId("view"),i.extend(this,i.pick(e,x)),this._ensureElement(),this.initialize.apply(this,arguments)},_=/^(\S+)\s*(.*)$/,x=["model","collection","el","id","attributes","className","tagName","events"];i.extend(k.prototype,l,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0]},delegateEvents:function(e){if(e||(e=i.result(this,"events")),!e)return this;for(var t in this.undelegateEvents(),e){var r=e[t];if(i.isFunction(r)||(r=this[r]),r){var n=t.match(_);this.delegate(n[1],n[2],i.bind(r,this))}}return this},delegate:function(e,t,i){return this.$el.on(e+".delegateEvents"+this.cid,t,i),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,i){return this.$el.off(e+".delegateEvents"+this.cid,t,i),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"));else{var e=i.extend({},i.result(this,"attributes"));this.id&&(e.id=i.result(this,"id")),this.className&&(e.class=i.result(this,"className")),this.setElement(this._createElement(i.result(this,"tagName"))),this._setAttributes(e)}},_setAttributes:function(e){this.$el.attr(e)}}),t.sync=function(e,r,n){var s=T[e];i.defaults(n||(n={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var o={type:s,dataType:"json"};if(n.url||(o.url=i.result(r,"url")||M()),null!=n.data||!r||"create"!==e&&"update"!==e&&"patch"!==e||(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(e){if(e.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(e,t,i){n.textStatus=t,n.errorThrown=i,l&&l.call(n.context,e,t,i)};var c=n.xhr=t.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"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var A=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},j=/\((.*?)\)/g,C=/(\(\?)?:\w+/g,J=/\*\w+/g,P=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(A.prototype,l,{initialize:function(){},route:function(e,r,n){i.isRegExp(e)||(e=this._routeToRegExp(e)),i.isFunction(r)&&(n=r,r=""),n||(n=this[r]);var s=this;return t.history.route(e,(function(i){var o=s._extractParameters(e,i);!1!==s.execute(n,o,r)&&(s.trigger.apply(s,["route:"+r].concat(o)),s.trigger("route",r,o),t.history.trigger("route",s,r,o))})),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,i){return t.history.navigate(e,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var e,t=i.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(P,"\\$&").replace(j,"(?:$1)?").replace(C,(function(e,t){return t?e:"([^/?]+)"})).replace(J,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var r=e.exec(t).slice(1);return i.map(r,(function(e,t){return t===r.length-1?e||null:e?decodeURIComponent(e):null}))}});var O=t.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},E=/^[#\/]|\s+$/g,$=/^\/+|\/+$/g,I=/#.*$/;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(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(E,"")},start:function(e){if(O.started)throw new Error("Backbone.history has already been started");if(O.started=!0,this.options=i.extend({root:"/"},this.options,e),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($,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+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(e,t){return attachEvent("on"+e,t)};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 e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),O.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),i.any(this.handlers,(function(t){if(t.route.test(e))return t.callback(e),!0})))},navigate:function(e,t){if(!O.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var i=this.root;""!==e&&"?"!==e.charAt(0)||(i=i.slice(0,-1)||"/");var r=i+e;if(e=this.decodeFragment(e.replace(I,"")),this.fragment!==e){if(this.fragment=e,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var n=this.iframe.contentWindow;t.replace||(n.document.open(),n.document.close()),this._updateHash(n.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,i){if(i){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new O;var L=function(e,t){var r,n=this;r=e&&i.has(e,"constructor")?e.constructor:function(){return n.apply(this,arguments)},i.extend(r,n,t);var s=function(){this.constructor=r};return s.prototype=n.prototype,r.prototype=new s,e&&i.extend(r.prototype,e),r.__super__=n.prototype,r};y.extend=v.extend=A.extend=k.extend=O.extend=L;var M=function(){throw new Error('A "url" property or function must be specified')},F=function(e,t){var i=t.error;t.error=function(r){i&&i.call(t.context,e,r,t),e.trigger("error",e,r,t)}};return t})),function(e,t){"function"==typeof define&&define.amd?define(["underscore","backbone"],(function(i,r){return t(i||e._,r||e.Backbone)})):t(_,Backbone)}(this,(function(e,t){function i(t,i){var r=null;try{r=i.url}catch(e){}if(!r)try{r=e.result(t,"url")}catch(e){}return r}function r(e,t){return":"!==e&&":"!==t&&e!==t}var n={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};return t.vanillaSync=t.sync,t.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&&!t.$.support.cors){var p=n[s];if(e.defaults(a||(a={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.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(e){if(d)return d.apply(this,arguments)}}"GET"===h.type||a.emulateJSON||(h.processData=!1),"POST"===h.type&&(h.data=t.$.param(t.$.parseJSON(h.data)));var f=a.xhr=new XDomainRequest,m=a.success,g=a.error;if(t.$.fn.jquery){var y=t.$.Deferred(),v=t.$.Callbacks("once memory");y.promise(f).complete=v.add}return f.onload=function(){var e={};f.responseText&&(e=t.$.parseJSON(f.responseText)),e&&(y&&y.resolveWith(this,[e,"success",f]),m(e))},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=t.$.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 t.vanillaSync.apply(this,arguments)},t})),function(e,t){if("function"==typeof define&&define.amd)define(["underscore","backbone"],(function(i,r){return t(e,r,i)}));else if("undefined"!=typeof exports){var i=require("underscore"),r=require("backbone");t(e,r,i),"undefined"!=typeof module&&module.exports&&(module.exports=r),exports=r}else t(e,e.Backbone,e._)}(this,(function(e,t,i){var r,n,s,o,a,l,c,u,p,h,d,f={};r=t.Model,n=t.Collection,s=r.prototype,a=n.prototype,o=t.Events,t.Associations={VERSION:"0.6.1"},t.Associations.scopes=[];var m=function(){return p},g=function(e){(!i.isString(e)||1>i.size(e))&&(e="."),p=e,c=RegExp("[\\"+p+"\\[\\]]+","g"),u=RegExp("[^\\"+p+"\\[\\]]+","g")};try{Object.defineProperty(t.Associations,"SEPARATOR",{enumerable:!0,get:m,set:g})}catch(e){}t.Associations.Many=t.Many="Many",t.Associations.One=t.One="One",t.Associations.Self=t.Self="Self",t.Associations.SEPARATOR=".",t.Associations.getSeparator=m,t.Associations.setSeparator=g,t.Associations.EVENTS_BUBBLE=!0,t.Associations.EVENTS_WILDCARD=!0,t.Associations.EVENTS_NC=!1,g(),l=t.AssociatedModel=t.Associations.AssociatedModel=r.extend({relations:void 0,_proxyCalls:void 0,on:function(e,r,n){var s=o.on.apply(this,arguments);if(t.Associations.EVENTS_NC)return s;var a=/\s+/;return i.isString(e)&&e&&!a.test(e)&&r&&(a=v(e))&&(f[a]=void 0===f[a]?1:f[a]+1),s},off:function(e,r,n){if(t.Associations.EVENTS_NC)return o.off.apply(this,arguments);var s=/\s+/,a=this._events,l={},c=a?i.keys(a):[],u=!e&&!r&&!n,p=i.isString(e)&&!s.test(e);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(e){var t=s.get.call(this,e);return t||this._getAttr.apply(this,arguments)},set:function(e,t,r){var n;return i.isObject(e)||null==e?(n=e,r=t):(n={})[e]=t,e=this._set(n,r),this._processPendingEvents(),e},_set:function(e,t){var r,n,s,o,a=this;if(!e)return this;for(r in e)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]=e[r])}else(o=n[this.cid]||(n[this.cid]={model:this,data:{}})).data[r]=e[r];if(n)for(s in n)o=n[s],this._setAttr.call(o.model,o.data,t)||(a=!1);else a=this._setAttr.call(this,e,t);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||e,g=s.map,y=this.attributes[h],v=y&&y.idAttribute,w=!1;if(!d||d.prototype instanceof r||(d=i.isFunction(d)?d.call(this,s,o):d),d&&i.isString(d)&&(d=d===t.Self?this.constructor:b(d,m)),g&&i.isString(g)&&(g=b(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===t.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=b(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):(w=!0,c instanceof n?s=c:(s=f?new f:this._createCollection(d,m))[u.reset?"reset":"set"](c,u))}else{if(s.type!==t.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 t.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):w=!0}p=o[h]=s,(w||p&&!p._proxyCallback)&&(p._proxyCallback=function(){return t.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(e,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,b=!(o=o[1])||-1==o.indexOf(p);if(!c&&(b&&(d=v(s[0])||e),t.Associations.EVENTS_NC||f[d]))return t.Associations.EVENTS_WILDCARD&&/\[\*\]/g.test(o)?this:(i instanceof n&&(u||o)&&(g=i.indexOf(h||m)),this instanceof r&&(h=this),o=e+(-1!==g&&(u||o)?"["+g+"]":"")+(o?p+o:""),t.Associations.EVENTS_WILDCARD&&(a=o.replace(/\[\d+\]/g,"[*]")),(c=[]).push.apply(c,s),c[0]=l+":"+o,t.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[e]=i._previousAttributes,this.changed[e]=i),this.trigger.apply(this,c),t.Associations.EVENTS_NC&&u&&this.get(o)!=s[2]&&(e=["nested-change",o,s[1]],s[2]&&e.push(s[2]),this.trigger.apply(this,e)),y&&o&&delete y[o],h=void 0),this)},_isEventAvailable:function(e,t){return i.find(e,(function(e,i){return-1!==t.indexOf(i,t.length-i.length)}))},_createCollection:function(e,t){var r,s=e;if(i.isString(s)&&(s=b(s,t)),!(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(e){e.c.trigger.apply(e.c,e.a)})),this._pendingEvents=[],i.each(this.relations,(function(e){(e=this.attributes[e.key])&&e._processPendingEvents()}),this),delete this._processedEvents)},trigger:function(e){this._deferEvents?(this._pendingEvents=this._pendingEvents||[],this._pendingEvents.push({c:this,a:arguments})):s.trigger.apply(this,arguments)},toJSON:function(e){var t,r={};return r[this.idAttribute]=this.id,this.visited||(this.visited=!0,r=s.toJSON.apply(this,arguments),e&&e.serialize_keys&&(r=i.pick(r,e.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&&(e?e.serialize_keys=n:e={serialize_keys:n}),t=a&&a.toJSON?a.toJSON(e):a,r[o||s]=i.isArray(t)?i.compact(t):t)}),this),delete this.visited),r},clone:function(e){return new this.constructor(this.toJSON(e))},cleanup:function(){i.each(this.relations,(function(e){(e=this.attributes[e.key])&&(e.parents=i.difference(e.parents,[this]))}),this),this.off()},_getAttr:function(e){var t,r,s=this;if(e=y(e),!(1>i.size(e))){for(r=0;r<e.length&&(t=e[r],s);r++)s=s instanceof n?isNaN(t)?void 0:s.at(t):s.attributes[t];return s}}});var y=function(e){return""===e?[""]:i.isString(e)?e.match(u):e||[]},v=function(e){return e?1<(e=e.split(":")).length?1<(e=(e=e[e.length-1]).split(p)).length?e[e.length-1].split("[")[0]:e[0].split("[")[0]:"":e},b=function(e,r){var n,s=[r];s.push.apply(s,t.Associations.scopes);for(var o,a=0,l=s.length;a<l&&(!(o=s[a])||!(n=i.reduce(e.split(p),(function(e,t){return e[t]}),o)));++a);return n},w=function(e,t,r){var n,s;return i.find(e,(function(e){if(n=i.find(e.relations,(function(i){return e.get(i.key)===t}),this))return s=e,!0}),this),n&&n.map?n.map.call(s,r,t):r},S={};return i.each(["set","remove","reset"],(function(e){S[e]=n.prototype[e],a[e]=function(t,i){return this.model.prototype instanceof l&&this.parents&&(arguments[0]=w(this.parents,this,t)),S[e].apply(this,arguments)}})),S.trigger=a.trigger,a.trigger=function(e){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,t})),window._u=_.noConflict(),window.JuicerBackbone=Backbone.noConflict(),function(){for(var e,t=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[e=i[r]]||(n[e]=t)}(),"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,(function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,t){var i,r,n,s,o,a=gap,l=t[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,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(e,t,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=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var i,r,n=e[t];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(e,t,n)}var j;if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(e){return"\\u"+("0000"+e.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 e(){}function t(e,t){for(var i=e.length;i--;)if(e[i].listener===t)return i;return-1}function i(e){return function(){return this[e].apply(this,arguments)}}var r=e.prototype,n=this,s=n.EventEmitter;r.getListeners=function(e){var t,i,r=this._getEvents();if("object"==typeof e)for(i in t={},r)r.hasOwnProperty(i)&&e.test(i)&&(t[i]=r[i]);else t=r[e]||(r[e]=[]);return t},r.flattenListeners=function(e){var t,i=[];for(t=0;t<e.length;t+=1)i.push(e[t].listener);return i},r.getListenersAsObject=function(e){var t,i=this.getListeners(e);return i instanceof Array&&((t={})[e]=i),t||i},r.addListener=function(e,i){var r,n=this.getListenersAsObject(e),s="object"==typeof i;for(r in n)n.hasOwnProperty(r)&&-1===t(n[r],i)&&n[r].push(s?i:{listener:i,once:!1});return this},r.on=i("addListener"),r.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},r.once=i("addOnceListener"),r.defineEvent=function(e){return this.getListeners(e),this},r.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},r.removeListener=function(e,i){var r,n,s=this.getListenersAsObject(e);for(n in s)s.hasOwnProperty(n)&&-1!==(r=t(s[n],i))&&s[n].splice(r,1);return this},r.off=i("removeListener"),r.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},r.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},r.manipulateListeners=function(e,t,i){var r,n,s=e?this.removeListener:this.addListener,o=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)s.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(n=t[r])&&("function"==typeof n?s.call(this,r,n):o.call(this,r,n));return this},r.removeEvent=function(e){var t,i=typeof e,r=this._getEvents();if("string"===i)delete r[e];else if("object"===i)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},r.removeAllListeners=i("removeEvent"),r.emitEvent=function(e,t){var i,r,n,s=this.getListenersAsObject(e);for(n in s)if(s.hasOwnProperty(n))for(r=s[n].length;r--;)!0===(i=s[n][r]).once&&this.removeListener(e,i.listener),i.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,i.listener);return this},r.trigger=i("emitEvent"),r.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},r.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},r._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},r._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return n.EventEmitter=s,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],(function(){return e})):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),function(e){function t(t){var i=e.event;return i.target=i.target||i.srcElement||t,i}var i=document.documentElement,r=function(){};i.addEventListener?r=function(e,t,i){e.addEventListener(t,i,!1)}:i.attachEvent&&(r=function(e,i,r){e[i+r]=r.handleEvent?function(){var i=t(e);r.handleEvent.call(r,i)}:function(){var i=t(e);r.call(e,i)},e.attachEvent("on"+i,e[i+r])});var n=function(){};i.removeEventListener?n=function(e,t,i){e.removeEventListener(t,i,!1)}:i.detachEvent&&(n=function(e,t,i){e.detachEvent("on"+t,e[t+i]);try{delete e[t+i]}catch(r){e[t+i]=void 0}});var s={bind:r,unbind:n};"function"==typeof define&&define.amd?define("eventie/eventie",s):e.eventie=s}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],(function(i,r){return t(e,i,r)})):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,(function(e,t,i){function r(e,t){for(var i in t)e[i]=t[i];return e}function n(e){return"[object Array]"===h.call(e)}function s(e){var t=[];if(n(e))t=e;else if("number"==typeof e.length)for(var i=0,r=e.length;i<r;i++)t.push(e[i]);else t.push(e);return t}function o(e,t,i){if(!(this instanceof o))return new o(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=s(e),this.options=r({},this.options),"function"==typeof t?i=t:r(this.options,t),i&&this.on("always",i),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var n=this;setTimeout((function(){n.check()}))}function a(e){this.img=e}function l(e){this.src=e,d[e]=this}var c=e.jQuery,u=e.console,p=void 0!==u,h=Object.prototype.toString;o.prototype=new t,o.prototype.options={},o.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;e<t;e++){var i=this.elements[e];"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(e){var t=new a(e);this.images.push(t)},o.prototype.check=function(){function e(e,n){return t.options.debug&&p&&u.log("confirm",e,n),t.progress(e),++i===r&&t.complete(),!0}var t=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",e),s.check()}else this.complete()},o.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout((function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)}))},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout((function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var i=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[i](t)}}))},c&&(c.fn.imagesLoaded=function(e,t){return new o(this,e,t).jqDeferred.promise(c(this))}),a.prototype=new t,a.prototype.check=function(){var e=d[this.img.src]||new l(this.img.src);if(e.isConfirmed)this.confirm(e.isLoaded,"cached was confirmed");else if(this.img.complete&&void 0!==this.img.naturalWidth)this.confirm(0!==this.img.naturalWidth,"naturalWidth");else{var t=this;e.on("confirm",(function(e,i){return t.confirm(e.isLoaded,i),!0})),e.check()}},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var d={};return l.prototype=new t,l.prototype.check=function(){if(!this.isChecked){var e=new Image;i.bind(e,"load",this),i.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},l.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},l.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},l.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},l.prototype.unbindProxyEvents=function(e){i.unbind(e.target,"load",this),i.unbind(e.target,"error",this)},o})),function(e,t){var i=function(e,t,i){var r;return function(){function n(){i||e.apply(s,o),r=null}var s=this,o=arguments;r?clearTimeout(r):i&&e.apply(s,o),r=setTimeout(n,t||150)}};jQuery.fn[t]=function(e){return e?this.bind("resize",i(e)):this.trigger(t)}}(jQuery,"smartresize"),function(e){e.Gal=function(t,i){this.element=e(i),this._init(t)},e.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(){}}},e.Gal.prototype={_init:function(t){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=e.extend(!0,{},e.Gal.settings,t),this.gridArr=e.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"),e(this.box).addClass("gridalicious"),this._addLoadMore(),e(window).smartresize((function(){i.resize()}))},_addLoadMore:function(){var t=e("<a href='#'>Load More</a>").addClass("j-paginate juicer-button");this.box.append(t)},_moveLoadMore:function(){var e=this.box.find(".j-paginate");e.length>0&&this.box.append(e.detach())},_setName:function(e,t){return t=t||"",e?this._setName(--e,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(60*Math.random()))+t):t},_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 t=e("<div></div>").addClass("j-stacker-wrapper").css({marginLeft:-this.options.gutter/2,marginRight:-this.options.gutter/2}),i=e("<div></div>").addClass("j-stacker"),r=0;r<this.cols;r++){var n="v2"===this.options.embedLayout?"<ul></ul>":"<div></div>",s=e(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)}t.append(i),this.box.append(t),this.box.find(e("#clear"+this.name)).remove();var o=e("<div></div>").css({clear:"both",height:"0",width:"0",display:"block"}).attr("id","clear"+this.name);this.box.append(o)},_renderGrid:function(t,i,r){var n=[],s=[],o=0,a=(this.prependCount,this.appendCount),l=this.options.gutter,c=this.cols,u=this.name;e(".j-stack").width();i?(s=i,"append"==t&&(a+=r,o=this.appendCount),"prepend"==t&&(this.isPrepending=!0,(o=Math.round(r%c))<=0&&(o=c)),"renderAfterPrepend"==t&&(a+=r,o=r)):(s=this.gridArr,a=e(this.gridArr).length),e.each(s,(function(i,r){var s=e(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"==t?(o--,e(".column-"+o+"-"+u).prepend(s),n.push(s),0==o&&(o=c)):(e(".column-"+o+"-"+u).append(s),n.push(s),++o>=c&&(o=0),a>=c&&(a-=c))})),this.appendCount=a,this.itemCount=o,"append"==t||"prepend"==t?("prepend"==t&&this._updateAfterPrepend(this.gridArr,s),this._renderItem(n),this.isPrepending=!1):this._renderItem(this.gridArr)},_collectItems:function(){var t=[];return e(this.box).find(this.options.selector).each((function(){t.push(e(this))})),t},_renderItem:function(t){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?(e.each(t,(function(t,i){e(i).css({opacity:"1"})})),this.ifCallback&&a.call(t)):(!0===s&&"fadeInOnAppear"==r?(this.isPrepending&&t.reverse(),e.each(t,(function(r,s){setTimeout((function(){e(s).animate({opacity:"1.0"},n),++c==t.length&&a.call(void 0,t)}),l*i),l++}))):!1===s&&"fadeInOnAppear"==r&&(this.isPrepending&&t.reverse(),e.each(t,(function(i,r){e(r).animate({opacity:"1.0"},n),++c==t.length&&this.ifCallback&&a.call(void 0,t)}))),!0!==s||r||e.each(t,(function(i,r){e(r).css({opacity:"1"}),++c==t.length&&this.ifCallback&&a.call(void 0,t)})))},_updateAfterPrepend:function(t,i){var r=this.gridArr;e.each(i,(function(e,t){r.unshift(t)})),this.gridArr=r},resize:function(){this.box.width()!=this.initialWidth&&(this.initialWidth=this.box.width(),this.box.find(e(".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(t){var i=this.gridArr,r=this.gridArrPrepend;e.each(t,(function(e,t){i.push(t),r.push(t)})),this._renderGrid("append",t,e(t).length),this._addLoadMore()},prepend:function(t){this.ifCallback=!1,this._renderGrid("prepend",t,e(t).length),this.ifCallback=!0}},e.fn.gridalicious=function(t,i){return"string"==typeof t?this.each((function(){var r=e.data(this,"gridalicious");r[t].apply(r,[i])})):this.each((function(){e.data(this,"gridalicious",new e.Gal(t,this))})),this}}(jQuery),function(){function e(e){return(e||"").split(" ")}function t(e,t,i){return s(e,t,i)}function i(e,t,i,r){return"number"!=typeof i&&"string"!=typeof i||null!=r||(r=i,i=void 0),s(e,t,i,{timezone:r})}function r(e,t,i){return s(e,t,i,{utc:!0})}function n(e){return function(i,r,n){return t(i,r,e,n)}}function s(e,t,i,r){r=r||{},t&&!a(t)&&(i=t,t=void 0),t=t||new Date,(i=i||d).formats=i.formats||{};var n=t.getTime(),h=r.timezone,f=typeof h;if((r.utc||"number"==f||"string"==f)&&(t=o(t)),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&&(t=new Date(t.getTime()+6e4*h))}return e.replace(/%([-_0]?.)/g,(function(e,o){var a,d;if(2==o.length){if("-"==(a=o[0]))d="";else if("_"==a)d=" ";else{if("0"!=a)return e;d="0"}o=o[1]}switch(o){case"A":return i.days[t.getDay()];case"a":return i.shortDays[t.getDay()];case"B":return i.months[t.getMonth()];case"b":case"h":return i.shortMonths[t.getMonth()];case"C":return l(Math.floor(t.getFullYear()/100),d);case"D":return s(i.formats.D||"%m/%d/%y",t,i);case"d":return l(t.getDate(),d);case"e":return l(t.getDate(),null==d?" ":d);case"F":return s(i.formats.F||"%Y-%m-%d",t,i);case"H":return l(t.getHours(),d);case"I":return l(c(t),d);case"j":var f=new Date(t.getFullYear(),0,1);return l(m=Math.ceil((t.getTime()-f.getTime())/864e5),3);case"k":return l(t.getHours(),null==d?" ":d);case"L":return l(Math.floor(n%1e3),3);case"l":return l(c(t),null==d?" ":d);case"M":return l(t.getMinutes(),d);case"m":return l(t.getMonth()+1,d);case"n":return"\n";case"o":return String(t.getDate())+u(t.getDate());case"P":return t.getHours()<12?i.am:i.pm;case"p":return t.getHours()<12?i.AM:i.PM;case"R":return s(i.formats.R||"%H:%M",t,i);case"r":return s(i.formats.r||"%I:%M:%S %p",t,i);case"S":return l(t.getSeconds(),d);case"s":return Math.floor(n/1e3);case"T":return s(i.formats.T||"%H:%M:%S",t,i);case"t":return"\t";case"U":return l(p(t,"sunday"),d);case"u":var m;return 0==(m=t.getDay())?7:m;case"v":return s(i.formats.v||"%e-%b-%Y",t,i);case"W":return l(p(t,"monday"),d);case"w":return t.getDay();case"Y":return t.getFullYear();case"y":return(f=String(t.getFullYear())).slice(f.length-2);case"Z":if(r.utc)return"GMT";var g=t.toString().match(/\(([\w\s]+)\)/);return g&&g[1]||"";case"z":if(r.utc)return"+0000";var y="number"==typeof h?h:-t.getTimezoneOffset();return(y<0?"-":"+")+l(Math.floor(Math.abs(y)/60))+l(Math.abs(y)%60);default:return o}}))}function o(e){var t=6e4*(e.getTimezoneOffset()||0);return new Date(e.getTime()+t)}function a(e){var t=0,i=f.length;for(t=0;t<i;++t)if("function"!=typeof e[f[t]])return!1;return!0}function l(e,t,i){"number"==typeof t&&(i=t,t="0"),null==t&&(t="0"),i=i||2;var r=String(e);if(t)for(;r.length<i;)r=t+r;return r}function c(e){var t=e.getHours();return 0==t?t=12:t>12&&(t-=12),t}function u(e){var t=e%10,i=e%100;if(i>=11&&i<=13||0===t||t>=4)return"th";switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}}function p(e,t){t=t||"sunday";var i=e.getDay();"monday"==t&&(0==i?i=6:i--);var r=new Date(e.getFullYear(),0,1),n=((e-r)/864e5+7-i)/7;return Math.floor(n)}var h;h="undefined"!=typeof module?module.exports=t:function(){return this||(0,eval)("this")}();var d={days:e("Sunday Monday Tuesday Wednesday Thursday Friday Saturday"),shortDays:e("Sun Mon Tue Wed Thu Fri Sat"),months:e("January February March April May June July August September October November December"),shortMonths:e("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"),AM:"AM",PM:"PM",am:"am",pm:"pm"};h.strftime=t,h.strftimeTZ=t.strftimeTZ=i,h.strftimeUTC=t.strftimeUTC=r,h.localizedStrftime=t.localizedStrftime=n;var f=["getTime","getTimezoneOffset","getDay","getDate","getMonth","getFullYear","getYear","getHours","getMinutes","getSeconds"]}(),function(){var e,t=[].slice;e=function(){var e,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?t.call(arguments,0):[]).length>0?(r=n[0],i=function(){var t;for(e in t=[],r)o=r[e],"callback"!==e&&t.push(" "+e+"='"+o+"'");return t}().join(""),this.replace(s,(function(e,t,n){return""+t+(("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=e}.call(this),Object.create||(Object.create=function(e,t){function i(){}if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object prototype may only be an Object: "+e);if(null===e)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!==t)throw new Error("This browser's implementation of Object.create is a shim and doesn't support a second argument.");return i.prototype=e,new i}),function(e,t){"use strict";e.jQueryBridget=t(e,e.jQuery)}(window,(function(e,t){"use strict";function i(i,s,a){function l(e,t,r){var n,s="$()."+i+'("'+t+'")';return e.each((function(e,l){var c=a.data(l,i);if(c){var u=c[t];if(u&&"_"!=t.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:e}function c(e,t){e.each((function(e,r){var n=a.data(r,i);n?(n.option(t),n._init()):(n=new s(r,t),a.data(r,i,n))}))}(a=a||t||e.jQuery)&&(s.prototype.option||(s.prototype.option=function(e){a.isPlainObject(e)&&(this.options=a.extend(!0,this.options,e))}),a.fn[i]=function(e){return"string"==typeof e?l(this,e,n.call(arguments,1)):(c(this,e),this)},r(a))}function r(e){!e||e&&e.bridget||(e.bridget=i)}var n=Array.prototype.slice,s=e.console,o=void 0===s?function(){}:function(e){s.error(e)};return r(t||e.jQuery),i})),function(e,t){"use strict";e.getWindowSize=t()}(window,(function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(){}function i(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<c;t++){e[l[t]]=0}return e}function r(e){var t=getComputedStyle(e);return t||a("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t}function n(){if(!u){u=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(t);var n=r(t);s.isBoxSizeOuter=o=200==e(n.width),i.removeChild(t)}}function s(t){if(n(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var s=r(t);if("none"==s.display)return i();var a={};a.width=t.offsetWidth,a.height=t.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,b=a.borderLeftWidth+a.borderRightWidth,w=a.borderTopWidth+a.borderBottomWidth,S=u&&o,k=e(s.width);!1!==k&&(a.width=k+(S?0:m+b));var _=e(s.height);return!1!==_&&(a.height=_+(S?0:g+w)),a.innerWidth=a.width-(m+b),a.innerHeight=a.height-(g+w),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var o,a="undefined"==typeof console?t:function(e){console.error(e)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],c=l.length,u=!1;return s})),function(e,t){e.EvEmitter=t()}(this,(function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},r=i[e]=i[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var r=i.indexOf(t);return-1!=r&&i.splice(r,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var r=0,n=i[r];t=t||[];for(var s=this._onceEvents&&this._onceEvents[e];n;){var o=s&&s[n];o&&(this.off(e,n),delete s[n]),n.apply(this,t),n=i[r+=o?0:1]}return this}},e})),function(e,t){"use strict";e.matchesSelector=t()}(window,(function(){"use strict";var e=function(){var e=Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var r=t[i]+"MatchesSelector";if(e[r])return r}}();return function(t,i){return t[e](i)}})),function(e,t){e.fizzyUIUtils=t(e,e.matchesSelector)}(window,(function(e,t){var i={extend:function(e,t){for(var i in t)e[i]=t[i];return e},modulo:function(e,t){return(e%t+t)%t},makeArray:function(e){var t=[];if(Array.isArray(e))t=e;else if(e&&"number"==typeof e.length)for(var i=0;i<e.length;i++)t.push(e[i]);else t.push(e);return t},removeFrom:function(e,t){var i=e.indexOf(t);-1!=i&&e.splice(i,1)},getParent:function(e,i){for(;e!=document.body;)if(e=e.parentNode,t(e,i))return e},getQueryElement:function(e){return"string"==typeof e?document.querySelector(e):e},handleEvent:function(e){var t="on"+e.type;this[t]&&this[t](e)},filterFindElements:function(e,r){e=i.makeArray(e);var n=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(r){t(e,r)&&n.push(e);for(var i=e.querySelectorAll(r),s=0;s<i.length;s++)n.push(i[s])}else n.push(e)})),n},debounceMethod:function(e,t,i){var r=e.prototype[t],n=t+"Timeout";e.prototype[t]=function(){var e=this[n];e&&clearTimeout(e);var t=arguments,s=this;this[n]=setTimeout((function(){r.apply(s,t),delete s[n]}),i||100)}},docReady:function(e){"complete"==document.readyState?e():document.addEventListener?document.addEventListener("DOMContentLoaded",e):document.attachEvent("onreadystatechange",e)},toDashed:function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,i){return t+"-"+i})).toLowerCase()}},r=e.console;return i.htmlInit=function(t,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=e.jQuery;c.forEach((function(e){var i,s=e.getAttribute(o)||e.getAttribute(u);try{i=s&&JSON.parse(s)}catch(t){return void(r&&r.error("Error parsing "+o+" on "+e.className+": "+t))}var a=new t(e,i);p&&p.data(e,n,a)}))}))},i})),function(e,t){e.Outlayer={},e.Outlayer.Item=t(e.EvEmitter,e.getWindowSize)}(window,(function(e,t){"use strict";function i(e){for(var t in e)return!1;return null,!0}function r(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}function n(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.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(e.prototype);u.constructor=r,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},u.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.getWindowSize=function(){this.size=t(this.element)},u.css=function(e){var t=this.element.style;for(var i in e){t[c[i]||i]=e[i]}},u.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),r=e[t?"left":"right"],n=e[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-=t?s.paddingLeft:s.paddingRight,a-=i?s.paddingTop:s.paddingBottom,this.position.x=o,this.position.y=a},u.layoutPosition=function(){var e=this.layout.size,t={},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+e[n];t[s]=this.getXValue(a),t[o]="";var l=r?"paddingTop":"paddingBottom",c=r?"top":"bottom",u=r?"bottom":"top",p=this.position.y+e[l];t[c]=this.getYValue(p),t[u]="",this.css(t),this.emitEvent("layout",[this])},u.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},u.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},u._transitionTo=function(e,t){this.getPosition();var i=this.position.x,r=this.position.y,n=parseInt(e,10),s=parseInt(t,10),o=n===this.position.x&&s===this.position.y;if(this.setPosition(e,t),!o||this.isTransitioning){var a=e-i,l=t-r,c={};c.transform=this.getTranslate(a,l),this.transition({to:c,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},u.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},u.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(e,t){this.position.x=parseInt(e,10),this.position.y=parseInt(t,10)},u._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},u.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var i in e.onTransitionEnd)t.onEnd[i]=e.onTransitionEnd[i];for(i in e.to)t.ingProperties[i]=!0,e.isCleaning&&(t.clean[i]=!0);if(e.from){this.css(e.from);this.element.offsetHeight;null}this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};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(e){this.ontransitionend(e)},u.onotransitionend=function(e){this.ontransitionend(e)};var h={"-webkit-transform":"transform"};u.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,r=h[e.propertyName]||e.propertyName;if(delete t.ingProperties[r],i(t.ingProperties)&&this.disableTransition(),r in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[r]),r in t.onEnd)t.onEnd[r].call(this),delete t.onEnd[r];this.emitEvent("transitionEnd",[this])}},u.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},u._removeStyles=function(e){var t={};for(var i in e)t[i]="";this.css(t)};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 e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var i in t)return i},u.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},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(e,t){"use strict";e.Outlayer=t(e,e.EvEmitter,e.getWindowSize,e.fizzyUIUtils,e.Outlayer.Item)}(window,(function(e,t,i,r,n){"use strict";function s(e,t){var i=r.getQueryElement(e);if(i){this.element=i,l&&(this.$element=l(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(t);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||e))}function o(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}var a=e.console,l=e.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,t.prototype),h.option=function(e){r.extend(this.options,e)},h._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},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(e){for(var t=this._filterFindItemElements(e),i=this.constructor.Item,r=[],n=0;n<t.length;n++){var s=new i(t[n],this);r.push(s)}return r},h._filterFindItemElements=function(e){return r.filterFindElements(e,this.options.itemSelector)},h.getItemElements=function(){return this.items.map((function(e){return e.element}))},h.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},h._init=h.layout,h._resetLayout=function(){this.getWindowSize()},h.getWindowSize=function(){this.size=i(this.element)},h._getMeasurement=function(e,t){var r,n=this.options[e];n?("string"==typeof n?r=this.element.querySelector(n):n instanceof HTMLElement&&(r=n),this[e]=r?i(r)[t]:n):this[e]=0},h.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},h._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},h._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var i=[];e.forEach((function(e){var r=this._getItemLayoutPosition(e);r.item=e,r.isInstant=t||e.isLayoutInstant,i.push(r)}),this),this._processLayoutQueue(i)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(e){e.forEach((function(e){this._positionItem(e.item,e.x,e.y,e.isInstant)}),this)},h._positionItem=function(e,t,i,r){r?e.goTo(t,i):e.moveTo(t,i)},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},h._getContainerSize=c,h._setContainerMeasure=function(e,t){if(void 0!==e){var i=this.size;i.isBorderBox&&(e+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},h._emitCompleteOnItems=function(e,t){function i(){n.dispatchEvent(e+"Complete",null,[t])}function r(){++o==s&&i()}var n=this,s=t.length;if(t&&s){var o=0;t.forEach((function(t){t.once(e,r)}))}else i()},h.dispatchEvent=function(e,t,i){var r=t?[t].concat(i):i;if(this.emitEvent(e,r),l)if(this.$element=this.$element||l(this.element),t){var n=l.Event(t);n.type=e,this.$element.trigger(n,i)}else this.$element.trigger(e,i)},h.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},h.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},h.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},h.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){r.removeFrom(this.stamps,e),this.unignore(e)}),this)},h._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=r.makeArray(e)},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},h._manageStamp=c,h._getElementOffset=function(e){var t=e.getBoundingClientRect(),r=this._boundingRect,n=i(e);return{left:t.left-r.left-n.marginLeft,top:t.top-r.top-n.marginTop,right:r.right-t.right-n.marginRight,bottom:r.bottom-t.bottom-n.marginBottom}},h.handleEvent=r.handleEvent,h.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){e.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 e=i(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},h.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},h.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},h.prepended=function(e){var t=this._itemize(e);if(t.length){var i=this.items.slice(0);this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i)}},h.reveal=function(e){this._emitCompleteOnItems("reveal",e),e&&e.length&&e.forEach((function(e){e.reveal()}))},h.hide=function(e){this._emitCompleteOnItems("hide",e),e&&e.length&&e.forEach((function(e){e.hide()}))},h.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},h.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},h.getItem=function(e){for(var t=0;t<this.items.length;t++){var i=this.items[t];if(i.element==e)return i}},h.getItems=function(e){e=r.makeArray(e);var t=[];return e.forEach((function(e){var i=this.getItem(e);i&&t.push(i)}),this),t},h.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),r.removeFrom(this.items,e)}),this)},h.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete p[t],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},s.data=function(e){var t=(e=r.getQueryElement(e))&&e.outlayerGUID;return t&&p[t]},s.create=function(e,t){var i=o(s);return i.defaults=r.extend({},s.defaults),r.extend(i.defaults,t),i.compatOptions=r.extend({},s.compatOptions),i.namespace=e,i.data=s.data,i.Item=o(n),r.htmlInit(i,e),l&&l.bridget&&l.bridget(e,i),i},s.Item=n,s})),function(e,t){e.Packery=e.Packery||{},e.Packery.Rect=t()}(window,(function(){"use strict";function e(t){for(var i in e.defaults)this[i]=e.defaults[i];for(i in t)this[i]=t[i]}e.defaults={x:0,y:0,width:0,height:0};var t=e.prototype;return t.contains=function(e){var t=e.width||0,i=e.height||0;return this.x<=e.x&&this.y<=e.y&&this.x+this.width>=e.x+t&&this.y+this.height>=e.y+i},t.overlaps=function(e){var t=this.x+this.width,i=this.y+this.height,r=e.x+e.width,n=e.y+e.height;return this.x<r&&t>e.x&&this.y<n&&i>e.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,r=[],n=this.x+this.width,s=this.y+this.height,o=t.x+t.width,a=t.y+t.height;return this.y<t.y&&(i=new e({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),r.push(i)),n>o&&(i=new e({x:o,y:this.y,width:n-o,height:this.height}),r.push(i)),s>a&&(i=new e({x:this.x,y:a,width:this.width,height:s-a}),r.push(i)),this.x<t.x&&(i=new e({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),r.push(i)),r},t.canFit=function(e){return this.width>=e.width&&this.height>=e.height},e})),function(e,t){var i=e.Packery=e.Packery||{};i.Packer=t(i.Rect)}(window,(function(e){"use strict";function t(e,t,i){this.width=e||0,this.height=t||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}var i=t.prototype;i.reset=function(){this.spaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=r[this.sortDirection]||r.downwardLeftToRight},i.pack=function(e){for(var t=0;t<this.spaces.length;t++){var i=this.spaces[t];if(i.canFit(e)){this.placeInSpace(e,i);break}}},i.columnPack=function(e){for(var t=0;t<this.spaces.length;t++){var i=this.spaces[t];if(i.x<=e.x&&i.x+i.width>=e.x+e.width&&i.height>=e.height-.01){e.y=i.y,this.placed(e);break}}},i.rowPack=function(e){for(var t=0;t<this.spaces.length;t++){var i=this.spaces[t];if(i.y<=e.y&&i.y+i.height>=e.y+e.height&&i.width>=e.width-.01){e.x=i.x,this.placed(e);break}}},i.placeInSpace=function(e,t){e.x=t.x,e.y=t.y,this.placed(e)},i.placed=function(e){for(var t=[],i=0;i<this.spaces.length;i++){var r=this.spaces[i],n=r.getMaximalFreeRects(e);n?t.push.apply(t,n):t.push(r)}this.spaces=t,this.mergeSortSpaces()},i.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},i.addSpace=function(e){this.spaces.push(e),this.mergeSortSpaces()},t.mergeRects=function(e){var t=0,i=e[t];e:for(;i;){for(var r=0,n=e[t+r];n;){if(n==i)r++;else{if(n.contains(i)){e.splice(t,1),i=e[t];continue e}i.contains(n)?e.splice(t+r,1):r++}n=e[t+r]}i=e[++t]}return e};var r={downwardLeftToRight:function(e,t){return e.y-t.y||e.x-t.x},rightwardTopToBottom:function(e,t){return e.x-t.x||e.y-t.y}};return t})),function(e,t){e.Packery.Item=t(e.Outlayer,e.Packery.Rect)}(window,(function(e,t){"use strict";var i="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",r=function(){e.Item.apply(this,arguments)},n=r.prototype=Object.create(e.Item.prototype),s=n._create;n._create=function(){s.call(this),this.rect=new t};var o=n.moveTo;return n.moveTo=function(e,t){var i=Math.abs(this.position.x-e),r=Math.abs(this.position.y-t);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&i<1&&r<1?this.goTo(e,t):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 e=this.dropPlaceholder;e||((e=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",e.style.position="absolute"),e.style.width=this.size.width+"px",e.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(e)},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(e,t){e.Packery=t(e.getWindowSize,e.Outlayer,e.Packery.Rect,e.Packery.Packer,e.Packery.Item)}(window,(function(e,t,i,r,n){"use strict";function s(e,t){return e.position.y-t.position.y||e.position.x-t.position.x}function o(e,t){return e.position.x-t.position.x||e.position.y-t.position.y}function a(e,t){var i=t.x-e.x,r=t.y-e.y;return Math.sqrt(i*i+r*r)}i.prototype.canFit=function(e){return this.width>=e.width-1&&this.height>=e.height-1};var l=t.create("packery");l.Item=n;var c=l.prototype;c._create=function(){t.prototype._create.call(this),this.packer=new r,this.shiftPacker=new r,this.isEnabled=!0,this.dragItemCount=0;var e=this;this.handleDraggabilly={dragStart:function(){e.itemDragStart(this.element)},dragMove:function(){e.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){e.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,i){i&&e.itemDragStart(t.currentTarget)},drag:function(t,i){i&&e.itemDragMove(t.currentTarget,i.position.left,i.position.top)},stop:function(t,i){i&&e.itemDragEnd(t.currentTarget)}}},c._resetLayout=function(){var e,t,i;this.getWindowSize(),this._getMeasurements(),this._getOption("horizontal")?(e=1/0,t=this.size.innerHeight+this.gutter,i="rightwardTopToBottom"):(e=this.size.innerWidth+this.gutter,t=1/0,i="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=e,this.packer.height=this.shiftPacker.height=t,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(e){if(this._setRectSize(e.element,e.rect),this.isShifting||this.dragItemCount>0){var t=this._getPackMethod();this.packer[t](e.rect)}else this.packer.pack(e.rect);return this._setMaxXY(e.rect),e.rect},c.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},c._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},c._setMaxXY=function(e){this.maxX=Math.max(e.x+e.width,this.maxX),this.maxY=Math.max(e.y+e.height,this.maxY)},c._setRectSize=function(t,i){var r=e(t),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(e,t){if(!t)return e+this.gutter;var i=e%(t+=this.gutter);return e=Math[i&&i<1?"round":"ceil"](e/t)*t},c._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}}, c._manageStamp=function(e){var t,r=this.getItem(e);if(r&&r.isPlacing)t=r.rect;else{var n=this._getElementOffset(e);t=new i({x:this._getOption("originLeft")?n.left:n.right,y:this._getOption("originTop")?n.top:n.bottom})}this._setRectSize(e,t),this.packer.placed(t),this._setMaxXY(t)},c.sortItemsByPosition=function(){var e=this._getOption("horizontal")?o:s;this.items.sort(e)},c.fit=function(e,t,i){var r=this.getItem(e);r&&(this.stamp(r.element),r.enablePlacing(),this.updateShiftTargets(r),t=void 0===t?r.rect.x:t,i=void 0===i?r.rect.y:i,this.shift(r,t,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(e){function t(){2==++r&&i.dispatchEvent("fitComplete",null,[e])}var i=this,r=0;e.once("layout",t),this.once("layoutComplete",t)},c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},c.needsResizeLayout=function(){var t=e(this.element),i=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[i]!=this.size[i]},c.resizeShiftPercentLayout=function(){var t=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;t.forEach((function(e){var t=Math.round(e.rect[r]/a);e.rect[r]=t*l}))}else{var c=e(this.element)[o]+this.gutter,u=this.packer[n];t.forEach((function(e){e.rect[r]=e.rect[r]/u*c}))}this.shiftLayout()},c.itemDragStart=function(e){if(this.isEnabled){this.stamp(e);var t=this.getItem(e);t&&(t.enablePlacing(),t.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(t))}},c.updateShiftTargets=function(e){this.shiftPacker.reset(),this._getBoundingRect();var t=this._getOption("originLeft"),r=this._getOption("originTop");this.stamps.forEach((function(e){var n=this.getItem(e);if(!n||!n.isPlacing){var s=this._getElementOffset(e),o=new i({x:t?s.left:s.right,y:r?s.top:s.bottom});this._setRectSize(e,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(e.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-e.rect[a],this._addShiftTarget(0,0,n);var h=this._getItemsForLayout(this.items),d=this._getPackMethod();h.forEach((function(e){var t=e.rect;this._setRectSize(e.element,t),this.shiftPacker[d](t),this._addShiftTarget(t.x,t.y,n);var i=s?t.x+t.width:t.x,r=s?t.y:t.y+t.height;if(this._addShiftTarget(i,r,n),l)for(var o=Math.round(t[a]/l),c=1;c<o;c++){var u=s?i:t.x+l*c,p=s?t.y+l*c:r;this._addShiftTarget(u,p,n)}}),this)},c._addShiftTarget=function(e,t,i){var r=this._getOption("horizontal")?t:e;if(!(0!==r&&r>i)){var n=e+","+t;-1!=this.shiftTargetKeys.indexOf(n)||(this.shiftTargetKeys.push(n),this.shiftTargets.push({x:e,y:t}))}},c.shift=function(e,t,i){var r,n=1/0,s={x:t,y:i};this.shiftTargets.forEach((function(e){var t=a(e,s);t<n&&(r=e,n=t)})),e.rect.x=r.x,e.rect.y=r.y};var u=120;c.itemDragMove=function(e,t,i){function r(){s.shift(n,t,i),n.positionDropPlaceholder(),s.layout()}var n=this.isEnabled&&this.getItem(e);if(n){t-=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(e){function t(){2==++r&&(i.element.classList.remove("is-positioning-post-drag"),i.hideDropPlaceholder(),n.dispatchEvent("dragItemPositioned",null,[i]))}var i=this.isEnabled&&this.getItem(e);if(i){clearTimeout(this.dragTimeout),i.element.classList.add("is-positioning-post-drag");var r=0,n=this;i.once("layout",t),this.once("layoutComplete",t),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(e){this._bindDraggabillyEvents(e,"on")},c.unbindDraggabillyEvents=function(e){this._bindDraggabillyEvents(e,"off")},c._bindDraggabillyEvents=function(e,t){var i=this.handleDraggabilly;e[t]("dragStart",i.dragStart),e[t]("dragMove",i.dragMove),e[t]("dragEnd",i.dragEnd)},c.bindUIDraggableEvents=function(e){this._bindUIDraggableEvents(e,"on")},c.unbindUIDraggableEvents=function(e){this._bindUIDraggableEvents(e,"off")},c._bindUIDraggableEvents=function(e,t){var i=this.handleUIDraggable;e[t]("dragstart",i.start)[t]("drag",i.drag)[t]("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(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}((function(e){"use strict";var t=window.Slick||{};(t=function(){function t(t,r){var n,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(t),appendDots:e(t),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(e,t){return'<button type="button" data-role="none" role="button" aria-required="false" tabindex="0">'+(t+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},e.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=e(t),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,n=e(t).data("slick")||{},s.options=e.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=e.proxy(s.autoPlay,s),s.autoPlayClear=e.proxy(s.autoPlayClear,s),s.changeSlide=e.proxy(s.changeSlide,s),s.clickHandler=e.proxy(s.clickHandler,s),s.selectHandler=e.proxy(s.selectHandler,s),s.setPosition=e.proxy(s.setPosition,s),s.swipeHandler=e.proxy(s.swipeHandler,s),s.dragHandler=e.proxy(s.dragHandler,s),s.keyHandler=e.proxy(s.keyHandler,s),s.autoPlayIterator=e.proxy(s.autoPlayIterator,s),s.instanceUid=i++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0),s.checkResponsive(!0)}var i=0;return t}()).prototype.addSlide=t.prototype.slickAdd=function(t,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?e(t).appendTo(n.$slideTrack):r?e(t).insertBefore(n.$slides.eq(i)):e(t).insertAfter(n.$slides.eq(i)):!0===r?e(t).prependTo(n.$slideTrack):e(t).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(t,i){e(i).attr("data-slick-index",t)})),n.$slidesCache=n.$slides,n.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,i){var r={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(t=-t),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:t},n.options.speed,n.options.easing,i):n.$slideTrack.animate({top:t},n.options.speed,n.options.easing,i):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),e({animStart:n.currentLeft}).animate({animStart:t},{duration:n.options.speed,easing:n.options.easing,step:function(e){e=Math.ceil(e),!1===n.options.vertical?(r[n.animType]="translate("+e+"px, 0px)",n.$slideTrack.css(r)):(r[n.animType]="translate(0px,"+e+"px)",n.$slideTrack.css(r))},complete:function(){i&&i.call()}})):(n.applyTransition(),t=Math.ceil(t),!1===n.options.vertical?r[n.animType]="translate3d("+t+"px, 0px, 0px)":r[n.animType]="translate3d(0px,"+t+"px, 0px)",n.$slideTrack.css(r),i&&setTimeout((function(){n.disableTransition(),i.call()}),n.options.speed))},t.prototype.asNavFor=function(t){var i=this,r=i.options.asNavFor;r&&null!==r&&(r=e(r).not(i.$slider)),null!==r&&"object"==typeof r&&r.each((function(){var i=e(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)}))},t.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.autoPlay=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer),e.slideCount>e.options.slidesToShow&&!0!==e.paused&&!0!==e.stopped&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this;!1===e.options.infinite?1===e.direction?(e.currentSlide+1===e.slideCount-1&&(e.direction=0),e.slideHandler(e.currentSlide+e.options.slidesToScroll)):(e.currentSlide-1==0&&(e.direction=1),e.slideHandler(e.currentSlide-e.options.slidesToScroll)):e.slideHandler(e.currentSlide+e.options.slidesToScroll)},t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,i,r=this;if(!0===r.options.dots&&r.slideCount>r.options.slidesToShow){for(i='<ul class="'+r.options.dotsClass+'">',t=0;t<=r.getDotCount();t+=1)i+="<li>"+r.options.customPaging.call(this,r,t)+"</li>";i+="</ul>",r.$dots=e(i).appendTo(r.options.appendDots),r.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each((function(t,i){e(i).attr("data-slick-index",t).data("originalStyling",e(i).attr("style")||"")})),t.$slidesCache=t.$slides,t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<ul class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<ul class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,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),e=0;e<n;e++){var l=document.createElement("div");for(t=0;t<a.options.rows;t++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var u=e*o+(t*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"})}},t.prototype.checkResponsive=function(t,i){var r,n,s,o=this,a=!1,l=o.$slider.width(),c=window.innerWidth||e(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=e.extend({},o.originalSettings,o.breakpointSettings[n]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),a=n):(o.activeBreakpoint=n,"unslick"===o.breakpointSettings[n]?o.unslick(n):(o.options=e.extend({},o.originalSettings,o.breakpointSettings[n]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),a=n):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t),a=n),t||!1===a||o.$slider.trigger("breakpoint",[o,a])}},t.prototype.changeSlide=function(t,i){var r,n,s=this,o=e(t.target);switch(o.is("a")&&t.preventDefault(),o.is("li")||(o=o.closest("li")),r=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.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===t.data.index?0:t.data.index||o.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(a),!1,i),o.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,i;if(i=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var r in t){if(e<t[r]){e=i;break}i=t[r]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide),!0===t.options.pauseOnDotsHover&&!0===t.options.autoplay&&e("li",t.$dots).off("mouseenter.slick",e.proxy(t.setPaused,t,!0)).off("mouseleave.slick",e.proxy(t.setPaused,t,!1))),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide)),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.$list.off("mouseenter.slick",e.proxy(t.setPaused,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.setPaused,t,!1)),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition),e(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>1&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.html(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),e(".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(){e(this).attr("style",e(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,t||i.$slider.trigger("destroy",[i])},t.prototype.disableTransition=function(e){var t=this,i={};i[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout((function(){i.disableTransition(e),t.call()}),i.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,i=0,r=0;if(!0===e.options.infinite)for(;t<e.slideCount;)++r,t=i+e.options.slidesToShow,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)r=e.slideCount;else for(;t<e.slideCount;)++r,t=i+e.options.slidesToShow,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return r-1},t.prototype.getLeft=function(e){var t,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&&e+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(e>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(e-n.slideCount))*n.slideWidth*-1,s=(n.options.slidesToShow-(e-n.slideCount))*i*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,s=n.slideCount%n.options.slidesToScroll*i*-1))):e+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(e+n.options.slidesToShow-n.slideCount)*n.slideWidth,s=(e+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)),t=!1===n.options.vertical?e*n.slideWidth*-1+n.slideOffset:e*i*-1+s,!0===n.options.variableWidth&&(t=(r=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(e):n.$slideTrack.children(".slick-slide").eq(e+n.options.slidesToShow))[0]?-1*r[0].offsetLeft:0,!0===n.options.centerMode&&(t=(r=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(e):n.$slideTrack.children(".slick-slide").eq(e+n.options.slidesToShow+1))[0]?-1*r[0].offsetLeft:0,t+=(n.$list.width()-r.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,i=0,r=0,n=[];for(!1===t.options.infinite?e=t.slideCount:(i=-1*t.options.slidesToScroll,r=-1*t.options.slidesToScroll,e=2*t.slideCount);i<e;)n.push(i),i=r+t.options.slidesToScroll,r+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return n},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,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+e(s).outerWidth()/2>-1*r.swipeLeft)return t=s,!1})),Math.abs(e(t).attr("data-slick-index")-r.currentSlide)||1):r.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var i=this;e(i.$slider).hasClass("slick-initialized")||(e(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots()),t&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA()},t.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.on("click.slick",{message:"next"},e.changeSlide))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&!0===t.options.autoplay&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.setPaused,t,!0)).on("mouseleave.slick",e.proxy(t.setPaused,t,!1))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),t.$list.on("mouseenter.slick",e.proxy(t.setPaused,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.setPaused,t,!1)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show(),!0===e.options.autoplay&&e.autoPlay()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:"next"}}))},t.prototype.lazyLoad=function(){function t(t){e("img[data-lazy]",t).each((function(){var t=e(this),i=e(this).attr("data-lazy"),r=document.createElement("img");r.onload=function(){t.animate({opacity:0},100,(function(){t.attr("src",i).animate({opacity:1},200,(function(){t.removeAttr("data-lazy").removeClass("slick-loading")}))}))},r.onerror=function(){var e=t.parents(".feed-item");console.log("Juicer: post with id "+e.data("id")+" has a broken image. Making into text post."),e.removeClass("image-post").removeClass("j-video").addClass("words"),t.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++)),t(n.$slider.find(".slick-slide").slice(i,r)),n.slideCount<=n.options.slidesToShow?t(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?t(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&t(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},t.prototype.stop=t.prototype.slickStop=function(){var e=this;e.autoPlayClear(),e.stopped=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.paused=!1,e.stopped=!1,e.autoPlay()},t.prototype.postSlide=function(e){var t=this;t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.setPosition(),t.swipeLeft=null,!0===t.options.autoplay&&!1===t.paused&&t.autoPlay(),!0===t.options.accessibility&&t.initADA()},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(){var t,i=this;e("img[data-lazy]",i.$slider).length>0&&((t=e("img[data-lazy]",i.$slider).first()).attr("src",null),t.attr("src",t.attr("data-lazy")).removeClass("slick-loading").load((function(){t.removeAttr("data-lazy"),i.progressiveLazyLoad(),!0===i.options.adaptiveHeight&&i.setPosition()})).error((function(){t.removeAttr("data-lazy"),i.progressiveLazyLoad()})))},t.prototype.refresh=function(t){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),e.extend(n,n.initials,{currentSlide:i}),n.init(),t||n.changeSlide({data:{message:"index",index:i}},!1)},t.prototype.registerBreakpoints=function(){var t,i,r,n=this,s=n.options.responsive||null;if("array"===e.type(s)&&s.length){for(t in n.respondTo=n.options.respondTo||"window",s)if(r=n.breakpoints.length-1,i=s[t].breakpoint,s.hasOwnProperty(t)){for(;r>=0;)n.breakpoints[r]&&n.breakpoints[r]===i&&n.breakpoints.splice(r,1),r--;n.breakpoints.push(i),n.breakpointSettings[i]=s[t].settings}n.breakpoints.sort((function(e,t){return n.options.mobileFirst?e-t:t-e}))}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses(0),t.setPosition(),t.$slider.trigger("reInit",[t]),!0===t.options.autoplay&&t.focusHandler()},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout((function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()}),50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,i){var r=this;if(e="boolean"==typeof e?!0===(t=e)?0:r.slideCount-1:!0===t?--e:e,r.slideCount<1||e<0||e>r.slideCount-1)return!1;r.unload(),!0===i?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(e).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()},t.prototype.setCSS=function(e){var t,i,r=this,n={};!0===r.options.rtl&&(e=-e),t="left"==r.positionProp?Math.ceil(e)+"px":"0px",i="top"==r.positionProp?Math.ceil(e)+"px":"0px",n[r.positionProp]=e,!1===r.transformsEnabled?r.$slideTrack.css(n):(n={},!1===r.cssTransitions?(n[r.animType]="translate("+t+", "+i+")",r.$slideTrack.css(n)):(n[r.animType]="translate3d("+t+", "+i+", 0px)",r.$slideTrack.css(n)))},t.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,i=this;i.$slides.each((function(r,n){t=i.slideWidth*r*-1,!0===i.options.rtl?e(n).css({position:"relative",right:t,top:0,zIndex:i.options.zIndex-2,opacity:0}):e(n).css({position:"relative",left:t,top:0,zIndex:i.options.zIndex-2,opacity:0})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(t,i,r){var n,s,o=this;if("responsive"===t&&"array"===e.type(i))for(s in i)if("array"!==e.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[t]=i;!0===r&&(o.unload(),o.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left", "top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,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(e).addClass("slick-current"),!0===s.options.centerMode?(t=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&(e>=t&&e<=s.slideCount-1-t?s.$slides.slice(e-t,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(r=s.options.slidesToShow+e,i.slice(r-t+1,r+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?i.eq(i.length-1-s.options.slidesToShow).addClass("slick-center"):e===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(e).addClass("slick-center")):e>=0&&e<=s.slideCount-s.options.slidesToShow?s.$slides.slice(e,e+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+e:e,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-e<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()},t.prototype.setupInfinite=function(){var t,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,t=n.slideCount;t>n.slideCount-r;t-=1)i=t-1,e(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(t=0;t<r;t+=1)i=t,e(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(){e(this).attr("id","")}))}},t.prototype.setPaused=function(e){var t=this;!0===t.options.autoplay&&!0===t.options.pauseOnHover&&(t.paused=e,e?t.autoPlayClear():t.autoPlay())},t.prototype.selectHandler=function(t){var i=this,r=e(t.target).is(".slick-slide")?e(t.target):e(t.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)},t.prototype.slideHandler=function(e,t,i){var r,n,s,o,a=null,l=this;if(t=t||!1,(!0!==l.animating||!0!==l.options.waitForAnimate)&&!(!0===l.options.fade&&l.currentSlide===e||l.slideCount<=l.options.slidesToShow))if(!1===t&&l.asNavFor(e),r=e,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&&(e<0||e>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&&(e<0||e>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)}},t.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,i,r,n=this;return e=n.touchObject.startX-n.touchObject.curX,t=n.touchObject.startY-n.touchObject.curY,i=Math.atan2(t,e),(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"},t.prototype.swipeEnd=function(){var e,t=this;if(t.dragging=!1,t.shouldClick=!(t.touchObject.swipeLength>10),void 0===t.touchObject.curX)return!1;if(!0===t.touchObject.edgeHit&&t.$slider.trigger("edge",[t,t.swipeDirection()]),t.touchObject.swipeLength>=t.touchObject.minSwipe)switch(t.swipeDirection()){case"left":e=t.options.swipeToSlide?t.checkNavigable(t.currentSlide+t.getSlideCount()):t.currentSlide+t.getSlideCount(),t.slideHandler(e),t.currentDirection=0,t.touchObject={},t.$slider.trigger("swipe",[t,"left"]);break;case"right":e=t.options.swipeToSlide?t.checkNavigable(t.currentSlide-t.getSlideCount()):t.currentSlide-t.getSlideCount(),t.slideHandler(e),t.currentDirection=1,t.touchObject={},t.$slider.trigger("swipe",[t,"right"])}else t.touchObject.startX!==t.touchObject.curX&&(t.slideHandler(t.currentSlide),t.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,i,r,n,s,o=this;return s=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!o.dragging||s&&1!==s.length)&&(t=o.getLeft(o.currentSlide),o.touchObject.curX=void 0!==s?s[0].pageX:e.clientX,o.touchObject.curY=void 0!==s?s[0].pageY:e.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!==e.originalEvent&&o.touchObject.swipeLength>4&&e.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=t+r*n:o.swipeLeft=t+r*(o.$list.height()/o.listWidth)*n,!0===o.options.verticalSwiping&&(o.swipeLeft=t+r*n),!0!==o.options.fade&&!1!==o.options.touchMove&&(!0===o.animating?(o.swipeLeft=null,!1):void o.setCSS(o.swipeLeft))):void 0)},t.prototype.swipeStart=function(e){var t,i=this;if(1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},t.prototype.visibility=function(){var e=this;document[e.hidden]?(e.paused=!0,e.autoPlayClear()):!0===e.options.autoplay&&(e.paused=!1,e.autoPlay())},t.prototype.initADA=function(){var t=this;t.$slideTrack.attr("role","listbox").attr("aria-label","Slider"),t.$slides.add(t.$slideTrack.find(".slick-cloned")).find("a, input, button, select").attr({tabindex:"-1"}),t.$slides.not(t.$slideTrack.find(".slick-cloned")).each((function(i){var r="slick-slide"+t.instanceUid+i;e(this).attr({role:"option","aria-describedby":r,"aria-label":"Social post"}),e(this).find(".j-text").attr("id",r)})),null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each((function(i){e(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+i,id:"slick-slide"+t.instanceUid+i})})).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),t.activateADA()},t.prototype.activateADA=function(){var e=this;e.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select, img, p").attr({tabindex:"-1","aria-hidden":"true"}),e.$slideTrack.find(".slick-active").attr("tabindex","0"),e.$slideTrack.find(":not(.slick-active)").attr("tabindex","-1")},t.prototype.focusHandler=function(){var t=this;t.$slider.on("focus.slick blur.slick","*",(function(i){i.stopImmediatePropagation();var r=e(this);setTimeout((function(){t.isPlay&&(r.is(":focus")?(t.autoPlayClear(),t.paused=!0):(t.paused=!1,t.autoPlay()))}),0)}))},e.fn.slick=function(){var e,i,r=this,n=arguments[0],s=Array.prototype.slice.call(arguments,1),o=r.length;for(e=0;e<o;e++)if("object"==typeof n||void 0===n?r[e].slick=new t(r[e],n):i=r[e].slick[n].apply(r[e].slick,s),void 0!==i)return i;return r}})),function(){window.Juicer={Models:{},Collections:{},Views:{},Active:[],initialize:function(){return _u.each(jQuery(".juicer-feed"),(function(e){var t,i;if((t=jQuery(e)).is(":visible")&&!t.hasClass("j-post-overlay"))return t.hasClass("j-initialized")?void 0:(i=new Juicer.Views.Feed({el:e}).render(),Juicer.Active.push(i),t.addClass("j-initialized"))}))},remove:function(){return clearInterval(window.jInterval),_u.each(Juicer.Active,(function(e){return e.close()})),window.Juicer.Active=[]}}}.call(this),function(){jQuery(document).ready((function(){var e;return e=jQuery.fn.jquery.split("."),jQuery.map(e,(function(e){return("0"+e).slice(-2)})).join(".")>="01.07"?(jQuery(".juicer-feed").length>0&&Juicer.Views.Feed&&Juicer.initialize(),window.jInterval=setInterval((function(){var e;if(jQuery(".juicer-feed").length>0&&(e=_u.map(jQuery(".juicer-feed"),(function(e){return jQuery(e).hasClass("j-initialized")})),!!_u.contains(e,!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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.SubView=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.className="opened-sidebar-option",i.prototype.title="Feed Options",i.prototype.initialize=function(e){return this.feed=e.feed,this.sidebarView=e.sidebarView,this.$target=e.$target,this.feedView=e.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((e=this,function(){return e.$el.addClass("visible")}),100);var e},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((e=this,function(){return e.remove()}),500);var e},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.SubViewSlide=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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((e=this,function(){return e.remove()}));var e},i}(Juicer.Views.SubView)}.call(this),function(){Juicer.Helpers={renderPartial:function(e,t){var i;null==t&&(t={}),(e=e.split("/"))[e.length-1]="_"+e[e.length-1],e=e.join("/");try{return JST["partials/"+e](t)}catch(t){return i=t,console.log("Sorry, something went wrong with the partial: '"+e+"'"),console.log(i),""}},numberWithCommas:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},fullDate:function(e,t,i){if(null==t&&(t="%-m/%-d/%y at %-l:%M%p"),null==i&&(i=!0),null!=e)return i?isNaN(Date.parse(e.toLocaleString()))||(e=new Date(e.toLocaleString())):e=new Date(e),"undefined"==typeof strftime?e:strftime(t,e)},prettify:function(e){return e=(e=e.replace("-"," ")).replace("_"," "),this.capitalizeEachWord(e)},capitalizeEachWord:function(e){return e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))},timeAgo:function(e){var t,i;return e=new Date(e),i=Math.floor((new Date-e)/1e3),(t=Math.floor(i/31536e3))>1?t+"y":(t=Math.floor(i/2592e3))>1?t+"mo":(t=Math.floor(i/86400))>1?t+"d":(t=Math.floor(i/3600))>1?t+"h":(t=Math.floor(i/60))>1?t+"m":Math.floor(i)+"s"},sample:function(e){return e[Math.floor(Math.random()*e.length)]},confirm:function(e){return null!=window.confirmed||!!confirm(e)&&(window.confirmed=!0,!0)},format:function(e){return null==e?null:(e=e.replace(/\r\n?/,"\n"),(e=jQuery.trim(e)).length>0&&(e=(e="<p>"+(e=(e=(e=e.replace(/\n\n+/g,"</p><p>")).replace(/\n/g,"<br />")).replace(this.xss,""))+"</p>").autoLink()),e)},rgb2hex:function(e){return/^#[0-9A-F]{6}$/i.test(e)?e:(e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))?"#"+this.hex(e[1])+this.hex(e[2])+this.hex(e[3]):"#"},hex:function(e){return("0"+parseInt(e).toString(16)).slice(-2)},xss:/javascript|onerror|alert|iframe|js|script|console|confirm|cookie|java|onmouseover|eval|document|window/gi}}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.FormView=function(i){function r(){this.invalid=e(this.invalid,this),this.valid=e(this.valid,this),this.prepareModel(),r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.delegateEvents=function(e){return this.events=_u.extend(this._baseEvents(),_u.result(this,"events")),r.__super__.delegateEvents.call(this,e)},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(e,t){var i,r;if(this.removeErrorMessage(t),this.$("[data-validation="+t+"]").removeClass("invalid").addClass("valid"),i=this.$("[data-validation="+t+"]").data("on-valid-"+t+"-custom-classes"))return $("[data-validation="+t+"]")[0].value.length>0?i.split(" ").forEach((r=this,function(e){return r.$("[data-validation="+t+"]").addClass(e)})):i.split(" ").forEach(function(e){return function(i){return e.$("[data-validation="+t+"]").removeClass(i)}}(this))},r.prototype.invalid=function(e,t,i){var r,n;if(this.removeErrorMessage(t),this.$("[data-validation="+t+"]").removeClass("valid").addClass("invalid").parents(".form-field").append("<small class='error "+t+"'>"+i+"</small>"),r=this.$("[data-validation="+t+"]").data("on-valid-"+t+"-custom-classes"))return r.split(" ").forEach((n=this,function(e){return n.$("[data-validation="+t+"]").removeClass(e)}))},r.prototype.showActivityIndicator=function(e){return this.submit=e,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(e){return this.$(".error."+e).remove()},r.prototype.validateField=function(e){var t,i,r;return i=$(e.target).attr("data-validation"),r=$(e.target).val(),(t=this.model.preValidate(i,r))?this.invalid(this,i,t):this.valid(this,i)},r.prototype.processForm=function(e){return e.preventDefault(),this.showActivityIndicator($(e.target)),this.updateModel(),this.submitForm()},r.prototype.updateModel=function(){var e;return e=JuicerBackbone.Syphon.serialize(this),this.model.set(e[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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r;return e="",t=this.action.match("delete")?"Delete":"Downgrade",e+='<div class="tac p-30"><h3 class="fs-2 mb-25">',e+=this.escape(t),e+=' User</h3><form action="',e+=this.escape(this.action),e+='" method="post"><input name="authenticity_token" type="hidden" value="',e+=this.escape(this.csrf),e+='" /><input name="user_id" type="hidden" value="',e+=this.escape(this.userId),e+='" /><div class="select mb-30"><select name="churn[reason]"><option>Why are they ',e+=this.escape(t.slice(0,-1)),e+="ing their account?</option>",_u.each(this.reasons,(r=this,function(t){return e+='<option value="',e+=r.escape(t),e+='">',e+=r.escape(t),e+="</option>"})),e+='</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":t+" now",e+='<input class="j-button" type="submit" value="',e+=this.escape(i),e+='" /></form></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.admin_password_reset=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",this.action.match("delete")?"Delete":"Downgrade",e+='<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="',e+=this.escape(this.action),e+='" method="post"><input name="authenticity_token" type="hidden" value="',e+=this.escape(this.csrf),e+='" /><input name="user_id" type="hidden" value="',e+=this.escape(this.userId),e+='" /><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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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="',e+=this.escape(window.location.pathname),e+='"><div class="mb-30"><input class="date-range-field" name="start" placeholder="MM/DD/YYYY" type="text" value="',e+=this.escape(this.start),e+='" /><span class="mx-10">to</span><input class="date-range-field" name="end" placeholder="MM/DD/YYYY" type="text" value="',e+=this.escape(this.end),e+='" /></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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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>',e+=this.escape(this.plan),e+="</strong> account until <strong>",e+=this.escape(this.downgradeAt),e+='</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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+="<h3>",this.model.get("is_invitation_accepted")?e+=this.escape(this.model.get("email")+("owner"===this.model.get("role")?" (owner)":"")):(e+=this.escape(this.model.get("email")),e+='<em><small class="fs-0-75">',e+=this.escape(" (invited on "+Juicer.Helpers.fullDate(this.model.get("invitation_sent_at"))+")"),e+="</small></em>"),e+='</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/',e+=this.escape(this.account.get("slug")),e+="/",e+=this.escape(this.model.get("id")),e+='/remove" rel="nofollow">Remove</a>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/calculator"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){ return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="row"><div class="col-12 col-sm-6 col-md-4 tac"><h3 class="fs-3 calculator-sources">',e+=this.escape(this.model.sources()),e+='</h3><h4 class="mb-25">Social Media Sources</h4><input class="bg-dark-gray" data-attribute="sources" max="21" min="1" type="range" value="',e+=this.escape(this.model.get("sources")),e+='" /></div><div class="col-12 col-sm-6 col-md-4 tac"><h3 class="fs-2 calculator-frequency">',e+=this.escape(this.model.frequencyInWords()),e+='</h3><h4 class="mb-25">Update Frequency</h4><input class="bg-dark-gray" data-attribute="frequency" max="7" min="1" type="range" value="',e+=this.escape(this.model.get("frequency")),e+='" /></div><div class="col-12 col-sm-6 col-md-4 tac"><h3 class="fs-3 calculator-price">',e+=this.escape(this.model.priceString()),e+='</h3><h4 class="calculator-price-label">',e+=this.model.priceLabel(),e+="</h4></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/create_assignment_form"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="p-50 tac"><h2 class="fs-2">Add User to "',e+=this.escape(this.model.get("name")),e+='"</h2><form class="new-assignment" method="post"><input name="enterprise_id" type="hidden" value="',e+=this.escape(this.account.get("slug")),e+='" /><input name="feed_id" type="hidden" value="',e+=this.escape(this.model.get("id")),e+='" /><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 ',e+=this.escape(this.model.get("name")),e+='" /></form></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/feed"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r;return e="",t=this.model.get("slug"),e+='<h3 class="mb-10 enterprise-feed-name"><a class="fs-2 tc-dark-gray feed-icon" href="/feeds/',e+=this.escape(t),e+='">',e+=this.escape(this.model.get("name")),e+='</a></h3><ul class="enterprise-feed-actions"><li class="ibt"><a aria-label="View Feed" class="enterprise-feed-view hint--bottom-left" href="/feeds/',e+=this.escape(t),e+='">View</a></li>',this.account.get("auto_fetch_all")&&(e+='<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>'),e+='<li class="ibt ml-10"><a aria-label="Edit this Feed" class="enterprise-feed-edit hint--bottom-left" href="/feeds/',e+=this.escape(t),e+='/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 ',e+=this.escape(t),e+=' feed? This will remove all sources and posts and is non-reversible." data-method="delete" href="/feeds/',e+=this.escape(t),e+='" rel="nofollow">Delete</a></li></ul>',i=this.model.get("sources").length,e+='<div class="tc-dark-gray enterprise-feed-pricing">',e+=this.escape(this.model.get("update_frequency_in_words")),e+=" \xd7 ",e+=this.escape(i),e+=" ",e+=this.escape(_u("source").pluralize(i)),e+=" = <strong>",e+=this.escape(this.model.get("formatted_cost")),e+='</strong> per month </div><ul class="my-5">',_u.each(this.sources,(r=this,function(t){var i,n,s;switch(s=t.get("term"),e+="<li",i=s){case!0:e+=' alt="alt"';break;case!1:case null:break;default:e+=' alt="',e+=r.escape(i),e+='"'}switch(e+=' aria-label="',e+=r.escape(t.displayName()),e+='" class="enterprise-feed-source hint--bottom-right"',n=s){case!0:e+=' title="title"';break;case!1:case null:break;default:e+=' title="',e+=r.escape(n),e+='"'}return e+='><span class="j-',e+=r.escape(t.get("source").toLowerCase()),e+=' j-social-icon bg-none tc-gray fs-1"></span></li>'})),e+='</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(t){return function(i){return e+='<li class="enterprise-user-dashboard-assignment"><span class="enterprise-assignment-dashboard-email">',e+=t.escape(i.get("email")),e+="</span>",i.get("belongs_to_account_manager")||(e+='<a aria-label="Delete user ',e+=t.escape(i.get("email")),e+=" from feed ",e+=t.escape(t.model.get("name")),e+='." class="delete-dashboard-assignment" data-id="',e+=t.escape(i.get("id")),e+='"></a>'),e+="</li>"}}(this)),e+='<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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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/',e+=this.escape(this.model.get("slug")),e+='/admin" method="post"><div style="display:none"><input name="utf8" type="hidden" value="\u2713" /><input name="authenticity_token" type="hidden" value="',e+=this.escape(this.csrf),e+='" /></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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<h1 class="fs-2 mb-25">Enterprise dashboard</h1>',e+=Juicer.Helpers.renderPartial("enterprise_sidebar",{model:this.model}),e+='<div class="enterprise-content">',this.model.get("yearly")||(e+='<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">',e+=this.escape(this.model.get("formatted_cost_with_minimum_fee")),e+='</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>'),e+='<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="',e+=this.escape(this.model.query),e+='" /></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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;switch(e="",e+='<div class="enterprise-user"><h3>',e+=this.escape(this.model.get("email")),e+="</h3>",e+='<a class="delete-user"',t="Are you sure you want to remove this user from your enterprise account and all associated feeds?"){case!0:e+=' data-confirm="data-confirm"';break;case!1:case null:break;default:e+=' data-confirm="',e+=this.escape(t),e+='"'}return e+=' data-method="post" href="/enterprise/',e+=this.escape(this.account.get("slug")),e+="/",e+=this.escape(this.model.get("id")),e+='/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(t){return e+='<li class="enterprise-user-assignment ibt">',e+=i.escape(t.name),e+='<a aria-label="Delete user ',e+=i.escape(t.email),e+=" from feed ",e+=i.escape(t.name),e+='." class="delete-assignment" data-id="',e+=i.escape(t.id),e+='"></a></li>'})),e+="</ul>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/users"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<h1 class="fs-2 mb-25">Enterprise dashboard</h1><div class="cf">',e+=Juicer.Helpers.renderPartial("enterprise_sidebar",{model:this.model}),e+='<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/',e+=this.escape(this.model.get("slug")),e+='">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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;if(e="",e+='<h1 class="fs-2 mb-25">Enterprise dashboard</h1>',e+=Juicer.Helpers.renderPartial("enterprise_sidebar",{model:this.model}),e+='<div class="enterprise-content"><div class="bg-white border p-30">',this.model.get("white_label"))e+='<h1 class="white-label-success tc-black fs-1-25 mb-25 tac">Success! ',e+=this.escape(this.model.get("host")),e+=' 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")&&(e+='<p class="mt-25">In order to get your White Labeled Juicer working with HTTPS, please add a CNAME record pointing to ',e+=this.escape(this.model.get("white_label_cname")),e+=" to your DNS.</p>"),e+="</div>";else{switch(e+='<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">',e+='<input class="mb-10 bordered" name="url" placeholder="http://feeds.yourdomain.com" type="url"',t=this.model.get("url")?this.model.get("url"):null){case!0:e+=' value="value"';break;case!1:case null:break;default:e+=' value="',e+=this.escape(t),e+='"'}e+=' /><input class="fw j-button" type="submit" value="Confirm Domain is set up" /></form></p>',this.model.get("error")&&(e+='<div class="cname-error mt-40 p-25 tc-gray"><strong>',e+=this.escape(this.model.get("host")),e+="</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 e+="</div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.entertainment=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<div class="entertainment-container">',this.feed.displayFilters()&&(e+=Juicer.Helpers.renderPartial("filters/"+this.feed.filterPartial(),{feed:this.feed,filter:this.filter})),e+='<ul class="entertainment-ul">',_u.each(this.chunks,(t=this,function(i,r){var n,s;return n=[],s=[],_u.each(i,(function(e){var i;return t.largePosts.includes(e)?n.length<1?n.push(e):t.chunks[r+1]?(i=t.chunks[r+1].find((function(e){return!e.get("edit")})),t.chunks[r+1].splice(t.chunks[r+1].indexOf(i),1),t.chunks[r+1].push(e),s.push(i)):s.push(e):s.length<2?s.push(e):n.push(e)})),r%3==1?(e+='<div><div class="entertainment-small">',s[0]&&(e+=Juicer.Helpers.renderPartial("entertainment_card",{post:s[0],size:"small",isOnFeedsDashboard:t.isOnFeedsDashboard})),s[1]&&(e+=Juicer.Helpers.renderPartial("entertainment_card",{post:s[1],size:"small",isOnFeedsDashboard:t.isOnFeedsDashboard})),e+="</div>",e+=Juicer.Helpers.renderPartial("entertainment_card",{post:n[0],size:"large",isOnFeedsDashboard:t.isOnFeedsDashboard}),e+="</div>"):(e+="<div>",e+=Juicer.Helpers.renderPartial("entertainment_card",{post:n[0],size:"large",isOnFeedsDashboard:t.isOnFeedsDashboard}),e+='<div class="entertainment-small">',s[0]&&(e+=Juicer.Helpers.renderPartial("entertainment_card",{post:s[0],size:"small",isOnFeedsDashboard:t.isOnFeedsDashboard})),s[1]&&(e+=Juicer.Helpers.renderPartial("entertainment_card",{post:s[1],size:"small",isOnFeedsDashboard:t.isOnFeedsDashboard})),e+="</div></div>")})),e+="</ul></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.errors=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<ul class="errors source-errors px-25 mb-15">',$.each(this.errors,(t=this,function(i){return _u.each(t.errors[i],(function(t){return e+='<li class="tc-grapefruit">',e+=t,e+="</li>"}))})),Juicer.Constants.SOURCES_REQUIRING_OAUTH_TOKENS.indexOf(this.source)>=0&&(e+='<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 ',e+=this.escape(this.source),e+=" Social Account</a> is working and hasn't expired. </div></li></ul></li>"),e+="</ul>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.feed=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",t="slider"===this.feed.get("css")?_u.filter(this.feed.get("posts").models,(function(e){return"YouTube"!==e.sourceType()})):this.feed.get("posts").models,this.feed.displayFilters()&&(e+=Juicer.Helpers.renderPartial("filters/"+this.feed.filterPartial(),{feed:this.feed,filter:this.filter})),t.length<=0?this.isOnFeedsDashboard?(e+='<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(e){return"LinkedIn"===e.get("source")}))&&(e+='<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>'),e+='<a class="j-button add-source tc-white mb-40" onclick="window.juicerDashboardSidebar.openNewSource()">+ Add social media source </a>',this.feed.get("moderation_allowed?")&&(e+='<p class="fs-1 tc-gray">If you have already added social media source, check your <a class="tc-gray" href="',e+=this.escape(window.location.pathname),e+='/moderation">moderation queue</a> <span>or filters in Feed Settings! </span></p>'),e+="</div>"):e+='<div class="empty"><h2>No Posts!</h2></div>':(e+=Juicer.Helpers.renderPartial("custom_styles",{feed:this.feed}),_u.each(t,(i=this,function(t){var r;return e+="<li",r="",(r+=i.escape(t.classes())).length>0&&(e+=' class="',e+=r,e+='"'),e+=' data-id="',e+=i.escape(t.get("id")),e+='" data-source="',e+=i.escape(t.lowerType()),e+='">',e+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:i.isOnFeedsDashboard,post:t,feed:i.feed}),e+=Juicer.Helpers.renderPartial("feeds/"+i.feed.partial(),{post:t,feed:i.feed}),!t.ad&&t.ctaAdded()&&"modern"===i.feed.get("css")&&(e+='<div class="j-cta" style="background-color: ',e+=i.escape(i.feed.getColor("feed_background")),e+=';">',e+=Juicer.Helpers.renderPartial("cta",{post:t,feed:i.feed}),e+="</div>"),e+="</li>"}))),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/accessibility_confirm"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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">',e+=this.escape("Cancel"),e+='</button><button class="accessibility-confirm j-button">',e+=this.escape("Save"),e+="</button></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/accessibility_toggle"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;switch(e="",e+='<div class="p-20 thirteen"><input',t=this.accessibility_checked){case!0:e+=' checked="checked"';break;case!1:case null:break;default:e+=' checked="',e+=this.escape(t),e+='"'}return e+=' id="feed-layout-change" name="feed[embed_layout]" type="checkbox" value="v2" /><label for="feed-layout-change">',e+=this.escape("Improved feed accessibility"),e+='</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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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 ',e+=this.escape(this.feed.get("name")),e+=" Analytics</a>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/analytics_overlay"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="p-50 tac"><h2 class="fs-2">Analytics for Juicer feed "',e+=this.escape(this.feed.get("name")),e+='"</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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){ return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="color-fields p-15" data-color="',e+=this.escape(this.colorAttr),e+='"><div class="color-input-container"><div class="double-border color-example" style="background-color: ',e+=this.escape(this.color),e+='"></div><div class="color-example-bg double-border-bg"></div><input class="color-input" pattern="',e+=this.escape(this.pattern),e+='" type="color" value="',e+=this.escape(this.color),e+='" /></div><input class="hex-input" pattern="',e+=this.escape(this.pattern),e+='" type="text" value="',e+=this.escape(this.color),e+='" /></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/css_overlay"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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">',e+='<textarea class="bordered my-40" name="css" placeholder="Enter Custom CSS to modify the look of your Juicer Feed..." style="height: 40vh;">',e+=this.feed.get("custom_css")?this.feed.get("custom_css"):"",e+='</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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<div class="pt-20 px-20 fourteen relative">',e+=Juicer.Helpers.renderPartial("css",{feed:this.feed,label:!0}),e+='<label class="settings-label">Feed Display</label><div class="mb-30">',e+=Juicer.Helpers.renderPartial("interval",{feed:this.feed}),"entertainment"!==this.feed.get("css")&&(e+=Juicer.Helpers.renderPartial("columns",{feed:this.feed})),e+=Juicer.Helpers.renderPartial("width",{feed:this.feed}),e+=Juicer.Helpers.renderPartial("height",{feed:this.feed}),null==this.feed.get("height")&&null==this.feed.get("width")||(e+='<label class="ib mt-10 thirteen">If you want the feed to fill all available space remove the height and width.</label>'),e+='</div><h3 class="bold mb-10">Feed Colors</h3><ul class="bg-white-field tc-slevin mb-10">',_u.each(this.feed.colors,(t=this,function(i){return e+='<li class="p-15 relative feed-color" data-color="',e+=t.escape(i),e+='"><div class="bold">',e+=t.escape(t.feed.customColorMap[i].label),t.feed.customColorMap[i].description&&(e+='<div aria-label="',e+=t.escape(t.feed.customColorMap[i].description),e+='" class="sidebar-explainer hint--right hint--medium"></div>'),e+='</div><div class="color-picker"><div class="double-border color-picker-circle" style="background: ',e+=t.escape(t.feed.getColor(i)),e+='"></div><div class="double-border-bg color-picker-background-color"></div></div></li>'})),e+='</ul><div class="checkbox mb-15 thirteen relative"><input name="feed[colored_icons]" type="hidden" value="0" />',this.feed.get("colored_icons")?e+='<input checked="true" data-attribute="colored_icons" id="colored_icons" name="feed[colored_icons]" type="checkbox" />':e+='<input data-attribute="colored_icons" id="colored_icons" name="feed[colored_icons]" type="checkbox" />',e+='<label for="colored_icons">',e+=this.escape("Color in social network icons"),e+='</label></div></div><a class="twelve tdu pointer mb-40 block tac reset-style">Restore Default Template Colors</a>',this.feed.get("moderation_allowed?")||(e+='<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>',e+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed,css:"j-button small",mpevent:"custom_design_sidebar_upgrade",label:"Upgrade Now"}),e+="</div>"),e+='<div class="px-20 fourteen relative">',this.feed.get("moderation_allowed?")||(e+='<div class="filter-blocker custom-style-not-allowed"></div>'),e+='<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="',e+=this.escape(Juicer.Constants.HELP_CENTER_URL),e+='/articles/360039929412-Code-customizations-for-date-range-feed-style-spacing-filtering-and-more" target="_blank">Other Customization Options<span class="external-link-icon">',e+=Juicer.Constants.SVG_ICONS.externalLink,e+="</span></a></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/embed"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="p-20 fourteen"><textarea class="embed embed-textarea mb-15 ten tc-embed p-15" oncopy="htmx.ajax('POST', '/track', { values: { event_name: 'embed_snippet_copied', properties: { embed_type: 'embed-code' } } })">',e+=this.embed,e+='</textarea><a class="tc-gray tdu" href="',e+=this.escape(Juicer.Constants.HELP_CENTER_URL),e+='/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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="","v2"===this.overrideEmbedLayout||"v2"===this.feed.get("embed_layout")?e+='<script type="text/javascript" src="'+this.javascriptV2Path+'" async defer></script>':(e+='<script src="',e+=this.escape(this.javascript),e+='" type="text/javascript"></script><br /><link href="',e+=this.escape(this.stylesheet),e+='" media="all" rel="stylesheet" type="text/css" /><br /><ul class="juicer-feed" data-feed-id="',e+=this.escape(this.feed.get("slug")),e+='" data-origin="',e+=this.escape(Juicer.Constants.PAGE_URL_EMBED_CODE_ORIGIN),e+='">',this.feed.paid()||(e+=Juicer.Helpers.renderPartial("referral")),e+="</ul>"),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/embed_menu"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<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,(t=this,function(i){return t.currentlySelected===i.value?(e+='<option selected="true" value="',e+=t.escape(i.value),e+='">',e+=t.escape(i.label),e+="</option>"):(e+='<option value="',e+=t.escape(i.value),e+='">',e+=t.escape(i.label),e+="</option>")})),e+="</select></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/features"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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="',e+=this.escape(this.feed.get("name")),e+='" /><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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<div class="tac"><h3 class="fourteen mb-20">Share this link:</h3>',t=window.location.protocol+"//"+window.location.host+"/hub/"+this.feed.get("slug"),e+='<div class="bg-white tc-black fourteen tal p-10 mb-15 relative" style="word-break: break-all" x-data="{ code: '',e+=this.escape(t),e+='' }" x-on:click="$clipboard(code)">',e+=this.escape(t),e+='<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/',e+=this.escape(this.feed.get("slug")),e+='/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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="p-20 fourteen"><textarea class="ten tc-embed p-15 mb-10 iframe-embed" oncopy="htmx.ajax('POST', '/track', { values: { event_name: 'embed_snippet_copied', properties: { embed_type: 'iframe' } } })">',e+=this.iframe,e+="</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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",e+='<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?")?(e+='<form class="filters" method="post">',e+=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"}),e+='<div class="p-20 fourteen relative"><div class="filter-blocker"></div>',i="list words, @usernames, or #hastags",t="Separate filters with a comma. Filters are case-insensitive.",e+='<h3 class="settings-label">Disallow posts with these words:</h3><textarea class="moderation-filter thirteen mb-10" name="feed[disallowed]" placeholder="',e+=this.escape(i),e+=" to block. ",e+=this.escape(t),e+='">',e+=this.feed.disallowed(),e+='</textarea><h3 class="settings-label">Only allow posts with these words:</h3><textarea class="moderation-filter thirteen mb-20" name="feed[allowed]" placeholder="',e+=this.escape(i),e+=" to allow. ",e+=this.escape(t),e+='">',e+=this.feed.allowed(),e+="</textarea>",e+=Juicer.Helpers.renderPartial("profanity",{feed:this.feed}),e+=Juicer.Helpers.renderPartial("prevent_duplicates",{feed:this.feed}),e+='</div><div class="tac"><input class="j-button" type="submit" value="Save your Filters" /></div></form>'):(e+='<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>',e+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed,css:"j-button small",mpevent:"moderation_sidebar_upgrade",label:"Upgrade Now"}),e+="</div>"),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/new_source"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="tac pt-30 pb-25"><h3 class="fs-2 tc-black">',e+=this.escape("Add a Social Media Source"),this.showFeedName&&(e+=" to<br /><b>",e+=this.escape(this.showFeedName),e+="</b>"),e+='</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">',e+=Juicer.Helpers.renderPartial("sources",{feed:this.model}),e+="</ul></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/revalidate_overlay"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r,n;return e="",e+='<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",t=window.juicerDashboard.initialDeduplicationNumberOfPosts,e+='<p class="fifteen tc-gray ',e+=this.escape(i),e+='">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 ',e+=this.escape(t),e+=" 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&&(e+='<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>'),e+="<form>",_u.each(_u.keys(this.data),(n=this,function(t){return e+='<input name="',e+=n.escape(t),e+='" type="hidden" value="',e+=n.escape(n.data[t]),e+='" />'})),e+='<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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<div class="p-20 fourteen">',e+=Juicer.Helpers.renderPartial("order",{feed:this.feed}),e+=Juicer.Helpers.renderPartial("filter_setting",{feed:this.feed,label:!0}),_u.each(this.checkboxes,(t=this,function(i){var r;return r=i.attr,e+='<div class="checkbox mb-15 thirteen relative"><input name="feed[',e+=t.escape(r),e+=']" type="hidden" value="0" />',t.feed.get(r)?(e+='<input checked="true" data-attribute="',e+=t.escape(r),e+='" id="',e+=t.escape(r),e+='" name="feed[',e+=t.escape(r),e+=']" type="checkbox" />'):(e+='<input data-attribute="',e+=t.escape(r),e+='" id="',e+=t.escape(r),e+='" name="feed[',e+=t.escape(r),e+=']" type="checkbox" />'),e+='<label for="',e+=t.escape(r),e+='">',e+=t.escape(i.label),e+="</label>",null!=i.tooltip&&(e+='<div aria-label="',e+=t.escape(i.tooltip),e+='" class="sidebar-explainer hint--right hint--medium"></div>'),e+="</div>"})),e+='<a class="fourteen tc-dark-blue tdu mt-40 d-block" href="',e+=this.escape(Juicer.Constants.HELP_CENTER_URL),e+='/articles/360039929412-Code-customizations-for-date-range-feed-style-spacing-filtering-and-more" target="_blank">Other Customization Options<span class="external-link-icon">',e+=Juicer.Constants.SVG_ICONS.externalLink,e+="</span></a></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/sources"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",e+='<ul class="source-list">',_u.each(this.feed.get("sources").models,(i=this,function(t){var r,n,s;switch(s=t.get("id"),n=!0===t.get("is_deactivated")?"j-source-isDeactivated":"j-source-active",e+='<li class="j-social-icon bg-none fourteen existing-source j-',e+=i.escape(t.lowerSource()),e+=" ",e+=i.escape(n),e+='" data-id="',e+=i.escape(s),e+='"><div class="d-flex align-items-center justify-content-between w-100">',window.juicerDashboard.sourceIdsWhereUserActionRequired.indexOf(s)>-1&&(e+='<a class="js-warning" href="/feeds/',e+=i.escape(i.feed.get("slug")),e+='/inspect" title="We cannot import posts for this source. Please click to fix this!">',e+=window.juicerDashboard.warningSvg,e+="</a>"),e+='<span class="sourceName"',r=!0===t.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:e+=' title="title"';break;case!1:case null:break;default:e+=' title="',e+=i.escape(r),e+='"'}return e+=">",e+=i.escape(t.displayName()),e+='</span><span class="juicer-fa-caret-down"></span></div>',t.options()&&t.options().length>0&&(e+='<ul class="d-block">',_u.each(t.options(),(function(t){return e+="<li>",e+=i.escape(t),e+="</li>"})),e+="</ul>"),e+='</li><ul class="source-submenu fourteen">',t.manual()&&(e+='<li class="add source-submenu-item mb-10" data-id="',e+=i.escape(s),e+='" data-name="',e+=i.escape(t.typeSymbol()),e+=i.escape(t.get("term")),e+='" data-template="manual" rel="nofollow">Add Post Manually</li>'),i.feed.get("moderation_allowed?")&&(e+='<li class="moderate source-submenu-item mb-10" data-id="',e+=i.escape(s),e+='" data-template="moderation">Set Moderation Filters</li>'),e+='<li class="rename source-submenu-item mb-10" data-id="',e+=i.escape(s),e+='" data-template="rename">Edit Filter Button Name</li><li class="delete" data-id="',e+=i.escape(s),e+='">Delete</li></ul>'})),e+="</ul>",t=this.feed.get("manual_source_limit"),e+='<div class="tac mt-40 add-source-container" x-data="{ tooltip: '', disabledMessage: 'Your account owner set a limit of maximum ',e+=this.escape(t),e+=" feed",e+=this.escape(t>1?"s":""),e+='. Please ask them to adjust the limit.' }" x-on:disable-add-source-button="tooltip = disabledMessage" x-on:enable-add-source-button="tooltip = ''">',this.feed.manualSourceLimitReached()?e+='<a class="js-add-source-submenu add-source-submenu j-button small disabled" x-init="$dispatch('disable-add-source-button')" x-tooltip="tooltip">+ Add social media source </a>':e+='<a class="js-add-source-submenu add-source-submenu j-button small" x-init="$dispatch('enable-add-source-button')" x-tooltip="tooltip">+ Add social media source </a>',e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/synced"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<h4 class="thirteen mb-10">',this.feed.get("view_limit_reached")?(e+="Your feed exceeded the 2,000 view limit for this month. It will reset on <strong>",e+=this.escape(Juicer.Helpers.fullDate(this.feed.get("view_limit_reset_date"),"%b/%-d/%y at %-l:%M%p")),e+="</strong><br>",e+=Juicer.Helpers.renderPartial("upgrade_plan",{label:"Upgrade to resync now",mpevent:"views_upgrade_sidebar_refresh", css:"jcr-text-[14px] j-button jcr-mt-2"})):(e+="Your feed will sync next at <strong>",e+=this.escape(Juicer.Helpers.fullDate(this.feed.nextSync(),"%b/%-d/%y at %-l:%M%p")),e+="</strong>. Please note this is only an estimate. "),e+="</h4>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/wordpress"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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>',e+='<textarea class="ten tc-embed p-15 single-line mb-20" oncopy="htmx.ajax('POST', '/track', { values: { event_name: 'embed_snippet_copied', properties: { embed_type: 'wp-plugin-1-12' } } })">',e+='[juicer name="'+this.feed.get("slug")+'"]',e+='</textarea><h3 class="settings-label">PHP Function</h3>',e+='<textarea class="ten tc-embed p-15 single-line" oncopy="htmx.ajax('POST', '/track', { values: { event_name: 'embed_snippet_copied', properties: { embed_type: 'wordpress' } } })">',e+='<?php juicer_feed("name='+this.feed.get("slug")+'"); ?>',e+="</textarea></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.gdpr_form=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",(t=this.feed.get("posts").models).length>0&&_u.each(t,(i=this,function(t){var r;return e+="<li",r="",(r+=i.escape(t.classes())).length>0&&(e+=' class="',e+=r,e+='"'),e+=' data-id="',e+=i.escape(t.get("id")),e+='" data-source="',e+=i.escape(t.lowerType()),e+='">',e+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:i.isOnFeedsDashboard,post:t}),e+=Juicer.Helpers.renderPartial("feeds/"+i.feed.partial(),{post:t,feed:i.feed}),e+="</li>"})),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.moderated=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<ul class="j-display-filters">',_u.each(this.menuItems,(t=this,function(i){return t.feed.filter===i.filter||"All"===i.title&&""===t.feed.filter?(e+='<li class="moderate-filter selected" data-filter="',e+=t.escape(i.filter),e+='">',e+=t.escape(i.title),e+="</li>"):(e+='<li class="moderate-filter" data-filter="',e+=t.escape(i.filter),e+='">',e+=t.escape(i.title),e+="</li>")})),e+="</ul>",this.feed.get("posts").models.length>0&&(e+='<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>'),e+=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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+=Juicer.Helpers.renderPartial("sources")}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.overlay=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="j-overlay-content">',this.close&&(e+='<button aria-label="Close" class="j-close" title="Close"><span>Close</span></button>'),e+=this.content,e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_actions"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",this.isOnFeedsDashboard&&!this.post.ad&&(e+='<ul class="actions" data-id="',e+=this.escape(this.post.get("id")),e+='">',null!=this.post.get("deleted_at")?(this.post.linkedin&&(e+='<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>'),e+='<li aria-label="Don'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()?e+='<li aria-label="Edit the Call To Action on this post." class="edit-cta hint--bottom-right">Edit CTA</li>':e+='<li aria-label="Add a Call To Action to this post." class="edit-cta hint--bottom-right">Add CTA</li>'),this.post.stickied()?e+='<li aria-label="Remove post from the top of the feed." class="unstick hint--bottom-left">Unpin</li>':e+='<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()||(e+='<li aria-label="Add content to this post." class="edit hint--bottom-left">Edit</li>'),e+='<li aria-label="Move post to moderation queue. Remove from live feed." class="delete primary hint--bottom-left">Delete</li>',window.juicerDashboard.isAdminUser&&(e+='<li aria-label="Copy post ID to clipboard." class="copy-post-id hint--bottom-left">Copy post ID</li>')),e+="</ul>"),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_columns"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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="',e+=this.escape(this.feed.get("columns")),e+='" /></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_content"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r,n,s,o,a,l,c;if(e="",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(e+='<div class="j-image" data-external-id="',e+=this.escape(this.post.get("external_id")),e+='"',t=c){case!0:e+=' data-image="data-image"';break;case!1:case null:break;default:e+=' data-image="',e+=this.escape(t),e+='"'}switch(e+=' data-video-url="',e+=this.escape(this.post.get("video")),e+='" href="',e+=this.escape(this.post.link()),e+='"',i=this.post.ad?"nofollow":null){case!0:e+=' rel="rel"';break;case!1:case null:break;default:e+=' rel="',e+=this.escape(i),e+='"'}if(e+=">",(this.feed&&this.feed.shouldShowGallery()&&this.post.gallery()||this.post.gallery()&&this.overlay)&&(e+='<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(e+='<img alt="',e+=this.escape(this.post.alt()),e+='" class="j-content-image"',r=c){case!0:e+=' data-lazy="data-lazy"';break;case!1:case null:break;default:e+=' data-lazy="',e+=this.escape(r),e+='"'}e+=" />"}else{switch(e+='<img alt="',e+=this.escape(this.post.alt()),e+='" class="j-content-image"',n=c){case!0:e+=' src="src"';break;case!1:case null:break;default:e+=' src="',e+=this.escape(n),e+='"'}e+=" />"}e+="</div>"}}else if(c){switch(e+='<a class="j-image" data-external-id="',e+=this.escape(this.post.get("external_id")),e+='"',s=c){case!0:e+=' data-image="data-image"';break;case!1:case null:break;default:e+=' data-image="',e+=this.escape(s),e+='"'}switch(e+=' data-video-url="',e+=this.escape(this.post.get("video")),e+='" href="',e+=this.escape(this.post.link()),e+='"',o=this.post.ad?"nofollow":null){case!0:e+=' rel="rel"';break;case!1:case null:break;default:e+=' rel="',e+=this.escape(o),e+='"'}if(e+=' target="_blank">',(this.feed&&this.feed.shouldShowGallery()&&this.post.gallery()||this.post.gallery()&&this.overlay)&&(e+='<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(e+='<img alt="',e+=this.escape(this.post.alt()),e+='" class="j-content-image"',a=c){case!0:e+=' data-lazy="data-lazy"';break;case!1:case null:break;default:e+=' data-lazy="',e+=this.escape(a),e+='"'}e+=" />"}else{switch(e+='<img alt="',e+=this.escape(this.post.alt()),e+='" class="j-content-image"',l=c){case!0:e+=' src="src"';break;case!1:case null:break;default:e+=' src="',e+=this.escape(l),e+='"'}e+=" />"}e+="</a>"}else this.post.get("video")&&"Instagram"===this.post.get("source").source()&&"hashtag"===this.post.get("source").termType()&&(e+='<div class="video-play-placeholder">',e+=Juicer.Constants.SVG_ICONS.play,e+="</div>");return e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_css"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",e+='<div class="css">',this.label&&(e+='<label class="settings-label" for="css">Choose a Theme</label>'),e+='<div class="white-select mb-30"><select id="css" name="feed[css]">',t=Juicer.Constants.FEED_CLASSES.concat(this.feed.get("allowed_custom_themes")),_u.each(t,(i=this,function(t){var r,n;switch(e+="<option",r=t===i.feed.get("css")){case!0:e+=' selected="selected"';break;case!1:case null:break;default:e+=' selected="',e+=i.escape(r),e+='"'}switch(n=t){case!0:e+=' value="value"';break;case!1:case null:break;default:e+=' value="',e+=i.escape(n),e+='"'}return e+=">",e+="living-wall"===t?i.escape(Juicer.Helpers.prettify(t)+" (no Twitter & no YouTube support)"):"slider"===t?i.escape(Juicer.Helpers.prettify(t)+" (no YouTube support)"):i.escape(Juicer.Helpers.prettify(t)),e+="</option>"})),e+="</select></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_cta"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="cta-container"><a class="cta-button" href="',e+=this.escape(this.post.get("cta_juicer_url")),e+='" style="background-color: ',e+=this.escape(this.post.get("cta_button_color")),e+="; color: ",e+=this.escape(this.post.get("cta_text_color")),e+="; border-radius: ",e+=this.escape(this.feed.get("cta_button_radius")),e+="px; font-size: ",e+=this.escape(this.feed.get("cta_text_size")),e+='px;" target="_blank">',e+=this.post.get("cta_text"),e+="</a></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_custom_styles"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",(this.feed.customColors()||this.feed.get("custom_css"))&&(e+='<div class="juicer-custom-styles"><style>',e+=this.feed.customStyles(),e+="</style></div>"),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_edit"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",this.post.edited()&&!this.post.twitter()&&(e+='<div class="j-edit"><span>(edited) </span>',e+=Juicer.Helpers.format(this.post.get("edit")),e+="</div>"),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_enterprise_sidebar"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r;return e="",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"}],t="/"+JuicerBackbone.history.getFragment(),e+='<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(e+='<li class="enterprise-sidebar-link ',n=i.url===t.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);e+=r.escape(n.join(" "))}else e+=r.escape(n);return e+='"><a href="',e+=r.escape(i.url),e+='">',e+=r.escape(i.name),e+="</a></li>"})),e+="</ul></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_entertainment_card"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",this.post&&(e+='<li class="feed-item ',e+=this.escape("small"===this.size?"small":void 0),e+='" data-id="',e+=this.escape(this.post.get("id")),e+='" data-source="',e+=this.escape(this.post.lowerType()),e+='">',e+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:this.isOnFeedsDashboard,post:this.post}),e+=Juicer.Helpers.renderPartial("feeds/entertainment",{post:this.post}),e+="</li>"),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_filter_setting"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<div class="filter_setting">',this.label&&(e+='<label class="settings-label" for="filter">Display Filters at top of Feed</label>'),e+='<div class="white-select mb-40"><select id="filter_setting" name="feed[display_filter]">',_u.each(["None","Social Type","Social Account","Grouped Terms"],(t=this,function(i){return t.feed.get("display_filter")===i?(e+='<option selected="true" value="',e+=t.escape(i),e+='">',e+=t.escape(i),e+="</option>"):(e+='<option value="',e+=t.escape(i),e+='">',e+=t.escape(i),e+="</option>")})),e+="</select></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_height"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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="',e+=this.escape(this.feed.get("height")),e+='" /> <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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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="',e+=this.escape(this.feed.get("interval")),e+='" /> <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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",null!=navigator.userAgent.match("Edge")&&null!=this.url.match("facebook")?(e+='<a aria-label="',e+=this.escape(this.aria),e+='"',t="",(t+=this.escape(this.class)).length>0&&(e+=' class="',e+=t,e+='"'),e+=' href="',e+=this.escape(this.url),e+='">',e+=this.escape(Juicer.Helpers.numberWithCommas(this.label)),e+="</a>"):(e+='<a aria-label="',e+=this.escape(this.aria),e+='"',i="",(i+=this.escape(this.class)).length>0&&(e+=' class="',e+=i,e+='"'),e+=' href="',e+=this.escape(this.url),e+='" target="_blank">',e+=this.escape(Juicer.Helpers.numberWithCommas(this.label)),e+="</a>"),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_loading"]=function(){return this.Skim={access:function(e){var t ;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",this.container?e+='<div class="j-loading-container"><div class="j-loading">Loading...</div></div>':this.wrapper?e+='<div class="j-loading-wrapper"><div class="j-loading">Loading...</div></div>':this.inFeed?e+='<div class="j-loading-wrapper" style="height: 42px"><div class="j-loading">Loading...</div></div>':e+='<div class="j-loading">Loading...</div>',e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_message"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",(this.post.ad||null!=this.post.get("unformatted_message")||this.post.tumblrTitle())&&(e+='<div class="j-message">',e+=this.post.message(),e+="</div>"),e+=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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",this.post.twitter()?(e+='<div class="j-meta"><ul class="j-twitter-intents"><li><a class="j-twitter-reply" href="',e+=this.escape(this.post.replyIntent()),e+='">Reply</a></li><li><a class="j-twitter-retweet" href="',e+=this.escape(this.post.retweetIntent()),e+='">Retweet</a></li><li><a class="j-twitter-like" href="',e+=this.escape(this.post.likeIntent()),e+='">Like</a></li></ul>',t=this.post.get("external_created_at"),e+='<a href="',e+=this.escape(this.post.link()),e+='" target="_blank"><time class="j-date j-twitter-date" datetime="',e+=this.escape(t),e+='">',e+=this.escape(Juicer.Helpers.fullDate(t,"%-d %b %Y",!1)),e+="</time></a></div>"):"Juicer"!==this.post.sourceType()&&(e+='<div class="j-meta"><ul>',this.post.noMeta()||"YouTube"===this.post.sourceType()||(this.post.get("comment_count")>0&&(e+="<li>",e+=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"}),e+="</li>"),this.post.get("like_count")>0&&(e+="<li>",e+=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"}),e+="</li>")),e+="</ul><nav>",e+=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()}),e+="</nav></div>"),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_moderated_posts"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",(t=this.feed.get("posts").models).length>0?_u.each(t,(i=this,function(t){var r;return e+="<li",r="",(r+=i.escape(t.classes())).length>0&&(e+=' class="',e+=r,e+='"'),e+=">",e+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:!0,post:t}),e+=Juicer.Helpers.renderPartial("feeds/user",{post:t,feed:i.feed}),e+="</li>"})):e+='<div class="empty"><h2>No Moderated Posts!</h2></div>',e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_order"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<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)"]],(t=this,function(i){return t.feed.get("order")===i[0]?(e+='<option selected="true" value="',e+=t.escape(i[0]),e+='">',e+=t.escape(i[1]),e+="</option>"):(e+='<option value="',e+=t.escape(i[0]),e+='">',e+=t.escape(i[1]),e+="</option>")})),e+="</select></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_post_notification_banner"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r,n,s,o;if(e="",e+='<div class="j-post-notification-banner ',t=this.backgroundClass,this.isArray(t)){for(i=0,s=(t=this.flatten(t)).length;i<s;i++)(r=t[i])&&(t=r.toString());for(n=0,o=t.length;n<o;n++)(r=t[n]).length>0&&(t=r);e+=this.escape(t.join(" "))}else e+=this.escape(t);return e+='">',e+=this.content,e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_poster"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r;if(e="",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"),e+='<div class="j-poster">',this.post.poster()){switch(e+="<a",t=r){case!0:e+=' href="href"';break;case!1:case null:break;default:e+=' href="',e+=this.escape(t),e+='"'}e+=' target="_blank">',this.post.get("poster_image")&&(this.lazyLoad&&"slider"===this.feed.get("style")||(this.lazyLoad?(e+='<img alt="Profile image for ',e+=this.escape(this.post.get("poster_name")),e+='" data-lazy="',e+=this.escape(this.post.posterImage()),e+='" data-poster-id="',e+=this.escape(this.post.get("poster_id")),e+='" />'):(e+='<img alt="Profile image for ',e+=this.escape(this.post.get("poster_name")),e+='" data-poster-id="',e+=this.escape(this.post.get("poster_id")),e+='" src="',e+=this.escape(this.post.posterImage()),e+='" />'))),this.post.twitter()?(e+='<div class="j-twitter-poster"><div class="j-twitter-display-name">',e+=this.escape(this.post.get("poster_display_name")),e+='</div><div class="j-twitter-screen-name">@',e+=this.escape(this.post.get("poster_name")),e+="</div></div>"):this.post.hashtag()&&this.post.instagram()?(e+="<h3>",e+=this.escape(this.post.get("poster_name")+" on Instagram"),e+="</h3>"):(e+="<h3>",e+=this.escape(this.post.get("poster_name")),e+="</h3>"),this.post.twitter()?e+=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||(e+='<time class="j-date" datetime="',e+=this.escape(i),e+='">',e+=this.escape(Juicer.Helpers.timeAgo(i)),e+="</time>"),e+="</a>"}else e+='<time class="j-date" datetime="',e+=this.escape(i),e+='">',e+=this.escape(Juicer.Helpers.timeAgo(i)),e+="</time>";return e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_prevent_duplicates"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="prevent-duplicates thirteen"><input name="feed[prevent_duplicates]" type="hidden" value="0" />',this.feed.get("prevent_duplicates")?e+='<input checked="true" id="prevent_duplicates" name="feed[prevent_duplicates]" type="checkbox" />':e+='<input id="prevent_duplicates" name="feed[prevent_duplicates]" type="checkbox" />',e+='<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 'Social Media Sources' section in the sidebar by using the drag&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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="profanity thirteen mb-10"><input name="feed[profanity]" type="hidden" value="0" />',this.feed.get("profanity")?e+='<input checked="true" id="profanity" name="feed[profanity]" type="checkbox" />':e+='<input id="profanity" name="feed[profanity]" type="checkbox" />',e+='<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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<h1 class="referral"><a href="https://www.juicer.io?utm_source=JuicerFreeFeed&utm_medium=feed_ads&utm_campaign=PoweredByTopLink&utm_term=',e+=this.escape(window.location.href),e+="&referrer=",e+=this.escape(window.location.hostname),e+="&utm_id=",e+=this.escape(this.feed.get("slug")),e+='">Powered by</a></h1>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_sources"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",e+='<div class="new-sources-sublist-container">',t=["Instagram","Facebook","Twitter","LinkedIn","TikTok","YouTube"],window.juicerData.user.instagramStoriesEnabled||t.splice(1,0,"InstagramReels"),_u.each(t,(i=this,function(t){var r,n,s;switch(s=t,n=t.toLowerCase(),e+='<li class="js-source j-social-icon ibt new-source-icon front-row"',r=s){case!0:e+=' data-type="data-type"';break;case!1:case null:break;default:e+=' data-type="',e+=i.escape(r),e+='"'}return e+='><div class="font-icon j-',e+=i.escape(n),e+=" j-",e+=i.escape(n),e+="-color ",e+=i.escape("InstagramReels"===t?"j-instagram":""),e+=" ",e+=i.escape(juicerUtil.doesPlanContainPlatform(juicerData.user.plan,t)?"":"j-social-icon-inactive"),e+='"></div><div class="icon-label">',e+="Blog"===t?"Blog RSS ":"Twitter"===t||"TwitterAPIv2"===t||"TwitterV3"===t?"X (Twitter) ":"InstagramReels"===t?"Instagram reels ":i.escape(t),e+="</div></li>"})),e+='</div><div class="spacer"></div><div class="new-sources-sublist-container">',_u.each(["Blog","Hashtag","Flickr","Pinterest","Slack","Soundcloud","Vimeo","Tumblr","Yelp","Giphy"],function(t){return function(i){var r,n,s;switch(s=i,n=i.toLowerCase(),e+='<li class="js-source j-social-icon ibt new-source-icon back-row"',r=s){case!0:e+=' data-type="data-type"';break;case!1:case null:break;default:e+=' data-type="',e+=t.escape(r),e+='"'}return e+='><div class="font-icon j-',e+=t.escape(n),e+=" j-",e+=t.escape(n),e+="-color ",e+=t.escape("InstagramReels"===i?"j-instagram":""),e+=" ",e+=t.escape(juicerUtil.doesPlanContainPlatform(juicerData.user.plan,i)?"":"j-social-icon-inactive"),e+='"></div><div class="icon-label">',e+="Blog"===i?"Blog RSS ":"InstagramReels"===i?"Instagram reels ":t.escape(i),e+="</div></li>"}}(this)),e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_toggle"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div aria-label="',e+=this.escape(this.hint),e+='" class="py-15 tac mb-10 hint--medium fw hint--',e+=this.escape(this.hintPosition),e+=" ",e+=this.escape(this.attr),e+=" ",e+=this.escape(this.classes),e+='"><label class="bold thirteen">',e+=this.label,e+='</label><div class="switch ibm ml-10"><input name="feed[',e+=this.escape(this.attr),e+=']" type="hidden" value="0" />',this.feed.get(this.attr)?(e+='<input checked="true" class="switch-checkbox" id="',e+=this.escape(this.attr),e+='" name="feed[',e+=this.escape(this.attr),e+=']" type="checkbox" />'):(e+='<input class="switch-checkbox" id="',e+=this.escape(this.attr),e+='" name="feed[',e+=this.escape(this.attr),e+=']" type="checkbox" />'),e+='<label class="switch-label" for="',e+=this.escape(this.attr),e+='"><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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r,n;return e="",i=this.css||"j-button",n=this.mpevent||"",r=this.label||"Learn more about our other plans",e+="<a",t="",(t+=this.escape(i)).length>0&&(e+=' class="',e+=t,e+='"'),e+=' href="/plans?mpevent=',e+=this.escape(n),e+='">',e+=r,e+="</a>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_widget_card"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+="<li",t="",(t+=this.escape(this.post.classes())).length>0&&(e+=' class="',e+=t,e+='"'),e+=' data-id="',e+=this.escape(this.post.get("id")),e+='" data-source="',e+=this.escape(this.post.lowerType()),e+='">',e+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:this.isOnFeedsDashboard,post:this.post}),e+=Juicer.Helpers.renderPartial("feeds/user",{post:this.post}),e+="</li>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_width"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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="',e+=this.escape(this.feed.get("width")),e+='" /> <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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<div class="j-meta j-',e+=this.escape(this.post.lowerType()),e+='"><nav>',e+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:"",class:"j-"+this.post.lowerType()+" j-social",aria:"Link to "+this.post.lowerType()+" post."}),e+="</nav><ul>",this.post.noMeta()||(e+="<li>",e+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:this.post.get("comment_count"),class:this.post.commentClass(),aria:"Comment Count"}),e+="</li><li>",e+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:this.post.get("like_count"),class:this.post.likeClass(),aria:"Like Count"}),e+="</li>"),e+='</ul></div><div class="j-text"><div class="j-message">',e+=this.post.message(),"Juicer"!==this.post.sourceType()&&("hashtag"===this.post.termType()?(e+='<div class="info">Posted by <a href="',e+=this.escape(this.post.get("poster_url")),e+='" target="_blank">',e+=this.escape(this.post.get("poster_name")),e+='</a> in <a href="',e+=this.escape(this.post.termLink()),e+='" target="_blank">',e+=this.escape(this.post.term()),e+="</a> on ",e+=this.escape(this.post.sourceType()),e+=" on ",e+=this.escape(Juicer.Helpers.fullDate(this.post.get("external_created_at"))),e+=" </div>"):"Blog"===this.post.sourceType()?(e+='<div class="info">Posted at <a href="http://',e+=this.escape(this.post.get("poster_url")),e+='" target="_blank">',e+=this.escape(this.post.get("poster_name")),e+="</a> on ",e+=this.escape(Juicer.Helpers.fullDate(this.post.get("external_created_at"))),e+=" </div>"):(e+='<div class="info">Posted by <a href="',e+=this.escape(this.post.get("poster_url")),e+='" target="_blank">',e+=this.escape(this.post.get("poster_name")),e+="</a> on ",e+=this.escape(this.post.sourceType()),e+=" on ",e+=this.escape(Juicer.Helpers.fullDate(this.post.get("external_created_at"))),e+=" </div>")),e+="</div></div>",(t=this.post.get("image"))&&(e+='<a href="',e+=this.escape(this.post.link()),e+='" target="_blank"><img alt="',e+=this.escape(this.post.alt()),e+='" class="j-content-image" src="',e+=this.escape(t),e+='" /></a>'),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_entertainment"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="j-text-container">',e+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed}),e+='<div class="j-message">',e+=this.post.message(),e+="</div>",e+=Juicer.Helpers.renderPartial("edit",{post:this.post}),e+='<div class="j-source-container">',e+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:"",class:"j-"+this.post.lowerType()+" j-social-icon",aria:this.post.lowerType()}),e+="</div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_image"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0, s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed}),e+='<div class="j-text">',e+=Juicer.Helpers.renderPartial("poster",{post:this.post,feed:this.feed}),e+=Juicer.Helpers.renderPartial("message",{post:this.post}),e+=Juicer.Helpers.renderPartial("meta",{post:this.post}),e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_night"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",e+='<div class="j-text-container">',e+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed}),e+='<div class="j-text">',this.post.twitter()&&(e+=Juicer.Helpers.renderPartial("poster",{post:this.post,feed:this.feed})),e+=Juicer.Helpers.renderPartial("message",{post:this.post}),"Juicer"===this.post.sourceType()||this.post.twitter()||(e+='<div class="j-meta"><ul>',t=0===this.post.get("comment_count")?" ":this.post.get("comment_count"),i=0===this.post.get("like_count")?" ":this.post.get("like_count"),e+="<li>",e+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:t,class:this.post.commentClass(),aria:"Comments"}),e+="</li><li>",e+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:i,class:this.post.likeClass(),aria:"Likes"}),e+="</li></ul></div>"),this.post.twitter()&&(e+=Juicer.Helpers.renderPartial("meta",{post:this.post})),e+="</div></div>",this.post.twitter()||(e+='<div class="j-poster-meta">',e+=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()?(e+='<a aria-label="',e+=this.escape(this.post.get("poster_name")),e+='" href="',e+=this.escape(this.post.get("poster_url")),e+='" target="_blank">',e+=this.escape(this.post.get("poster_name")+" on Instagram"),e+="</a>"):(e+='<a href="',e+=this.escape(this.post.get("poster_url")),e+='" target="_blank">',e+=this.escape(this.post.get("poster_name")),e+="</a>"),e+="</div>"),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_polaroid"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",this.post.get("poster_image")||(t="no-poster"),this.post.twitter()||(e+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed})),e+='<div class="j-post-container ',e+=this.escape(t),e+='">',e+=Juicer.Helpers.renderPartial("poster",{post:this.post,feed:this.feed}),this.post.twitter()||(e+='<h3 class="j-poster-meta">',this.post.get("poster_name")&&(e+='<a href="',e+=this.escape(this.post.get("poster_url")),e+='" target="_blank">',e+=this.escape(this.post.get("poster_name")),e+='</a> <span class="j-on">on</span> '),e+='<a class="platform" href="',e+=this.escape(this.post.get("poster_url")),e+='" target="_blank">',e+=this.escape(this.post.sourceType()),e+="</a></h3>"),e+='<div class="j-text">',e+=Juicer.Helpers.renderPartial("message",{post:this.post}),this.post.twitter()&&(e+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed})),e+=Juicer.Helpers.renderPartial("meta",{post:this.post}),e+="</div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_standard"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed}),e+='<div class="j-text">',e+=Juicer.Helpers.renderPartial("message",{post:this.post}),e+=Juicer.Helpers.renderPartial("meta",{post:this.post}),e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_user"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+=Juicer.Helpers.renderPartial("poster",{post:this.post,feed:this.feed}),this.post.twitter()||(e+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed})),e+='<div class="j-text">',e+=Juicer.Helpers.renderPartial("message",{post:this.post}),this.post.twitter()&&(e+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed})),e+=Juicer.Helpers.renderPartial("meta",{post:this.post}),e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_wall"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r,n;if(e="",n=this.post.ad?this.post.image():this.post.get("image"),e+="<li",r="",(r+=this.escape(this.post.classes())).length>0&&(e+=' class="',e+=r,e+='"'),e+=' data-id="',e+=this.escape(this.post.get("id")),e+='" data-source="',e+=this.escape(this.post.lowerType()),e+='">',e+=Juicer.Helpers.renderPartial("actions",{isOnFeedsDashboard:this.isOnFeedsDashboard,post:this.post}),n){switch(e+='<img alt="',e+=this.escape(this.post.alt()),e+='" class="j-content-image"',t=n){case!0:e+=' src="src"';break;case!1:case null:break;default:e+=' src="',e+=this.escape(t),e+='"'}e+=" />"}else e+='<div class="j-text">',e+=Juicer.Helpers.renderPartial("message",{post:this.post}),e+="</div>";switch(e+='<a aria-label="',e+=this.escape(this.post.link()),e+='" class="j-image" href="',e+=this.escape(this.post.link()),e+='"',i=this.post.ad?"nofollow":null){case!0:e+=' rel="rel"';break;case!1:case null:break;default:e+=' rel="',e+=this.escape(i),e+='"'}return e+=' 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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<ul class="j-display-filters">',"v2"===this.feed.get("embed_layout")?e+='<li class="filters-label">Filters: </li>':e+="Filters: ",_u.each(this.feed.filters(),(t=this,function(i){var r,n,s,o;return s=t.feed.get("display_filter"),n=t.filter||t.feed.filter,(i.filter(s)===n||null===i.filter("filter")&&""===n)&&(o=!0),e+="<li",r="",(r+=t.escape(i.filterClass(s,o,!0))).length>0&&(e+=' class="',e+=r,e+='"'),e+=' data-filter="',e+=t.escape(i.filter(s)),e+='">',e+=t.escape(i.filterDisplay(s)),e+="</li>"})),e+="</ul>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/filters/_old"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<ul class="j-filters filters">',_u.each(this.feed.filters(),(t=this,function(i){var r,n,s,o;return s=t.feed.get("display_filter"),n=t.filter||t.feed.filter,(i.filter(s)===n||null===i.filter("filter")&&""===n)&&(o=!0),e+="<li",r="",(r+=t.escape(i.filterClass(s,o))).length>0&&(e+=' class="',e+=r,e+='"'),e+=' data-filter="',e+=t.escape(i.filter(s)),e+='">',e+=t.escape(i.filterDisplay(s)),e+="</li>"})),e+="</ul>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_channel"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<h2 class="new-source-title">',e+=this.escape(this.source.title()),e+='</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="',e+=this.escape(this.source.source()),e+='" /><input name="feed_id" type="hidden" value="',e+=this.escape(this.feedId),e+='" /><input name="term_type" type="hidden" value="channel" /><label for="source_term">',e+=this.escape("https://www.youtube.com/"),e+='</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">',e+=Juicer.Helpers.renderPartial("source_form/youtube_channel_name_example",{source:this.source}),e+="</input></form>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_groups"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<h2 class="new-source-title">Connect Facebook Group Posts</h2>',this.results?this.results.models.length>0?(e+='<form accept-charset="UTF-8" action="/feeds/',e+=this.escape(this.feedId),e+='/sources" class="source-form" method="post"><input name="source" type="hidden" value="Facebook" /><input name="feed_id" type="hidden" value="',e+=this.escape(this.feedId),e+='" /><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,(t=this,function(i){return e+='<li class="search-result" data-id="',e+=t.escape(i.get("id")),e+='" data-name="',e+=t.escape(i.get("name")),e+='">',e+=t.escape(i.get("name")),e+="</li>"})),e+="</ul></form>"):e+="<h2>Sorry you aren't the admin of any facebook groups.</h2>":e+='<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>',e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_hashtag"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",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:"",e+='<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',e+=this.escape(i),e+='">Connect via Facebook</a>'):("Pinterest"===this.source.source()?e+='<h2 class="new-source-title">Add Pinterest Board</h2>':"Instagram"===this.source.source()?e+='<h2 class="new-source-title">Import posts for an Instagram hashtag</h2>':"InstagramReels"===this.source.source()?e+='<h2 class="new-source-title">Import reels for an Instagram hashtag</h2>':"Twitter"===this.source.source()?e+='<h2 class="new-source-title">Add X (Twitter) Hashtag</h2>':(e+='<h2 class="new-source-title">Add ',e+=this.escape(this.source.source()),e+=" Hashtag</h2>"),"Instagram"===this.source.source()&&this.isLoading?e+='<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>':(e+='<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="',e+=this.escape(this.feedId),e+='" /><input name="term_type" type="hidden" value="',e+=this.escape(this.type),e+='" />',"InstagramReels"===this.source.source()?e+='<input name="only_reels" type="hidden" value="true" /><input name="source" type="hidden" value="Instagram" />':"Instagram"===this.source.source()?(e+='<input name="only_posts" type="hidden" value="true" /><input name="source" type="hidden" value="',e+=this.escape(this.source.source()),e+='" />'):(e+='<input name="source" type="hidden" value="',e+=this.escape(this.source.source()),e+='" />'),"Pinterest"===this.source.source()?(e+='<label for="source_term">',e+=this.escape(this.source.label()),e+="</label>"):e+='<label for="source_term">#</label>',t=this.source.placeholderHashtag(),"Instagram"===this.source.source()?(e+='<input autocomplete="off" data-filter_invalid_instagram_hashtag_characters="true" id="source_term" name="term" placeholder="',e+=this.escape(t),e+='" type="text" />'):(e+='<input autocomplete="off" id="source_term" name="term" placeholder="',e+=this.escape(t),e+='" type="text" />'),"Twitter"===this.source.source()&&(e+='<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()||(e+='<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>'),e+='<input class="new-source-submit" name="commit" type="submit" value="Create Source" /></form>')),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_max"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<h2>You need to upgrade to add more sources</h2><h3 style="margin-bottom:1.5rem">Unfortunately, the ',e+=this.escape(this.feed.get("plan")),e+=" plan only allows ",e+=this.escape(this.feed.get("max_sources")),e+=" sources per feed.</h3>",e+=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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r,n,s,o,a,l,c,u;return e="",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)?(e+='<div class="new-source-container">',s=window.juicerWL?"?wl="+window.juicerWL:"","facebook"===c?(e+='<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-',e+=this.escape(c),e+=" j-",e+=this.escape(c),e+="-bg j-",e+=this.escape(c),e+='-border" data-method="post" href="/auth/',e+=this.escape(c),e+=this.escape(s),e+='">Connect your ',e+=this.escape(a),e+=" account</a>"):"twitter"===c?(e+='<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-',e+=this.escape(c),e+=" j-",e+=this.escape(c),e+="-bg j-",e+=this.escape(c),e+='-border" data-method="post" href="/auth/',e+=this.escape(c),e+=this.escape(s),e+='">Connect your X (Twitter) account</a>'):"tiktok"===c?(e+='<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-',e+=this.escape(c),e+="-white j-",e+=this.escape(c),e+="-bg j-",e+=this.escape(c),e+='-border" data-method="post" href="/auth/',e+=this.escape(c),e+=this.escape(s),e+='">Connect your ',e+=this.escape(a),e+=" account</a>"):(e+='<h2 class="new-source-title">Please connect your ',e+=this.escape(a),e+=' account.</h2><p class="connect-explanation">We ask that you connect your ',e+=this.escape(a),e+=" account so that we don't run into API rate limits. <strong>This will not automatically import your ",e+=this.escape(a),e+=" posts.</strong> ",t="instagram"===c?"add the posts of your connected account":"add the posts of ANY public user or hashtags",e+="After you have connected your account, you can ",e+=this.escape(t),e+='. </p><a class="j-button j-social-icon social-account social-j-button j-',e+=this.escape(c),e+=" j-",e+=this.escape(c),e+="-bg j-",e+=this.escape(c),e+='-border" data-method="post" href="/auth/',e+=this.escape(n),e+=this.escape(s),e+='">Connect your ',e+=this.escape(a),e+=" account</a>"),e+="</div>"):(this.source.hashtags()&&(!window.juicerData.user.instagramStoriesEnabled||"Instagram"!==this.source.source()&&"InstagramReels"!==this.source.source())&&(e+='<nav><ul class="source-types">',_u.each(["Username","Hashtag"],(u=this,function(t){var i;return i=t.toLowerCase()===u.type?"active":"","Pinterest"===u.source.source()&&"Hashtag"===t?(e+='<li class="source-type ',e+=u.escape(i),e+='" data-type="',e+=u.escape(t.toLowerCase()),e+='">Board</li>'):"Facebook"===u.source.source()&&"Username"===t?(e+='<li class="source-type ',e+=u.escape(i),e+='" data-type="',e+=u.escape(t.toLowerCase()),e+='">Your Page</li>'):"Facebook"!==u.source.source()||"Hashtag"!==t?(e+='<li class="source-type ',e+=u.escape(i),e+='" data-type="',e+=u.escape(t.toLowerCase()),e+='">',e+=u.escape(t),e+="</li>"):void 0})),"Facebook"===this.source.source()&&(o="reviews"===this.type?"active":"",e+='<li class="source-type ',e+=this.escape(o),e+='" data-type="reviews">Reviews</li>'),"YouTube"===this.source.source()&&(r="channel"===this.type?"active":"",e+='<li class="source-type ',e+=this.escape(r),e+='" data-type="channel">Channel</li>'),e+="</ul></nav>"),i=this.feed?this.feed.get("id"):void 0,e+='<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]&&(e+='<a aria-label="Learn more about ',e+=this.escape(a),e+=' sources" class="new-source-help hint--bottom-left" href="',e+=this.escape(Juicer.Constants.HELP_CENTER_URL),e+="/articles/",e+=this.escape(l[a]),e+='" target="_blank">Help</a>'),"instagram"===c||"instagramreels"===c||"tiktok"===c?e+=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?e+=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}):e+=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}),e+="</div>"),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_reviews"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<h2 class="new-source-title">Connect Facebook Page Reviews</h2>',this.results?this.results.models.length>0?(e+='<form accept-charset="UTF-8" action="/feeds/',e+=this.escape(this.feedId),e+='/sources" class="source-form" method="post"><input name="source" type="hidden" value="Facebook" /><input name="feed_id" type="hidden" value="',e+=this.escape(this.feedId), e+='" /><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,(t=this,function(i){return e+='<li class="search-result" data-id="',e+=t.escape(i.get("id")),e+='" data-name="',e+=t.escape(i.get("name")),e+='">',e+=t.escape(i.get("name")),e+="</li>"})),e+="</ul></form>"):e+="<h2>Sorry you aren't the admin of any facebook pages.</h2>":e+='<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>',e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="","Facebook"===this.source.source()?e+=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()?e+=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()?e+=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()?e+=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()?(e+='<a class="load-form-async" hx-get="/sources/new?source=',e+=this.escape(this.source.source()),e+="&feed_id=",e+=this.escape(this.feedId),e+="&type=",e+=this.escape(this.type),e+='" hx-swap="afterend" hx-target="this"></a>'):e+=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}),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username_example"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",(t=this.source.usernameExample())&&(e+='<div class="source-form-example mt-40"><h4 class="tc-orange ibt bold">For Example:</h4> if you want to add ',e+=this.escape(t.name),e+=', copy & paste the bold part: <br /><a href="',e+=this.escape(t.link),e+='" target="_blank">',e+=t.formattedLink,e+="</a></div>"),(i=this.source.usernameHelpLink())&&(e+='<div class="source-form-example mt-10"><h4 class="tc-orange ibt bold">Help:</h4> <a href="',e+=this.escape(i.link),e+='" target="_blank">',e+=i.text,e+="</a></div>"),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username_input"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<h2 class="new-source-title">',e+=this.escape(this.source.title()),e+='</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="',e+=this.escape(this.source.source()),e+='" /><input name="feed_id" type="hidden" value="',e+=this.escape(this.feedId),e+='" /><input name="term_type" type="hidden" value="',e+=this.escape(this.type),e+='" />',"Tumblr"===this.source.source()?(e+='<label for="source_term">http://</label><input autocomplete="off" id="source_term" name="term" placeholder="',e+=this.escape(this.source.placeholder()),e+='" type="text" /><label for="source_term">.tumblr.com</label>'):"Hashtag"===this.source.source()?(e+='<ul class="add-a-hashtag">',_u.each(_u.filter(this.source.hashtagSupporters,(function(e){return"Facebook"!==e})),(t=this,function(i){var r;return r=i.toLowerCase(),e+='<li class="j-',e+=t.escape(r),e+=" j-",e+=t.escape(r),e+='-color hashtag-source j-social-icon ibt tc-white" data-type="',e+=t.escape(i),e+='">',"InstagramReels"===i?(e+='<div class="tc-slevin">',e+=t.escape("Instagram reels"),e+="</div>"):(e+='<div class="tc-slevin">',e+=t.escape(i),e+="</div>"),e+="</li>"})),e+="</ul>"):(e+='<label for="source_term">',e+=this.escape(this.source.label()),e+='</label><input autocomplete="off" id="source_term" name="term" placeholder="',e+=this.escape(this.source.placeholder()),e+='" type="text" />',"Facebook"===this.source.source()&&(e+='<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()&&(e+='<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()&&(e+='<input class="new-source-submit" name="commit" type="submit" value="Create Source" />',e+=Juicer.Helpers.renderPartial("source_form/username_example",{source:this.source})),e+="</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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r;return e="",window.juicerData.user.instagramStoriesEnabled?(e+='<a class="load-form-async" hx-get="/sources/new?source=',e+=this.escape(this.source.source()),e+="&feed_id=",e+=this.escape(this.feedId),e+="&type=",e+=this.escape(this.type),e+='" hx-swap="afterend" hx-target="this"></a>'):(this.source.set("term_type","username"),this.source.needsLogin()&&0===this.socialAccounts.findAllWithProvider("instagram_basic_display").length?(t=window.juicerWL?"?wl="+window.juicerWL:"",e+='<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',e+=this.escape(t),e+='">Connect your Instagram account</a>'):(e+='<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 ',e+=this.escape(this.post_type),e+='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/',e+=this.escape(this.feedId),e+='/sources" class="source-form mt-10" method="post"><input name="source" type="hidden" value="Instagram" /><input name="feed_id" type="hidden" value="',e+=this.escape(this.feedId),e+='" /><input name="term_type" type="hidden" value="username" />',"reel"===this.post_type?e+='<input name="only_reels" type="hidden" value="true" />':e+='<input name="only_posts" type="hidden" value="true" />',e+='<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(t){return e+="<option>",e+=r.escape(t.attributes.name),e+="</option>"})),e+='</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>')),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username_linkedin_20"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){return""}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username_pages"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<h2 class="new-source-title">Add your Facebook Page</h2>',this.isLoading?e+='<container class="tac pt-75"><ul class="new-source"><div class="j-loading"></div></ul></container>':(this.results?this.results.models.length>0?(e+='<form accept-charset="UTF-8" action="/feeds/',e+=this.escape(this.feedId),e+='/sources" class="source-form mb-40" method="post"><input name="source" type="hidden" value="Facebook" /><input name="feed_id" type="hidden" value="',e+=this.escape(this.feedId),e+='" /><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,(t=this,function(i){var r;return r=i.get("username")||i.get("id"),e+='<li class="search-result" data-id="',e+=t.escape(r),e+='" data-name="',e+=t.escape(i.get("name")),e+='">',e+=t.escape(i.get("name")),e+=t.escape(" ("+r+")"),e+="</li>"})),e+='</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>'):e+="<h2>Sorry you aren't the manager of any facebook pages.</h2>":e+='<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>',e+='<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="',e+=this.escape(Juicer.Constants.HELP_CENTER_URL),e+='/articles/360039938752-Validating-ownership-of-your-Facebook-sources" target="_blank"> Learn more</a></div></div>'),e}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/source_form/_username_tiktok"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",e+='<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/',e+=this.escape(this.feedId),e+='/sources" class="source-form mt-10" method="post"><input name="source" type="hidden" value="TikTok" /><input name="feed_id" type="hidden" value="',e+=this.escape(this.feedId),e+='" /><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">',t=this.socialAccounts.findAllWithProvider("tiktok"),_u.each(t,(i=this,function(t){return e+="<option>",e+=i.escape(t.attributes.name),e+="</option>"})),e+='</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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",t=this.source.youtubeChannelNameExample(),e+='<div class="source-form-example mt-40"><h4 class="tc-orange ibt bold">For Example:</h4> if you want to add ',e+=this.escape(t.name),e+=', copy & paste the bold part: <br /><a href="',e+=this.escape(t.link),e+='" target="_blank">',e+=t.formattedLink,e+="</a></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_blog_embed"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;switch(e="",e+='<div class="video-wrapper">',e+='<video autoplay="autoplay"',t=!!this.overlay){case!0:e+=' controls="controls"';break;case!1:case null:break;default:e+=' controls="',e+=this.escape(t),e+='"'}return e+=' loop="true"><source src="',e+=this.escape(this.video),e+='" 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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;switch(e="",e+='<div class="video-wrapper">',e+='<video autoplay="autoplay"',t=!!this.overlay){case!0:e+=' controls="controls"';break;case!1:case null:break;default:e+=' controls="',e+=this.escape(t),e+='"'}return e+=' loop="true"><source src="',e+=this.escape(this.video),e+='" 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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="video-wrapper"><embed autoplay="true" autostart="true" play="true" src="',e+=this.escape(this.video),e+='&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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r,n;switch(e="",e+='<div class="instagram-wrapper"',t=n=this.height?"height: "+this.height+"px":""){case!0:e+=' style="style"';break;case!1:case null:break;default:e+=' style="',e+=this.escape(t),e+='"'}switch(e+=">",e+='<video autoplay="autoplay"',i=!!this.overlay){case!0:e+=' controls="controls"';break;case!1:case null:break;default:e+=' controls="',e+=this.escape(i),e+='"'}switch(e+=' id="video" loop="true"',r=n){case!0:e+=' style="style"';break;case!1:case null:break;default:e+=' style="',e+=this.escape(r),e+='"'}return e+='><source src="',e+=this.escape(this.video),e+='" /></video>',this.post&&(e+='<a class="j-video-fallback" href="',e+=this.escape(this.post.link()),e+='" style="display: none;" target="_blank"><img data-lazy="',e+=this.escape(this.post.get("image")),e+='" /></a>'),e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_linkedin_embed"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;switch(e="",e+='<div class="video-wrapper linkedin-wrapper">',e+='<video autoplay="autoplay"',t=!!this.overlay){case!0:e+=' controls="controls"';break;case!1:case null:break;default:e+=' controls="',e+=this.escape(t),e+='"'}return e+=' loop="true"><source src="',e+=this.escape(this.video),e+='" 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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;switch(e="",e+='<div class="video-wrapper">',e+='<video autoplay="autoplay"',t=!!this.overlay){case!0:e+=' controls="controls"';break;case!1:case null:break;default:e+=' controls="',e+=this.escape(t),e+='"'}return e+=' loop="true"><source src="',e+=this.escape(this.video),e+='" 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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="video-wrapper"><iframe allow="autoplay" frameborder="no" scrolling="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/',e+=this.escape(this.id),e+='&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true&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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="video-wrapper"><iframe allowtransparency="true" frameborder="0" src="https://embed.spotify.com/?uri=spotify:track:',e+=this.escape(this.id),e+='"></iframe></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_tiktok_embed"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}), Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="video-wrapper tiktok-wrapper"><iframe frameborder="0" src="',e+=this.escape(this.video),e+='"></iframe></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_tumblr_embed"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="video-wrapper">',e+=this.video,e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/video/_vimeo_embed"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="video-wrapper"><iframe allowfullscreen="true" frameborder="0" mozallowfullscreen="true" src="//player.vimeo.com/video/',e+=this.escape(this.id),e+='?autoplay=1&title=0&byline=0&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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="vine-wrapper"><iframe frameborder="0" src="',e+=this.escape(this.id),e+='/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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;switch(e="",e+='<div class="twitter-wrapper">',e+='<video autoplay="autoplay"',t=!!this.overlay){case!0:e+=' controls="controls"';break;case!1:case null:break;default:e+=' controls="',e+=this.escape(t),e+='"'}return e+=' loop="true"><source src="',e+=this.escape(this.video),e+='" 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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;return e="",e+='<div class="video-wrapper">',t=this.overlay?"autoplay=1&rel=0":"autoplay=1&rel=0&controls=0",e+='<iframe allowfullscreen="allowfullscreen" frameborder="0" src="https://www.youtube-nocookie.com/embed/',e+=this.escape(this.id),e+="?",e+=this.escape(t),e+='"></iframe></div>'}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.plan_change=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r;if(e="",e+='<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")?(e+=this.escape(this.model.planCapital()),e+=": ",e+=this.escape(this.model.get("cost_formatted")),e+="/yr "):(e+=this.escape(this.model.planCapital()),e+=": ",e+=this.escape(this.model.get("cost_formatted")),e+="/mo "),e+="</h3><h4>",e+=this.model.get("subtitle"),e+='</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")?(e+=this.escape(this.model.newPlanCapital()),e+=": ",e+=this.escape(this.model.get("new_cost_formatted")),e+="/yr "):(e+=this.escape(this.model.newPlanCapital()),e+=": ",e+=this.escape(this.model.get("new_cost_formatted")),e+="/mo "),e+="</h3><h4>",e+=this.model.get("new_subtitle"),e+="</h4></div></div>","small"===this.model.get("new_plan")){switch(e+='<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>',e+=this.escape(this.model.downgradeDate()),e+='</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"',t=this.csrf){case!0:e+=' value="value"';break;case!1:case null:break;default:e+=' value="',e+=this.escape(t),e+='"'}e+=' /><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()&&(e+='<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>',e+=this.escape(this.model.downgradeDate()),e+="</strong></div>"),e+='<form action="/plans/',e+=this.escape(this.model.get("new_plan")),e+="?interval=",e+=this.escape(this.model.newInterval()),e+='" class="tac mt-30" method="post"><input name="_method" type="hidden" value="put" /><input name="authenticity_token" type="hidden"',i=this.csrf){case!0:e+=' value="value"';break;case!1:case null:break;default:e+=' value="',e+=this.escape(i),e+='"'}switch(e+=' /><input class="j-button" data-disable-with="Loading..." type="submit"',r=this.model.get("plan_button_label_for_price_table")){case!0:e+=' value="value"';break;case!1:case null:break;default:e+=' value="',e+=this.escape(r),e+='"'}e+=" /></form>"}return e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.please_wait=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t;if(e="",e+='<div class="p-50"><h2 class="tac fs-2 tc-orange mb-30">Edit Post</h2>',e+=Juicer.Helpers.renderPartial("poster",{post:this.post}),e+='<div class="message-container">',e+=Juicer.Helpers.renderPartial("message",{post:this.post}),e+="</div>",this.feed.get("moderation_allowed?")){if(e+='<form><textarea class="bordered my-25" placeholder="Add text or links to the post">',e+=this.escape(this.post.get("edit")),e+="</textarea>",this.post.linkedin()){switch(e+='<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"',t=this.post.get("formatted_external_created_at")){case!0:e+=' value="value"';break;case!1:case null:break;default:e+=' value="',e+=this.escape(t),e+='"'}e+=" />"}e+='<div class="tac"><input class="j-button" type="submit" value="Update Post" /></div></form>'}else e+='<h3>Only paid plans can edit posts. <a href="/plans?mpevent=moderation_edit_post">Upgrade your plan.</a></h3>';return e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.post_overlay=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",t="YouTube"!==this.post.sourceType()?"is-not-youTube":"",i="YouTube"===this.post.sourceType()?"is-youTube":"",e+='<div class="j-post-overlay juicer-feed loaded ',e+=this.escape(i),e+=" ",e+=this.escape(this.post.gallery()?"j-gallery":void 0),e+='" data-id="',e+=this.escape(this.post.get("id")),e+='">',this.post.isVideo()?e+=Juicer.Helpers.renderPartial("video/"+this.post.lowerType()+"_embed",{id:this.post.get("external_id"),video:this.post.get("video"),overlay:!0,post:this.post}):(e+='<div class="image">',e+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed,overlay:!0}),e+="</div>"),e+='<div class="j-overlay-text ',e+=this.escape(this.post.postType()),e+=" ",e+=this.escape(t),e+='">',e+=Juicer.Helpers.renderPartial("poster",{post:this.post,lazyLoad:!1}),this.post.get("unformatted_message")&&(e+='<div class="j-message" tabindex="0">',e+=this.post.fullMessage(),e+="</div>"),e+=Juicer.Helpers.renderPartial("edit",{post:this.post}),e+=Juicer.Helpers.renderPartial("meta",{post:this.post}),e+='<div class="j-bottom">',e+=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()}),e+="</div>",window.juicerDashboard&&"Instagram"===this.post.sourceType()&&"stories"===this.post.termType()&&(e+='<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/',e+=this.escape(this.post.get("id")),e+='/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>'),e+='<div class="j-navigate"><button aria-label="Previous Post" class="j-previous" data-post-id="',e+=this.escape(this.previous.get("id")),e+='"><span>Previous</span></button>',this.next&&(e+='<button aria-label="Next Post" class="j-next" data-post-id="',e+=this.escape(this.next.get("id")),e+='"><span>Next</span></button>'),e+="</div></div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.sidebar=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i,r,n,s,o;return e="",e+='<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">',e+=this.escape(this.feed.get("name")),e+='<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&feed_id=',e+=this.escape(this.feed.get("id")),e+='" hx-swap="beforeend" hx-target="body" title="Change the feed's update frequency">Updates: ',e+=window.juicerDashboard.updateFrequencyInWords.toLowerCase(),e+=' <div class="ml-10 juicer-fa-edit hide-on-white-label"></div></a>',r=this.feed.get("manual_source_limit"),e+='<div class="relative add-source-container" x-data="{ tooltip: '', disabledMessage: 'Your account owner set a limit of maximum ',e+=this.escape(r),e+=" feed",e+=this.escape(r>1?"s":""),e+='. Please ask them to adjust the limit.' }" x-on:disable-add-source-button="tooltip = disabledMessage" x-on:enable-add-source-button="tooltip = ''">',this.feed.manualSourceLimitReached()?e+='<div class="px-15 py-20 add-source-sidebar-container" style="border-top: 1px solid #e6e0d8;" x-init="$dispatch('disable-add-source-button')"><a class="j-button d-flex justify-content-center disabled" x-tooltip="tooltip">+ Add social media source </a></div>':e+='<div class="px-15 py-20 add-source add-source-sidebar-container" style="border-top: 1px solid #e6e0d8;" x-init="$dispatch('enable-add-source-button')"><a class="j-button d-flex justify-content-center" x-tooltip="tooltip">+ Add social media source </a></div>',e+='<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,t=window.juicerDashboard.hideEmbedInfoPopover,i=window.juicerDashboard.hideEmbedLayoutPopover,e+='<li class="menu-item menu-icon feed-icon ',e+=this.escape(o?"menu-item-with-icon":void 0),e+='" id="sources"><div class="d-flex align-items-center justify-content-between">Social Media Sources',o&&(e+='<a class="js-warning" href="/feeds/',e+=this.escape(this.feed.get("slug")),e+='/inspect">',e+=window.juicerDashboard.warningSvg,e+="</a>"),e+="</div>",o&&(e+='<a class="sidebar-popover" data-skip_opening_sub_view="true" href="/feeds/',e+=this.escape(this.feed.get("slug")),e+='/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>'),e+='</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&&(e+='<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>'),e+='<li class="menu-item menu-icon embed-icon ',e+=this.escape(s?"hide-embed-info-popover menu-item-with-icon":void 0),e+='" id="embed"><span class="d-flex align-items-center justify-content-between">Embed in your Site ',s&&(e+='<span class="embed-popover icon-warning d-flex align-items-center">',e+=window.juicerDashboard.infoSvg,e+="</span>"),n&&(e+="<span>",e+=window.juicerDashboard.warningSvg,e+="</span>"),e+="</span>",s&&(e+='<UserActionRequiredPopover class="embed-popover sidebar-popover ',e+=this.escape(t?"hide-popover":void 0),e+='"><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&&(e+='<span class="sidebar-popover ',e+=this.escape(i?"hide-popover":void 0),e+='" 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>'),e+='</li><li class="menu-item menu-icon moderate-icon icon-menu-item" data-icon-label="',e+=this.escape(this.feed.moderationStatus()),e+='" 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")?(e+='\u26a0\ufe0f Next feed refresh on <div class="twelve">',e+=this.escape(Juicer.Helpers.fullDate(this.feed.get("view_limit_reset_date"),"%b/%-d/%y at %-l:%M%p")),e+=".</div>"):(e+='Last Sync <div class="twelve">',e+=this.escape(Juicer.Helpers.fullDate(this.feed.get("last_synced"),"%b/%-d/%y at %-l:%M%p")),e+="</div>"),e+="</li>","small"!==this.feed.get("plan")||this.feed.isTrial()||(e+='<a href="',e+=this.escape(window.juicerDashboard.userUpgradePath),e+='?mpevent=sidebar_upgrade_button" target="_blank"><li class="menu-item-unclickable menu-icon rocket-icon active slide-menu-item arrow-right-after">Upgrade</li>',e+=Juicer.Helpers.renderPartial("upgrade"),e+="</a>"),e+="</ul></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.source_form=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",i={source:this.source,csrf:this.csrf,feed:this.feed,type:this.type,socialAccounts:this.socialAccounts,results:this.results,isLoading:this.isLoading},e+='<div class="tac">',this.feed&&(this.plan&&this.plan.get("feed_limit_exceeded?")||!this.feed.get("more_sources_allowed?"))?(e+='<div class="p-50"><h2 class="fs-2">Upgrade to add more sources</h2>',this.plan.get("feed_limit_exceeded?")?(t=1===this.plan.get("max_feeds")?"1 feed":this.plan.get("max_feeds")+" feeds",e+="<h3>Unfortunately, the ",e+=this.escape(this.feed.get("plan")),e+=" plan only allows ",e+=this.escape(t),e+=' 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>'):(e+='<h3 class="mb-25">Unfortunately, the ',e+=this.escape(this.feed.get("plan")),e+=" plan only allows ",e+=this.escape(this.feed.get("max_sources")),e+=" sources per feed.</h3>"),window.juicerWL||(e+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed,mpevent:"source_form_upgrade_plan"})),e+="</div>"):e+=Juicer.Helpers.renderPartial("source_form/new",i),e+="</div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["sources/manual"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<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 ',e+=this.escape(this.source.displayName()),e+="</h2>",this.feed.notSmall()||this.feed.isTrial()?(e+='<input name="source_id" type="hidden" value="',e+=this.escape(this.source.get("id")),e+='" /><input autocomplete="off" class="source-overlay-field" id="link" name="link" placeholder="ex: ',e+=this.escape(this.source.manualPostExamples[this.source.source()]||"https://facebook.com/..."),e+='" type="text" />',"LinkedIn"===this.source.source()&&(e+='<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>'),e+='<input class="j-button" name="commit" type="submit" value="Add Post" /><div class="j-loading-wrapper mt-20"></div>'):(e+='<h3 style="margin-bottom:1.5rem">Unfortunately, the ',e+=this.escape(this.feed.get("plan")),e+=" plan doesn't allow you to manually enter posts. Please upgrade!</h3>",e+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed,mpevent:"moderation_manual_add_upgrade"})),e+="</form>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["sources/moderation"]=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e,t,i;return e="",e+='<form accept-charset="UTF-8" class="tac p-50 source-update" method="post"><input name="id" type="hidden" value="',e+=this.escape(this.source.get("id")),e+='" /><h2 class="fs-2 mb-30">Set Moderation Filters for ',e+=this.escape(this.source.displayName()),e+='</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",t="Separate filters with a comma. Filters are case-insensitive.",e+='<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="',e+=this.escape(i),e+=" to block. ",e+=this.escape(t),e+='">',e+=this.source.disallowed(),e+='</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="',e+=this.escape(i),e+=" to allow. ",e+=this.escape(t),e+='">',e+=this.source.allowed(),e+='</textarea><div class="mb-15"><input name="queue" type="hidden" value="0" />',this.source.get("queue")?e+='<input checked="true" id="queue" name="queue" type="checkbox" />':e+='<input id="queue" name="queue" type="checkbox" />',e+='<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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<form accept-charset="UTF-8" class="tac p-50 source-update" method="post"><h2 class="fs-2 mb-30">Edit ',e+=this.escape(this.source.displayName()),e+='\'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="',e+=this.escape(this.source.get("id")), e+='" /><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="',e+=this.escape(this.source.displayTerm()),e+='" /><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(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="tac"><div class="p-50"><h2 class="fs-2">Upgrade to add ',e+=this.escape(this.source),e+='</h2><h3 class="mb-25">The small plan doesn\'t allow adding ',e+=this.escape(this.source),e+=" sources after the end of the trial period. </h3>",e+=Juicer.Helpers.renderPartial("upgrade_plan",{mpevent:"source_form_unavailable_provider"}),e+="</div></div>"}))}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.widget=function(){return this.Skim={access:function(e){var t;return"function"==typeof(t=this[e])&&(t=t.call(this)),!0===t?[this]:!1!==t&&null!=t&&("[object Array]"!==Object.prototype.toString.call(t)?[t]:0!==t.length&&t)},withContext:function(e,t){var i;return(e=function(e){var t;return(t=function(){}).prototype=e,new t}(e)).safe||(e.safe=this.safe||function(e){var t;return(null!=e?e.skimSafe:void 0)?e:((t=new String(null!=e?e:"")).skimSafe=!0,t)}),e.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},e.flatten=i=function(e){var t,r,n,s;for(r=[],n=0,s=e.length;n<s;n++)(t=e[n])instanceof Array?r=r.concat(i(t)):r.push(t);return r},e.escape||(e.escape=this.escape||function(e){return null==e?"":e.skimSafe||!/[&<>\"]/.test(e)?e:this.safe((""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),t.call(e)}},function(e){return null==e&&(e={}),Skim.withContext.call({},e,(function(){var e;return e="",e+='<div class="flip-container"><div class="flipper">',"v2"===this.model.get("embed_layout")?(e+='<ul class="front">',e+=Juicer.Helpers.renderPartial("widget_card",{post:this.first,isOnFeedsDashboard:this.isOnFeedsDashboard}),e+='</ul><ul class="back">',e+=Juicer.Helpers.renderPartial("widget_card",{post:this.second,isOnFeedsDashboard:this.isOnFeedsDashboard}),e+="</ul>"):(e+='<div class="front">',e+=Juicer.Helpers.renderPartial("widget_card",{post:this.first,isOnFeedsDashboard:this.isOnFeedsDashboard}),e+='</div><div class="back">',e+=Juicer.Helpers.renderPartial("widget_card",{post:this.second,isOnFeedsDashboard:this.isOnFeedsDashboard}),e+="</div>"),e+="</div></div>"}))}}.call(this)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.AdReport=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.urlRoot=function(){return Juicer.Constants.API_ROOT+"/api/ad_reports"},i.prototype.save=function(e,t){return(t=null!=t?_u.clone(t):{}).xhrFields||(t.xhrFields={}),t.xhrFields.withCredentials=!1,i.__super__.save.call(this,e,t)},i}(JuicerBackbone.Model)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.Assignment=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.urlRoot="/api/assignments",i}(JuicerBackbone.Model)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.Click=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.urlRoot=function(){return Juicer.Constants.API_ROOT+"/api/clicks"},i.prototype.save=function(e,t){return(t=null!=t?_u.clone(t):{}).xhrFields||(t.xhrFields={}),t.xhrFields.withCredentials=!1,i.__super__.save.call(this,e,t)},i}(JuicerBackbone.Model)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.Enterprise=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.idAttribute="slug",i.prototype.urlRoot="/api/enterprise",i.prototype.page=1,i.prototype.fetch=function(e){return(e=null!=e?_u.clone(e):{}).data=null!=e.data?_u.extend(e.data,this.data()):this.data(),i.__super__.fetch.call(this,e)},i.prototype.parse=function(e,t){var r,n;return e.current_page>1&&e.feeds.length>0&&(r=_u.map(this.get("feeds").models,(function(e){return e.attributes})),n=e.feeds,e.feeds=r.concat(n),e.new_feeds=n),i.__super__.parse.call(this,e,t)},i.prototype.data=function(){var e;return e={page:this.page},this.query&&(e.query=this.query),e},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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.EnterpriseUsers=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.Estimate=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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 e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Models.Feed=function(i){function r(){return this.fetchNewPosts=e(this.fetchNewPosts,this),this.poll=e(this.poll,this),this.startPolling=e(this.startPolling,this),r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.idAttribute="slug",r.prototype.urlRoot=function(){return Juicer.Constants.API_ROOT+"/api/feeds"},r.prototype.parse=function(e,t){return null!=this.get("css")&&delete e.css,r.__super__.parse.call(this,e,t)},r.prototype.sync=function(e,t,i){var n;return n=i.url,"read"!==e&&(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,e,t,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(e){return null==e&&(e={}),this.endingAt=e.endingAt,this.filter=e.filter,this.isOnFeedsDashboard=e.isOnFeedsDashboard,this.page=e.page,this.per=e.per,this.search=e.search,this.startingAt=e.startingAt,this.truncate=e.truncate,this.origin=e.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(e){var t,i;return null==e&&(e=!0),this.polling=!0,t=this.get("requested_at"),this.fetch({success:(i=this,function(){if(i.get("requested_at")!==t&&i.trigger("new-posts"),i.polling=!1,e)return i.poll()})})},r.prototype.pollInterval=function(){var e;return e=60*this.get("update_frequency")*1e3/this.divisor(),e=Math.floor(e),e=Math.max(e,15e3)},r.prototype.divisor=function(){var e;return(e=this.get("sources").length)<2&&(e=2),e>10&&(e=10),e},r.prototype.fetch=function(e){var t;return t=null!=(e=null!=e?_u.clone(e):{}).data?_u.extend(e.data,this.queryParams()):this.queryParams(),e.data=this.queryParamsToArray(t),e.xhrFields||(e.xhrFields={}),e.xhrFields.withCredentials=!1,e.beforeSend=function(e){return e.setRequestHeader("Cache-Control","no-cache")},r.__super__.fetch.call(this,e)},r.prototype.queryParams=function(){var e;return e={},this.per&&(e=_u.extend(e,{per:this.per})),this.endingAt&&(e=_u.extend(e,{ending_at:this.endingAt})),this.filter&&(e=_u.extend(e,{filter:this.filter})),this.origin&&(e=_u.extend(e,{origin:this.origin})),this.isOnFeedsDashboard&&(e=_u.extend(e,{is_on_feeds_dashboard:!0})),this.page&&!this.polling&&(e=_u.extend(e,{page:this.page})),this.search&&(e=_u.extend(e,{search:this.search})),this.startingAt&&(e=_u.extend(e,{starting_at:this.startingAt})),this.truncate&&(e=_u.extend(e,{truncate:this.truncate})),e},r.prototype.queryParamsToArray=function(e){return Object.keys(e).reduce((function(t,i){return t.concat({name:i,value:e[i]})}),[]).sort((function(e,t){return e.name>t.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 e;switch(e=new Date(this.get("last_synced")),this.get("plan")){case"medium":e.setHours(e.getHours()+1);break;case"large":e.setMinutes(e.getMinutes()+10);break;case"custom":case"enterprise":e.setMinutes(e.getMinutes()+this.get("update_frequency"));break;default:e.setDate(e.getDate()+1)}return e},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 e;return"widget"===(e=this.get("css")||"image-grid")&&(e="juicer-widget"),this.get("colored_icons")&&"classic"!==this.get("css")&&(e+=" colored-icons"),this.hoverImages()&&(e+=" hover-images"),e},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(e){var t;return t=this.get("sources").where({source:e}),_u.map(t,(function(e){return e.get("term")}))},r.prototype.fetchAll=function(){var e;return e={url:this.url()+"/fetch_all",type:"POST"},(this.sync||JuicerBackbone.sync).call(this,null,this,e)},r.prototype.bulkModerate=function(e,t){var i,r,n;return null==e&&(e=!0),null==t&&(t=null),n="/api/feeds/"+this.get("slug")+"/bulk_moderate",i={},e&&(i.approve=!0),null!=t&&(i.filter=t),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 e,t;t=void 0;try{t=new URLSearchParams(window.location.search).get("display_filter_type")}catch(i){e=i,console.error(e),t=null}return t||(this.get("display_filter_type")?"new":"old")},r.prototype.filters=function(){var e;return(e=(e=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()),e},r.prototype.allSource=function(){return new Juicer.Models.Source({source:"All"})},r.prototype.accountTypes=function(){var e,t;return e=[],t=[],_u.each(this.get("sources").models,(function(i){if(!_u.contains(t,i.source()))return e.push(i),t.push(i.source())})),e},r.prototype.uniqSources=function(){var e,t;return e=[],t=[],_u.map(this.get("sources").models,(function(i){if(!_u.contains(t,i.displayName()))return e.push(i),t.push(i.displayName())})),e},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(e){return this.getCustomColor(e)||this.getDefaultColor(e)},r.prototype.getCustomColor=function(e){return this.getColors()[e+"_color"]},r.prototype.getColors=function(){return this.get("colors")},r.prototype.getDefaultColor=function(e){var t;return"cta_button"===e?"#4AB890":"cta_text"===e?"#fff":"hover"===e?"#F17E6F":"feed_background"===e?"#f9fafb":(t=this.customColorMap[e],(e=jQuery(t.selector).css(t.attribute))?Juicer.Helpers.rgb2hex(e):"#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 e,t;return e="",_u.each(this.colors,(t=this,function(i){var r,n;if(n=t.customColorMap[i],r=t.getCustomColor(i))return e+=n.selector+" { "+n.attribute+": "+r+" !important; }"})),this.get("custom_css")&&(e+=this.get("custom_css")),e},r.prototype.updateColor=function(e,t){var i,r,n;if((i=this.getColors())[r=e+"_color"]=t,this.set("colors",i),this.set(r,t),this.trigger("update:colors"),e.match(/cta_/))return n=this.customColorMap[e+"_color"],$(n.selector).css(n.attribute,t)},r.prototype.resetColors=function(){return _u.each(this.colors,(e=this,function(t){return e.set(t+"_color",null)}));var e},r.prototype.shouldShowGallery=function(){var e;return e=this.get("css")||this.get("style"),_u.contains(["modern","polaroid","image-grid","hip","night"],e)},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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.JuicerAd=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.Moderated=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.url=function(){return"/api/feeds/"+this.slug+"/moderated"},i.prototype.initialize=function(e){return this.revalidating=!0,this.slug=e.slug,this.starting_at=e.starting_at,this.once("sync",this.startPolling)},i.prototype.moderated=!0,i}(Juicer.Models.Feed)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.PageView=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.urlRoot=function(){return Juicer.Constants.API_ROOT+"/api/page_views"},i.prototype.save=function(e,t){return(t=null!=t?_u.clone(t):{}).xhrFields||(t.xhrFields={}),t.xhrFields.withCredentials=!1,i.__super__.save.call(this,e,t)},i}(JuicerBackbone.Model)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.Plan=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.urlRoot="/api/plan",i.prototype.downgradeDate=function(){var e;if(this.get("next_billing_date"))return e=new Date(this.get("next_billing_date")),strftime("%B %-d, %Y",e)},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(e){return"ad_free"===e?"Ad-Free":_u.titleize(e)},i}(JuicerBackbone.Model)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.Post=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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(e){return this.callSubUrl("/stick",e)},i.prototype.unstick=function(e){return this.callSubUrl("/unstick",e)},i.prototype.hardDeletePost=function(e){var t;return t={url:this.url()+"?hard_delete=true",type:"DELETE"},_u.extend(t,e),(this.sync||JuicerBackbone.sync).call(this,null,this,t)},i.prototype.callSubUrl=function(e,t){var i;return null==t&&(t={}),i={url:e=this.url()+e,type:"POST"},_u.extend(i,t),(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 e,t,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=(e=this.get("poster_image")).match("\\?")?"&":"?",t=e+i+"redirect=false",jQuery.getJSON(t,(r=this,function(e){var t;return t=e.data.url,r.get("source").fetchedFacebookPosterUrls[r.get("poster_id")]=t,jQuery("[data-poster-id='"+r.get("poster_id")+"']").attr("src",t)}))),this.get("source").fetchedFacebookPosterUrls[this.get("poster_id")]},i.prototype.pluralize=function(e,t){return 1===e?e+" "+t:e+" "+_u.pluralize(t)},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 e;if((e=this.term().match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i))&&e[1])return e[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 e;return this.stripped().length<=140?this.status():(e=this.stripped().substr(0,137)).substr(e.length-1).codePointAt(0)>255?encodeURIComponent(e.slice(0,-1)+"..."):encodeURIComponent(e+"...")},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 e,t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;e=["Facebook","Instagram","Pinterest","Tumblr","Twitter","YouTube","InstagramReels"],Juicer.Models.Source=function(i){function r(){return r.__super__.constructor.apply(this,arguments)}return t(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 e,t,i,r,n,s,o;if(o=[],"Twitter"===this.source()){for(r=[],t=[],i=0,n=(e="hashtag"===this.get("term_type")?["retweets"]:["retweets","replies"]).length;i<n;i++)s=e[i],this.get("options")&&-1!==this.get("options").indexOf(s)?r.push(s):t.push(s);r.length>0&&o.push("including: "+r.join(", ")),t.length>0&&o.push("excluding: "+t.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 e;return this.get("name")&&(e=this.get("name")),e||(e=this.get("term")),e},r.prototype.displayName=function(){return""+this.typeSymbol()+this.displayTerm()},r.prototype.displayNameWithOptions=function(){var e;return e=this.displayName(),"Instagram"===this.source()&&"reel"===this.get("post_type")?e+" (reels)":"Instagram"===this.source()&&"stories"===this.get("term_type")?e+" (stories)":e},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=e,r.prototype.requiresLogin=["Facebook","Instagram","InstagramReels","Slack","Twitter","TikTok"],r.prototype.alternateNames=["location","group"],r.prototype.filterClass=function(e,t,i){var r,n,s;return null==t&&(t=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"===e&&(r+=" grouped"),t&&(r+=" highlight"),r},r.prototype.all=function(){return"all"===this.lowerSource()},r.prototype.filter=function(e){if(this.all())return null;switch(e){case"Social Type":return this.source();case"Social Account":return this.get("id");case"Grouped Terms":return this.get("term")}},r.prototype.filterDisplay=function(e){if(this.all())return"All";switch(e){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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.User=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.relations=[{type:JuicerBackbone.Many,key:"feeds",relatedModel:"Juicer.Models.Feed"}],i}(JuicerBackbone.AssociatedModel)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.FeedValidation=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.validation={name:{required:!0}},i}(JuicerBackbone.Model)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.UserSignupValidation=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.validation={email:{required:!0,pattern:"email"},password:{required:!0,minLength:8,validatePassword:!0}},i}(JuicerBackbone.Model)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.UserUpdateValidation=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.initialize=function(e){return this.email=e.email,this.noPassword=e.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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Models.UserValidation=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.validation={email:{required:!0,pattern:"email"},password:{required:!0,minLength:8}},i}(JuicerBackbone.Model)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Collections.FacebookResults=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.initialize=function(e){return this.type={username:"pages",reviews:"reviews"}[e.type]},i.prototype.url=function(){return"/api/facebook_results/"+this.type},i}(JuicerBackbone.Collection)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Collections.InstagramBusinessAccounts=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.url=function(){return"/api/instagram_business_accounts/"},i}(JuicerBackbone.Collection)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Collections.Posts=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.paginatingAttributes=["current_page","limit_value"],i.prototype.model=Juicer.Models.Post,i.prototype.parse=function(e){var t;return _u.each(this.paginatingAttributes,(t=this,function(i){return t[i]=e[i]})),i.__super__.parse.call(this,e.items)},i}(JuicerBackbone.Collection)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Collections.SocialAccounts=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.url="/api/social_accounts",i.prototype.socialAccountForSource=function(e){var t;return t=e.findProvider(),"Instagram"!==e.source()&&"InstagramReels"!==e.source()||"hashtag"!==e.termType()?this.findWhere({provider:t}):this.filter((function(e){return e.attributes.provider===t&&(void 0===e.attributes.instagramBusinessAccounts||0!==e.attributes.instagramBusinessAccounts.length)}))[0]},i.prototype.socialAccount=function(e){return this.findWhere({provider:e})},i.prototype.findAllWithProvider=function(e){var t;return"instagramreels"===e&&(e="instagram_basic_display"),t=function(t){return t.attributes.provider===e&&t.attributes.name},this.filter(t).sort((function(e,t){return e.attributes.name>t.attributes.name}))},i}(JuicerBackbone.Collection)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Collections.Users=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.model=Juicer.Models.User,i.prototype.url="/api/users",i}(JuicerBackbone.Collection)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.AdminDowngrade=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST.admin_downgrade,i.prototype.initialize=function(e){return this.userId=e.userId,this.csrf=$('meta[name="csrf-token"]').attr("content")},i.prototype.events={click:"openOverlay"},i.prototype.openOverlay=function(e){var t;return e.preventDefault(),t=$(e.target).attr("href"),this.overlay=new Juicer.Views.Overlay({content:this.template({userId:this.userId,reasons:this.reasons,csrf:this.csrf,action:t}),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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.AdminPasswordReset=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST.admin_password_reset,i.prototype.initialize=function(e){return this.userId=e.userId,this.csrf=$('meta[name="csrf-token"]').attr("content")},i.prototype.events={click:"openOverlay"},i.prototype.openOverlay=function(e){var t;return e.preventDefault(),t=$(e.target).attr("href"),this.overlay=new Juicer.Views.Overlay({content:this.template({userId:this.userId,csrf:this.csrf,action:t}),element:"body",width:"50%"}),this.overlay.render()},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.AdminUsers=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.events={"click .toggle-favorite":"toggleFavorite"},i.prototype.toggleFavorite=function(e){var t,i;return e.preventDefault(),i=(t=$(e.target)).data("id"),jQuery.get("/admin/users/"+i+"/favorite"),"\u2605"===t.html()?t.html("\u2606"):t.html("\u2605")},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.AnalyticsDateRange=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST.analytics_date_range,i.prototype.events={"click .date-range":"openDateRangeOverlay"},i.prototype.openDateRangeOverlay=function(e){var t,i;return console.log("open"),i=$(e.target),t=this.template({start:i.data("start"),end:i.data("end")}),this.overlay=new Juicer.Views.Overlay({content:t,element:this.el,width:"50%"}),this.overlay.render()},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.BrokenImage=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.initialize=function(e){return null==e&&(e={}),this.feed=e.feed,this.model=this.feed,this.el=e.el,this.handleBrokenImages()},i.prototype.handleBrokenImages=function(){var e;return this.$("img.j-content-image").on("error",(e=this,function(t){var i;return i=jQuery(t.target),e.handleBrokenImage(i)})),this.$("img.j-content-image").on("load",function(e){return function(t){var i;if(i=jQuery(t.target),t.target.naturalWidth<20)return e.handleBrokenImage(i)}}(this)),this.$(".j-poster img").on("error",function(e){return function(t){var i;return i=jQuery(t.target),e.handleBrokenPosterImage(i)}}(this))},i.prototype.handleBrokenImage=function(e){return new Juicer.Views.ImageHandler({target:e,feed:this.feed,theme:this.feed.get("css"),el:this.el})},i.prototype.handleBrokenPosterImage=function(e){return new Juicer.Views.PosterImageHandler({target:e,feed:this.feed,theme:this.feed.get("css")})},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.Churn=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.BlogShow=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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 e;return this.loaded=!0,(e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="//juicerio.disqus.com/embed.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e)},i.prototype.scrollPoint=function(){return this.$el.scrollTop()+this.$el.height()},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.DowngradeOverlay=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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 e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Calculator=function(i){function r(){return this.updateValues=e(this.updateValues,this),this.render=e(this.render,this),r.__super__.constructor.apply(this,arguments)}return t(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(e){var t;return t=$(e.target),this.model.set(t.data("attribute"),t.val())},r}(JuicerBackbone.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Enterprise=function(i){function r(){return this.close=e(this.close,this),this.append=e(this.append,this),this.afterRender=e(this.afterRender,this),this.render=e(this.render,this),r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.template=JST["enterprise/show"],r.prototype.initialize=function(e){return this.on("render",this.afterRender),this.model=new Juicer.Models.Enterprise({slug:e.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 e,t;if(this.focusedInput)return t=(e=$("#js-enterprise-search")).val(),e.focus().val("").val(t)},r.prototype.renderFeeds=function(e){return this.feeds=new Juicer.Views.EnterpriseFeeds({el:"ul.feeds",collection:e,model:this.model}).render(),this.feeds.on("removeFocus",(t=this,function(){return t.focusedInput=!1}));var t},r.prototype.append=function(){return this.feeds.append()},r.prototype.events={"input input[type=search]":_u.debounce((function(e){return this.search(e)}),500),"search input[type=search]":"search"},r.prototype.search=function(e){return this.model.resetPage(),this.focusedInput=!0,e.preventDefault(),this.model.query=$(e.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=e(this.close,this),this.loadNextPage=e(this.loadNextPage,this),r.__super__.constructor.apply(this,arguments)}return t(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(e){return this.subviews||(this.subviews=[]),_u.each(e,(t=this,function(e){var i;return i=new Juicer.Views.EnterpriseFeed({model:e,account:t.model}).render(),t.subviews.push(i.el)}));var t},r.prototype.addLoadMore=function(){var e;return this.loadMore=new Juicer.Views.EnterpriseLoadMore,this.loadMore.on("next:page:clicked",this.loadNextPage),this.loadMore.on("removeFocus",(e=this,function(){return e.trigger("removeFocus")})),this.loadMore.render(),this.subviews.push(this.loadMore.el)},r.prototype.removeLoadMore=function(){var e;return this.loadMore.off("next:page:clicked"),e=this.subviews.indexOf(this.loadMore.el),this.subviews.splice(e,1),this.loadMore.remove(),e},r.prototype.loadNextPage=function(){return this.model.nextPage(),this.model.fetch()},r.prototype.append=function(){var e;return e=this.removeLoadMore(),this.addToSubViews(this.model.get("new_feeds").models),this.model.moreFeeds()&&this.addLoadMore(),this.$el.append(this.subviews.slice(e))},r.prototype.close=function(){return _u.each(this.subviews,(function(e){return e.remove()})),this.loadMore&&this.loadMore.off("next:page:clicked"),this.$el.empty().off(),this.stopListening(),this},r}(JuicerBackbone.View),Juicer.Views.EnterpriseFeed=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),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(e){return this.account=e.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(e){var t;if(e.preventDefault(),t=$(e.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:$(e.target).data("id")}).destroy({success:function(){return t.remove()},error:function(e,t){return 422===t.status?alert(t.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(e){var t,i;return e.preventDefault(),!!(t=$(e.target).serializeHash()).email&&(this.assignment=new Juicer.Models.Assignment(t),this.assignment.save(null,{success:(i=this,function(){return i.model.get("assignments").add(i.assignment),i.render()}),error:function(e,t){return 422===t.status?alert(t.responseJSON.errors.base.join()):alert("Something went wrong!")}}))},i.prototype.fetchAllPosts=function(e){return!!Juicer.Helpers.confirm("Fetching all posts for this feed can take 10+ minutes. Please be patient and check back later.")&&(e.preventDefault(),this.model.fetchAll(),$(e.target).replaceWith("Fetching all posts."))},i.prototype.close=function(){return this.$el.remove()},i}(JuicerBackbone.View),Juicer.Views.EnterpriseLoadMore=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.EnterpriseAdmin=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST["enterprise/admin"],i.prototype.tagName="li",i.prototype.className="enterprise-user",i.prototype.initialize=function(e){return this.account=e.account,this.index=e.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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.EnterpriseUser=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST["enterprise/user"],i.prototype.tagName="li",i.prototype.className="bg-white border mb-25",i.prototype.initialize=function(e){return this.account=e.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(e){var t;if(e.preventDefault(),t=$(e.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:$(e.target).data("id")}).destroy({success:function(){return t.remove()},error:function(){return alert("Something went wrong!")}})},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.EnterpriseUsers=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST["enterprise/users"], i.prototype.inviteAdminForm=JST["enterprise/invite_admin"],i.prototype.initialize=function(e){return this.model=new Juicer.Models.EnterpriseUsers({slug:e.slug}),this.model.fetch({success:(t=this,function(){return t.render()}),error:function(){return alert("uh oh something went wrong")}});var t},i.prototype.render=function(){return this.$el.html(this.template({model:this.model})),this.renderAdmins(),this.renderUsers()},i.prototype.renderAdmins=function(){var e,t;return e=[],_u.each(this.model.get("admins").models,(t=this,function(i,r){return e.push(new Juicer.Views.EnterpriseAdmin({model:i,account:t.model,index:r}).render())})),this.$(".enterprise-admins").html(e)},i.prototype.renderUsers=function(){var e,t;return e=_u.map(this.model.get("users").models,(t=this,function(e){return new Juicer.Views.EnterpriseUser({model:e,account:t.model}).render()})),this.$(".enterprise-users").html(e)},i.prototype.events={"click a.new-enterprise-admin":"openNewAdminOverlay"},i.prototype.openNewAdminOverlay=function(e){return e.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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.EnterpriseWhiteLabel=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST["enterprise/white_label"],i.prototype.initialize=function(e){return this.model=new Juicer.Models.Enterprise({slug:e.slug}),this.model.fetch({success:(t=this,function(){return t.render()}),error:function(){return alert("uh oh something went wrong")}});var t},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(e){var t,i,r;return e.preventDefault(),(i=$(e.target)).find("input[type=submit]").attr("disabled","disabled").val("Loading..."),t=JuicerBackbone.Syphon.serialize(i),this.model.set(t),this.model.save(null,{success:(r=this,function(){return r.render()})})},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Entertainment=function(i){function r(){return this.setPostSizes=e(this.setPostSizes,this),this.setPosts=e(this.setPosts,this),r.__super__.constructor.apply(this,arguments)}return t(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(e){return this.interval=e.interval,this.isOnFeedsDashboard=e.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(e){return e.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(e,t){var i,r,n,s;for(n=0,i=e.length,s=[];n<i;)r=e.slice(n,n+t),s.push(r),n+=t;return s},r}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.Errors=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST.errors,i.prototype.initialize=function(e){var t;try{this.errors=$.parseJSON(e.errors.responseText).errors}catch(i){i,t=(e&&e.errors&&e.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:[t]}}return this.$(".errors, .j-loading, .please-wait").remove(),this.$("input[type=submit]").show(),this.$el.prepend(this.template({errors:this.errors,source:e.source}))},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Feed=function(i){function r(){return this.reRender=e(this.reRender,this),this.stopVideoAndResumeJuicerSlider=e(this.stopVideoAndResumeJuicerSlider,this),this.stopVideo=e(this.stopVideo,this),this.forceShowJuicerAds=e(this.forceShowJuicerAds,this),this.addJuicerAds=e(this.addJuicerAds,this),this.reRenderFeedAfterEvent=e(this.reRenderFeedAfterEvent,this),r.__super__.constructor.apply(this,arguments)}return t(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(e){return this.userOptions=_u.pick(this.$el.data(),this.permittedOptions),this.userOptions=this.setDefaultOptions(this.userOptions),this.showLoader(!1,!0),this.isOnFeedsDashboard=e.isOnFeedsDashboard||!1,this.model=e.model||this.newModel(),this.tracked=!1,this.model.on("new-posts",this.reRender),this.model.on("showLoader",(t=this,function(){return t.showLoader(!0)}));var t},r.prototype.reRenderFeedAfterEvent=function(){return this.model.fetch({success:(e=this,function(){return e.reRender(),"htmx"===e.model.get("version")&&window.juicerUtil.updateSidebarSourcesMenu(),jQuery(".juicer2-close").click(),jQuery(".close-subview").click()}),error:function(){return console.log("Juicer Problem")}});var e},r.prototype.setDefaultOptions=function(e){var t,i;i=void 0;try{i=new URLSearchParams(window.location.search).get("feed_style"),i=Juicer.Constants.FEED_CLASSES.indexOf(i)>=0&&i}catch(e){t=e,console.error(t),i=null}return e.slug=e.feedId,e.css=i||e.style,e.per||(e.per=100),e.page||(e.page=1),null!=e.overlay&&(e.overlay=!!e.overlay),e},r.prototype.newModel=function(){var e;return e=["origin","slug","per","page","filter","startingAt","endingAt","search","css","truncate"],new Juicer.Models.Feed(_u.pick(this.userOptions,e))},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 e;return null!=this.model.get("posts")?this.renderFeed():this.model.fetch({success:(e=this,function(){return e.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 e,t;return t=function(e,t){var i;return e.wrap("<"+t+">"),i=e.parent(),jQuery.each(e.prop("attributes"),(function(){return i.attr(this.name,this.value)})),e.contents().unwrap(),i},!!(e="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=t(this.$el,e),this.$el.empty(),new Juicer.Views.Feed({el:this.$el.get()}).render(),!0)},r.prototype.setUserOptionsFromModel=function(){var e;return _u.each(this.modelAttrs,(e=this,function(t){if(null==e.userOptions[t]&&0!==e.userOptions[t])return e.userOptions[t]=e.model.get(t)})),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 e,t;return e=navigator.userAgent.match(/MSIE|Trident|Edge/)?"j-ie":"j-modern",t=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(e).addClass(t)},r.prototype.runAfter=function(e){if(null==e&&(e="load"),void 0!==this.userOptions.after)return this.afterFunction=new Function("event",this.userOptions.after),this.afterFunction(e)},r.prototype.showLoader=function(e,t){return null==e&&(e=!1),null==t&&(t=!1),this.$el.append(this.loading({container:e,wrapper:t}))},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",(e=this,function(){return e.stopCurrentlyPlaying()}));var e},r.prototype.renderLivingWall=function(){var e,t;return t=this.feedOptions(),"v2"===this.model.get("embed_layout")&&(e=document.createElement("ul"),t.el=this.el.appendChild(e)),this.livingWall=new Juicer.Views.LivingWall(t).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",(e=this,function(){return e.runAfter("paginate"),null!=e.lazyLoad&&e.lazyLoad.checkImages(),e.handleBrokenImages()}));var e},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 e,t,i,r;return i=this.model.numberOfPostsPerOneAd(),e=this.model.get("posts").length+1,(t=Math.floor(e/i))>0&&_u(t).times((r=this,function(e){var t,n,s;return s=Math.floor(Math.random()*i),t=e*i+s,n=new Juicer.Models.JuicerAd({feed:r.model}),r.model.get("posts").add(n,{at:t})})),this.adsAdded=!0,this.adRemovalReported=!1,this.currentInterval=100,setTimeout(this.forceShowJuicerAds,this.currentInterval)},r.prototype.forceShowJuicerAds=function(){var e,t,i,r,n,s;return t=function(e){return e.style.setProperty("display","block","important"),e.style.setProperty("visibility","visible","important"),e.style.setProperty("opacity","1","important")},s=this,n=function(e){if(!s.adRemovalReported)return new Juicer.Models.AdReport(_u.extend(e,{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"))&&(t(i[0]),t(r[0]),n({reason:"powered_by_header_hidden"})),0===(e=jQuery(".juicer-about")).length&&n({reason:"ads_removed"}),e.each((function(){if(jQuery(this).is(":hidden"))return t(this),n({reason:"ads_hidden"})})),this.currentInterval*=2,setTimeout(this.forceShowJuicerAds,this.currentInterval)},r.prototype.addJuicerAlerts=function(){var e,t;if(this.model.get("show_trial_notifications")&&(t=this,e=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 "+e+": <a href='/plans?mpevent=post_notification_linkedin_ending' target='_blank'>Upgrade</a> to keep your feed active.",jQuery(this).append(t.postNotificationBanner({content:i,backgroundClass:"yellow"}))})),this.$(".feed-item.j-x-twitter").each((function(){var i;return i="Your X (Twitter) Power-Up "+e+": <a href='/plans?mpevent=post_notification_x_twitter_ending' target='_blank'>Upgrade</a> to keep your feed active.",jQuery(this).append(t.postNotificationBanner({content:i,backgroundClass:"yellow"}))})),this.$(".feed-item.j-instagram.j-stories").each((function(){var i;return i="Your Instagram Stories Power-Up "+e+": <a href='/plans?mpevent=post_notification_ig_stories_ending' target='_blank'>Upgrade</a> to keep your feed active.",jQuery(this).append(t.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 "+e+": <a href='/plans?mpevent=post_notification_hashtag_ending' target='_blank'>Upgrade</a> to keep your feed active.",jQuery(this).append(t.postNotificationBanner({content:i,backgroundClass:"yellow"}))}))},r.prototype.setupGrid=function(){var e,t,i;if((t=Math.floor(this.$el.outerWidth()/this.userOptions.columns))<(e=window.devicePixelRatio>2?225:200)&&(t=e),this.$el.gridalicious({animate:!0,selector:".feed-item",width:t,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 e,t;return e="2%",null==this.userOptions.gutter&&(t=e),this.$(".feed-item").css("margin-bottom",t)},r.prototype.appendNextPage=function(e){return null==e&&(e=null),e&&e.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(e){return Juicer.Constants.CRAVLER_USER_AGENTS.some((function(t){return-1!==e.toLowerCase().indexOf(t)}))},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(e){var t,i,r,n,s,o;if(o=jQuery(e.target),this.shouldTrackAnalytics()&&this.trackClick(o),o.hasClass("delete"))return e.preventDefault(),this.deletePost(o);if(o.hasClass("cta-button"));else{if(o.hasClass("edit-cta"))return i=function(e,t){return t.xhr.response.length>0?jQuery("body").append(t.xhr.response):htmx.ajax("GET","/posts/"+o.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(o.hasClass("sticky"))return e.preventDefault(),this.toggleSticky(o,"stick");if(o.hasClass("unstick"))return e.preventDefault(),this.toggleSticky(o,"un-stick");if(o.hasClass("edit"))return new Juicer.Views.PostEdit({id:o.parents("ul.actions").data("id"),model:this.model}).render();if(o.hasClass("copy-post-id"))return e.preventDefault(),s=o.parents("ul.actions").data("id"),navigator.clipboard.writeText(s),o.text("Copied!"),setTimeout((function(){return o.text("Copy Post ID")}),2e3);if(o.hasClass("j-image")&&o.parents("li.j-video").length>0&&!this.model.get("video_overlay"))return e.preventDefault(),this.model.hasInterval()&&this.userOptions.overlay||o.parents("li.j-tiktok").length>0?(this.stopCurrentlyPlaying(),this.openOverlay({target:o})):this.playVideo(o,o.parents("li.j-video"));if(o.hasClass("j-gallery-arrow"))return e.preventDefault(),new Juicer.Views.Gallery({target:o,el:this.el,model:this.model});if(o.parents(".j-twitter-intents").length>0)return e.preventDefault(),this.handleTwitterIntent(o);if(o.parents(".feed-item.j-twitter").length>0){if(!(o.is("a")||o.parents("a").length>0))return r=o.parents(".feed-item").data("id"),n=this.model.get("posts").findWhere({id:r}),window.open(n.link(),"_blank")}else{if(o.is("a")&&!o.hasClass("j-image")&&0===o.parents("li.j-video").length)return e.preventDefault(),window.open(o.attr("href"),"_blank");if(this.userOptions.overlay&&!o.hasClass(".feed-item.juicer")&&!o.parents(".feed-item.juicer").length>0&&!o.parents(".feed-item.j-twitter").length>0)return e.preventDefault(),this.stopCurrentlyPlaying(),this.openOverlay({target:o});if(o.is(".juicer-about")||o.parents(".juicer-about").length>0)return e.preventDefault(),t=o.is(".juicer-about")?o:o.parents(".juicer-about"),window.open(t.find("a").attr("href"),"_blank")}}},r.prototype.triggerEventByKeyboard=function(e){if(13===e.keyCode)return this.triggerEvent(e)},r.prototype.trackClick=function(e){return e=e.is("li.feed-item")?e:e.parents("li.feed-item"),new Juicer.Models.Click({feed_id:this.model.get("id"),post_id:e.data("id")}).save()},r.prototype.openOverlay=function(e){var t;return this.postOverlay=new Juicer.Views.PostOverlay({target:e.target,model:this.model}),this.postOverlay.on("render",(t=this,function(){return t.runAfter("overlay")})),this.postOverlay.render()},r.prototype.deletePost=function(e){var t;return!!Juicer.Helpers.confirm("Are you sure you want to delete this post?")&&(e=e.parents("ul.actions"),t=new Juicer.Models.Post({id:e.data("id")}),e.parents(".feed-item").remove(),t.destroy())},r.prototype.toggleSticky=function(e,t){var i,r,n;return null==t&&(t="stick"),e=e.parents("ul.actions"),r=new Juicer.Models.Post({id:e.data("id")}),i={success:(n=this,function(e){return n.model.set(e,{parse:!0}),n.model.trigger("action")}),error:function(){return alert("Something went wrong.")}},"stick"===t?r.stick(i):r.unstick(i)},r.prototype.openPopupOnError=function(e,t){return this.hasVideoLoadingErrorOccurred?(this.hasVideoLoadingErrorOccurred=!1,window.open(e)):t>0?setTimeout((i=this,function(){return i.openPopupOnError(e,t-1)}),100):void 0;var i},r.prototype.playVideo=function(e,t){return(e=e.is(".j-image")?e:e.parents(".j-image")).hasClass("playing")?this.stopVideoAndResumeJuicerSlider(e):(this.stopCurrentlyPlaying(),this.slider&&this.slider.stop(),e.addClass("playing"),e.html(this.embedVideo(e.data("external-id"),t,e.data("video-url"))),setTimeout((i=this,function(){return i.openPopupOnError(jQuery(e).attr("href"),29)}),100),jQuery(e).find("video source").on("error",function(t){return function(){return t.hasVideoLoadingErrorOccurred=!0,t.stopVideoAndResumeJuicerSlider(e),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(e){var t;return e.removeClass("playing"),null!=this.slider?(t="height:"+this.model.height()+"px",this.slider.$el.slick("slickPlay")):t="width:100%;display:block;",e.html("<img src='"+e.data("image")+"' style='"+t+"' />")},r.prototype.stopVideoAndResumeJuicerSlider=function(e){if(this.stopVideo(e),this.slider)return this.slider.play()},r.prototype.embedVideo=function(e,t,i){var r,n;return null==i&&(i=null),"tumblr"===(r=t.data("source"))&&(i=this.parseTumblrVideo(t,i)),null!=this.slider&&(n=this.model.height()),JST["partials/video/_"+r+"_embed"]({id:e,video:i,height:n})},r.prototype.parseTumblrVideo=function(e,t){var i,r;return(i=jQuery(jQuery.parseHTML(t))).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 e.find("video")[0].play()}),500),i[0].outerHTML},r.prototype.stopCurrentlyPlaying=function(){return _u.each(this.$(".playing"),(e=this,function(t){return e.stopVideo(jQuery(t))}));var e},r.prototype.handleTwitterIntent=function(e){var t,i,r,n,s,o;return n=550,t=420,s=screen.height,o=screen.width,r=0,i=Math.round(o/2-n/2),s>t&&(r=Math.round(s/2-t/2)),window.open(e.attr("href"),"intent","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width="+n+",height="+t+",top="+r+",left="+i)},r.prototype.filterFeed=function(e){var t,i;return e.preventDefault(),(t=jQuery(e.target)).attr("data-filter"),t.attr("class").replace("selected","").replace(" ",""),this.model.filter!==t.data("filter")&&(this.model.filter=t.data("filter"),this.filter=t.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 e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Design=function(i){function r(){return this.afterCssParsing=e(this.afterCssParsing,this),r.__super__.constructor.apply(this,arguments)}return t(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(e){var t,i;return(i=$(e.target)).hasClass("feed-color")||(i=i.parents(".feed-color")),this.$(".color-fields").remove(),t=i.data("color"),i.after(this.colorPicker({color:this.feed.getColor(t),pattern:this.pattern,colorAttr:t}))},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(e){return this.$(".columns").toggle(e)},r.prototype.toggleInterval=function(e){return this.$(".interval").toggle(e)},r.prototype.saveAndRender=function(){return this.feed.trigger("showLoader"),this.feed.save(null,{success:(e=this,function(){return e.feed.trigger("action"),e.toggleSettings()}),error:function(){return alert("Something went wrong.")}});var e},r.prototype.updateCheckbox=function(e){var t,i;return i=(t=$(e.target)).is(":checked")?"1":"0",this.feed.set(t.data("attribute"),i),this.saveAndRender()},r.prototype.updateColor=function(e){var t,i,r,n;return!!(n=(r=$(e.target)).val()).match(this.pattern)&&(i=r.hasClass("hex-input")?".color-input":".hex-input",this.$(i).val(n),t=r.parents(".color-fields").data("color"),this.$(".color-example, .feed-color[data-color='"+t+"'] .color-picker-circle").css({backgroundColor:n}),this.updateModel(t,n))},r.prototype.updateStyle=function(e){return this.feed.set("css",$(e.target).val()),this.saveAndRender()},r.prototype.updateDimensions=function(e){var t,i,r,n;if(n=(r=$(e.target)).val(),t=r.attr("class"),2<(i=n.length)&&i<5&&99<n&&n<5001||""===n)return this.feed.set(t,n),this.saveAndRender()},r.prototype.updateColumns=function(e){var t,i;if(0<(t=(i=$(e.target).val()).length)&&t<2)return this.feed.set("columns",i),this.saveAndRender()},r.prototype.updateInterval=function(e){var t,i;if(3<(t=(i=$(e.target).val()).length)&&t<10||"0"===i)return this.feed.set("interval",i),this.saveAndRender()},r.prototype.updateModel=function(e,t){return this.feed.updateColor(e,t)},r.prototype.saveStyle=function(e){return this.feed.save(null,{success:(t=this,function(){return t.notifySuccess($(e.target))}),error:function(){return alert("Sorry your design didn't save properly. Please try again.")}});var t},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:(e=this,function(){return e.feed.trigger("action"),e.render()})});var e},r.prototype.notifySuccess=function(e){return e.text("Saved!"),setTimeout((function(){return e.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(e){var t;return e.preventDefault(),t=$(e.target).serializeHash(),$.parsecss(t.css,this.afterCssParsing)},r.prototype.afterCssParsing=function(e){return this.feed.set("custom_css",this.stringifyCss(e)),this.feed.save(null,{success:(t=this,function(){return t.overlay.removeView(),t.feed.trigger("action")}),error:function(){return alert("Something went wrong")}});var t},r.prototype.stringifyCss=function(e){var t;return t="",_u.each(e,(function(e,i){return t+=i+" {\n",_u.each(e,(function(e,i){return t+=" "+i+": "+e+";\n"})),t+="}\n\n"})),t},r}(Juicer.Views.SubView)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Embed=function(i){function r(){return this.afterClose=e(this.afterClose,this),r.__super__.constructor.apply(this,arguments)}return t(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(e){return this.accessibilityOverlay.closeOverlay(e),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(e){var t,i;return t="v2"===this.feed.get("embed_layout")?"v1":"v2",this.feed.set("embed_layout",t),this.feed.save(null,{success:(i=this,function(){return i.accessibilityOverlay&&e&&i.accessibilityOverlay.closeOverlay(e),i.renderTemplate(),i.renderTitle(),window.location.reload()}),error:function(){return alert("Something went wrong.")}})},r.prototype.switchEmbed=function(e){return this.currentlySelected=$(e.target).val(),this.renderTemplate(),this.renderTitle()},r.prototype.renderTemplate=function(){return this.renderContent(),this.renderMenu()},r.prototype.renderContent=function(e,t){switch(null==e&&(e=this.$el),null==t&&(t=null),this.currentlySelected){case"wordpress":return this.showWordPress(e);case"iframe":return this.showIframe(e);default:return this.showEmbed(e,t)}},r.prototype.renderMenu=function(){var e;if(e="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:e}))},r.prototype.javascriptPath=function(){return this.assetPath("embed.js")},r.prototype.stylesheetPath=function(){return this.assetPath("embed.css")},r.prototype.assetPath=function(e){return"https://assets.juicer.io/"+e},r.prototype.showEmbed=function(e,t){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:t})).replace(/<br \/>/g,"\n"),e.html(this.template({embed:i, feed:this.feed}))},r.prototype.showWordPress=function(e){return e.html(this.wordpress({feed:this.feed}))},r.prototype.showIframe=function(e){var t,i,r;return t=this.feed.get("height")||1e3,r=this.feed.get("width")||1e3,1e3===t&&this.feed.slider()&&(t=300),i="<iframe src='https://www.juicer.io/api/feeds/"+this.feed.get("slug")+"/iframe' frameborder='0' width='"+r+"' height='"+t+"' style='display:block;margin:0 auto;'></iframe>",e.html(this.iframe({iframe:i,feed:this.feed}))},r.prototype.highlightField=function(e){var t;if(t!==$(e.target))return t=$(e.target),setTimeout((function(){return t.select()}),50)},r}(Juicer.Views.SubView)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.Features=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST["feeds/features"],i}(Juicer.Views.SubViewSlide)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.Hub=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST["feeds/hub"],i}(Juicer.Views.SubViewSlide)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Moderate=function(i){function r(){return this.pollForRevalidating=e(this.pollForRevalidating,this),this.revalidatingPoll=e(this.revalidatingPoll,this),this.closeOverlay=e(this.closeOverlay,this),r.__super__.constructor.apply(this,arguments)}return t(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(e){return this.fetchFeed(),$(".moderation-nav .active").removeClass("active"),$(e.target).addClass("active")},r.prototype.viewModeratedPosts=function(e){return e.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:(e=this,function(){return e.feedView&&e.feedView.close(),new Juicer.Views.Moderated({el:".juicer-feed",model:e.moderated}).render()}),error:function(){return alert("Something went wrong pulling in your moderated posts.")}});var e},r.prototype.openOverlay=function(e){var t;return e.preventDefault(),t=$(e.target).serializeHash().feed,this.overlay=new Juicer.Views.Overlay({content:this.revalidateOverlay({data:t}),element:this.el,width:"50%"}),this.overlay.render()},r.prototype.closeOverlay=function(){return this.overlay.removeView()},r.prototype.submitConfirmation=function(e){var t,i;return e.preventDefault(),t=(i=$(e.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>"),t.revalidating=!0,this.updateFilters(t,this.revalidatingPoll)):(i.parents(".submits").html("<div class='j-loading'>Loading...</div>"),this.updateFilters(t,this.closeOverlay))},r.prototype.updateFilters=function(e,t){return this.feed.set(e),this.feed.save(null,{success:function(){return t()},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:(e=this,function(){return e.feed.get("revalidating")?e.revalidatingPoll():(e.closeOverlay(),e.feed.trigger("action"))}),error:function(){return alert("Something happened with polling. Please refresh page.")}});var e},r.prototype.toggleAndSubmit=function(){if(this.toggleFilterBlocker(),this.queueChecked())return this.$("form").trigger("submit")},r.prototype.toggleFilterBlocker=function(){var e;return e=this.$(".filter-blocker"),this.queueChecked()?e.show():e.hide()},r.prototype.queueChecked=function(){return this.$("#queue").is(":checked")},r.prototype.close=function(e){if(null==e&&(e=null),null!=e&&e.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:(e=this,function(){return e.feed.trigger("action")})});var e},r}(Juicer.Views.SubView)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Settings=function(i){function r(){return this.reRender=e(this.reRender,this),r.__super__.constructor.apply(this,arguments)}return t(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(e){return this.$(".filter_setting").toggle(e)},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(e){var t,i;return i=(t=$(e.target)).is(":checked")?"1":"0",this.feed.set(t.data("attribute"),i),this.saveAndRender()},r.prototype.updateOrder=function(e){return this.feed.set("order",$(e.target).val()),this.saveAndRender()},r.prototype.updateFilter=function(e){return this.feed.set("display_filter",$(e.target).val()),this.saveAndRender()},r.prototype.saveAndRender=function(){return this.feed.trigger("showLoader"),this.feed.save(null,{success:(e=this,function(){return e.feed.trigger("action")}),error:function(){return alert("Something went wrong.")}});var e},r.prototype.highlightField=function(e){var t;if(t!==$(e.target))return t=$(e.target),setTimeout((function(){return t.select()}),50)},r}(Juicer.Views.SubView)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Sources=function(i){function r(){return this.reRender=e(this.reRender,this),this.sort=e(this.sort,this),r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.template=JST["feeds/sources"],r.prototype.title="Social Media Sources",r.prototype.render=function(e){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(e){return e.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(e){var t,i,r;if(e.preventDefault(),i=$(e.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 t=i.data("id"),new Juicer.Models.Source({id:t}).destroy({success:(r=this,function(e,n){return r.feed.set(n,{parse:!0}),$(".existing-source[data-id='"+t+"']").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(e){var t,i,r,n,s,o;return e.preventDefault(),n=$(e.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?(t=function(e,t){return t.xhr.response.length>0?jQuery("body").append(t.xhr.response):i()},htmx.ajax("GET","/paywall?source=manual_add_post&feed_id="+this.feed.get("id"),{target:"body",swap:"beforeend",handler:t})):i()},r.prototype.addPostManually=function(e){var t,i,r;return e.preventDefault(),(i=$(e.target)).find(".j-loading-wrapper").html("<div class='j-loading'>Loading...</div>"),i.find(".j-button").attr("disabled",!0),i.find("ul.errors").remove(),t=i.serializeHash(),this.post=new Juicer.Models.Post(t),this.post.save(null,{success:(r=this,function(e,t){return r.feed.set(t,{parse:!0}),r.reRender(),r.feed.trigger("action")}),error:function(e,t){return i.find(".j-button").attr("disabled",!1),new Juicer.Views.Errors({el:i,errors:t})}})},r.prototype.updateSource=function(e){var t,i;return e.preventDefault(),t=$(e.target).serializeHash(),this.source=new Juicer.Models.Source(t),this.source.save(null,{success:(i=this,function(e,t){return i.feed.set(t,{parse:!0}),i.reRender(),i.feed.trigger("action")}),error:function(){return alert("Something went wrong.")}})},r.prototype.sort=function(e){var t;return t=_u.map($(e.target).find(".existing-source"),(function(e){return $(e).data("id")})),this.feed.set({source_ids:t}),this.saveAndRender()},r.prototype.reRender=function(){return this.sidebarView.renderSidebar()},r.prototype.toggleSubMenu=function(e){var t;return(t=jQuery(e.target)).hasClass("existing-source")||(t=t.parents(".existing-source")),t.next(".source-submenu").slideToggle(),t.toggleClass("open")},r.prototype.saveAndRender=function(){return this.feed.trigger("showLoader"),this.feed.save(null,{success:(e=this,function(){return e.feed.set({source_ids:null}),e.feed.trigger("action")})});var e},r}(Juicer.Views.SubView)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.Synced=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST["feeds/synced"],i}(Juicer.Views.SubViewSlide)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.ChurnForm=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.namespace="churn",i.prototype.createModel=function(){return new JuicerBackbone.Model},i}(Juicer.Views.FormView)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.FeedForm=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.namespace="feed",i.prototype.createModel=function(){return new Juicer.Models.FeedValidation},i}(Juicer.Views.FormView)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.UserForm=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.namespace="user",i.prototype.createModel=function(){return new Juicer.Models.UserValidation},i}(Juicer.Views.FormView)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.UserSignupForm=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.namespace="user",i.prototype.createModel=function(){return new Juicer.Models.UserSignupValidation},i}(Juicer.Views.FormView)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.UserUpdateForm=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.namespace="user",i.prototype.createModel=function(){var e;return e={email:$("#user_email").val(),noPassword:$("#user_password").length<1},new Juicer.Models.UserUpdateValidation(e)},i}(Juicer.Views.FormView)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.Gallery=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.initialize=function(e){var t,i,r,n,s,o,a,l,c;if(i=(s=(c=e.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")),(t=null!=(t=JSON.parse(JSON.stringify(a.get("additional_photos_alt_text"))))?t:[]).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]),t[n])return r.attr("alt",t[n])},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.GdprOverlay=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.Home=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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(e){var t,i;return e.preventDefault(),(t=jQuery(e.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(),t.hide()}),error:function(){return console.log("Example did not load!")}})},i.prototype.reRenderFeed=function(e){var t,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(e.target).val(),t=this.map(r),this.model.set(t),this.renderFeed()},i.prototype.renderFeed=function(){return new Juicer.Views.Feed({el:".juicer-feed",model:this.model}).render()},i.prototype.hideFeed=function(e){return e.preventDefault(),this.$(".juicer-feed").html(""),jQuery(".style-picker").hide(),jQuery(e.target).hide(),this.$(".show").show().html("Show me an example feed!")},i.prototype.map=function(e){switch(e){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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.HomeSlider=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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(e){var t;if((t=$(e.target)).is(this.item)||(t=t.parents(this.item)),!t.hasClass("active"))return this.activate(t)},i.prototype.activate=function(e){var t,i;return i=e.data("slide"),this.$(".explainer-list-item.active").removeClass("active"),e.addClass("active"),t=this.$(".slider-images ."+i),this.$(".slider-images .active").removeClass("active"),t.addClass("active")},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.ImageHandler=function(i){function r(){return this.levelGridHeight=e(this.levelGridHeight,this),r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.initialize=function(e){return null==e&&(e={}),this.image=jQuery(e.target),this.feedItem=this.image.parents(".feed-item"),this.postId=this.feedItem.data("id"),this.theme=e.theme,this.feed=e.feed,this.el=e.el||null,this.testRefreshed=e.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 e;return this.logFallback("Converting to a text post."),(e=this.image.parents(".feed-item")).removeClass("image-post").removeClass("j-video").addClass("words"),e.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(e){var t;return t=this.feedItem.data("source"),console.log("Juicer: "+t+" post with id "+this.postId+" has a broken image. "+e)},r.prototype.levelGridHeight=function(){var e,t,i,r,n,s,o;if(o=this.el.querySelectorAll(".j-stack"),s={},e=0,o.forEach((function(t,i){var r,n;if(n=t.querySelectorAll("li.feed-item"),r=Array.from(t.querySelectorAll("li.feed-item")).reduce((function(e,t){return e+t.clientHeight}),0),s[i]=r,n.length>0&&0===e)return e=r/n.length})),t=Object.entries(s).reduce((function(e,t){return e[1]>t[1]?e:t}))[0],n=Object.entries(s).reduce((function(e,t){return e[1]<t[1]?e:t}))[0],r=0,i=function(){var a;if(t=Object.entries(s).reduce((function(e,t){return e[1]>t[1]?e:t}))[0],n=Object.entries(s).reduce((function(e,t){return e[1]<t[1]?e:t}))[0],s[t]-s[n]>1.5*e&&r<20)return a=o[t].querySelector("li.feed-item:last-child"),o[n].appendChild(a),s[t]-=a.clientHeight,s[n]+=a.clientHeight,r+=1,i()},s[t]-s[n]>1.5*e)return i()},r.reportInvalidImage=function(e,t,i){if(e)return jQuery.get(Juicer.Constants.BASE_URL+"/api/posts/"+e+"/images/invalidate",{type:t,source:i})},r}(JuicerBackbone.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.InfiniteScroll=function(i){function r(){return this.checkForPagination=e(this.checkForPagination,this),r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.el=function(){return this.model.hasHeight()?".juicer-feed":window},r.prototype.initialize=function(e){if(this.template=e.template||JST["partials/_moderated_posts"],this.container=e.container,this.isOnFeedsDashboard=e.isOnFeedsDashboard||!1,this.posts=this.model.get("posts"),this.pages=_u.min([e.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:(e=this,function(t,i){return e.appendPosts(i),e.trigger("paginate")}),error:function(){return console.log("Juicer Infinite Scroll Problem.")}});var e},r.prototype.appendPosts=function(e){var t,i;if(jQuery(".j-loading, .j-loading-wrapper").remove(),i=new Juicer.Models.Feed(e,{parse:!0}),this.posts=i.get("posts"),this.posts.length>0&&(t=jQuery(this.template({isOnFeedsDashboard:this.isOnFeedsDashboard,feed:i}))),this.model.isGrid()?this.container.gridalicious("append",t):this.container.append(t),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 e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.LazyLoad=function(i){function r(){return this.checkImages=e(this.checkImages,this),r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.el=window,r.prototype.initialize=function(e){return this.view=e.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])"),(e=this,function(t){if((t=jQuery(t)).offset().top<e.scrollPoint(e.$el)&&t.attr("src",t.data("lazy")),e.model.hasHeight()&&t.offset().top<e.scrollPoint(e.feed()))return t.attr("src",t.data("lazy"))}));var e},r.prototype.scrollPoint=function(e){return e.scrollTop()+e.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 e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.LivingWall=function(i){function r(){return this.rotatePost=e(this.rotatePost,this),this.imageHandler=e(this.imageHandler,this),this.brokenImageCallback=e(this.brokenImageCallback,this),r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.template=JST["partials/feeds/_wall"],r.prototype.customCss=JST["partials/_custom_styles"],r.prototype.initialize=function(e){return this.columns=e.columns,this.equal=e.equal,this.gutter=e.gutter,this.interval=e.interval,this.isOnFeedsDashboard=e.isOnFeedsDashboard,this.visible=e.visible,0===this.interval&&(this.interval=5e7),this.defaultColumns=this.columns,this.gutter||(this.gutter=0),this.setSizes(),jQuery(window).on("resize",_u.debounce((t=this,function(){return t.resize()}),300));var t},r.prototype.setSizes=function(){var e;return this.handleResponsiveColumns(),e=this.gutter*(2*this.columns-1),this.width=this.$el.width()-e,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 e,t,i,r;return e=8*this.columns,this.setLargeCount(),this.smallCount=e-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(e){var t;return(t=r.renderPost(e)).find("img").on("error",function(e){var t;return t=jQuery(e.target),this.imageHandler({target:t,feed:this.model,theme:"livingWall",testRefreshedImages:!0})}.bind(r)),t})),t=_u.sample(i,this.largeCount),_u.each(t,function(e){return function(t){return t.addClass("j-large"),e.setDimensions(t)}}(this)),_u.each(i,function(e){return function(t){return!t.hasClass("j-large")&&(t.addClass("j-small"),e.setDimensions(t))}}(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 e;return document.hidden||this.startInterval(),jQuery(document).on("show",(e=this,function(){return e.startInterval()})),jQuery(document).on("hide",function(e){return function(){return e.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 e,t,i;return!(this.retryTimes>9)&&(i=3*this.gutter,e=4*this.small,Math.floor(e)-i<=(t=this.$el.height())&&t<=Math.ceil(e)+i?void 0:(this.retryTimes++,this.close(),this.render()))},r.prototype.renderPost=function(e,t,i){var r,n;return null==t&&(t=null),null==i&&(i=null),r=jQuery(this.template({isOnFeedsDashboard:this.isOnFeedsDashboard,post:e})),(n=imagesLoaded(r[0])).on("done",(function(){var e;if(t&&t(r),(e=r.find("img")).width()>e.height())return e.addClass("landscape")})),n.on("fail",function(e){return this.brokenImageCallback(e)}.bind(this)),r},r.prototype.brokenImageCallback=function(e){var t;return t=$(e.images[0].img),this.imageHandler({target:t,feed:this.model,theme:"livingWall",testRefreshedImages:!0})},r.prototype.imageHandler=function(e){return new Juicer.Views.ImageHandler(e)},r.prototype.initialPosts=function(){var e;return e=this.visible-1,this.posts().slice(0,+e+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 e;return e=this.model.get("posts").models,e=_u.filter(e,(function(e){return"Twitter"!==e.sourceType()&&"YouTube"!==e.sourceType()}))},r.prototype.randomPost=function(){return jQuery(_u.sample(this.$(".feed-item").not(".j-sticky")))},r.prototype.setDimensions=function(e){return e.hasClass("j-small")?this.small:this.large, e.css({width:this.size(e),height:this.size(e)})},r.prototype.rotatePost=function(){var e,t,i;return t=this.randomPost(),(e=this.nextPost())&&e.stickied()&&(e=this.nextPost()),this.renderPost(e,(i=this,function(e){return i.cloneStyle(t,e)}))},r.prototype.cloneStyle=function(e,t){var i,r,n,s,o,a,l;return t.addClass(e.hasClass("j-small")?"j-small":"j-large"),this.setDimensions(t),r={top:l=this.size(e),left:l},i=this.merge(this.vectorMap(),r,"*"),n=a=e.position(),s=this.merge(a,i,"-"),o=this.merge(a,i,"+"),t.css(_u.extend(s,this.underCss)),e.css(this.underCss),e.before(t),window.setTimeout((function(){return e.css(o),t.css(n),window.setTimeout((function(){return e.remove(),t.css({zIndex:2})}),500)}),100)},r.prototype.size=function(e){return e.hasClass("j-small")?this.small:this.large},r.prototype.merge=function(e,t,i){var r;return null==i&&(i="+"),r={},_u.each(_u.keys(e),(function(n){return"+"===i?r[n]=e[n]+t[n]:"*"===i?r[n]=e[n]*t[n]:"-"===i?r[n]=e[n]-t[n]:void 0})),r},r.prototype.vectorMap=function(){var e,t;return t=_u.sample([-1,1]),{top:(e=_u.shuffle([t,0]))[0],left:e[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 e(){t.removeClass("visible"),t.find(".active").removeClass("active")}var t=jQuery(".mobileNavigation");jQuery(".js-mobileNavigationTrigger").click((function(){t.hasClass("visible")?e():t.addClass("visible")})),jQuery(".js-mobileNavigation_close").click((function(){e()})),jQuery(".mobileNavigation_entry.expandable .level-1").click((function(e){jQuery(e.currentTarget).parent(".mobileNavigation_entry.expandable").toggleClass("open")})),jQuery("a.mobileNavigation_entry_label").click((function(e){jQuery(e.currentTarget).addClass("active")})),jQuery("a.mobileNavigation_entry_label[href*='/#']").click((function(){e()}));var i=navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPhone/i)?"pagehide":"unload";jQuery(window).on(i,(function(){e(),t.children(".expandable").removeClass("open")}))})),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Moderated=function(i){function r(){return this.reRender=e(this.reRender,this),r.__super__.constructor.apply(this,arguments)}return t(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 e;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()})),(e=Math.floor(this.$el.outerWidth()/3))<200&&(e=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:e,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(e){return e.preventDefault(),this.$(".j-paginate").replaceWith(this.loading()),this.infiniteScroll.nextPage()},r.prototype.restorePost=function(e){return this.hidePost(e,"Approving...").restore()},r.prototype.rejectPost=function(e){return this.hidePost(e,"Rejecting...").reject()},r.prototype.deletePost=function(e){return this.hidePost(e,"Deleting...").hardDeletePost()},r.prototype.hidePost=function(e,t,i){var r,n;return null==i&&(i=!0),e.preventDefault(),null!=t&&$(e.target).html(t),n=$(e.target).parents(".actions"),r=this.fetchPost(n.data("id")),i&&n.parents(".feed-item").hide().remove(),r},r.prototype.fetchPost=function(e){return this.model.get("posts").findWhere({id:e})},r.prototype.filterFeed=function(e){var t,i;return e.preventDefault(),(t=jQuery(e.target)).attr("data-filter"),t.parents("ul"),this.model.filter=t.data("filter"),this.model.resetPage(),this.model.fetch({success:(i=this,function(){return i.reRender()})})},r.prototype.bulkModerate=function(e){var t,i;if(i=(t=null!=$(e.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(t,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 e;return e=this.baseMenuItems,e=this.allMenu.concat(e)},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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.Nav=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.events={"click .js-Header_burgerMenu":"toggleMenuOpen","click .sidebar-toggle":"toggleSidebarOpen","click .main-container":"toggleMenuClose"},i.prototype.toggleMenuOpen=function(){var e;return $(".main-container").removeClass("open-right open-right_mobile").toggleClass("open-left"),(e=$(".side-nav")).hasClass("opened")?e.removeClass("opened"):setTimeout((function(){return e.addClass("opened")}),200)},i.prototype.toggleMenuClose=function(){var e;if((e=$(".side-nav")).hasClass("opened"))return e.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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.NewFeed=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST.new_feed,i.prototype.initialize=function(){return this.socialAccounts=new Juicer.Collections.SocialAccounts,this.socialAccounts.fetch({success:(e=this,function(){return e.sourceForm=new Juicer.Views.SourceForm({el:e.el,socialAccounts:e.socialAccounts}),e.sourceForm.on("create",e.nextPage,e),e.render(),new Juicer.Views.OverlayReopener({model:e.feed,sourceForm:e.sourceForm}).render(e.el)}),error:function(){return alert("Something went wrong while fetching your connected social accounts")}});var e},i.prototype.render=function(){return this.$el.html(this.template())},i.prototype.nextPage=function(e){return window.location="/feeds/"+e.get("slug")},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Overlay=function(i){function r(){return this.handleKeypress=e(this.handleKeypress,this),r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.className="j-overlay",r.prototype.template=JST.overlay,r.prototype.initialize=function(e){return this.element=e.element||"body",this.content=e.content,this.width=e.width,this.close=!1!==e.close,this.ariaLabel=e.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(e){return e.preventDefault(),this.trigger("trigger:gallery",jQuery(e.target))},r.prototype.removeOverlay=function(e){var t;if(!((t=jQuery(e.target)).hasClass("j-overlay-content")||t.parents(".j-overlay-content").length>0))return this.removeView()},r.prototype.closeOverlay=function(e){return e.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(e){return e.preventDefault(),this.trigger("trigger:navigate",jQuery(e.target).data("post-id"))},r.prototype.openPopup=function(e){var t;return e.preventDefault(),t=jQuery(e.target),window.open(t.attr("href"),"pop","width=600, height=400, scrollbars=no")},r.prototype.handleKeypress=function(e){var t,i,r,n,s;switch(e.keyCode){case 37:this.$(".j-previous").click();break;case 39:this.$(".j-next").click();break;case 27:this.closeOverlay(e)}if(9===e.keyCode&&(i=jQuery(e.target)).parents("[role=dialog]").length&&(s=e.shiftKey,n=i.closest("[role=dialog]").find("input:visible,select:visible,button:visible,textarea:visible"),r=s?n.first():n.last(),(t=jQuery(r)).length))return!i.is(t)},r.prototype.handleBrokenImages=function(){var e;return this.$(".j-poster img").on("error",(e=this,function(t){return console.log("hiding broken profile image in overlay."),jQuery(t.target).hide(),Juicer.Views.ImageHandler.reportInvalidImage(e.postId,"poster","overlay")})),this.$("img.j-content-image").on("error",function(e){return function(t){var i,r,n;if(i=(n=jQuery(t.target)).parents(".image"),r=n.parents(".j-post-overlay[data-id]").data("id"),Juicer.Views.ImageHandler.reportInvalidImage(e.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(e){var t,i,r;return r=jQuery(e.target).parents(".instagram-wrapper, .twitter-wrapper, .video-wrapper"),i=jQuery(e.target).parents("video").first(),t=r.children(".j-video-fallback").first(),jQuery(e.target),t.length?(console.log("converting broken video in overlay to thumbnail"),i.hide(),t.children("img").each((function(e,t){if(!jQuery(t).attr("src")&&jQuery(t).attr("data-lazy"))return jQuery(t).attr("src",jQuery(t).attr("data-lazy"))})),t.show()):(console.log("hiding broken video in overlay"),r.hide())}))},r}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.OverlayReopener=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.storageKey="juicer_overlay_open",i.prototype.initialize=function(e){return null==e&&(e={}),this.sourceForm=e.sourceForm,this.sidebarView=e.sidebarView,this.reopened=!1},i.prototype.render=function(e){var t;return this.overlayShouldReopen()&&(null==this.sourceForm&&(this.sourceForm=new Juicer.Views.SourceForm({el:e,feed:this.model})),t=this.get(),this.sourceForm.openOverlay(t),t.htmx?(this.sourceForm.overlay.$el.find(".new-source-container").append("<a class='load-form-async' hx-get='/sources/new?show_success_message=true&source="+t.source+"&feed_id="+(t.feed_id||"")+"&type="+t.term_type+"&selected_type="+t.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 e;return e=window.localStorage.getItem(this.storageKey),JSON.parse(e)},i.prototype.set=function(e){var t;return t=JSON.stringify(e),window.localStorage.setItem(this.storageKey,t)},i.prototype.clear=function(){return window.localStorage.setItem(this.storageKey,null)},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.Payment=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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 e,t,i,r,n;return r=this.$("#year"),i=$("[data-price]"),t=$(".simple-plan-monthly"),e=i.data("price"),r.is(":checked")?($(".js-discount-applied").length>0?0:.1,n=parseFloat(i.data("yearly-price")).toFixed(2),i.html("$"+n),t.html("/ yr"),$(".simple-plan-discounted-price .yearly").removeClass("hide"),$(".simple-plan-discounted-price .monthly").addClass("hide"),$(".year-hidden").addClass("hide")):(i.html("$"+e),t.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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.Plans=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST.plan_change,i.prototype.initialize=function(){var e,t;return this.queryParams=new URLSearchParams(window.location.search),(e=this.queryParams.get("plan"))&&$("button[data-plan='"+e+"']").click(),$(window).on("load",(t=this,function(){return t.changePrices()}))},i.prototype.events={"click [data-plan]":"openNewPlanOverlay","change #pricing-switch":"changePrices"},i.prototype.openNewPlanOverlay=function(e){var t,i,r;return e.preventDefault(),t=$(e.target),i=$("#pricing-switch").prop("checked")||this.queryParams.get("yearly"),this.model=new Juicer.Models.Plan,this.model.fetch({data:{plan:t.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:t.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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.PostEdit=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.template=JST.post_edit,i.prototype.message=JST["partials/_message"],i.prototype.className="j-overlay",i.prototype.initialize=function(e){return this.setPost(e)},i.prototype.setPost=function(e){var t;return t=this.model.get("posts"),this.post=t.get(e.id)},i.prototype.render=function(){var e,t;return t=this,e=function(e,i){return i.xhr.response.length>0?jQuery("body").append(i.xhr.response):(t.overlay=new Juicer.Views.Overlay({content:t.template({post:t.post,feed:t.model}),width:"50%",el:t.el}),t.overlay.render())},htmx.ajax("GET","/paywall?source=feed_edit_post&feed_id="+this.model.get("id"),{target:"body",swap:"beforeend",handler:e})},i.prototype.events=function(){return{"input textarea":"updatePreview","submit form":"savePost","change .datetime-external-created-at":"updateTimestamp"}},i.prototype.updatePreview=function(e){return this.post.set("edit",$(e.target).val()),this.$(".message-container").html(this.message({post:this.post}))},i.prototype.updateTimestamp=function(e){return this.post.set("external_created_at",$(e.target).val())},i.prototype.savePost=function(e){return e.preventDefault(),this.post.save(null,{success:(t=this,function(e,i){return t.overlay.removeView(),t.model.set(i,{parse:!0}),t.model.trigger("action")}),error:function(){return alert("Something went wrong. Please try again.")}});var t},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.PostOverlay=function(i){function r(){return this.cycleGallery=e(this.cycleGallery,this),this.navigateOverlay=e(this.navigateOverlay,this),r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.template=JST.post_overlay,r.prototype.initialize=function(e){return this.model=e.model,this.setPost(e.target)},r.prototype.triggers=function(){return{"click a.next":"navigateOverlay","click a.previous":"navigateOverlay"}},r.prototype.setPost=function(e){var t;return t=(e=e.is("li.feed-item")?e:e.parents("li.feed-item")).data("id"),this.assignPosts(t)},r.prototype.assignPosts=function(e){var t,i,r,n;if(r=this.model.get("posts"),this.post=r.get(e),i=(t=r.indexOf(this.post))+1<r.length?t+1:0,n=t-1>=0?t-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(e){return this.overlay.removeView(),this.assignPosts(e),this.render()},r.prototype.cycleGallery=function(e){return new Juicer.Views.Gallery({target:e,el:this.el,model:this.model})},r}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.PosterImageHandler=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.initialize=function(e){return null==e&&(e={}),this.image=$(e.target),this.feedItem=this.image.parents(".feed-item"),this.postId=this.feedItem.data("id"),this.theme=e.theme,this.feed=e.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(e){var t;return t=this.feedItem.data("source"),console.log("Juicer: "+t+" post with id "+this.postId+" has a broken poster image. "+e)},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.SideNav=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.events={"click li#collapseable":"toggleOtherFeeds"},i.prototype.toggleOtherFeeds=function(e){var t,i;return e.preventDefault(),(t=(i=$(e.target)).next()).is(":visible")?(t.slideUp(),i.removeClass("selected")):(t.slideDown(),i.addClass("selected"))},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Sidebar=function(i){function r(){return this.openSourceFormFromSources=e(this.openSourceFormFromSources,this),this.closeSubViewSlide=e(this.closeSubViewSlide,this),this.closeSubView=e(this.closeSubView,this),this.openSubView=e(this.openSubView,this),this.openNewSource=e(this.openNewSource,this),this.handleSkipOpeningSubView=e(this.handleSkipOpeningSubView,this),this.renderSidebar=e(this.renderSidebar,this),this.reRenderCss=e(this.reRenderCss,this),this.reRender=e(this.reRender,this),this.render=e(this.render,this),r.__super__.constructor.apply(this,arguments)}return t(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(e){var t,i;return this.renderedFromModerationUrl=e.renderedFromModerationUrl,this.renderedFromModerationUrl?this.model=new Juicer.Models.Moderated({slug:e.slug}):this.model=new Juicer.Models.Feed({isOnFeedsDashboard:!0,slug:e.slug,starting_at:e.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(e){return function(){return e.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),t=new URLSearchParams(window.location.search),this.renderAddSourceModalOnLoad="dashboard_add_source"===t.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(e){return null==e&&(e=!1),1===this.model.get("posts").current_page&&(this.renderedFromModerationUrl&&e?($(".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(e){return e.stopPropagation()},r.prototype.handleWarningClick=function(e){return e.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(e){var t,i;return i=this,t=function(t,r){return r.xhr.response.length>0?jQuery("body").append(r.xhr.response):(i.overlay=new Juicer.Views.Overlay({content:i.newSource({showFeedName:null!=e?e.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:t})},r.prototype.openSubView=function(e){var t,i,r,n,s;return"cta"===(t=$(e.currentTarget)).prop("id")?(s=this,i=function(e,t){var r;return t.xhr.response.length>0?(jQuery("body").append(t.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"),t.addClass("active"),"social_accounts"!==t.prop("id")?(e.preventDefault(),n=t.prop("id"),r=function(e){return function(){var i;return i=e.viewMap[n],e.renderSubView(i,t)}}(this),"moderate"===n?(i=function(e,t){return t.xhr.response.length>0?jQuery("body").append(t.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(e,t){if((this.subView&&this.subView.$target.prop("id"))!==t.prop("id"))return this.subView&&this.subView.close(),this.subView=new e({feed:this.model,$target:t,sidebarView:this,feedView:this.feed}),this.subView.on("openSourceForm",this.openSourceFormFromSources),this.subView.render()},r.prototype.openSourceFormFromSources=function(e){return this.sourcesView=e,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(e){return e.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(e){var t;return e.preventDefault(),t=$(e.target).serializeHash(),this.model.set(t),this.model.save(null,{success:function(e,t){return window.location="/feeds/"+t.slug}})},r.prototype.toggleSlugWarning=function(){return this.$(".slug-warning").toggle()},r.prototype.handleEmbedInfoPopover=function(e){var t;return e.stopPropagation(),Array.from(document.getElementsByClassName("embed-popover")).forEach((function(e){return e.remove()})),t={url:"/tour",type:"PUT",data:$.param({tour:{tour_show_embed_info_block:!1}})},(this.sync||JuicerBackbone.sync).call(this,null,this,t)},r.prototype.handleEmbedLayoutPopover=function(){var e;return e={url:"/tour",type:"PUT",data:$.param({tour:{tour_show_embed_layout:!1}})},(this.sync||JuicerBackbone.sync).call(this,null,this,e)},r.prototype.handlePopoverHide=function(e){var t,i,r;return e.preventDefault(),e.stopPropagation(),t=e.target.dataset.key,r=e.target.parentNode.parentNode,i=r.parentNode,r.remove(),setTimeout((function(){return r.classList.add("hide-popover"),i.appendChild(r)}),200),localStorage.setItem("hide"+t+"Popover",!0)},r}(JuicerBackbone.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Slider=function(i){function r(){return this.posterImageHandler=e(this.posterImageHandler,this),this.imageHandler=e(this.imageHandler,this),this.setFeedItemHeight=e(this.setFeedItemHeight,this),this.beforeChange=e(this.beforeChange,this),r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.template=JST.feed,r.prototype.initialize=function(e){return this.columns=e.columns,this.interval=e.interval,this.isOnFeedsDashboard=e.isOnFeedsDashboard,this.slidesToShow=this.columns},r.prototype.render=function(){var e ;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",(e=this,function(){return e.trigger("slide")})),window.imagesLoaded(this.$el,this.setFeedItemHeight),this.$el.hasClass("j-ie")&&this.setBackgroundImages(),jQuery(window).on("resize",_u.debounce(function(e){return function(){return e.setFeedItemHeight()}}(this),300)),this},r.prototype.beforeChange=function(e,t,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,(e=this,function(t){return{breakpoint:t[0],settings:{slidesToShow:_u.min([t[1],e.slidesToShow]),slidesToScroll:_u.min([t[1],e.slidesToShow])}}}));var e},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(e){var t;return(t=jQuery(e)).css("background-image","url('"+t.data("image")+"')")}))},r.prototype.setFeedItemHeight=function(e){return _u.each(this.$(".j-image img"),(function(e){if(e.width>e.height)return jQuery(e).addClass("j-landscape")})),this.$(".j-image img, li.words, .slick-track").css({height:this.model.height()}),!this.model.get("lazy_load")&&(null!=e&&(_u.each(e.images,(t=this,function(e){var i;if(!e.isLoaded)return(i=$(e.img)).parents(".j-poster").length>0?t.posterImageHandler({target:i,feed:t.model,theme:"slider"}):t.imageHandler({target:i,feed:t.model,theme:"slider",testRefreshedImages:!0})})),$(".words > .j-text").each((function(){return $(this).css("display","none"),$(this).height(),$(this).css("display","")}))));var t},r.prototype.imageHandler=function(e){return new Juicer.Views.ImageHandler(e)},r.prototype.posterImageHandler=function(e){return new Juicer.Views.PosterImageHandler(e)},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 e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.SourceForm=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),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(e){var t;return this.feed=e.feed,(new Juicer.Models.Plan).fetch({success:(t=this,function(e){return t.plan=e,t.currentPlanName=e.get("plan"),t.isTrial=e.get("trial")})}),this.socialAccounts=e.socialAccounts?e.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 e,t,i,r,n;if(r=(i=(e=$('#source_term[data-filter_invalid_instagram_hashtag_characters="true"]'))[0]).selectionStart,t=/[# \/]/gi,n=e.val(),t.test(n))return e.val(n.replace(t,"")),r--,i.setSelectionRange(r,r)},i.prototype.handleOverlay=function(e,t){var i,r;return null==t&&(t="username"),(i=$(e.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:t,source:r}):(alert("Sorry, please upgrade to a paid plan to create a "+r+" source."),!1)},i.prototype.openOverlay=function(e){return this.type=e.type,this.source=e.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(e){return this.handleOverlay(e,"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 e;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),e=htmx.find(".load-form-async"))return htmx.process(".new-source-container"),htmx.trigger(e,"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 e;return e=this.socialAccounts.socialAccount("facebook"),"Facebook"===this.source&&e&&_u.contains(["username","groups","reviews"],this.type)&&this.rendered!==this.type},i.prototype.redrawOverlay=function(e){return e.preventDefault(),this.type=$(e.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(e){return null==e&&(e="pages"),this.results=new Juicer.Collections.FacebookResults({type:e}),this.results.fetch({success:(t=this,function(){return t.rendered=t.type,t.renderOverlay()}),error:function(e){return function(){if(e.results.reset(),e.rendered=e.type,e.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 t},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(e){return e.set({instagramBusinessAccounts:[]})}))},i.prototype.fetchInstagramHashtagStatus=function(){var e;if(this.socialAccounts.socialAccount("facebook"))return this.results=new Juicer.Collections.InstagramBusinessAccounts,this.results.fetch({success:(e=this,function(t){return 0===t.length&&e.setMissingInstagramBusinessAccounts(),e.rendered="hashtag",e.renderOverlay()}),error:function(e){return function(){return e.setMissingInstagramBusinessAccounts(),e.rendered="hashtag",e.renderOverlay()}}(this)})},i.prototype.createSource=function(e){var t,i;if(e.preventDefault(),!this.submitting)return this.submitting=!0,(t=$(e.target)).find("input[type=submit]").hide(),t.append("<div class='j-loading'>Loading...</div>"),this.timeout=setTimeout((i=this,function(){return t.append(i.pleaseWait())}),5e3),t.find("ul.errors").remove(),window.hj&&window.hj("event","source_creation_initated"),this.submitSource(t.serializeHash())},i.prototype.submitSource=function(e){return this.model.set(e),this.model.save(null,{success:(t=this,function(e,i){if(t.submitting=!1,t.feedObject().set(i,{parse:!0}),t.feed.trigger("action"),t.timeout&&window.clearInterval(t.timeout),t.trigger("create",t.feed),juicerUtil.showFlashMessage(i.juicer_flash_message),"htmx"===t.feed.get("version"))return window.juicerUtil.updateSidebarSourcesMenu()}),error:function(e){return function(t,i){return e.submitting=!1,e.timeout&&window.clearInterval(e.timeout),new Juicer.Views.Errors({el:e.$("form"),errors:i,source:Juicer.Constants.PROVIDER_TO_SOURCE_MAP[e.model.findProvider()]||e.source})}}(this)});var t},i.prototype.feedObject=function(){return this.feed||(this.feed=new Juicer.Models.Feed)},i.prototype.submitSearchResult=function(e){var t;return e.preventDefault(),t=$(e.target),this.$(".result-term").val(t.data("id")),this.$(".result-name").val(t.data("name")),t.parents("form").trigger("submit")},i.prototype.setOverlayStorage=function(e){return e.preventDefault(),(new Juicer.Views.OverlayReopener).set({type:this.type,source:this.source}),window.location=jQuery(e.target).attr("href")},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,i){function r(){this.constructor=e}for(var n in i)t.call(i,n)&&(e[n]=i[n]);return r.prototype=i.prototype,e.prototype=new r,e.__super__=i.prototype,e},t={}.hasOwnProperty;Juicer.Views.UserAccount=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.initialize=function(){return this.toggleDigest()},i.prototype.events={"change input[type=checkbox]":"toggleDigest"},i.prototype.toggleDigest=function(){var e,t;return t=this.$("#user_digest"),e=this.$(".digest-label"),this.$("input[type=checkbox]").is(":checked")?(t.removeAttr("disabled"),e.removeClass("disabled")):(t.attr("disabled","disabled"),e.addClass("disabled"),t.val("Never"))},i}(JuicerBackbone.View)}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=function(e,t){function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;Juicer.Views.Widget=function(i){function r(){return this.addPost=e(this.addPost,this),this.showNextPost=e(this.showNextPost,this),this.setPosts=e(this.setPosts,this),r.__super__.constructor.apply(this,arguments)}return t(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(e){return this.interval=e.interval,this.isOnFeedsDashboard=e.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"];