1var _wAMD;!function(){if(!_wAMD||!_wAMD.requirejs){_wAMD?e=_wAMD:_wAMD={};var t,e,n;!function(i){function o(t,e){return w.call(t,e)}function r(t,e){var n,i,o,r,s,a,l,u,c,d,h=e&&e.split("/"),f=y.map,p=f&&f["*"]||{};if(t&&"."===t.charAt(0))if(e){for(h=h.slice(0,h.length-1),t=h.concat(t.split("/")),u=0;u<t.length;u+=1)if(d=t[u],"."===d)t.splice(u,1),u-=1;else if(".."===d){if(1===u&&(".."===t[2]||".."===t[0]))break;u>0&&(t.splice(u-1,2),u-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((h||p)&&f){for(n=t.split("/"),u=n.length;u>0;u-=1){if(i=n.slice(0,u).join("/"),h)for(c=h.length;c>0;c-=1)if(o=f[h.slice(0,c).join("/")],o&&(o=o[i])){r=o,s=u;break}if(r)break;!a&&p&&p[i]&&(a=p[i],l=u)}!r&&a&&(r=a,s=l),r&&(n.splice(0,s,r),t=n.join("/"))}return t}function s(t,e){return function(){return f.apply(i,T.call(arguments,0).concat([t,e]))}}function a(t){return function(e){return r(e,t)}}function l(t){return function(e){g[t]=e}}function u(t){if(o(v,t)){var e=v[t];delete v[t],b[t]=!0,h.apply(i,e)}if(!o(g,t)&&!o(b,t))throw new Error("No "+t);return g[t]}function c(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function d(t){return function(){return y&&y.config&&y.config[t]||{}}}var h,f,p,m,g={},v={},y={},b={},w=Object.prototype.hasOwnProperty,T=[].slice;p=function(t,e){var n,i=c(t),o=i[0];return t=i[1],o&&(o=r(o,e),n=u(o)),o?t=n&&n.normalize?n.normalize(t,a(e)):r(t,e):(t=r(t,e),i=c(t),o=i[0],t=i[1],o&&(n=u(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:n}},m={require:function(t){return s(t)},exports:function(t){var e=g[t];return"undefined"!=typeof e?e:g[t]={}},module:function(t){return{id:t,uri:"",exports:g[t],config:d(t)}}},h=function(t,e,n,r){var a,c,d,h,f,y,w=[];if(r=r||t,"function"==typeof n){for(e=!e.length&&n.length?["require","exports","module"]:e,f=0;f<e.length;f+=1)if(h=p(e[f],r),c=h.f,"require"===c)w[f]=m.require(t);else if("exports"===c)w[f]=m.exports(t),y=!0;else if("module"===c)a=w[f]=m.module(t);else if(o(g,c)||o(v,c)||o(b,c))w[f]=u(c);else{if(!h.p)throw new Error(t+" missing "+c);h.p.load(h.n,s(r,!0),l(c),{}),w[f]=g[c]}d=n.apply(g[t],w),t&&(a&&a.exports!==i&&a.exports!==g[t]?g[t]=a.exports:d===i&&y||(g[t]=d))}else t&&(g[t]=n)},t=e=f=function(t,e,n,o,r){return"string"==typeof t?m[t]?m[t](e):u(p(t,e).f):(t.splice||(y=t,e.splice?(t=e,e=n,n=null):t=i),e=e||function(){},"function"==typeof n&&(n=o,o=r),o?h(i,t,e,n):setTimeout(function(){h(i,t,e,n)},4),f)},f.config=function(t){return y=t,y.deps&&f(y.deps,y.callback),f},n=function(t,e,n){e.splice||(n=e,e=[]),o(g,t)||o(v,t)||(v[t]=[t,e,n])},n.amd={jQuery:!0}}(),_wAMD.requirejs=t,_wAMD.require=e,_wAMD.define=n}}(),_wAMD.define("vendor/almond",function(){}),function(){function t(t,e){r>0&&0>=s?t():e?a.unshift(t):a.push(t)}function e(){var t=Array.prototype.slice.apply(arguments);if(1===t.length&&"string"==typeof t[0]);else{var e;"function"==typeof t[t.length-1]&&(e=t.pop()),r++,s++,t.push(function(){var t;if(e&&(t=e.apply(this,arguments)),s--,r>0&&0>=s)for(;a.length;)a.shift()();return t})}return f.apply(this,t)}function n(){window.define=l,window.require=u,window.requirejs=c}function i(){Weebly.jQuery.noConflict(!0),window.jQuery=window.jQuery||Weebly.jQuery}function o(){n(),i()}_W=Weebly=window.Weebly||{},_W.utl=_W.utl||function(t){return _W.failedTls=_W.failedTls||[],_W.failedTls.push(t),t},_W.ftl=_W.ftl||function(t){return _W.failedFtls=_W.failedFtls||[],_W.failedFtls.push(t),""},_W.utl=_W.utl||function(t){return _W.failedUtls=_W.failedUtls||[],_W.failedUtls.push(t),""},_W.stl=_W.stl||function(t){return _W.failedStls=_W.failedStls||[],_W.failedStls.push(t),""};var r=0,s=0,a=[];Weebly.ready=t;var l=window.define,u=window.require,c=window.requirejs,d=window._wAMD||{},h=d.define||window.define,f=d.require||window.require,p=d.requirejs||window.requirejs;window.define=d.define=h,window.require=d.require=e,window.requirejs=d.requirejs=p,Weebly.relinquishAMD=n,Weebly.jQuery=jQuery,Weebly.relinquishJQuery=i;var m=jQuery.fn.ready;jQuery.fn.ready=function(){var e=this,n=arguments;return t(function(){m.apply(e,n)}),e},Weebly.relinquish=o,Weebly.setCookie=function(t,e,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var o="expires="+i.toUTCString();document.cookie=t+"="+e+"; "+o},Weebly.clearCookie=function(t){setCookie(t,"",-1)},Weebly.getCookie=function(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}}(),window.console||(window.console={}),window.console.log||(window.console.log=function(){},window.console.warn=window.console.log,window.console.info=window.console.log,window.console.error=window.console.log),_wAMD.define("init",function(){}),function(){function t(t){function e(e,n,i,o,r,s){for(;r>=0&&s>r;r+=t){var a=o?o[r]:r;i=n(i,e[a],a,e)}return i}return function(n,i,o,r){i=b(i,r,4);var s=!C(n)&&y.keys(n),a=(s||n).length,l=t>0?0:a-1;return arguments.length<3&&(o=n[s?s[l]:l],l+=t),e(n,i,o,s,l,a)}}function e(t){return function(e,n,i){n=w(n,i);for(var o=P(e),r=t>0?0:o-1;r>=0&&o>r;r+=t)if(n(e[r],r,e))return r;return-1}}function n(t,e,n){return function(i,o,r){var s=0,a=P(i);if("number"==typeof r)t>0?s=r>=0?r:Math.max(r+a,s):a=r>=0?Math.min(r+1,a):r+a+1;else if(n&&r&&a)return r=n(i,o),i[r]===o?r:-1;if(o!==o)return r=e(c.call(i,s,a),y.isNaN),r>=0?r+s:-1;for(r=t>0?s:a-1;r>=0&&a>r;r+=t)if(i[r]===o)return r;return-1}}function i(t,e){var n=D.length,i=t.constructor,o=y.isFunction(i)&&i.prototype||a,r="constructor";for(y.has(t,r)&&!y.contains(e,r)&&e.push(r);n--;)r=D[n],r in t&&t[r]!==o[r]&&!y.contains(e,r)&&e.push(r)}var o=this,r=o._,s=Array.prototype,a=Object.prototype,l=Function.prototype,u=s.push,c=s.slice,d=a.toString,h=a.hasOwnProperty,f=Array.isArray,p=Object.keys,m=l.bind,g=Object.create,v=function(){},y=function(t){return t instanceof y?t:this instanceof y?void(this._wrapped=t):new y(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=y),exports._=y):o._=y,y.VERSION="1.8.3";var b=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)};case 4:return function(n,i,o,r){return t.call(e,n,i,o,r)}}return function(){return t.apply(e,arguments)}},w=function(t,e,n){return null==t?y.identity:y.isFunction(t)?b(t,e,n):y.isObject(t)?y.matcher(t):y.property(t)};y.iteratee=function(t,e){return w(t,e,1/0)};var T=function(t,e){return function(n){var i=arguments.length;if(2>i||null==n)return n;for(var o=1;i>o;o++)for(var r=arguments[o],s=t(r),a=s.length,l=0;a>l;l++){var u=s[l];e&&void 0!==n[u]||(n[u]=r[u])}return n}},_=function(t){if(!y.isObject(t))return{};if(g)return g(t);v.prototype=t;var e=new v;return v.prototype=null,e},S=function(t){return function(e){return null==e?void 0:e[t]}},M=Math.pow(2,53)-1,P=S("length"),C=function(t){var e=P(t);return"number"==typeof e&&e>=0&&M>=e};y.each=y.forEach=function(t,e,n){e=b(e,n);var i,o;if(C(t))for(i=0,o=t.length;o>i;i++)e(t[i],i,t);else{var r=y.keys(t);for(i=0,o=r.length;o>i;i++)e(t[r[i]],r[i],t)}return t},y.map=y.collect=function(t,e,n){e=w(e,n);for(var i=!C(t)&&y.keys(t),o=(i||t).length,r=Array(o),s=0;o>s;s++){var a=i?i[s]:s;r[s]=e(t[a],a,t)}return r},y.reduce=y.foldl=y.inject=t(1),y.reduceRight=y.foldr=t(-1),y.find=y.detect=function(t,e,n){var i;return i=C(t)?y.findIndex(t,e,n):y.findKey(t,e,n),void 0!==i&&-1!==i?t[i]:void 0},y.filter=y.select=function(t,e,n){var i=[];return e=w(e,n),y.each(t,function(t,n,o){e(t,n,o)&&i.push(t)}),i},y.reject=function(t,e,n){return y.filter(t,y.negate(w(e)),n)},y.every=y.all=function(t,e,n){e=w(e,n);for(var i=!C(t)&&y.keys(t),o=(i||t).length,r=0;o>r;r++){var s=i?i[r]:r;if(!e(t[s],s,t))return!1}return!0},y.some=y.any=function(t,e,n){e=w(e,n);for(var i=!C(t)&&y.keys(t),o=(i||t).length,r=0;o>r;r++){var s=i?i[r]:r;if(e(t[s],s,t))return!0}return!1},y.contains=y.includes=y.include=function(t,e,n,i){return C(t)||(t=y.values(t)),("number"!=typeof n||i)&&(n=0),y.indexOf(t,e,n)>=0},y.invoke=function(t,e){var n=c.call(arguments,2),i=y.isFunction(e);return y.map(t,function(t){var o=i?e:t[e];return null==o?o:o.apply(t,n)})},y.pluck=function(t,e){return y.map(t,y.property(e))},y.where=function(t,e){return y.filter(t,y.matcher(e))},y.findWhere=function(t,e){return y.find(t,y.matcher(e))},y.max=function(t,e,n){var i,o,r=-(1/0),s=-(1/0);if(null==e&&null!=t){t=C(t)?t:y.values(t);for(var a=0,l=t.length;l>a;a++)i=t[a],i>r&&(r=i)}else e=w(e,n),y.each(t,function(t,n,i){o=e(t,n,i),(o>s||o===-(1/0)&&r===-(1/0))&&(r=t,s=o)});return r},y.min=function(t,e,n){var i,o,r=1/0,s=1/0;if(null==e&&null!=t){t=C(t)?t:y.values(t);for(var a=0,l=t.length;l>a;a++)i=t[a],r>i&&(r=i)}else e=w(e,n),y.each(t,function(t,n,i){o=e(t,n,i),(s>o||o===1/0&&r===1/0)&&(r=t,s=o)});return r},y.shuffle=function(t){for(var e,n=C(t)?t:y.values(t),i=n.length,o=Array(i),r=0;i>r;r++)e=y.random(0,r),e!==r&&(o[r]=o[e]),o[e]=n[r];return o},y.sample=function(t,e,n){return null==e||n?(C(t)||(t=y.values(t)),t[y.random(t.length-1)]):y.shuffle(t).slice(0,Math.max(0,e))}
vendor: 3,366 bytes, line 1
1,y.sortBy=function(t,e,n){return e=w(e,n),y.pluck(y.map(t,function(t,n,i){return{value:t,index:n,criteria:e(t,n,i)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return t.index-e.index}),"value")};var A=function(t){return function(e,n,i){var o={};return n=w(n,i),y.each(e,function(i,r){var s=n(i,r,e);t(o,i,s)}),o}};y.groupBy=A(function(t,e,n){y.has(t,n)?t[n].push(e):t[n]=[e]}),y.indexBy=A(function(t,e,n){t[n]=e}),y.countBy=A(function(t,e,n){y.has(t,n)?t[n]++:t[n]=1}),y.toArray=function(t){return t?y.isArray(t)?c.call(t):C(t)?y.map(t,y.identity):y.values(t):[]},y.size=function(t){return null==t?0:C(t)?t.length:y.keys(t).length},y.partition=function(t,e,n){e=w(e,n);var i=[],o=[];return y.each(t,function(t,n,r){(e(t,n,r)?i:o).push(t)}),[i,o]},y.first=y.head=y.take=function(t,e,n){return null!=t?null==e||n?t[0]:y.initial(t,t.length-e):void 0},y.initial=function(t,e,n){return c.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},y.last=function(t,e,n){return null!=t?null==e||n?t[t.length-1]:y.rest(t,Math.max(0,t.length-e)):void 0},y.rest=y.tail=y.drop=function(t,e,n){return c.call(t,null==e||n?1:e)},y.compact=function(t){return y.filter(t,y.identity)};var x=function(t,e,n,i){for(var o=[],r=0,s=i||0,a=P(t);a>s;s++){var l=t[s];if(C(l)&&(y.isArray(l)||y.isArguments(l))){e||(l=x(l,e,n));var u=0,c=l.length;for(o.length+=c;c>u;)o[r++]=l[u++]}else n||(o[r++]=l)}return o};y.flatten=function(t,e){return x(t,e,!1)},y.without=function(t){return y.difference(t,c.call(arguments,1))},y.uniq=y.unique=function(t,e,n,i){y.isBoolean(e)||(i=n,n=e,e=!1),null!=n&&(n=w(n,i));for(var o=[],r=[],s=0,a=P(t);a>s;s++){var l=t[s],u=n?n(l,s,t):l;e?(s&&r===u||o.push(l),r=u):n?y.contains(r,u)||(r.push(u),o.push(l)):y.contains(o,l)||o.push(l)}return o},y.union=function(){return y.uniq(x(arguments,!0,!0))},y.intersection=function(t){for(var e=[],n=arguments.length,i=0,o=P(t);o>i;i++){var r=t[i];if(!y.contains(e,r)){for(var s=1;n>s&&y.contains(arguments[s],r);s++);s===n&&e.push(r)}}return e},y.difference=function(t){var e=x(arguments,!0,!0,1);return y.filter(t,function(t){return!y.contains(e,t)})},y.zip=function(){return y.unzip(arguments)},y.unzip=function(t){for(var e=t&&y.max(t,P).length||0,n=Array(e),i=0;e>i;i++)n[i]=y.pluck(t,i);return n},y.object=function(t,e){for(var n={},i=0,o=P(t);o>i;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},y.findIndex=e(1),y.findLastIndex=e(-1),y.sortedIndex=function(t,e,n,i){n=w(n,i,1);for(var o=n(e),r=0,s=P(t);s>r;){var a=Math.floor((r+s)/2);n(t[a])<o?r=a+1:s=a}return r},y.indexOf=n(1,y.findIndex,y.sortedIndex),y.lastIndexOf=n(-1,y.findLastIndex),y.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var i=Math.max(Math.ceil((e-t)/n),0),o=Array(i),r=0;i>r;r++,t+=n)o[r]=t;return o};var k=function(t,e,n,i,o){if(!(i instanceof e))return t.apply(n,o);var r=_(t.prototype),s=t.apply(r,o);return y.isObject(s)?s:r};y.bind=function(t,e){if(m&&t.bind===m)return m.apply(t,c.call(arguments,1));if(!y.isFunction(t))throw new TypeError("Bind must be called on a function");var n=c.call(arguments,2),i=function(){return k(t,i,e,this,n.concat(c.call(arguments)))};return i},y.partial=function(t){var e=c.call(arguments,1),n=function(){for(var i=0,o=e.length,r=Array(o),s=0;o>s;s++)r[s]=e[s]===y?arguments[i++]:e[s];for(;i<arguments.length;)r.push(arguments[i++]);
1return k(t,n,this,this,r)};return n},y.bindAll=function(t){var e,n,i=arguments.length;if(1>=i)throw new Error("bindAll must be passed function names");for(e=1;i>e;e++)n=arguments[e],t[n]=y.bind(t[n],t);return t},y.memoize=function(t,e){var n=function(i){var o=n.cache,r=""+(e?e.apply(this,arguments):i);return y.has(o,r)||(o[r]=t.apply(this,arguments)),o[r]};return n.cache={},n},y.delay=function(t,e){var n=c.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},y.defer=y.partial(y.delay,y,1),y.throttle=function(t,e,n){var i,o,r,s=null,a=0;n||(n={});var l=function(){a=n.leading===!1?0:y.now(),s=null,r=t.apply(i,o),s||(i=o=null)};return function(){var u=y.now();a||n.leading!==!1||(a=u);var c=e-(u-a);return i=this,o=arguments,0>=c||c>e?(s&&(clearTimeout(s),s=null),a=u,r=t.apply(i,o),s||(i=o=null)):s||n.trailing===!1||(s=setTimeout(l,c)),r}},y.debounce=function(t,e,n){var i,o,r,s,a,l=function(){var u=y.now()-s;e>u&&u>=0?i=setTimeout(l,e-u):(i=null,n||(a=t.apply(r,o),i||(r=o=null)))};return function(){r=this,o=arguments,s=y.now();var u=n&&!i;return i||(i=setTimeout(l,e)),u&&(a=t.apply(r,o),r=o=null),a}},y.wrap=function(t,e){return y.partial(e,t)},y.negate=function(t){return function(){return!t.apply(this,arguments)}},y.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,i=t[e].apply(this,arguments);n--;)i=t[n].call(this,i);return i}},y.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},y.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),1>=t&&(e=null),n}},y.once=y.partial(y.before,2);var E=!{toString:null}.propertyIsEnumerable("toString"),D=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];y.keys=function(t){if(!y.isObject(t))return[];if(p)return p(t);var e=[];for(var n in t)y.has(t,n)&&e.push(n);return E&&i(t,e),e},y.allKeys=function(t){if(!y.isObject(t))return[];var e=[];for(var n in t)e.push(n);return E&&i(t,e),e},y.values=function(t){for(var e=y.keys(t),n=e.length,i=Array(n),o=0;n>o;o++)i[o]=t[e[o]];return i},y.mapObject=function(t,e,n){e=w(e,n);for(var i,o=y.keys(t),r=o.length,s={},a=0;r>a;a++)i=o[a],s[i]=e(t[i],i,t);return s},y.pairs=function(t){for(var e=y.keys(t),n=e.length,i=Array(n),o=0;n>o;o++)i[o]=[e[o],t[e[o]]];return i},y.invert=function(t){for(var e={},n=y.keys(t),i=0,o=n.length;o>i;i++)e[t[n[i]]]=n[i];return e},y.functions=y.methods=function(t){var e=[];for(var n in t)y.isFunction(t[n])&&e.push(n);return e.sort()},y.extend=T(y.allKeys),y.extendOwn=y.assign=T(y.keys),y.findKey=function(t,e,n){e=w(e,n);for(var i,o=y.keys(t),r=0,s=o.length;s>r;r++)if(i=o[r],e(t[i],i,t))return i},y.pick=function(t,e,n){var i,o,r={},s=t;if(null==s)return r;y.isFunction(e)?(o=y.allKeys(s),i=b(e,n)):(o=x(arguments,!1,!1,1),i=function(t,e,n){return e in n},s=Object(s));for(var a=0,l=o.length;l>a;a++){var u=o[a],c=s[u];i(c,u,s)&&(r[u]=c)}return r},y.omit=function(t,e,n){if(y.isFunction(e))e=y.negate(e);else{var i=y.map(x(arguments,!1,!1,1),String);e=function(t,e){return!y.contains(i,e)}}return y.pick(t,e,n)},y.defaults=T(y.allKeys,!0),y.create=function(t,e){var n=_(t);return e&&y.extendOwn(n,e),n},y.clone=function(t){return y.isObject(t)?y.isArray(t)?t.slice():y.extend({},t):t},y.tap=function(t,e){return e(t),t},y.isMatch=function(t,e){var n=y.keys(e),i=n.length;if(null==t)return!i;for(var o=Object(t),r=0;i>r;r++){var s=n[r];if(e[s]!==o[s]||!(s in o))return!1}return!0};var I=function(t,e,n,i){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof y&&(t=t._wrapped),e instanceof y&&(e=e._wrapped);var o=d.call(t);if(o!==d.call(e))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var r="[object Array]"===o;if(!r){if("object"!=typeof t||"object"!=typeof e)return!1;var s=t.constructor,a=e.constructor;if(s!==a&&!(y.isFunction(s)&&s instanceof s&&y.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],i=i||[];for(var l=n.length;l--;)if(n[l]===t)return i[l]===e;if(n.push(t),i.push(e),r){if(l=t.length,l!==e.length)return!1;for(;l--;)if(!I(t[l],e[l],n,i))return!1}else{var u,c=y.keys(t);if(l=c.length,y.keys(e).length!==l)return!1;for(;l--;)if(u=c[l],!y.has(e,u)||!I(t[u],e[u],n,i))return!1}return n.pop(),i.pop(),!0};y.isEqual=function(t,e){return I(t,e)},y.isEmpty=function(t){return null==t?!0:C(t)&&(y.isArray(t)||y.isString(t)||y.isArguments(t))?0===t.length:0===y.keys(t).length},y.isElement=function(t){return!(!t||1!==t.nodeType)},y.isArray=f||function(t){return"[object Array]"===d.call(t)},y.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},y.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){y["is"+t]=function(e){return d.call(e)==="[object "+t+"]"}}
1),y.isArguments(arguments)||(y.isArguments=function(t){return y.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(y.isFunction=function(t){return"function"==typeof t||!1}),y.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},y.isNaN=function(t){return y.isNumber(t)&&t!==+t},y.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===d.call(t)},y.isNull=function(t){return null===t},y.isUndefined=function(t){return void 0===t},y.has=function(t,e){return null!=t&&h.call(t,e)},y.noConflict=function(){return o._=r,this},y.identity=function(t){return t},y.constant=function(t){return function(){return t}},y.noop=function(){},y.property=S,y.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},y.matcher=y.matches=function(t){return t=y.extendOwn({},t),function(e){return y.isMatch(e,t)}},y.times=function(t,e,n){var i=Array(Math.max(0,t));e=b(e,n,1);for(var o=0;t>o;o++)i[o]=e(o);return i},y.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},y.now=Date.now||function(){return(new Date).getTime()};var G={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},H=y.invert(G),R=function(t){var e=function(e){return t[e]},n="(?:"+y.keys(t).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(o,e):t}};y.escape=R(G),y.unescape=R(H),y.result=function(t,e,n){var i=null==t?void 0:t[e];return void 0===i&&(i=n),y.isFunction(i)?i.call(t):i};var B=0;y.uniqueId=function(t){var e=++B+"";return t?t+e:e},y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var O=/(.)^/,j={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},F=/\\|'|\r|\n|\u2028|\u2029/g,L=function(t){return"\\"+j[t]};y.template=function(t,e,n){!e&&n&&(e=n),e=y.defaults({},e,y.templateSettings);var i=RegExp([(e.escape||O).source,(e.interpolate||O).source,(e.evaluate||O).source].join("|")+"|$","g"),o=0,r="__p+='";t.replace(i,function(e,n,i,s,a){return r+=t.slice(o,a).replace(F,L),o=a+e.length,n?r+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?r+="'+\n((__t=("+i+"))==null?'':__t)+\n'":s&&(r+="';\n"+s+"\n__p+='"),e}),r+="';\n",e.variable||(r="with(obj||{}){\n"+r+"}\n"),r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{var s=new Function(e.variable||"obj","_",r)}catch(a){throw a.source=r,a}var l=function(t){return s.call(this,t,y)},u=e.variable||"obj";return l.source="function("+u+"){\n"+r+"}",l},y.chain=function(t){var e=y(t);return e._chain=!0,e};var N=function(t,e){return t._chain?y(e).chain():e};y.mixin=function(t){y.each(y.functions(t),function(e){var n=y[e]=t[e];y.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),N(this,n.apply(y,t))}})},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=s[t];y.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],N(this,n)}}),y.each(["concat","join","slice"],function(t){var e=s[t];y.prototype[t]=function(){return N(this,e.apply(this._wrapped,arguments))}}),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return""+this._wrapped},"function"==typeof _wAMD.define&&_wAMD.define.amd&&_wAMD.define("underscore",[],function(){return y})}.call(this),_wAMD.define("jquery",[],function(){return void 0!==window.Weebly&&void 0!==window.Weebly.jQuery?window.Weebly.jQuery:window.jQuery}),function(t){!function(t,e){"object"==typeof exports&&exports?module.exports=e:"function"==typeof _wAMD.define&&_wAMD.define.amd?_wAMD.define("mustache-vendor",e):t.Mustache=e}(this,function(){function t(t,e){return y.call(t,e)}function e(e){return!t(p,e)}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function i(t){return String(t).replace(/[&<>"'\/]/g,function(t){return T[t]})}function o(t){this.string=t,this.tail=t,this.pos=0}function r(t,e){this.view=t,this.parent=e,this._cache={}}function s(){this.clearCache()}function a(t,e,n,i){for(var o,r,s,l="",u=0,c=t.length;c>u;++u)switch(o=t[u],r=o[1],o[0]){case"#":if(s=n.lookup(r),"object"==typeof s)if(w(s))for(var h=0,f=s.length;f>h;
1++h)l+=a(o[4],e,n.push(s[h]),i);else s&&(l+=a(o[4],e,n.push(s),i));else if("function"==typeof s){var p=null==i?null:i.slice(o[3],o[5]);s=s.call(n.view,p,function(t){return e.render(t,n)}),null!=s&&(l+=s)}else s&&(l+=a(o[4],e,n,i));break;case"^":s=n.lookup(r),(!s||w(s)&&0===s.length)&&(l+=a(o[4],e,n,i));break;case">":s=e.getPartial(r),"function"==typeof s&&(l+=s(n));break;case"&":s=n.lookup(r),null!=s&&(l+=s);break;case"name":s=n.lookup(r),null!=s&&(l+=d.escape(s));break;case"text":l+=r}return l}function l(t){for(var e,n=[],i=n,o=[],r=0,s=t.length;s>r;++r)switch(e=t[r],e[0]){case"#":case"^":o.push(e),i.push(e),i=e[4]=[];break;case"/":var a=o.pop();a[5]=e[2],i=o.length>0?o[o.length-1][4]:n;break;default:i.push(e)}return n}function u(t){for(var e,n,i=[],o=0,r=t.length;r>o;++o)e=t[o],e&&("text"===e[0]&&n&&"text"===n[0]?(n[1]+=e[1],n[3]=e[3]):(n=e,i.push(e)));return i}function c(t){return[new RegExp(n(t[0])+"\\s*"),new RegExp("\\s*"+n(t[1]))]}var d={};d.name="mustache.js",d.version="0.7.2",d.tags=["{{","}}"],d.Scanner=o,d.Context=r,d.Writer=s;var h=/\s*/,f=/\s+/,p=/\S/,m=/\s*=/,g=/\s*\}/,v=/#|\^|\/|>|\{|&|=|!/,y=RegExp.prototype.test,b=Object.prototype.toString,w=Array.isArray||function(t){return"[object Array]"===b.call(t)},T={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};d.escape=i,o.prototype.eos=function(){return""===this.tail},o.prototype.scan=function(t){var e=this.tail.match(t);return e&&0===e.index?(this.tail=this.tail.substring(e[0].length),this.pos+=e[0].length,e[0]):""},o.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.pos+=this.tail.length,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n),this.pos+=n}return e},r.make=function(t){return t instanceof r?t:new r(t)},r.prototype.push=function(t){return new r(t,this)},r.prototype.lookup=function(t){var e=this._cache[t];if(!e){if("."==t)e=this.view;else for(var n=this;n;){if(t.indexOf(".")>0){e=n.view;for(var i=t.split("."),o=0;e&&o<i.length;)e=e[i[o++]]}else e=n.view[t];if(null!=e)break;n=n.parent}this._cache[t]=e}return"function"==typeof e&&(e=e.call(this.view)),e},s.prototype.clearCache=function(){this._cache={},this._partialCache={}},s.prototype.compile=function(t,e){var n=this._cache[t];if(!n){var i=d.parse(t,e);n=this._cache[t]=this.compileTokens(i,t)}return n},s.prototype.compilePartial=function(t,e,n){var i=this.compile(e,n);return this._partialCache[t]=i,i},s.prototype.getPartial=function(t){return t in this._partialCache||!this._loadPartial||this.compilePartial(t,this._loadPartial(t)),this._partialCache[t]},s.prototype.compileTokens=function(t,e){var n=this;return function(i,o){if(o)if("function"==typeof o)n._loadPartial=o;else for(var s in o)n.compilePartial(s,o[s]);return a(t,n,r.make(i),e)}},s.prototype.render=function(t,e,n){return this.compile(t)(e,n)},d.parse=function(t,i){function r(){if(P&&!C)for(;M.length;)delete S[M.pop()];else M=[];P=!1,C=!1}if(t=t||"",i=i||d.tags,"string"==typeof i&&(i=i.split(f)),2!==i.length)throw new Error("Invalid tags: "+i.join(", "));for(var s,a,p,y,b,w=c(i),T=new o(t),_=[],S=[],M=[],P=!1,C=!1;!T.eos();){if(s=T.pos,p=T.scanUntil(w[0]))for(var A=0,x=p.length;x>A;++A)y=p.charAt(A),e(y)?M.push(S.length):C=!0,S.push(["text",y,s,s+1]),s+=1,"\n"==y&&r();if(!T.scan(w[0]))break;if(P=!0,a=T.scan(v)||"name",T.scan(h),"="===a?(p=T.scanUntil(m),T.scan(m),T.scanUntil(w[1])):"{"===a?(p=T.scanUntil(new RegExp("\\s*"+n("}"+i[1]))),T.scan(g),T.scanUntil(w[1]),a="&"):p=T.scanUntil(w[1]),!T.scan(w[1]))throw new Error("Unclosed tag at "+T.pos);if(b=[a,p,s,T.pos],S.push(b),"#"===a||"^"===a)_.push(b);else if("/"===a){if(0===_.length)throw new Error('Unopened section "'+p+'" at '+s);var k=_.pop();if(k[1]!==p)throw new Error('Unclosed section "'+k[1]+'" at '+s)}else if("name"===a||"{"===a||"&"===a)C=!0;else if("="===a){if(i=p.split(f),2!==i.length)throw new Error("Invalid tags at "+s+": "+i.join(", "));w=c(i)}}var k=_.pop();if(k)throw new Error('Unclosed section "'+k[1]+'" at '+T.pos);return S=u(S),l(S)};var _=new s;return d.clearCache=function(){return _.clearCache()},d.compile=function(t,e){return _.compile(t,e)},d.compilePartial=function(t,e,n){return _.compilePartial(t,e,n)},d.compileTokens=function(t,e){return _.compileTokens(t,e)},d.render=function(t,e,n){return _.render(t,e,n)},d.to_html=function(t,e,n,i){var o=d.render(t,e,n);return"function"!=typeof i?o:void i(o)},d}()),t.mustache=function(t,e,n){return Mustache.render(t,e,n)},t.fn.mustache=function(e,n){return t(this).map(function(i,o){var r=t.trim(t(o).html()),s=t.mustache(r,e,n);return t(s).get()})}}(jQuery),function(t){function e(t,e,n){switch(arguments.length){case 2:return null!=t?t:e;case 3:return null!=t?t:null!=e?e:n;default:throw new Error("Implement me")}}function n(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invali
1dFormat:!1,userInvalidated:!1,iso:!1}}function i(t){vt.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function o(t,e){var n=!0;return d(function(){return n&&(i(t),n=!1),e.apply(this,arguments)},e)}function r(t,e){fe[t]||(i(e),fe[t]=!0)}function s(t,e){return function(n){return p(t.call(this,n),e)}}function a(t,e){return function(n){return this.localeData().ordinal(t.call(this,n),e)}}function l(){}function u(t,e){e!==!1&&E(t),h(this,t),this._d=new Date(+t._d)}function c(t){var e=S(t),n=e.year||0,i=e.quarter||0,o=e.month||0,r=e.week||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*u+6e4*l+36e5*a,this._days=+s+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=vt.localeData(),this._bubble()}function d(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return e.hasOwnProperty("toString")&&(t.toString=e.toString),e.hasOwnProperty("valueOf")&&(t.valueOf=e.valueOf),t}function h(t,e){var n,i,o;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=e._pf),"undefined"!=typeof e._locale&&(t._locale=e._locale),Dt.length>0)for(n in Dt)i=Dt[n],o=e[i],"undefined"!=typeof o&&(t[i]=o);return t}function f(t){return 0>t?Math.ceil(t):Math.floor(t)}function p(t,e,n){for(var i=""+Math.abs(t),o=t>=0;i.length<e;)i="0"+i;return(o?n?"+":"":"-")+i}function m(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function g(t,e){var n;return e=R(e,t),t.isBefore(e)?n=m(t,e):(n=m(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function v(t,e){return function(n,i){var o,s;return null===i||isNaN(+i)||(r(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),s=n,n=i,i=s),n="string"==typeof n?+n:n,o=vt.duration(n,i),y(this,o,t),this}}function y(t,e,n,i){var o=e._milliseconds,r=e._days,s=e._months;i=null==i?!0:i,o&&t._d.setTime(+t._d+o*n),r&&dt(t,"Date",ct(t,"Date")+r*n),s&&ut(t,ct(t,"Month")+s*n),i&&vt.updateOffset(t,r||s)}function b(t){return"[object Array]"===Object.prototype.toString.call(t)}function w(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function T(t,e,n){var i,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;o>i;i++)(n&&t[i]!==e[i]||!n&&P(t[i])!==P(e[i]))&&s++;return s+r}function _(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=se[t]||ae[e]||e}return t}function S(t){var e,n,i={};for(n in t)t.hasOwnProperty(n)&&(e=_(n),e&&(i[e]=t[n]));return i}function M(e){var n,i;if(0===e.indexOf("week"))n=7,i="day";else{if(0!==e.indexOf("month"))return;n=12,i="month"}vt[e]=function(o,r){var s,a,l=vt._locale[e],u=[];if("number"==typeof o&&(r=o,o=t),a=function(t){var e=vt().utc().set(i,t);return l.call(vt._locale,e,o||"")},null!=r)return a(r);for(s=0;n>s;s++)u.push(a(s));return u}}function P(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function C(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function A(t,e,n){return rt(vt([t,11,31+e-n]),e,n).week}function x(t){return k(t)?366:365}function k(t){return t%4===0&&t%100!==0||t%400===0}function E(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[Mt]<0||t._a[Mt]>11?Mt:t._a[Pt]<1||t._a[Pt]>C(t._a[St],t._a[Mt])?Pt:t._a[Ct]<0||t._a[Ct]>23?Ct:t._a[At]<0||t._a[At]>59?At:t._a[xt]<0||t._a[xt]>59?xt:t._a[kt]<0||t._a[kt]>999?kt:-1,t._pf._overflowDayOfYear&&(St>e||e>Pt)&&(e=Pt),t._pf.overflow=e)}function D(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invali
1dFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function I(t){return t?t.toLowerCase().replace("_","-"):t}function G(t){for(var e,n,i,o,r=0;r<t.length;){for(o=I(t[r]).split("-"),e=o.length,n=I(t[r+1]),n=n?n.split("-"):null;e>0;){if(i=H(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&T(o,n,!0)>=e-1)break;e--}r++}return null}function H(t){var e=null;if(!Et[t]&&It)try{e=vt.locale(),require("./locale/"+t),vt.locale(e)}catch(n){}return Et[t]}function R(t,e){return e._isUTC?vt(t).zone(e._offset||0):vt(t).local()}function B(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function O(t){var e,n,i=t.match(Bt);for(e=0,n=i.length;n>e;e++)he[i[e]]?i[e]=he[i[e]]:i[e]=B(i[e]);return function(o){var r="";for(e=0;n>e;e++)r+=i[e]instanceof Function?i[e].call(o,t):i[e];return r}}function j(t,e){return t.isValid()?(e=F(e,t.localeData()),le[e]||(le[e]=O(e)),le[e](t)):t.localeData().invalidDate()}function F(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(Ot.lastIndex=0;i>=0&&Ot.test(t);)t=t.replace(Ot,n),Ot.lastIndex=0,i-=1;return t; 2}function L(t,e){var n,i=e._strict;switch(t){case"Q":return $t;case"DDDD":return Kt;case"YYYY":case"GGGG":case"gggg":return i?Qt:Lt;case"Y":case"G":case"g":return Zt;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?Jt:Nt;case"S":if(i)return $t;case"SS":if(i)return Xt;case"SSS":if(i)return Kt;case"DDD":return Ft;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Vt;case"a":case"A":return e._locale._meridiemParse;case"X":return Ut;case"Z":case"ZZ":return zt;case"T":return qt;case"SSSS":return Wt;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?Xt:jt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return jt;case"Do":return Yt;default:return n=new RegExp(X($(t.replace("\\","")),"i"))}}function N(t){t=t||"";var e=t.match(zt)||[],n=e[e.length-1]||[],i=(n+"").match(oe)||["-",0,0],o=+(60*i[1])+P(i[2]);return"+"===i[0]?-o:o}function W(t,e,n){var i,o=n._a;switch(t){case"Q":null!=e&&(o[Mt]=3*(P(e)-1));break;case"M":case"MM":null!=e&&(o[Mt]=P(e)-1);break;case"MMM":case"MMMM":i=n._locale.monthsParse(e),null!=i?o[Mt]=i:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(o[Pt]=P(e));break;case"Do":null!=e&&(o[Pt]=P(parseInt(e,10)));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=P(e));break;case"YY":o[St]=vt.parseTwoDigitYear(e);break;case"YYYY":case"YYYYY":case"YYYYYY":o[St]=P(e);break;case"a":case"A":n._isPm=n._locale.isPM(e);break;case"H":case"HH":case"h":case"hh":o[Ct]=P(e);break;case"m":case"mm":o[At]=P(e);break;case"s":case"ss":o[xt]=P(e);break;case"S":case"SS":case"SSS":case"SSSS":o[kt]=P(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=N(e);break;case"dd":case"ddd":case"dddd":i=n._locale.weekdaysParse(e),null!=i?(n._w=n._w||{},n._w.d=i):n._pf.invalidWeekday=e;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=P(e));break;case"gg":case"GG":n._w=n._w||{},n._w[t]=vt.parseTwoDigitYear(e)}}function V(t){var n,i,o,r,s,a,l;n=t._w,null!=n.GG||null!=n.W||null!=n.E?(s=1,a=4,i=e(n.GG,t._a[St],rt(vt(),1,4).year),o=e(n.W,1),r=e(n.E,1)):(s=t._locale._week.dow,a=t._locale._week.doy,i=e(n.gg,t._a[St],rt(vt(),s,a).year),o=e(n.w,1),null!=n.d?(r=n.d,s>r&&++o):r=null!=n.e?n.e+s:s),l=st(i,o,r,a,s),t._a[St]=l.year,t._dayOfYear=l.dayOfYear}function z(t){var n,i,o,r,s=[];if(!t._d){for(o=U(t),t._w&&null==t._a[Pt]&&null==t._a[Mt]&&V(t),t._dayOfYear&&(r=e(t._a[St],o[St]),t._dayOfYear>x(r)&&(t._pf._overflowDayOfYear=!0),i=et(r,0,t._dayOfYear),t._a[Mt]=i.getUTCMonth(),t._a[Pt]=i.getUTCDate()),n=0;3>n&&null==t._a[n];++n)t._a[n]=s[n]=o[n];for(;7>n;n++)t._a[n]=s[n]=null==t._a[n]?2===n?1:0:t._a[n];t._d=(t._useUTC?et:tt).apply(null,s),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()+t._tzm)}}function q(t){var e;t._d||(e=S(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],z(t))}function U(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Y(t){if(t._f===vt.ISO_8601)return void Q(t);t._a=[],t._pf.empty=!0;var e,n,i,o,r,s=""+t._i,a=s.length,l=0;for(i=F(t._f,t._locale).match(Bt)||[],e=0;e<i.length;e++)o=i[e],n=(s.match(L(o,t))||[])[0],n&&(r=s.substr(0,s.indexOf(n)),r.length>0&&t._pf.unusedInput.push(r),s=s.slice(s.indexOf(n)+n.length),l+=n.length),he[o]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(o),W(o,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(o);t._pf.charsLeftOver=a-l,s.length>0&&t._pf.unusedInput.push(s),t._isPm&&t._a[Ct]<12&&(t._a[Ct]+=12),t._isPm===!1&&12===t._a[Ct]&&(t._a[Ct]=0),z(t),E(t)}function $(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o})}function X(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(t){var e,i,o,r,s;
2if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)s=0,e=h({},t),e._pf=n(),e._f=t._f[r],Y(e),D(e)&&(s+=e._pf.charsLeftOver,s+=10*e._pf.unusedTokens.length,e._pf.score=s,(null==o||o>s)&&(o=s,i=e));d(t,i||e)}function Q(t){var e,n,i=t._i,o=te.exec(i);if(o){for(t._pf.iso=!0,e=0,n=ne.length;n>e;e++)if(ne[e][1].exec(i)){t._f=ne[e][0]+(o[6]||" ");break}for(e=0,n=ie.length;n>e;e++)if(ie[e][1].exec(i)){t._f+=ie[e][0];break}i.match(zt)&&(t._f+="Z"),Y(t)}else t._isValid=!1}function J(t){Q(t),t._isValid===!1&&(delete t._isValid,vt.createFromInputFallback(t))}function Z(e){var n,i=e._i;i===t?e._d=new Date:w(i)?e._d=new Date(+i):null!==(n=Gt.exec(i))?e._d=new Date(+n[1]):"string"==typeof i?J(e):b(i)?(e._a=i.slice(0),z(e)):"object"==typeof i?q(e):"number"==typeof i?e._d=new Date(i):vt.createFromInputFallback(e)}function tt(t,e,n,i,o,r,s){var a=new Date(t,e,n,i,o,r,s);return 1970>t&&a.setFullYear(t),a}function et(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function nt(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function it(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function ot(t,e,n){var i=vt.duration(t).abs(),o=_t(i.as("s")),r=_t(i.as("m")),s=_t(i.as("h")),a=_t(i.as("d")),l=_t(i.as("M")),u=_t(i.as("y")),c=o<ue.s&&["s",o]||1===r&&["m"]||r<ue.m&&["mm",r]||1===s&&["h"]||s<ue.h&&["hh",s]||1===a&&["d"]||a<ue.d&&["dd",a]||1===l&&["M"]||l<ue.M&&["MM",l]||1===u&&["y"]||["yy",u];return c[2]=e,c[3]=+t>0,c[4]=n,it.apply({},c)}function rt(t,e,n){var i,o=n-e,r=n-t.day();return r>o&&(r-=7),o-7>r&&(r+=7),i=vt(t).add(r,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function st(t,e,n,i,o){var r,s,a=et(t,0,1).getUTCDay();return a=0===a?7:a,n=null!=n?n:o,r=o-a+(a>i?7:0)-(o>a?7:0),s=7*(e-1)+(n-o)+r+1,{year:s>0?t:t-1,dayOfYear:s>0?s:x(t-1)+s}}function at(e){var n=e._i,i=e._f;return e._locale=e._locale||vt.localeData(e._l),null===n||i===t&&""===n?vt.invalid({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),vt.isMoment(n)?new u(n,!0):(i?b(i)?K(e):Y(e):Z(e),new u(e)))}function lt(t,e){var n,i;if(1===e.length&&b(e[0])&&(e=e[0]),!e.length)return vt();for(n=e[0],i=1;i<e.length;++i)e[i][t](n)&&(n=e[i]);return n}function ut(t,e){var n;return"string"==typeof e&&(e=t.localeData().monthsParse(e),"number"!=typeof e)?t:(n=Math.min(t.date(),C(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t)}function ct(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function dt(t,e,n){return"Month"===e?ut(t,n):t._d["set"+(t._isUTC?"UTC":"")+e](n)}function ht(t,e){return function(n){return null!=n?(dt(this,t,n),vt.updateOffset(this,e),this):ct(this,t)}}function ft(t){return 400*t/146097}function pt(t){return 146097*t/400}function mt(t){vt.duration.fn[t]=function(){return this._data[t]}}function gt(t){"undefined"==typeof ender&&(yt=Tt.moment,t?Tt.moment=o("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",vt):Tt.moment=vt)}for(var vt,yt,bt,wt="2.8.1",Tt="undefined"!=typeof global?global:this,_t=Math.round,St=0,Mt=1,Pt=2,Ct=3,At=4,xt=5,kt=6,Et={},Dt=[],It="undefined"!=typeof module&&module.exports,Gt=/^\/?Date\((\-?\d+)/i,Ht=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Rt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Bt=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,Ot=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,jt=/\d\d?/,Ft=/\d{1,3}/,Lt=/\d{1,4}/,Nt=/[+\-]?\d{1,6}/,Wt=/\d+/,Vt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,zt=/Z|[\+\-]\d\d:?\d\d/gi,qt=/T/i,Ut=/[\+\-]?\d+(\.\d{1,3})?/,Yt=/\d{1,2}/,$t=/\d/,Xt=/\d\d/,Kt=/\d{3}/,Qt=/\d{4}/,Jt=/[+-]?\d{6}/,Zt=/[+-]?\d+/,te=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ee="YYYY-MM-DDTHH:mm:ssZ",ne=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ie=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],oe=/([\+\-]|\d\d)/gi,re=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),se={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},ae={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},le={},ue={s:45,m:45,h:22,d:26,M:11},ce="DDD w W M D d".split(" "),de="M D H h m s w W".split(" "),he={M:function(){return this.month()+1},MMM:function(t){return this.localeData().monthsShort(this,t)},MMMM:function(t){return this.localeData().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.localeData().weekdaysMin(this,t)},ddd:function(t){return this.localeData().weekdaysShort(this,t)},dddd:function(t){return this.localeData().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return p(this.year()%100,2)},YYYY:function(){return p(this.year(),4)},YYYYY:function(){return p(this.year(),5)},YYYYYY:function(){var t=this.year(),e=t>=0?"+":"-";return e+p(Math.abs(t),6)},gg:function(){return p(this.weekYear()%100,2)},gggg:function(){return p(this.weekYear(),4)},ggggg:function(){return p(this.weekYear(),5)},GG:function(){return p(this.isoWeekYear()%100,2)},GGGG:function(){return p(this.isoWeekYear(),4)},GGGGG:function(){return p(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return P(this.milliseconds()/100)},SS:function(){return p(P(this.milliseconds()/10),2)},SSS:function(){return p(this.milliseconds(),3)},SSSS:function(){return p(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+p(P(t/60),2)+":"+p(P(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+p(P(t/60),2)+p(P(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},fe={},pe=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];ce.length;)bt=ce.pop(),he[bt+"o"]=a(he[bt],bt);for(;de.length;)bt=de.pop(),he[bt+bt]=s(he[bt],2);he.DDDD=s(he.DDD,3),d(l.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,n,i;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(n=vt.utc([2e3,e]),i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=new RegExp(i.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,i;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=vt([2e3,1]).day(e),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,i){var o=this._relativeTime[n];return"function"==typeof o?o(t,e,n,i):o.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return rt(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),vt=function(e,i,o,r){var s;return"boolean"==typeof o&&(r=o,o=t),s={},s._isAMomentObject=!0,s._i=e,s._f=i,s._l=o,s._strict=r,s._isUTC=!1,s._pf=n(),at(s)},vt.suppressDeprecationWarnings=!1,vt.createFromInputFallback=o("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i)}),vt.min=function(){var t=[].slice.call(arguments,0);return lt("isBefore",t)},vt.max=function(){var t=[].slice.call(arguments,0);return lt("isAfter",t)},vt.utc=function(e,i,o,r){var s;return"boolean"==typeof o&&(r=o,o=t),s={},s._isAMomentObject=!0,s._useUTC=!0,s._isUTC=!0,s._l=o,s._i=e,s._f=i,s._strict=r,s._pf=n(),at(s).utc()},vt.unix=function(t){return vt(1e3*t)},vt.duration=function(t,e){var n,i,o,r,s=t,a=null;return vt.isDuration(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(s={},e?s[e]=t:s.milliseconds=t):(a=Ht.exec(t))?(n="-"===a[1]?-1:1,s={y:0,d:P(a[Pt])*n,h:P(a[Ct])*n,m:P(a[At])*n,s:P(a[xt])*n,ms:P(a[kt])*n}):(a=Rt.exec(t))?(n="-"===a[1]?-1:1,o=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n},s={y:o(a[2]),M:o(a[3]),d:o(a[4]),h:o(a[5]),m:o(a[6]),s:o(a[7]),w:o(a[8])}):"object"==typeof s&&("from"in s||"to"in s)&&(r=g(vt(s.from),vt(s.to)),s={},s.ms=r.milliseconds,s.M=r.months),i=new c(s),vt.isDuration(t)&&t.hasOwnProperty("_locale")&&(i._locale=t._locale),i},vt.version=wt,vt.defaultFormat=ee,vt.ISO_8601=function(){},vt.momentProperties=Dt,vt.updateOffset=function(){},vt.relativeTimeThreshold=function(e,n){return ue[e]===t?!1:n===t?ue[e]:(ue[e]=n,!0)},vt.lang=o("moment.lang is deprecated. Use moment.locale instead.",function(t,e){return vt.locale(t,e)}),vt.locale=function(t,e){var n;return t&&(n="undefined"!=typeof e?vt.defineLocale(t,e):vt.localeData(t),n&&(vt.duration._locale=vt._locale=n)),vt._locale._abbr},vt.defineLocale=function(t,e){return null!==e?(e.abbr=t,Et[t]||(Et[t]=new l),Et[t].set(e),vt.locale(t),Et[t]):(delete Et[t],null)},vt.langData=o("moment.langData is deprecated. Use moment.localeData instead.",function(t){return vt.localeData(t)}),vt.localeData=function(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return vt._locale;if(!b(t)){if(e=H(t))return e;t=[t]}return G(t)},vt.isMoment=function(t){return t instanceof u||null!=t&&t.hasOwnProperty("_isAMomentObject")},vt.isDuration=function(t){return t instanceof c};for(bt=pe.length-1;bt>=0;--bt)M(pe[bt]);vt.normalizeUnits=function(t){return _(t)},vt.invalid=function(t){var e=vt.utc(NaN);return null!=t?d(e._pf,t):e._pf.userInvalidated=!0,e},vt.parseZone=function(){return vt.apply(null,arguments).parseZone()},vt.parseTwoDigitYear=function(t){return P(t)+(P(t)>68?1900:2e3)},d(vt.fn=u.prototype,{clone:function(){return vt(this)}
2,valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=vt(this).utc();return 0<t.year()&&t.year()<=9999?j(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):j(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var t=this;return[t.year(),t.month(),t.date(),t.hours(),t.minutes(),t.seconds(),t.milliseconds()]},isValid:function(){return D(this)},isDSTShifted:function(){return this._a?this.isValid()&&T(this._a,(this._isUTC?vt.utc(this._a):vt(this._a)).toArray())>0:!1},parsingFlags:function(){return d({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(t){return this.zone(0,t)},local:function(t){return this._isUTC&&(this.zone(0,t),this._isUTC=!1,t&&this.add(this._d.getTimezoneOffset(),"m")),this},format:function(t){var e=j(this,t||vt.defaultFormat);return this.localeData().postformat(e)},add:v(1,"add"),subtract:v(-1,"subtract"),diff:function(t,e,n){var i,o,r=R(t,this),s=6e4*(this.zone()-r.zone());return e=_(e),"year"===e||"month"===e?(i=432e5*(this.daysInMonth()+r.daysInMonth()),o=12*(this.year()-r.year())+(this.month()-r.month()),o+=(this-vt(this).startOf("month")-(r-vt(r).startOf("month")))/i,o-=6e4*(this.zone()-vt(this).startOf("month").zone()-(r.zone()-vt(r).startOf("month").zone()))/i,"year"===e&&(o/=12)):(i=this-r,o="second"===e?i/1e3:"minute"===e?i/6e4:"hour"===e?i/36e5:"day"===e?(i-s)/864e5:"week"===e?(i-s)/6048e5:i),n?o:f(o)},from:function(t,e){return vt.duration({to:this,from:t}).locale(this.locale()).humanize(!e)},fromNow:function(t){return this.from(vt(),t)},calendar:function(t){var e=t||vt(),n=R(e,this).startOf("day"),i=this.diff(n,"days",!0),o=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse";return this.format(this.localeData().calendar(o,this))},isLeapYear:function(){return k(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=nt(t,this.localeData()),this.add(t-e,"d")):e},month:ht("Month",!0),startOf:function(t){switch(t=_(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t?this.weekday(0):"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(t){return t=_(t),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},isAfter:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)>+vt(t).startOf(e)},isBefore:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)<+vt(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)===+R(t,this).startOf(e)},min:o("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(t){return t=vt.apply(null,arguments),this>t?this:t}),max:o("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(t){return t=vt.apply(null,arguments),t>this?this:t}),zone:function(t,e){var n,i=this._offset||0;return null==t?this._isUTC?i:this._d.getTimezoneOffset():("string"==typeof t&&(t=N(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&e&&(n=this._d.getTimezoneOffset()),this._offset=t,this._isUTC=!0,null!=n&&this.subtract(n,"m"),i!==t&&(!e||this._changeInProgress?y(this,vt.duration(i-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,vt.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?vt(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return C(this.year(),this.month())},dayOfYear:function(t){var e=_t((vt(this).startOf("day")-vt(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},quarter:function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},weekYear:function(t){var e=rt(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},isoWeekYear:function(t){var e=rt(this,1,4).year;return null==t?e:this.add(t-e,"y")},week:function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},isoWeek:function(t){var e=rt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},weekday:function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return A(this.year(),1,4)},weeksInYear:function(){var t=this.localeData()._week;return A(this.year(),t.dow,t.doy)},get:function(t){return t=_(t),this[t]()},set:function(t,e){return t=_(t),"function"==typeof this[t]&&this[t](e),this},locale:function(e){return e===t?this._locale._abbr:(this._locale=vt.localeData(e),this)},lang:o("moment().lang() is deprecated. Use moment().localeData() instead.",function(e){return e===t?this.localeData():(this._locale=vt.localeData(e),this)}),localeData:function(){return this._locale}}),vt.fn.millisecond=vt.fn.milliseconds=ht("Milliseconds",!1),vt.fn.second=vt.fn.seconds=ht("Seconds",!1),vt.fn.minute=vt.fn.minutes=ht("Minutes",!1),vt.fn.hour=vt.fn.hours=ht("Hours",!0),vt.fn.date=ht("Date",!0),vt.fn.dates=o("dates accessor is deprecated. Use date instead.",ht("Date",!0)),vt.fn.year=ht("FullYear",!0),vt.fn.years=o("years accessor is deprecated. Use year instead.",ht("FullYear",!0)),vt.fn.days=vt.fn.day,vt.fn.months=vt.fn.month,vt.fn.weeks=vt.fn.week,vt.fn.isoWeeks=vt.fn.isoWeek,vt.fn.quarters=vt.fn.quarter,vt.fn.toJSON=vt.fn.toISOString,d(vt.duration.fn=c.prototype,{_bubble:function(){var t,e,n,i=this._milliseconds,o=this._days,r=this._months,s=this._data,a=0;s.milliseconds=i%1e3,t=f(i/1e3),s.seconds=t%60,e=f(t/60),s.minutes=e%60,n=f(e/60),s.hours=n%24,o+=f(n/24),a=f(ft(o)),o-=f(pt(a)),r+=f(o/30),o%=30,a+=f(r/12),r%=12,s.days=o,s.months=r,s.years=a},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return f(this.days()/7)}
2,valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*P(this._months/12)},humanize:function(t){var e=ot(this,!t,this.localeData());return t&&(e=this.localeData().pastFuture(+this,e)),this.localeData().postformat(e)},add:function(t,e){var n=vt.duration(t,e);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(t,e){var n=vt.duration(t,e);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return t=_(t),this[t.toLowerCase()+"s"]()},as:function(t){var e,n;if(t=_(t),e=this._days+this._milliseconds/864e5,"month"===t||"year"===t)return n=this._months+12*ft(e),"month"===t?n:n/12;switch(e+=pt(this._months/12),t){case"week":return e/7;case"day":return e;case"hour":return 24*e;case"minute":return 24*e*60;case"second":return 24*e*60*60;case"millisecond":return 24*e*60*60*1e3;default:throw new Error("Unknown unit "+t)}},lang:vt.fn.lang,locale:vt.fn.locale,toIsoString:o("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),n=Math.abs(this.days()),i=Math.abs(this.hours()),o=Math.abs(this.minutes()),r=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(i||o||r?"T":"")+(i?i+"H":"")+(o?o+"M":"")+(r?r+"S":""):"P0D"},localeData:function(){return this._locale}});for(bt in re)re.hasOwnProperty(bt)&&mt(bt.toLowerCase());vt.duration.fn.asMilliseconds=function(){return this.as("ms")},vt.duration.fn.asSeconds=function(){return this.as("s")},vt.duration.fn.asMinutes=function(){return this.as("m")},vt.duration.fn.asHours=function(){return this.as("h")},vt.duration.fn.asDays=function(){return this.as("d")},vt.duration.fn.asWeeks=function(){return this.as("weeks")},vt.duration.fn.asMonths=function(){return this.as("M")},vt.duration.fn.asYears=function(){return this.as("y")},vt.locale("en",{ordinal:function(t){var e=t%10,n=1===P(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),It?module.exports=vt:"function"==typeof _wAMD.define&&_wAMD.define.amd?(_wAMD.define("moment",["require","exports","module"],function(t,e,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(Tt.moment=yt),vt}),gt(!0)):gt()}.call(this),_wAMD.define("mustache",["jquery","mustache-vendor","moment"],function(t,e,n){function i(){return function(t,e){return e(_W.stl(t))}}window.Mustache=e;var o="undefined"!=typeof Weebly?Weebly.AdminType:"",r={date:"MMMM D, YYYY",shortDate:"M/D/YY",longDate:"M/D/YYYY",time:"h:mm a"},s=function(t){return function(e,i){var o=i(e),s=n.unix(o);return s.format(r[t])}},a={expireCookie:function(t){document.cookie=t+"=; expires=Thu, 18 Dec 2000 12:00:00 UTC"},setCookie:function(t,e){a.expireCookie(t),document.cookie=t+"="+e+"; path=/; domain="+window.location.hostname}},l={buildTime:"undefined"!=typeof buildTime?buildTime:null,ASSETS_BASE:"undefined"!=typeof ASSETS_BASE?ASSETS_BASE:null,tl:function(){return function(t,e){return e(_W.utl(t))}},ftl:i,stl:i,esc_attr:function(){return function(t,e){return _.escape(e(t))}},fmt:{date:function(){return s("date")},shortDate:function(){return s("shortDate")},longDate:function(){return s("longDate")},time:function(){return s("time")}},isWeeblyAdmin:function(){return"weebly"===o},td:function(){return function(t,e){var i=["d","j","m","n","y","Y","a","A","g","h","G","H","i","s"],o=["DD","D","MM","M","YY","YYYY","a","A","hh","h","HH","H","mm","ss"];_.each(i,function(e,n){t=t.replace(e,o[n])});var r=t.split(/\|/),s=r[0],a=e("{{"+r[1]+"}}"),l=n(a).format(s);return l}},csrf_input:function(){var t=window.csrfToken;return t||(t=Math.random().toString(36).substring(2),a.setCookie("_csrf",t)),"<input type='hidden' name='_csrf' value='"+t+"' />"}};e.origRender=e.render,e.render=function(n,i){return i=t.extend({},i,l),e.origRender.apply(this,arguments)};var u=e.Writer.prototype;return u.origCompile=u.compile,u.compile=function(e){var n=u.origCompile.apply(this,[e]);return function(e){var i=Array.prototype.slice.call(arguments);return i[0]=t.extend(i[0]||{},l),n.apply(this,i)}},e}),_wAMD.define("polyfill/string",[],function(){String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t})}),_wAMD.define("polyfill/all",["polyfill/string"],function(){return{}}),function(t,e,n){function i(t){return t.match(/\D+$/)}function o(t,e,n,i){if("d"!=n&&d(t)){var o=v.exec(e),r="auto"===t.css(n)?0:t.css(n),s="string"==typeof r?c(r):r,a=("string"==typeof e?c(e):e,i===!0?0:s),l=t.is(":hidden"),u=t.translation();if("left"==n&&(a=parseInt(s,10)+u.x),"right"==n&&(a=parseInt(s,10)+u.x),"top"==n&&(a=parseInt(s,10)+u.y),"bottom"==n&&(a=parseInt(s,10)+u.y),o||"show"!=e?o||"hide"!=e||(a=0):(a=1,l&&t.css({display:"block",opacity:0}
2)),o){var h=parseFloat(o[2]);return o[1]&&(h=("-="===o[1]?-1:1)*h+parseInt(a,10)),h}return a}}function r(t,e,n){return(n===!0||D===!0&&n!==!1)&&E?"translate3d("+t+"px, "+e+"px, 0)":"translate("+t+"px,"+e+"px)"}function s(e,n,i,o,r,s,l,d){var h=e.data(T),f=h&&!u(h)?h:t.extend(!0,{},b),m=r,g=t.inArray(n,p)>-1;if(g){var v=f.meta,y=c(e.css(n))||0,w=n+"_o";m=r-y,v[n]=m,v[w]="auto"==e.css(n)?0+m:y+m||0,f.meta=v,l&&0===m&&(m=0-v[w],v[n]=m,v[w]=0)}return e.data(T,a(e,f,n,i,o,m,s,l,d))}function a(t,e,n,i,o,s,a,l,u){var c=!1,d=a===!0&&l===!0;e=e||{},e.original||(e.original={},c=!0),e.properties=e.properties||{},e.secondary=e.secondary||{};for(var h=e.meta,f=e.original,p=e.properties,g=e.secondary,v=m.length-1;v>=0;v--){var y=m[v]+"transition-property",b=m[v]+"transition-duration",w=m[v]+"transition-timing-function";n=d?m[v]+"transform":n,c&&(f[y]=t.css(y)||"",f[b]=t.css(b)||"",f[w]=t.css(w)||""),g[n]=d?r(h.left,h.top,u):s,p[y]=(p[y]?p[y]+",":"")+n,p[b]=(p[b]?p[b]+",":"")+i+"ms",p[w]=(p[w]?p[w]+",":"")+o}return e}function l(t){for(var e in t)if(!("width"!=e&&"height"!=e||"show"!=t[e]&&"hide"!=t[e]&&"toggle"!=t[e]))return!0;return!1}function u(t){for(var e in t)return!1;return!0}function c(t){return parseFloat(t.replace(i(t),""))}function d(t){var e=!0;return t.each(function(t,n){return e=e&&n.ownerDocument}),e}function h(e,n,i){if(!d(i))return!1;var o=t.inArray(e,f)>-1;return"width"!=e&&"height"!=e&&"opacity"!=e||parseFloat(n)!==parseFloat(i.css(e))||(o=!1),o}var f=["top","right","bottom","left","opacity","height","width"],p=["top","right","bottom","left"],m=["-webkit-","-moz-","-o-",""],g=["avoidTransforms","useTranslate3d","leaveTransforms"],v=/^([+-]=)?([\d+-.]+)(.*)$/,y=/([A-Z])/g,b={secondary:{},meta:{top:0,right:0,bottom:0,left:0}},w="px",T="jQe",_="cubic-bezier(",S=")",M=null,P=!1,C=document.body||document.documentElement,A=C.style,x="webkitTransitionEnd oTransitionEnd transitionend",k=void 0!==A.WebkitTransition||void 0!==A.MozTransition||void 0!==A.OTransition||void 0!==A.transition,E="WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix,D=E;t.expr&&t.expr.filters&&(M=t.expr.filters.animated,t.expr.filters.animated=function(e){return t(e).data("events")&&t(e).data("events")[x]?!0:M.call(this,e)}),t.extend({toggle3DByDefault:function(){return D=!D},toggleDisabledByDefault:function(){return P=!P}}),t.fn.translation=function(){if(!this[0])return null;var t=this[0],e=window.getComputedStyle(t,null),n={x:0,y:0};if(e)for(var i=m.length-1;i>=0;i--){var o=e.getPropertyValue(m[i]+"transform");if(o&&/matrix/i.test(o)){var r=o.replace(/^matrix\(/i,"").split(/, |\)$/g);n={x:parseInt(r[4],10),y:parseInt(r[5],10)};break}}return n},t.fn.animate=function(n,i,r,a){n=n||{};var c=!("undefined"!=typeof n.bottom||"undefined"!=typeof n.right),d=t.speed(i,r,a),f=this,v=0,y=function(){v--,0===v&&"function"==typeof d.complete&&d.complete.apply(f,arguments)},b="undefined"!=typeof n.avoidCSSTransitions?n.avoidCSSTransitions:P;return b===!0||!k||u(n)||l(n)||d.duration<=0||t.fn.animate.defaults.avoidTransforms===!0&&n.avoidTransforms!==!1?e.apply(this,arguments):this[d.queue===!0?"queue":"each"](function(){var i=t(this),r=t.extend({},d),a=function(e){var o=i.data(T)||{original:{}},r={};if(2==e.eventPhase){if(n.leaveTransforms!==!0){for(var s=m.length-1;s>=0;s--)r[m[s]+"transform"]="";if(c&&"undefined"!=typeof o.meta)for(var a,l=0;a=p[l];++l)r[a]=o.meta[a+"_o"]+w, 3t(this).css(a,r[a])}i.unbind(x).css(o.original).css(r).data(T,null),"hide"===n.opacity&&i.css({display:"none",opacity:""}),y.call(this)}},l={bounce:_+"0.0, 0.35, .5, 1.3"+S,linear:"linear",swing:"ease-in-out",easeInQuad:_+"0.550, 0.085, 0.680, 0.530"+S,easeInCubic:_+"0.550, 0.055, 0.675, 0.190"+S,easeInQuart:_+"0.895, 0.030, 0.685, 0.220"+S,easeInQuint:_+"0.755, 0.050, 0.855, 0.060"+S,easeInSine:_+"0.470, 0.000, 0.745, 0.715"+S,easeInExpo:_+"0.950, 0.050, 0.795, 0.035"+S,easeInCirc:_+"0.600, 0.040, 0.980, 0.335"+S,easeInBack:_+"0.600, -0.280, 0.735, 0.045"+S,easeOutQuad:_+"0.250, 0.460, 0.450, 0.940"+S,easeOutCubic:_+"0.215, 0.610, 0.355, 1.000"+S,easeOutQuart:_+"0.165, 0.840, 0.440, 1.000"+S,easeOutQuint:_+"0.230, 1.000, 0.320, 1.000"+S,easeOutSine:_+"0.390, 0.575, 0.565, 1.000"+S,easeOutExpo:_+"0.190, 1.000, 0.220, 1.000"+S,easeOutCirc:_+"0.075, 0.820, 0.165, 1.000"+S,easeOutBack:_+"0.175, 0.885, 0.320, 1.275"+S,easeInOutQuad:_+"0.455, 0.030, 0.515, 0.955"+S,easeInOutCubic:_+"0.645, 0.045, 0.355, 1.000"+S,easeInOutQuart:_+"0.7
370, 0.000, 0.175, 1.000"+S,easeInOutQuint:_+"0.860, 0.000, 0.070, 1.000"+S,easeInOutSine:_+"0.445, 0.050, 0.550, 0.950"+S,easeInOutExpo:_+"1.000, 0.000, 0.000, 1.000"+S,easeInOutCirc:_+"0.785, 0.135, 0.150, 0.860"+S,easeInOutBack:_+"0.680, -0.550, 0.265, 1.550"+S},f={},b=l[r.easing||"swing"]?l[r.easing||"swing"]:r.easing||"swing";for(var M in n)if(-1===t.inArray(M,g)){var P=t.inArray(M,p)>-1,C=o(i,n[M],M,P&&n.avoidTransforms!==!0);n.avoidTransforms!==!0&&h(M,C,i)?s(i,M,r.duration,b,P&&n.avoidTransforms===!0?C+w:C,P&&n.avoidTransforms!==!0,c,n.useTranslate3d):f[M]=n[M]}i.unbind(x);var A=i.data(T);if(!A||u(A)||u(A.secondary))r.queue=!1;else{v++,i.css(A.properties);var k=A.secondary;setTimeout(function(){i.bind(x,a).css(k)})}return u(f)||(v++,e.apply(i,[f,{duration:r.duration,easing:t.easing[r.easing]?r.easing:t.easing.swing?"swing":"linear",complete:y,queue:r.queue}])),!0})},t.fn.animate.defaults={},t.fn.stop=function(e,i,o){return k?(e&&this.queue([]),this.each(function(){var r=t(this),s=r.data(T);if(s&&!u(s)){var a,l={};if(i){if(l=s.secondary,!o&&void 0!==typeof s.meta.left_o||void 0!==typeof s.meta.top_o)for(l.left=void 0!==typeof s.meta.left_o?s.meta.left_o:"auto",l.top=void 0!==typeof s.meta.top_o?s.meta.top_o:"auto",a=m.length-1;a>=0;a--)l[m[a]+"transform"]=""}else if(!u(s.secondary)){var c=window.getComputedStyle(r[0],null);if(c)for(var d in s.secondary)if(s.secondary.hasOwnProperty(d)&&(d=d.replace(y,"-$1").toLowerCase(),l[d]=c.getPropertyValue(d),!o&&/matrix/i.test(l[d]))){var h=l[d].replace(/^matrix\(/i,"").split(/, |\)$/g);for(l.left=parseFloat(h[4])+parseFloat(r.css("left"))+w||"auto",l.top=parseFloat(h[5])+parseFloat(r.css("top"))+w||"auto",a=m.length-1;a>=0;a--)l[m[a]+"transform"]=""}}r.unbind(x),r.css(s.original).css(l).data(T,null)}else n.apply(r,[e,i])}),this):n.apply(this,[e,i])},RegExp(" AppleWebKit/").test(navigator.userAgent)&&RegExp(" Mobile/").test(navigator.userAgent)||t.toggleDisabledByDefault()}(jQuery,jQuery.fn.animate,jQuery.fn.stop),_wAMD.define("legacy/jquery.animate",function(){}),function(t){t.fn.up=function(t){return this.eq(0).parent().closest(t||"*")},t.fn.down=function(t){return t?this.eq(0).find(t||"*").eq(0):this.eq(0).children(":first")};var e=1;t.fn.identify=function(){var n=this.attr("id");if(!n&&this.length){do n="anonymous_element_"+e++;while(t("#"+n).length);this.attr("id",n)}return n},t.fn.placeholder=function(){if(!("placeholder"in document.createElement("input"))){var e,n;this.each(function(i,o){n=o.getAttribute("placeholder"),n&&"input"===o.nodeName.toLowerCase()&&(e=t(o).on({focus:function(e){o.value===n&&(t(o).removeClass("wsite-placeholder"),o.value="")},blur:function(t){o.value.length||(o.value=n,o.className+=" wsite-placeholder")}}),o.className+=" wsite-placeholder",o.value=n)})}},t.extend({isValidSelector:function(e){try{t(e)}catch(n){return!1}return!0}}),document.observe||(document.observe=function(e,n){"dom:loaded"==e&&t(document).ready(n)}),t.fn.outerHeightDeep=function(e){var n=this.find("*").addBack().map(function(){return t(this).outerHeight(e)}).get();return Math.max.apply(Math,n)}}(Weebly.jQuery),Weebly.evalJSON=function(json){var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;cx.test(json)&&(json=json.replace(cx,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}));try{return eval("("+json+")")}catch(e){}throw new SyntaxError("Badly formed JSON string: "+json)},_wAMD.define("legacy/jquery_utils",function(){}),function(t){"function"==typeof _wAMD.define&&_wAMD.define.amd?_wAMD.define("jquery-ui/effect",["jquery"],t):t(jQuery)}(function(t){var e="ui-effects-",n=t;return t.effects={effect:{}},function(t,e){function n(t,e,n){var i=d[e.type]||{};return null==t?n||!e.def?null:e.def:(t=i.floor?~~t:parseFloat(t),isNaN(t)?e.def:i.mod?(t+i.mod)%i.mod:0>t?0:i.max<t?i.max:t)}function i(e){var n=u(),i=n._rgba=[];return e=e.toLowerCase(),p(l,function(t,o){var r,s=o.re.exec(e),a=s&&o.parse(s),l=o.space||"rgba";return a?(r=n[l](a),n[c[l].cache]=r[c[l].cache],i=n._rgba=r._rgba,!1):void 0}),i.length?("0,0,0,0"===i.join()&&t.extend(i,r.transparent),n):r[e]}function o(t,e,n){return n=(n+1)%1,1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}var r,s="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",a=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],u=t.Color=function(e,n,i,o){return new t.Color.fn.parse(e,n,i,o)},c={rgba:{props:{red:{idx:0,type:"byte"}
vendor: 10,363 bytes, line 3
3,green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},d={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},h=u.support={},f=t("<p>")[0],p=t.each;f.style.cssText="background-color:rgba(1,1,1,.5)",h.rgba=f.style.backgroundColor.indexOf("rgba")>-1,p(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),u.fn=t.extend(u.prototype,{parse:function(o,s,a,l){if(o===e)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=t(o).css(s),s=e);var d=this,h=t.type(o),f=this._rgba=[];return s!==e&&(o=[o,s,a,l],h="array"),"string"===h?this.parse(i(o)||r._default):"array"===h?(p(c.rgba.props,function(t,e){f[e.idx]=n(o[e.idx],e)}),this):"object"===h?(o instanceof u?p(c,function(t,e){o[e.cache]&&(d[e.cache]=o[e.cache].slice())}):p(c,function(e,i){var r=i.cache;p(i.props,function(t,e){if(!d[r]&&i.to){if("alpha"===t||null==o[t])return;d[r]=i.to(d._rgba)}d[r][e.idx]=n(o[t],e,!0)}),d[r]&&t.inArray(null,d[r].slice(0,3))<0&&(d[r][3]=1,i.from&&(d._rgba=i.from(d[r])))}),this):void 0},is:function(t){var e=u(t),n=!0,i=this;return p(c,function(t,o){var r,s=e[o.cache];return s&&(r=i[o.cache]||o.to&&o.to(i._rgba)||[],p(o.props,function(t,e){return null!=s[e.idx]?n=s[e.idx]===r[e.idx]:void 0})),n}),n},_space:function(){var t=[],e=this;return p(c,function(n,i){e[i.cache]&&t.push(n)}),t.pop()},transition:function(t,e){var i=u(t),o=i._space(),r=c[o],s=0===this.alpha()?u("transparent"):this,a=s[r.cache]||r.to(s._rgba),l=a.slice();return i=i[r.cache],p(r.props,function(t,o){var r=o.idx,s=a[r],u=i[r],c=d[o.type]||{};null!==u&&(null===s?l[r]=u:(c.mod&&(u-s>c.mod/2?s+=c.mod:s-u>c.mod/2&&(s-=c.mod)),l[r]=n((u-s)*e+s,o)))}),this[o](l)},blend:function(e){if(1===this._rgba[3])return this;var n=this._rgba.slice(),i=n.pop(),o=u(e)._rgba;return u(t.map(n,function(t,e){return(1-i)*o[e]+i*t}))},toRgbaString:function(){var e="rgba(",n=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===n[3]&&(n.pop(),e="rgb("),e+n.join()+")"},toHslaString:function(){var e="hsla(",n=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===n[3]&&(n.pop(),e="hsl("),e+n.join()+")"},toHexString:function(e){var n=this._rgba.slice(),i=n.pop();return e&&n.push(~~(255*i)),"#"+t.map(n,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,n,i=t[0]/255,o=t[1]/255,r=t[2]/255,s=t[3],a=Math.max(i,o,r),l=Math.min(i,o,r),u=a-l,c=a+l,d=.5*c;return e=l===a?0:i===a?60*(o-r)/u+360:o===a?60*(r-i)/u+120:60*(i-o)/u+240,n=0===u?0:.5>=d?u/c:u/(2-c),[Math.round(e)%360,n,d,null==s?1:s]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,n=t[1],i=t[2],r=t[3],s=.5>=i?i*(1+n):i+n-i*n,a=2*i-s;return[Math.round(255*o(a,s,e+1/3)),Math.round(255*o(a,s,e)),Math.round(255*o(a,s,e-1/3)),r]},p(c,function(i,o){var r=o.props,s=o.cache,l=o.to,c=o.from;u.fn[i]=function(i){if(l&&!this[s]&&(this[s]=l(this._rgba)),i===e)return this[s].slice();var o,a=t.type(i),d="array"===a||"object"===a?i:arguments,h=this[s].slice();return p(r,function(t,e){var i=d["object"===a?t:e.idx];null==i&&(i=h[e.idx]),h[e.idx]=n(i,e)}),c?(o=u(c(h)),o[s]=h,o):u(h)},p(r,function(e,n){u.fn[e]||(u.fn[e]=function(o){var r,s=t.type(o),l="alpha"===e?this._hsla?"hsla":"rgba":i,u=this[l](),c=u[n.idx];return"undefined"===s?c:("function"===s&&(o=o.call(this,c),s=t.type(o)),null==o&&n.empty?this:("string"===s&&(r=a.exec(o),r&&(o=c+parseFloat(r[2])*("+"===r[1]?1:-1))),u[n.idx]=o,this[l](u)))})})}),u.hook=function(e){var n=e.split(" ");p(n,function(e,n){t.cssHooks[n]={set:function(e,o){var r,s,a="";if("transparent"!==o&&("string"!==t.type(o)||(r=i(o)))){if(o=u(r||o),!h.rgba&&1!==o._rgba[3]){for(s="backgroundColor"===n?e.parentNode:e;(""===a||"transparent"===a)&&s&&s.style;)try{a=t.css(s,"backgroundColor"),s=s.parentNode}catch(l){}o=o.blend(a&&"transparent"!==a?a:"_default")}o=o.toRgbaString()}try{e.style[n]=o}catch(l){}}},t.fx.step[n]=function(e){e.colorInit||(e.start=u(e.elem,n),e.end=u(e.end),e.colorInit=!0),t.cssHooks[n].set(e.elem,e.start.transition(e.end,e.pos))}})},u.hook(s),t.cssHooks.borderColor={expand:function(t){var e={};return p(["Top","Right","Bottom","Left"],function(n,i){e["border"+i+"Color"]=t}),e}},r=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(n),function(){function e(e){var n,i,o=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,r={};if(o&&o.length&&o[0]&&o[o[0]])for(i=o.length;i--;)n=o[i],"string"==typeof o[n]&&(r[t.camelCase(n)]=o[n]);else for(n in o)"string"==typeof o[n]&&(r[n]=o[n]);return r}function i(e,n){var i,o,s={};for(i in n)o=n[i],e[i]!==o&&(r[i]||(t.fx.step[i]||!isNaN(parseFloat(o)))&&(s[i]=o));return s}var o=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(n.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(n,r,s,a){var l=t.speed(r,s,a);return this.queue(function(){var r,s=t(this),a=s.attr("class")||"",u=l.children?s.find("*").addBack():s;u=u.map(function(){var n=t(this);return{el:n,start:e(this)}}),r=function(){t.each(o,function(t,e){n[e]&&s[e+"Class"](n[e])})},r(),u=u.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),s.attr("class",a),u=u.map(function(){var e=this,n=t.Deferred(),i=t.extend({},l,{queue:!1,complete:function(){n.resolve(e)}});return this.el.animate(this.diff,i),n.promise()}),t.when.apply(t,u.get()).done(function(){r(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(s[0])})})},t.fn.extend({addClass:function(e){return function(n,i,o,r){return i?t.effects.animateClass.call(this,{add:n},i,o,r):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(n,i,o,r){return arguments.length>1?t.effects.animateClass.call(this,{remove:n},i,o,r):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(n,i,o,r,s){return"boolean"==typeof i||void 0===i?o?t.effects.animateClass.call(this,i?{add:n}:{remove:n},o,r,s):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},i,o,r)}}(t.fn.toggleClass),switchClass:function(e,n,i,o,r){return t.effects.animateClass.call(this,{add:n,remove:e},i,o,r)}})}(),function(){function n(e,n,i,o){return t.isPlainObject(e)&&(n=e,e=e.effect),e={effect:e},null==n&&(n={}),t.isFunction(n)&&(o=n,i=null,n={}),("number"==typeof n||t.fx.speeds[n])&&(o=i,i=n,n={}),t.isFunction(i)&&(o=i,i=null),n&&t.extend(e,n),i=i||n.duration,e.duration=t.fx.off?0:"number"==typeof i?i:i in t.fx.speeds?t.fx.speeds[i]:t.fx.speeds._default,e.complete=o||n.complete,e}function i(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}t.extend(t.effects,{version:"1.11.4",save:function(t,n){for(var i=0;i<n.length;i++)null!==n[i]&&t.data(e+n[i],t[0].style[n[i]])},restore:function(t,n){var i,o;for(o=0;o<n.length;o++)null!==n[o]&&(i=t.data(e+n[o]),void 0===i&&(i=""),t.css(n[o],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var n,i;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:n}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var n={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},i=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:e.width(),height:e.height()},r=document.activeElement;try{r.id}catch(s){r=document.body}return e.wrap(i),(e[0]===r||t.contains(e[0],r))&&t(r).focus(),i=e.parent(),"static"===e.css("position")?(i.css({position:"relative"}),e.css({position:"relative"})):(t.extend(n,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,i){n[i]=e.css(i),isNaN(parseInt(n[i],10))&&(n[i]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(o),i.css(n).show()},removeWrapper:function(e){var n=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===n||t.contains(e[0],n))&&t(n).focus()),e},setTransition:function(e,n,i,o){return o=o||{},t.each(n,function(t,n){var r=e.cssUnit(n);r[0]>0&&(o[n]=r[0]*i+r[1])}),o}}),t.fn.extend({effect:function(){function e(e){function n(){t.isFunction(r)&&r.call(o[0]),t.isFunction(e)&&e()}var o=t(this),r=i.complete,a=i.mode;(o.is(":hidden")?"hide"===a:"show"===a)?(o[a](),n()):s.call(o[0],i,n)}var i=n.apply(this,arguments),o=i.mode,r=i.queue,s=t.effects.effect[i.effect];return t.fx.off||!s?o?this[o](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):r===!1?this.each(e):this.queue(r||"fx",e)},show:function(t){return function(e){if(i(e))return t.apply(this,arguments);var o=n.apply(this,arguments);return o.mode="show",this.effect.call(this,o)}}(t.fn.show),hide:function(t){return function(e){if(i(e))return t.apply(this,arguments);var o=n.apply(this,arguments);return o.mode="hide",this.effect.call(this,o)}}(t.fn.hide),toggle:function(t){return function(e){if(i(e)||"boolean"==typeof e)return t.apply(this,arguments);var o=n.apply(this,arguments);return o.mode="toggle",this.effect.call(this,o)}}
3(t.fn.toggle),cssUnit:function(e){var n=this.css(e),i=[];return t.each(["em","px","%","pt"],function(t,e){n.indexOf(e)>0&&(i=[parseFloat(n),e])}),i}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,n){e[n]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,n){t.easing["easeIn"+e]=n,t.easing["easeOut"+e]=function(t){return 1-n(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?n(2*t)/2:1-n(-2*t+2)/2}})}(),t.effects}),function(t){"function"==typeof _wAMD.define&&_wAMD.define.amd?_wAMD.define("jquery-ui/effect-highlight",["jquery","./effect"],t):t(jQuery)}(function(t){return t.effects.effect.highlight=function(e,n){var i=t(this),o=["backgroundImage","backgroundColor","opacity"],r=t.effects.setMode(i,e.mode||"show"),s={backgroundColor:i.css("backgroundColor")};"hide"===r&&(s.opacity=0),t.effects.save(i,o),i.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&i.hide(),t.effects.restore(i,o),n()}})}}),function(t){"function"==typeof _wAMD.define&&_wAMD.define.amd?_wAMD.define("jquery-ui/effect-fade",["jquery","./effect"],t):t(jQuery)}(function(t){return t.effects.effect.fade=function(e,n){var i=t(this),o=t.effects.setMode(i,e.mode||"toggle");i.animate({opacity:o},{queue:!1,duration:e.duration,easing:e.easing,complete:n})}}),_wAMD.define("util/effect-slide-custom",["jquery","jquery-ui/effect"],function(t){!function(t,e){t.effects.effect.slide=function(e,n){var i,o=t(this),r=["position","top","bottom","left","right","width","height"],s=t.effects.setMode(o,e.mode||"show"),a="show"===s,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,d={};t.effects.save(o,r),o.show();var h=e.wrapper;h?(h=t(h).show(),/relative|absolute/.test(o.css("position"))||o.css("position","relative")):h=t.effects.createWrapper(o),h.css("overflow","hidden");var i=e.distance||("top"==u?o.height()?o.outerHeight(!0):h.height():o.width()?o.outerWidth(!0):h.width());a&&o.css(u,c?isNaN(i)?"-"+i:-i:i),d[u]=(a?c?"+=":"-=":c?"-=":"+=")+i,o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===s&&o.hide(),t.effects.restore(o,r),e.wrapper?(h.css("overflow",""),"hide"==s&&h.hide()):t.effects.removeWrapper(o),n()}})}}(t)}),function(t,e){if("function"==typeof _wAMD.define&&_wAMD.define.amd)_wAMD.define("backbone",["underscore","jquery","exports"],function(n,i,o){t.Backbone=e(t,o,n,i)});else if("undefined"!=typeof exports){var n=require("underscore");e(t,exports,n)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,n,i){var o=t.Backbone,r=[],s=(r.push,r.slice);r.splice;e.VERSION="1.1.2",e.$=i,e.noConflict=function(){return t.Backbone=o,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,n){if(!u(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var i=this._events[t]||(this._events[t]=[]);return i.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,i){if(!u(this,"once",t,[e,i])||!e)return this;var o=this,r=n.once(function(){o.off(t,r),e.apply(this,arguments)});return r._callback=e,this.on(t,r,i)},off:function(t,e,i){var o,r,s,a,l,c,d,h;if(!this._events||!u(this,"off",t,[e,i]))return this;if(!t&&!e&&!i)return this._events=void 0,this;for(a=t?[t]:n.keys(this._events),l=0,c=a.length;c>l;l++)if(t=a[l],s=this._events[t]){if(this._events[t]=o=[],e||i)for(d=0,h=s.length;h>d;d++)r=s[d],(e&&e!==r.callback&&e!==r.callback._callback||i&&i!==r.context)&&o.push(r);o.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=s.call(arguments,1);if(!u(this,"trigger",t,e))return this;var n=this._events[t],i=this._events.all;return n&&c(n,e),i&&c(i,arguments),this}
3,stopListening:function(t,e,i){var o=this._listeningTo;if(!o)return this;var r=!e&&!i;i||"object"!=typeof e||(i=this),t&&((o={})[t._listenId]=t);for(var s in o)t=o[s],t.off(e,i,this),(r||n.isEmpty(t._events))&&delete this._listeningTo[s];return this}},l=/\s+/,u=function(t,e,n,i){if(!n)return!0;if("object"==typeof n){for(var o in n)t[e].apply(t,[o,n[o]].concat(i));return!1}if(l.test(n)){for(var r=n.split(l),s=0,a=r.length;a>s;s++)t[e].apply(t,[r[s]].concat(i));return!1}return!0},c=function(t,e){var n,i=-1,o=t.length,r=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++i<o;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<o;)(n=t[i]).callback.call(n.ctx,r);return;case 2:for(;++i<o;)(n=t[i]).callback.call(n.ctx,r,s);return;case 3:for(;++i<o;)(n=t[i]).callback.call(n.ctx,r,s,a);return;default:for(;++i<o;)(n=t[i]).callback.apply(n.ctx,e);return}},d={listenTo:"on",listenToOnce:"once"};n.each(d,function(t,e){a[e]=function(e,i,o){var r=this._listeningTo||(this._listeningTo={}),s=e._listenId||(e._listenId=n.uniqueId("l"));return r[s]=e,o||"object"!=typeof i||(o=this),e[t](i,o,this),this}}),a.bind=a.on,a.unbind=a.off,n.extend(e,a);var h=e.Model=function(t,e){var i=t||{};e||(e={}),this.cid=n.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),i=n.defaults({},i,n.result(this,"defaults")),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(h.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,i){var o,r,s,a,l,u,c,d;if(null==t)return this;if("object"==typeof t?(r=t,i=e):(r={})[t]=e,i||(i={}),!this._validate(r,i))return!1;s=i.unset,l=i.silent,a=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=n.clone(this.attributes),this.changed={}),d=this.attributes,c=this._previousAttributes,this.idAttribute in r&&(this.id=r[this.idAttribute]);for(o in r)e=r[o],n.isEqual(d[o],e)||a.push(o),n.isEqual(c[o],e)?delete this.changed[o]:this.changed[o]=e,s?delete d[o]:d[o]=e;if(!l){a.length&&(this._pending=i);for(var h=0,f=a.length;f>h;h++)this.trigger("change:"+a[h],this,d[a[h]],i)}if(u)return this;if(!l)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var i in this.attributes)e[i]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?n.clone(this.changed):!1;var e,i=!1,o=this._changing?this._previousAttributes:this.attributes;for(var r in t)n.isEqual(o[r],e=t[r])||((i||(i={}))[r]=e);return i},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=this,i=t.success;return t.success=function(n){return e.set(e.parse(n,t),t)?(i&&i(e,n,t),void e.trigger("sync",e,n,t)):!1},O(this,t),this.sync("read",this,t)},save:function(t,e,i){var o,r,s,a=this.attributes;if(null==t||"object"==typeof t?(o=t,i=e):(o={})[t]=e,i=n.extend({validate:!0},i),o&&!i.wait){if(!this.set(o,i))return!1}else if(!this._validate(o,i))return!1;o&&i.wait&&(this.attributes=n.extend({},a,o)),void 0===i.parse&&(i.parse=!0);var l=this,u=i.success;return i.success=function(t){l.attributes=a;var e=l.parse(t,i);return i.wait&&(e=n.extend(o||{},e)),n.isObject(e)&&!l.set(e,i)?!1:(u&&u(l,t,i),void l.trigger("sync",l,t,i))},O(this,i),r=this.isNew()?"create":i.patch?"patch":"update","patch"===r&&(i.attrs=o),s=this.sync(r,this,i),o&&i.wait&&(this.attributes=a),s},destroy:function(t){t=t?n.clone(t):{};var e=this,i=t.success,o=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(n){(t.wait||e.isNew())&&o(),i&&i(e,n,t),e.isNew()||e.trigger("sync",e,n,t)},this.isNew())return t.success(),!1;O(this,t);var r=this.sync("delete",this,t);return t.wait||o(),r},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||B();
3return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var i=this.validationError=this.validate(t,e)||null;return i?(this.trigger("invalid",this,i,n.extend(e,{validationError:i})),!1):!0}});var f=["keys","values","pairs","invert","pick","omit"];n.each(f,function(t){h.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.attributes),n[t].apply(n,e)}});var p=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},m={add:!0,remove:!0,merge:!0},g={add:!0,remove:!1};n.extend(p.prototype,a,{model:h,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,g))},remove:function(t,e){var i=!n.isArray(t);t=i?[t]:n.clone(t),e||(e={});var o,r,s,a;for(o=0,r=t.length;r>o;o++)a=t[o]=this.get(t[o]),a&&(delete this._byId[a.id],delete this._byId[a.cid],s=this.indexOf(a),this.models.splice(s,1),this.length--,e.silent||(e.index=s,a.trigger("remove",a,this,e)),this._removeReference(a,e));return i?t[0]:t},set:function(t,e){e=n.defaults({},e,m),e.parse&&(t=this.parse(t,e));var i=!n.isArray(t);t=i?t?[t]:[]:n.clone(t);var o,r,s,a,l,u,c,d=e.at,f=this.model,p=this.comparator&&null==d&&e.sort!==!1,g=n.isString(this.comparator)?this.comparator:null,v=[],y=[],b={},w=e.add,T=e.merge,_=e.remove,S=!p&&w&&_?[]:!1;for(o=0,r=t.length;r>o;o++){if(l=t[o]||{},s=l instanceof h?a=l:l[f.prototype.idAttribute||"id"],u=this.get(s))_&&(b[u.cid]=!0),T&&(l=l===a?a.attributes:l,e.parse&&(l=u.parse(l,e)),u.set(l,e),p&&!c&&u.hasChanged(g)&&(c=!0)),t[o]=u;else if(w){if(a=t[o]=this._prepareModel(l,e),!a)continue;v.push(a),this._addReference(a,e)}a=u||a,!S||!a.isNew()&&b[a.id]||S.push(a),b[a.id]=!0}if(_){for(o=0,r=this.length;r>o;++o)b[(a=this.models[o]).cid]||y.push(a);y.length&&this.remove(y,e)}if(v.length||S&&S.length)if(p&&(c=!0),this.length+=v.length,null!=d)for(o=0,r=v.length;r>o;o++)this.models.splice(d+o,0,v[o]);else{S&&(this.models.length=0);var M=S||v;for(o=0,r=M.length;r>o;o++)this.models.push(M[o])}if(c&&this.sort({silent:!0}),!e.silent){for(o=0,r=v.length;r>o;o++)(a=v[o]).trigger("add",a,this,e);(c||S&&S.length)&&this.trigger("sort",this,e)}return i?t[0]:t},reset:function(t,e){e||(e={});for(var i=0,o=this.models.length;o>i;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return s.apply(this.models,arguments)},get:function(t){return null!=t?this._byId[t]||this._byId[t.id]||this._byId[t.cid]:void 0},at:function(t){return this.models[t]},where:function(t,e){return n.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var n in t)if(t[n]!==e.get(n))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=t.success,i=this;return t.success=function(n){var o=t.reset?"reset":"set";i[o](n,t),e&&e(i,n,t),i.trigger("sync",i,n,t)},O(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?n.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var i=this,o=e.success;return e.success=function(t,n){e.wait&&i.add(t,e),o&&o(t,n,e)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof h)return t;e=e?n.clone(e):{},e.collection=this;var i=new this.model(t,e);return i.validationError?(this.trigger("invalid",this,i.validationError,e),!1):i},_addReference:function(t,e){this._byId[t.cid]=t,null!=t.id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,i),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&
3(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var v=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];n.each(v,function(t){p.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.models),n[t].apply(n,e)}});var y=["groupBy","countBy","sortBy","indexBy"];n.each(y,function(t){p.prototype[t]=function(e,i){var o=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,o,i)}});var b=e.View=function(t){this.cid=n.uniqueId("view"),t||(t={}),n.extend(this,n.pick(t,T)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},w=/^(\S+)\s*(.*)$/,T=["model","collection","el","id","attributes","className","tagName","events"];n.extend(b.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=n.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var i=t[e];if(n.isFunction(i)||(i=this[t[e]]), 4i){var o=e.match(w),r=o[1],s=o[2];i=n.bind(i,this),r+=".delegateEvents"+this.cid,""===s?this.$el.on(r,i):this.$el.on(r,s,i)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t["class"]=n.result(this,"className"));var i=e.$("<"+n.result(this,"tagName")+">").attr(t);this.setElement(i,!1)}}}),e.sync=function(t,i,o){var r=S[t];n.defaults(o||(o={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:r,dataType:"json"};if(o.url||(s.url=n.result(i,"url")||B()),null!=o.data||!i||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(o.attrs||i.toJSON(o))),o.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),o.emulateHTTP&&("PUT"===r||"DELETE"===r||"PATCH"===r)){s.type="POST",o.emulateJSON&&(s.data._method=r);var a=o.beforeSend;o.beforeSend=function(t){return t.setRequestHeader("X-HTTP-Method-Override",r),a?a.apply(this,arguments):void 0}}"GET"===s.type||o.emulateJSON||(s.processData=!1),"PATCH"===s.type&&_&&(s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=o.xhr=e.ajax(n.extend(s,o));return i.trigger("request",i,l,o),l};var _=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),S={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var M=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},P=/\((.*?)\)/g,C=/(\(\?)?:\w+/g,A=/\*\w+/g,x=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(M.prototype,a,{initialize:function(){},route:function(t,i,o){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(i)&&(o=i,i=""),o||(o=this[i]);var r=this;return e.history.route(t,function(n){var s=r._extractParameters(t,n);r.execute(o,s),r.trigger.apply(r,["route:"+i].concat(s)),r.trigger("route",i,s),e.history.trigger("route",r,i,s)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(x,"\\$&").replace(P,"(?:$1)?").replace(C,function(t,e){return e?t:"([^/?]+)"}).replace(A,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return n.map(i,function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null})}});var k=e.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},E=/^[#\/]|\s+$/g,D=/^\/+|\/+$/g,I=/msie [\w.]+/,G=/\/$/,H=/#.*$/;k.started=!1,n.extend(k.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(G,"");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(E,"")},start:function(t){if(k.started)throw new Error("Backbone.history has already been started");k.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var i=this.getFragment(),o=document.documentMode,r=I.exec(navigator.userAgent.toLowerCase())&&(!o||7>=o);if(this.root=("/"+this.root+"/").replace(D,"/"),r&&this._wantsHashChange){var s=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=s.hide().appendTo("body")[0].contentWindow,this.navigate(i)}this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!r?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=i;var a=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&a.hash&&(this.fragment=this.getHash().replace(E,""),this.history.replaceState({},document.title,this.root+this.fragment))}return this.options.silent?void 0:this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),k.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment?!1:(this.iframe&&this.navigate(e),void this.loadUrl())},loadUrl:function(t){return t=this.fragment=this.getFragment(t),n.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})},navigate:function(t,e){if(!k.started)return!1;e&&e!==!0||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||""));if(t=t.replace(H,""),this.fragment!==t){if(this.fragment=t,""===t&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,"");t.replace(i+"#"+e)}else t.hash="#"+e}}),e.history=new k;var R=function(t,e){var i,o=this;i=t&&n.has(t,"constructor")?t.constructor:function(){return o.apply(this,arguments)},n.extend(i,o,e);var r=function(){this.constructor=i};return r.prototype=o.prototype,i.prototype=new r,t&&n.extend(i.prototype,t),i.__super__=o.prototype,i};h.extend=p.extend=M.extend=b.extend=k.extend=R;var B=function(){throw new Error('A "url" property or function must be specified')},O=function(t,e){var n=e.error;e.error=function(i){n&&n(t,i,e),t.trigger("error",t,i,e)}};return e}),_wAMD.define("util/platform/elements/PlatformElement",["backbone"],function(t){var e=t.View.prototype,n=t.View.extend({initialize:function(t){e.initialize.apply(this,arguments)},render:function(){window.inEditor&&window.inEditor()&&require("editor-site-shared/relay").request("page:navigate")},remove:function(){e.remove.apply(this,arguments)},setElement:function(){e.setElement.apply(this,arguments)},delegateEvents:function(){e.delegateEvents.apply(this,arguments)},undelegateEvents:function(){e.undelegateEvents.apply(this,arguments)}});return n}),_wAMD.define("config",["require","exports","module"],function(t,e,n){return{chromeless:!1,content_field_js_render:!1,defaultPlaceholderText:_W.stl("javascript.editor.config_1"),areaDefaultPlaceholderText:{phone:_W.stl("javascript.editor.config_2"),headline:_W.stl("javascript.editor.config_3"),"headline-paragraph":_W.stl("javascript.editor.config_4")}}}),_wAMD.define("util/platform/elements/PlatformElementSettings",["jquery","config","backbone"],function(t,e,n){var i=n.Model.extend({save:function(n,i,o){var r=this,s=this.attributes;if(null==n||"object"==typeof n?(s=n,o=i):(s={})[n]=i,s&&!this.set(s,o))return!1;if(window.inEditor&&window.inEditor()&&!e.chromeless)return _W.Editor.RPC.PlatformElementInstance.updateSettings(r.page_element_id,r.toJSON());var a=new t.Deferred;return a.resolve({success:!1,message:"You cannot update settings outside of the editor."}),a.promise()}});return i}),function(t){var e=function(){var e=function(){var e=t(".wsite-view-l
4ink-full"),n=t(".wsite-view-link-mobile"),i=window.location.href||"";i+=i.indexOf("?")>-1?"&":"?",e.attr("href",i+"view=full"),n.attr("href",i+"view=mobile")};e();var n=window.History;n&&n.enabled&&History.Adapter.bind(window,"statechange",e)};t(document).ready(e)}(Weebly.jQuery),function(){var t=window.STYLE_PREFIX||"weebly",e=function(){for(var e=0;e<document.styleSheets.length;e++)try{if(document.styleSheets[e].title==t+"-theme-css"){var n=document.styleSheets[e],i=n.cssRules||n.rules;return i&&i.length>0}}catch(o){}return!1},n=function(t){if(e())t();else var n=setInterval(function(){e()&&(clearInterval(n),t())},200)};window.whenThemeCSSLoaded||(window.whenThemeCSSLoaded=n),window.isThemeCSSLoaded||(window.isThemeCSSLoaded=e)}(),_wAMD.define("site/published/general",function(){}),function(t){window.blogCommentDisplayForm=function(e,n,i){var o=t("#"+n),r=o.data("isReplyFormOpen")||!1,s=o.prev(".reply-comment").find("span").first(),a=_W.stl("javascript.site.comments_1");if(!o.data("locked")){o.data("locked",!0);var l=o.data("replyText");l||(l=s.html(),o.data("replyText",l));var u=t("#"+n+" iframe");return u.length||(u=t('<iframe src="'+e+'" frameborder="0" allowtransparency="true" scrolling="no"></iframe>'),t("#"+n+" > div > div").first().append(u)),r?(s.html(l),o.data("isReplyFormOpen",!1),o.down().hide("slide",{wrapper:o,direction:"up",duration:1e3,complete:function(){o.data("locked",!1)}})):(s.html(a),o.data("isReplyFormOpen",!0),o.down().show("slide",{wrapper:o,direction:"up",duration:1e3,complete:function(){o.data("locked",!1)}})),!1}}}(Weebly.jQuery),_wAMD.define("site/published/comments",function(){}),_wAMD.define("site/published/formFieldInstructions",["jquery","underscore"],function(t,e){var n=!1,i=!1,o={createFieldInstructions:function(e){var n=t('<div class="instructions-container">').html(e),i=t('<span class="wsite-instructions-container-caret"/>');return n.append(i),t("body").append(n),n},setupFieldInstructions:function(e,r){var s=t(e);if(s.html()){if(!n){var a=window.getComputedStyle(document.body);i="hidden"===a.getPropertyValue("overflow")||"hidden"===a.getPropertyValue("overflow-y")||"hidden"===a.getPropertyValue("overflow-x"),n=!0}null==r&&(r="wsite");var l=s.parents("."+r+"-form-field");l.data("form-instruction",{instructions:o.createFieldInstructions(e.innerHTML)}),o.createHelpIcon(l)}},createHelpIcon:function(e){var n=e.data("form-instruction"),o=n.instructions,r=t('<span class="wsite-instructions-help"/>');e.find(".wsite-form-label").append(r);var s=function(n){"touchstart"===n.type&&t.contains(e[0],n.target)||(o.hide(),t(document).off(".formfieldinstructions"))},a=function(){var e=o.find(".wsite-instructions-container-caret"),n=window.getComputedStyle(e[0],":before").getPropertyValue("border-width");n=parseInt(n,10)||10;var a=r.offset(),l=r.outerWidth(),u=r.outerHeight(),c=(o.offset(),o.outerWidth()),d=o.outerHeight(),h=a.top-d-(n+5),f=l+a.left-2*n-n/2;f+c>document.body.clientWidth&&(f=f-c+l+2*n+n/2,0>f&&(f=10)),o.removeClass("caret-top caret-bottom");var p;p=i?0>h:h<t(document.body).scrollTop(),p?(h=h+u+d+(2*n+10),o.addClass("caret-top")):o.addClass("caret-bottom"),o.css({top:h,left:f}).show().find(".wsite-instructions-container-caret").css({left:a.left-f+n/2}),setTimeout(function(){t(document).on({"touchmove.formfieldinstructions":s,"touchstart.formfieldinstructions":s})},250)};r.on({mouseover:a,mouseout:s,touchstart:function(t){t.preventDefault(),a()}})}};return o}
4),_wAMD.define("site/published/form",["jquery","site/published/formFieldInstructions"],function(t,e){!function(n){function i(){if(window.location.href.match(/posted=(.*)$/)){var e=t.parseJSON(decodeURIComponent(window.location.href.match(/posted=(.*)$/)[1].replace(/\+/g," ")));t("form").each(function(n,i){var o=t(i);t.each(e,function(e,n){"object"==typeof n?t.each(n,function(t,n){o.find("input").each(function(i,o){(o.name.replace(/_u\d*/,"")==e+"["+t+"]"||o.name==e+"["+t+"]")&&("checkbox"===o.type?o.checked=1:o.value=n)})}):o.find("input,textarea,select,button").each(function(t,r){if(r.name.replace(/_u\d*/,"")==e||r.name==e){var s=r.name;i[s][0]&&"radio"===i[s][0].type?o.find("radio[name="+s+"]").each(function(t,e){e.value==n&&(e.checked=!0)}):r.value=n}})})})}if(window.location.href.match(/form-errors=(.*?)&/)&&window.location.href.match(/ucfid%22%3A%22(.*?)%/)){var n=window.location.href.match(/form\-errors=(.*?)&/)[1].split(","),i=window.location.href.match(/ucfid%22%3A%22(.*?)%/)[1],o=t("#form-"+i);t.each(n,function(e,n){
4n=decodeURIComponent(n),o.find("input,textarea,select,button").each(function(e,i){(i.name.replace(/_u\d*/,"")==n||i.name.replace(/.*_u/,"_u")==n||i.name.replace(/\[.*\]$/,"")==n)&&t(i).addClass("form-input-error").up("."+l+"-form-field").addClass("form-field-error")})}),t("#"+i+"-form-parent").after("<div>Please correct the highlighted fields</div>")}if(window.location.href.match(/success\=1/)&&window.location.href.match(/ucfid\=(.*)/)){var i=window.location.href.match(/ucfid\=(.*?)&/)[1],o=t("#form-"+i),r="Your data was successfully submitted.",s=window.location.href.match(/text=(.*?)&/);s&&(r=a(decodeURIComponent(s[1].replace(/\+/g," ")))),o.html("<div>"+r+"</div>")}}function o(){function e(e){var i=e.origin==location.protocol+location.port+"//"+location.hostname;if(!i){if(!_W.resellerSite||!_W.configDomain)return;var o=e.origin==location.protocol+location.port+"//"+_W.configDomain;if(!o)return}var r=n.evalJSON(e.data);switch(r.action){case"finished":var s=r.data.ucfid,a=t("#form-"+s);a.hide();var u=t("#"+s+"-msg");return u.length||(u=t('<div id="'+s+'-msg"/>').insertAfter(a)),u.html(r.data.message),u.effect("highlight",{},2e3),void t("body").animate({scrollTop:u.offset().top},{easing:"easeOutQuart",duration:2e3});case"redirect":return void(window.location=r.data.location);case"error":var c=r.data["error-fields"],s=r.data.ucfid,a=t("#form-"+s);a.find("input,textarea,select,button").filter(".form-input-error").each(function(e,n){t(n).removeClass("form-input-error").up("."+l+"-form-field").removeClass("form-field-error")}),t.each(c,function(e,n){a.find("input,textarea,select,button").each(function(e,i){(i.name.replace(/_u\d*/,"")==n||i.name.replace(/.*_u/,"_u")==n||i.name.replace(/\[.*\]$/,"")==n)&&t(i).addClass("form-input-error").up("."+l+"-form-field").addClass("form-field-error")})});var u=t("#"+s+"-msg");return u.length||(u=t('<div id="'+s+'-msg"/>').insertAfter(a)),void u.html(r.data.message)}}t("form").each(function(n,i){var o=t(i),r=o.attr("action")||"",s=window.location.host;if(r.match(/formSubmit\.php$/)){1!=_W.resellerSite?r=r.replace(/(.*)\/formSubmit\.php$/,window.location.protocol+"//"+s+"/ajax/apps/formSubmitAjax.php"):(r=r.replace("formSubmit.php","formSubmitAjax.php"),r.startsWith("http:")&&"https:"==window.location.protocol&&(r=r.replace("http:","https:")),t("<input>").attr({type:"hidden",id:"formLocation",name:"formLocation",value:window.location.host}).appendTo(o)),_W.nestedSiteDomain&&s!==_W.nestedSiteDomain&&t("<input>").attr({type:"hidden",id:"nestedSite",name:"nestedSite",value:_W.nestedSiteDomain}).appendTo(o),o.attr("action",r),o.attr("accept-charset","UTF-8");var a=o.attr("id")+"-target-"+Date.now(),l=t('<iframe name="'+a+'"/>').hide().attr("id",a).insertAfter(o),u=l[0];o.attr("target",u.id),window.postMessage||l.on("load",function(){try{var t=(u.contentDocument||u.contentWindow.document).location.href,n=(u.contentDocument||u.contentWindow.document).body.firstChild.nodeValue;"about:blank"!=t&&e({data:n,source:u.contentWindow})}catch(i){}})}}),window.postMessage&&t(window).on("message",function(t){try{e(t.originalEvent)}catch(n){}})}function r(){t("."+l+"-form-instructions").each(function(t,n){e.setupFieldInstructions(n,l)})}function s(){t("input[name="+l+"_approved]").val("approved"),t(document).off("mousedown",s).off("keydown",s)}function a(t){var e=document.createElement("div"),n=document.createTextNode(t);return e.appendChild(n),e.innerHTML}var l=window.STYLE_PREFIX||"weebly";t(document).ready(i).ready(r).ready(o).on("mousedown",s).on("keydown",s)}(Weebly)}),function(t){function e(){t("#wsite-header-search-form").on("click","span.wsite-search-button",function(e){t(e.delegateTarget).submit()}).on("submit",function(t){return-1===document.body.className.indexOf("wsite-page-weebly/apps/preview")}),t("form.wsite-search-element-form").on("click","span.wsite-search-element-submit",function(e){t(e.delegateTarget).submit()}).on("submit",function(){return-1===document.body.className.indexOf("wsite-page-weebly/apps/preview")})}t(document).ready(e)}(Weebly.jQuery),_wAMD.define("site/published/search",function(){}),function(t,e){_wAMD.define("vendor/bower_components/mobile-detect/mobile-detect",[],function(){function t(t,e){return null!=t&&null!=e&&t.toLowerCase()===e.toLowerCase()}function n(t,e){var n,i,o=t.length;if(!o||!e)return!1;for(n=e.toLowerCase(),i=0;o>i;++i)if(n===t[i].toLowerCase())return!0;return!1}function i(t){for(var e in t)a.call(t,e)&&(t[e]=new RegExp(t[e],"i"))}function o(t,e){this.ua=t||"",this._cache={},this.maxPhoneWidth=e||600}var r={};r.mobileDetectRules={phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",Dell:"Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b",Samsung:"\\bSamsung\\b
vendor: 5,307 bytes, line 4
4|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F
4",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323)",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",NokiaLumia:"Lumia [0-9]{3,4}",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLI
4M|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo 3DS",Amoi:"Amoi",INQ:"INQ",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y|SM-T280",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI)\\b",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",NokiaLumiaTablet:"Lumia 2520",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010", 5MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MI
5D810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris [E|M]10)|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfVie
5wTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9",JXDTablet:"Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",MpmanTablet:"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",
5NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",KocasoTablet:"\\b(TB-1207)\\b",HisenseTablet:"\\b(F5281|E2371)\\b",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+|Coast/[0-9.]+",Skyfire:"Skyfire",Edge:"Mobile Safari/[.0-9]* Edge",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Puffin:"Puffin",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",PaleMoon:"Android.*PaleMoon|Mobile.*PaleMoon"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:["Firefox/[VER]","FxiOS/[VER]"],Fennec:"Fennec/[VER]",Edge:"Edge/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]","UC Browser":"UC Browser[VER]",MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",SamsungBrowser:"SamsungBrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",PaleMoon:"PaleMoon/[VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",Goanna:"Goanna/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},r.detectMobileBrowsers={fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
5sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i};var s,a=Object.prototype.hasOwnProperty;return r.FALLBACK_PHONE="UnknownPhone",r.FALLBACK_TABLET="UnknownTablet",r.FALLBACK_MOBILE="UnknownMobile",s="isArray"in Array?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},function(){var t,e,n,o,l,u,c=r.mobileDetectRules;for(t in c.props)if(a.call(c.props,t)){for(e=c.props[t],s(e)||(e=[e]),l=e.length,o=0;l>o;++o)n=e[o],u=n.indexOf("[VER]"),u>=0&&(n=n.substring(0,u)+"([\\w._\\+]+)"+n.substring(u+5)),e[o]=new RegExp(n,"i");c.props[t]=e}i(c.oss),i(c.phones),i(c.tablets),i(c.uas),i(c.utils),c.oss0={WindowsPhoneOS:c.oss.WindowsPhoneOS,WindowsMobileOS:c.oss.WindowsMobileOS}}(),r.findMatch=function(t,e){for(var n in t)if(a.call(t,n)&&t[n].test(e))return n;return null},r.findMatches=function(t,e){var n=[];for(var i in t)a.call(t,i)&&t[i].test(e)&&n.push(i);return n},r.getVersionStr=function(t,e){var n,i,o,s,l=r.mobileDetectRules.props;if(a.call(l,t))for(n=l[t],o=n.length,i=0;o>i;++i)if(s=n[i].exec(e),null!==s)return s[1];return null},r.getVersion=function(t,e){var n=r.getVersionStr(t,e);return n?r.prepareVersionNo(n):NaN},r.prepareVersionNo=function(t){var e;return e=t.split(/[a-z._ \/\-]/i),1===e.length&&(t=e[0]),e.length>1&&(t=e[0]+".",e.shift(),t+=e.join("")),Number(t)},r.isMobileFallback=function(t){return r.detectMobileBrowsers.fullPattern.test(t)||r.detectMobileBrowsers.shortPattern.test(t.substr(0,4))},r.isTabletFallback=function(t){return r.detectMobileBrowsers.tabletPattern.test(t)},r.prepareDetectionCache=function(t,n,i){if(t.mobile===e){var s,a,l;return(a=r.findMatch(r.mobileDetectRules.tablets,n))?(t.mobile=t.tablet=a,void(t.phone=null)):(s=r.findMatch(r.mobileDetectRules.phones,n))?(t.mobile=t.phone=s,void(t.tablet=null)):void(r.isMobileFallback(n)?(l=o.isPhoneSized(i),l===e?(t.mobile=r.FALLBACK_MOBILE,t.tablet=t.phone=null):l?(t.mobile=t.phone=r.FALLBACK_PHONE,t.tablet=null):(t.mobile=t.tablet=r.FALLBACK_TABLET,t.phone=null)):r.isTabletFallback(n)?(t.mobile=t.tablet=r.FALLBACK_TABLET,t.phone=null):t.mobile=t.tablet=t.phone=null)}},r.mobileGrade=function(t){var e=null!==t.mobile();return t.os("iOS")&&t.version("iPad")>=4.3||t.os("iOS")&&t.version("iPhone")>=3.1||t.os("iOS")&&t.version("iPod")>=3.1||t.version("Android")>2.1&&t.is("Webkit")||t.version("Windows Phone OS")>=7||t.is("BlackBerry")&&t.version("BlackBerry")>=6||t.match("Playbook.*Tablet")||t.version("webOS")>=1.4&&t.match("Palm|Pre|Pixi")||t.match("hp.*TouchPad")||t.is("Firefox")&&t.version("Firefox")>=12||t.is("Chrome")&&t.is("AndroidOS")&&t.version("Android")>=4||t.is("Skyfire")&&t.version("Skyfire")>=4.1&&t.is("AndroidOS")&&t.version("Android")>=2.3||t.is("Opera")&&t.version("Opera Mobi")>11&&t.is("AndroidOS")||t.is("MeeGoOS")||t.is("Tizen")||t.is("Dolfin")&&t.version("Bada")>=2||(t.is("UC Browser")||t.is("Dolfin"))&&t.version("Android")>=2.3||t.match("Kindle Fire")||t.is("Kindle")&&t.version("Kindle")>=3||t.is("AndroidOS")&&t.is("NookTablet")||t.version("Chrome")>=11&&!e||t.version("Safari")>=5&&!e||t.version("Firefox")>=4&&!e||t.version("MSIE")>=7&&!e||t.version("Opera")>=10&&!e?"A":t.os("iOS")&&t.version("iPad")<4.3||t.os("iOS")&&t.version("iPhone")<3.1||t.os("iOS")&&t.version("iPod")<3.1||t.is("Blackberry")&&t.version("BlackBerry")>=5&&t.version("BlackBerry")<6||t.version("Opera Mini")>=5&&t.version("Opera Mini")<=6.5&&(t.version("Android")>=2.3||t.is("iOS"))||t.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||t.version("Opera Mobi")>=11&&t.is("SymbianOS")?"B":(t.version("BlackBerry")<5||t.match("MSIEMobile|Windows CE.*Mobile")||t.version("Windows Mobile")<=5.2,"C")},r.detectOS=function(t){return r.findMatch(r.mobileDetectRules.oss0,t)||r.findMatch(r.mobileDetectRules.oss,t)},r.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},o.prototype={constructor:o,mobile:function(){return r.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return r.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return r.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===e&&(this._cache.userAgent=r.findMatch(r.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===e&&(this._cache.userAgents=r.findMatches(r.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===e&&(this._cache.os=r.detectOS(this.ua)),this._cache.os},version:function(t){return r.getVersion(t,this.ua)},versionStr:function(t){return r.getVersionStr(t,this.ua)},is:function(e){return n(this.userAgents(),e)||t(e,this.os())||t(e,this.phone())||t(e,this.tablet())||n(r.findMatches(r.mobileDetectRules.utils,this.ua),e)},match:function(t){return t instanceof RegExp||(t=new RegExp(t,"i")),t.test(this.ua)},isPhoneSized:function(t){return o.isPhoneSized(t||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===e&&(this._cache.grade=r.mobileGrade(this)),this._cache.grade}},"undefined"!=typeof window&&window.screen?o.isPhoneSized=function(t){return 0>t?e:r.getDeviceSmallerSide()<=t}:o.isPhoneSized=function(){},o._impl=r,o.version="1.3.5 2016-11-14",o})}(function(t){if("undefined"!=typeof module&&module.exports)return function(t){module.exports=t()};if("function"==typeof _wAMD.define&&_wAMD.define.amd)return define;if("undefined"!=typeof window)return function(t){window.MobileDetect=t()};throw new Error("unknown environment")}()),function(){"use strict";function t(n){return"undefined"==typeof this||Object.getPrototypeOf(this)!==t.prototype?new t(n):(M=this,M.version="3.3.1",M.tools=new S,M.isSupported()?(M.tools.extend(M.defaults,n||{}),e(M.defaults),M.store={elements:{},containers:[]},M.sequences={},M.history=[],M.uid=0,M.initialized=!1):"undefined"!=typeof console&&null!==console&&console.log("ScrollReveal is not supported in this browser."),M)}function e(t){if(t&&t.container){if("string"==typeof t.container)return window.document.documentElement.querySelector(t.container);if(M.tools.isNode(t.container))return t.container;console.log('ScrollReveal: invalid container "'+t.container+'" provided.'),console.log("ScrollReveal: falling back to default container.")}return M.defaults.container}function n(t,e){return"string"==typeof t?Array.prototype.slice.call(e.querySelectorAll(t)):M.tools.isNode(t)?[t]:M.tools.isNodeList(t)?Array.prototype.slice.call(t):[]}function i(){return++M.uid}function o(t,e,n){e.container&&(e.container=n),t.config?t.config=M.tools.extendClone(t.config,e):t.config=M.tools.extendClone(M.defaults,e),"top"===t.config.origin||"bottom"===t.config.origin?t.config.axis="Y":t.config.axis="X"}function r(t){var e=window.getComputedStyle(t.domEl);t.styles||(t.styles={transition:{},transform:{},computed:{}},t.styles.inline=t.domEl.getAttribute("style")||"",t.styles.inline+="; visibility: visible;
5 ",t.styles.computed.opacity=e.opacity,e.transition&&"all 0s ease 0s"!==e.transition?t.styles.computed.transition=e.transition+", ":t.styles.computed.transition=""),t.styles.transition.instant=s(t,0),t.styles.transition.delayed=s(t,t.config.delay),t.styles.transform.initial=" -webkit-transform:",t.styles.transform.target=" -webkit-transform:",a(t),t.styles.transform.initial+="transform:",t.styles.transform.target+="transform:",a(t)}function s(t,e){var n=t.config;return"-webkit-transition: "+t.styles.computed.transition+"-webkit-transform "+n.duration/1e3+"s "+n.easing+" "+e/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+e/1e3+"s; transition: "+t.styles.computed.transition+"transform "+n.duration/1e3+"s "+n.easing+" "+e/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+e/1e3+"s; "}function a(t){var e,n=t.config,i=t.styles.transform;e="top"===n.origin||"left"===n.origin?/^-/.test(n.distance)?n.distance.substr(1):"-"+n.distance:n.distance,parseInt(n.distance)&&(i.initial+=" translate"+n.axis+"("+e+")",i.target+=" translate"+n.axis+"(0)"),n.scale&&(i.initial+=" scale("+n.scale+")",i.target+=" scale(1)"),n.rotate.x&&(i.initial+=" rotateX("+n.rotate.x+"deg)",i.target+=" rotateX(0)"),n.rotate.y&&(i.initial+=" rotateY("+n.rotate.y+"deg)",i.target+=" rotateY(0)"),n.rotate.z&&(i.initial+=" rotateZ("+n.rotate.z+"deg)",i.target+=" rotateZ(0)"),i.initial+="; opacity: "+n.opacity+";",i.target+="; opacity: "+t.styles.computed.opacity+";"}function l(t){var e=t.config.container;e&&-1===M.store.containers.indexOf(e)&&M.store.containers.push(t.config.container),M.store.elements[t.id]=t}function u(t,e,n){var i={target:t,config:e,interval:n};M.history.push(i)}function c(){if(M.isSupported()){f();for(var t=0;t<M.store.containers.length;t++)M.store.containers[t].addEventListener("scroll",d),M.store.containers[t].addEventListener("resize",d);M.initialized||(window.addEventListener("scroll",d),window.addEventListener("resize",d),M.initialized=!0)}return M}function d(){P(f)}function h(){var t,e,n,i;M.tools.forOwn(M.sequences,function(o){i=M.sequences[o],t=!1;for(var r=0;r<i.elemIds.length;r++)n=i.elemIds[r],e=M.store.elements[n],_(e)&&!t&&(t=!0);i.active=t})}function f(){var t,e;h(),M.tools.forOwn(M.store.elements,function(n){e=M.store.elements[n],t=v(e),g(e)?(e.config.beforeReveal(e.domEl),t?e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.target+e.styles.transition.delayed):e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.target+e.styles.transition.instant),m("reveal",e,t),e.revealing=!0,e.seen=!0,e.sequence&&p(e,t)):y(e)&&(e.config.beforeReset(e.domEl),e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.initial+e.styles.transition.instant),m("reset",e),e.revealing=!1)})}function p(t,e){var n=0,i=0,o=M.sequences[t.sequence.id];o.blocked=!0,e&&"onload"===t.config.useDelay&&(i=t.config.delay),t.sequence.timer&&(n=Math.abs(t.sequence.timer.started-new Date),window.clearTimeout(t.sequence.timer)),t.sequence.timer={started:new Date},t.sequence.timer.clock=window.setTimeout(function(){o.blocked=!1,t.sequence.timer=null,d()},Math.abs(o.interval)+i-n)}function m(t,e,n){var i=0,o=0,r="after";switch(t){case"reveal":o=e.config.duration,n&&(o+=e.config.delay),r+="Reveal";break;case"reset":o=e.config.duration,r+="Reset"}e.timer&&(i=Math.abs(e.timer.started-new Date),window.clearTimeout(e.timer.clock)),e.timer={started:new Date},e.timer.clock=window.setTimeout(function(){e.config[r](e.domEl),e.timer=null},o-i)}function g(t){if(t.sequence){var e=M.sequences[t.sequence.id];return e.active&&!e.blocked&&!t.revealing&&!t.disabled}return _(t)&&!t.revealing&&!t.disabled}function v(t){var e=t.config.useDelay;return"always"===e||"onload"===e&&!M.initialized||"once"===e&&!t.seen}function y(t){if(t.sequence){var e=M.sequences[t.sequence.id];return!e.active&&t.config.reset&&t.revealing&&!t.disabled}return!_(t)&&t.config.reset&&t.revealing&&!t.disabled}function b(t){return{width:t.clientWidth,height:t.clientHeight}}function w(t){if(t&&t!==window.document.documentElement){var e=T(t);return{x:t.scrollLeft+e.left,y:t.scrollTop+e.top}}return{x:window.pageXOffset,y:window.pageYOffset}}function T(t){var e=0,n=0,i=t.offsetHeight,o=t.offsetWidth;do isNaN(t.offsetTop)||(e+=t.offsetTop),isNaN(t.offsetLeft)||(n+=t.offsetLeft),t=t.offsetParent;while(t);return{top:e,left:n,height:i,width:o}}function _(t){function e(){var e=u+a*s,n=c+l*s,i=d-a*s,f=h-l*s,p=r.y+t.config.viewOffset.top,m=r.x+t.config.viewOffset.left,g=r.y-t.config.viewOffset.bottom+o.height,v=r.x-t.config.viewOffset.right+o.width;return g>e&&i>p&&n>m&&v>f}function n(){return"fixed"===window.getComputedStyle(t.domEl).position}var i=T(t.domEl),o=b(t.config.container),r=w(t.config.container),s=t.config.viewFactor,a=i.height,l=i.width,u=i.top,c=i.left,d=u+a,h=c+l;return e()||n()}function S(){}var M,P;t.prototype.defaults={origin:"bottom",distance:"20px",duration:500,delay:0,rotate:{x:0,y:0,z:0},opacity:0,scale:.9,easing:"cubic-bezier(0.6, 0.2, 0.1, 1)",container:window.document.documentElement,mobile:!0,reset:!1,useDelay:"always",viewFactor:.2,viewOffset:{top:0,right:0,bottom:0,left:0},beforeReveal:function(t){},afterReveal:function(t){},beforeReset:function(t){},afterReset:function(t){}}
5,t.prototype.isSupported=function(){var t=document.documentElement.style;return"WebkitTransition"in t&&"WebkitTransform"in t||"transition"in t&&"transform"in t},t.prototype.reveal=function(t,s,a,d){var h,f,p,m,g,v;if(void 0!==s&&"number"==typeof s?(a=s,s={}):(void 0===s||null===s)&&(s={}),h=e(s),f=n(t,h),!f.length)return console.log('ScrollReveal: reveal on "'+t+'" failed, no elements found.'),M;a&&"number"==typeof a&&(v=i(),g=M.sequences[v]={id:v,interval:a,elemIds:[],active:!1});for(var y=0;y<f.length;y++)m=f[y].getAttribute("data-sr-id"),m?p=M.store.elements[m]:(p={id:i(),domEl:f[y],seen:!1,revealing:!1},p.domEl.setAttribute("data-sr-id",p.id)),g&&(p.sequence={id:g.id,index:g.elemIds.length},g.elemIds.push(p.id)),o(p,s,h),r(p),l(p),M.tools.isMobile()&&!p.config.mobile||!M.isSupported()?(p.domEl.setAttribute("style",p.styles.inline),p.disabled=!0):p.revealing||p.domEl.setAttribute("style",p.styles.inline+p.styles.transform.initial);return!d&&M.isSupported()&&(u(t,s,a),M.initTimeout&&window.clearTimeout(M.initTimeout),M.initTimeout=window.setTimeout(c,0)),M},t.prototype.sync=function(){if(M.history.length&&M.isSupported()){for(var t=0;t<M.history.length;t++){var e=M.history[t];M.reveal(e.target,e.config,e.interval,!0)}c()}else console.log("ScrollReveal: sync failed, no reveals found.");return M},S.prototype.isObject=function(t){return null!==t&&"object"==typeof t&&t.constructor===Object},S.prototype.isNode=function(t){return"object"==typeof window.Node?t instanceof window.Node:t&&"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},S.prototype.isNodeList=function(t){var e=Object.prototype.toString.call(t),n=/^\[object (HTMLCollection|NodeList|Object)\]$/;return"object"==typeof window.NodeList?t instanceof window.NodeList:t&&"object"==typeof t&&n.test(e)&&"number"==typeof t.length&&(0===t.length||this.isNode(t[0]))},S.prototype.forOwn=function(t,e){if(!this.isObject(t))throw new TypeError('Expected "object", but received "'+typeof t+'".');for(var n in t)t.hasOwnProperty(n)&&e(n)},S.prototype.extend=function(t,e){return this.forOwn(e,function(n){this.isObject(e[n])?(t[n]&&this.isObject(t[n])||(t[n]={}),this.extend(t[n],e[n])):t[n]=e[n]}.bind(this)),t},S.prototype.extendClone=function(t,e){return this.extend(this.extend({},t),e)},S.prototype.isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},P=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},"function"==typeof _wAMD.define&&"object"==typeof _wAMD.define.amd&&_wAMD.define.amd?_wAMD.define("vendor/bower_components/scrollreveal/dist/scrollreveal",[],function(){return t}):"undefined"!=typeof module&&module.exports?module.exports=t:window.ScrollReveal=t}(),"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(t,e,n){var i=function(t){var i=n.createElement("script"),r=n.getElementsByTagName("head")[0];"file://"==e.location.origin?i.src="http://www.youtube.com/iframe_api":i.src="https://www.youtube.com/iframe_api",r.appendChild(i),r=null,i=null,o(t)},o=function(n){"undefined"==typeof YT&&"undefined"==typeof e.loadingPlayer?(e.loadingPlayer=!0, 6e.dfd=t.Deferred(),e.onYouTubeIframeAPIReady=function(){e.onYouTubeIframeAPIReady=null,e.dfd.resolve("done"),n()}):"object"==typeof YT?n():e.dfd.done(function(t){n()})};YTPlayer={player:null,defaults:{ratio:16/9,videoId:"LSmgKRx5pBo",mute:!0,repeat:!0,width:t(e).width(),playButtonClass:"YTPlayer-play",pauseButtonClass:"YTPlayer-pause",muteButtonClass:"YTPlayer-mute",volumeUpClass:"YTPlayer-volume-up",volumeDownClass:"YTPlayer-volume-down",start:0,pauseOnScroll:!1,fitToBackground:!0,playerVars:{iv_load_policy:3,modestbranding:1,autoplay:1,controls:0,showinfo:0,wmode:"opaque",branding:0,autohide:0},events:null},init:function(n,o){var r=this;return r.userOptions=o,r.$node=t(n),r.$window=t(e),r.defaults.events={onReady:function(t){r.onPlayerReady(t),r.options.pauseOnScroll&&r.pauseOnScroll(),"function"==typeof r.options.callback&&r.options.callback.call(this)},onStateChange:function(t){1===t.data?r.$node.addClass("loaded"):0===t.data&&r.options.repeat&&r.player.seekTo(r.options.start)}},r.options=t.extend(!0,{}
6,r.defaults,r.userOptions),r.options.height=Math.ceil(r.options.width/r.options.ratio),r.ID=(new Date).getTime(),r.holderID="YTPlayer-ID-"+r.ID,r.createBackgroundVideo(),r.$window.on("resize.YTplayer"+r.ID,function(){r.resize(r)}),i(r.onYouTubeIframeAPIReady.bind(r)),r.resize(r),r},pauseOnScroll:function(){var t=this;t.$window.on("scroll.YTplayer"+t.ID,function(){var e=t.player.getPlayerState();1===e&&t.player.pauseVideo()}),t.$window.scrollStopped(function(){var e=t.player.getPlayerState();2===e&&t.player.playVideo()})},createBackgroundVideo:function(){var e=this,n=t('<div id="ytplayer-container'+e.ID+'"> <div id="'+e.holderID+'" class="ytplayer-player"></div> </div> <div id="ytplayer-shield" class="ytplayer-shield"></div>');e.$node.append(n),e.$YTPlayerString=n,n=null},resize:function(n){var i=t(e);n.options.fitToBackground||(i=n.$node);var o,r,s=i.outerWidth(),a=i.outerHeight(),l=t("#"+n.holderID);s/n.options.ratio<a?(o=Math.ceil(a*n.options.ratio),l.width(o).height(a).css({left:(s-o)/2,top:0})):(r=Math.ceil(s/n.options.ratio),l.width(s).height(r).css({left:0,top:(a-r)/2})),l=null,i=null},onYouTubeIframeAPIReady:function(){var t=this;t.player=new e.YT.Player(t.holderID,t.options)},onPlayerReady:function(t){this.options.mute&&t.target.mute(),this.options.playerVars&&this.options.playerVars.autoplay&&t.target.playVideo()},getPlayer:function(){return this.player},destroy:function(){var n=this;n.$node.removeData("yt-init").removeData("ytPlayer").removeClass("loaded"),n.$YTPlayerString.remove(),t(e).off("resize.YTplayer"+n.ID),t(e).off("scroll.YTplayer"+n.ID),n.$node=null,n.$YTPlayerString=null,n.player.destroy(),n.player=null}},t.fn.scrollStopped=function(e){var n=t(this),i=this;n.scroll(function(){n.data("scrollTimeout")&&clearTimeout(n.data("scrollTimeout")),n.data("scrollTimeout",setTimeout(e,250,i))})},t.fn.YTPlayer=function(e){return this.each(function(){var n=this;t(n).data("yt-init",!0);var i=Object.create(YTPlayer);i.init(n,e),t.data(n,"ytPlayer",i)})}}(jQuery,window,document),_wAMD.define("vendor/bower_components/ytBackground/src/jquery.youtubebackground",function(){}),function(t,e,n){VimeoPlayer={player:null,defaults:{videoId:"139480129",mute:!0,loop:!0,autoplay:!0},init:function(e,n){var i=this;return i.userOptions=n,i.$node=t(e),i.options=t.extend(!0,{},i.defaults,i.userOptions),i.ID=(new Date).getTime(),i.createBackgroundVideo(),i},createBackgroundVideo:function(){var n=this,i="https://player.vimeo.com/video/{video-id}?title=0&byline=0&portrait=0&badge=0&autoplay={autoplay}&loop={loop}";i=i.replace("{video-id}",n.options.videoId),i=i.replace("{autoplay}",n.options.autoplay),i=i.replace("{loop}",n.options.loop);var o=t("<div/>",{"class":"vimeoplayer-container",id:"vimeoplayer-container-"+n.ID}),r=t("<div/>",{"class":"vimeoplayer-shield"}),s=t("<iframe/>",{src:i,id:n.ID,"class":"vimeoplayer-player",frameborder:0});n.resize(s),o.append(s,r),n.$container=o,n.$node.append(o);var a=this.onIframeReady.bind(this);e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a,!1)},destroy:function(){var t=this;t.$node.removeData("VimeoPlayer"),t.$container.remove(),t.$node=null,t.$container=null},resize:function(t){var e=this.$node.outerWidth(),n=16/9,i=Math.ceil(e/n);t.prop({width:e,height:i})},onIframeReady:function(e){if("string"==typeof e.data){var n=this,i=JSON.parse(e.data);if("ready"===i.event&&n.volumeSet!==!0){n.volumeSet=!0;var o=t('iframe[id="'+n.ID+'"]'),r=n.options.mute?"0":"100",i=JSON.stringify({method:"setVolume",value:r});o[0].contentWindow.postMessage(i,o.attr("src"))}}}},t.fn.VimeoPlayer=function(e){return this.each(function(){var n=this,i=Object.create(VimeoPlayer);i.init(n,e),t.data(n,"VimeoPlayer",i)})}}(jQuery,window,document),_wAMD.define("vendor/bower_components/vimeoBackground/src/jquery.vimeobackground",function(){}),function(){function m(){return function(){}}function p(t){return function(){return this[t]}}function s(t){return function(){return t}}function u(t,e,n){if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),u.wa[t])return u.wa[t];t=u.v(t)}if(!t||!t.nodeName)throw new TypeError("The element or ID supplied is not val
6id. (videojs)");return t.player||new u.w(t,e,n)}function D(t){t.t("vjs-lock-showing")}function E(t,e,n,i){return n!==b?(t.a.style[e]=-1!==(""+n).indexOf("%")||-1!==(""+n).indexOf("px")?n:"auto"===n?"":n+"px",i||t.j("resize"),t):t.a?(n=t.a.style[e],i=n.indexOf("px"),-1!==i?parseInt(n.slice(0,i),10):parseInt(t.a["offset"+u.$(e)],10)):0}function F(t,e){var n,i,o,r;return n=t.a,i=u.Zc(n),r=o=n.offsetWidth,n=t.handle,t.g.Ad?(r=i.top,i=e.changedTouches?e.changedTouches[0].pageY:e.pageY,n&&(n=n.v().offsetHeight,r+=n/2,o-=n),Math.max(0,Math.min(1,(r-i+o)/o))):(o=i.left,i=e.changedTouches?e.changedTouches[0].pageX:e.pageX,n&&(n=n.v().offsetWidth,o+=n/2,r-=n),Math.max(0,Math.min(1,(i-o)/r)))}function ca(t,e){t.Z(e),e.d("click",u.bind(t,function(){D(this)}))}function H(t){t.oa=f,t.va.n("vjs-lock-showing"),t.a.setAttribute("aria-pressed",f),t.I&&0<t.I.length&&t.I[0].v().focus()}function G(t){t.oa=l,D(t.va),t.a.setAttribute("aria-pressed",l)}function da(t){var e={sources:[],tracks:[]};if(u.k.B(e,u.wb(t)),t.hasChildNodes()){var n,i,o,r;for(t=t.childNodes,o=0,r=t.length;r>o;o++)n=t[o],i=n.nodeName.toLowerCase(),"source"===i?e.sources.push(u.wb(n)):"track"===i&&e.tracks.push(u.wb(n))}return e}function J(t,e,n){t.h?(t.aa=l,t.h.D(),t.Db&&(t.Db=l,clearInterval(t.Qa)),t.Eb&&K(t),t.h=l):"Html5"!==e&&t.M&&(u.l.gc(t.M),t.M=j),t.ia=e,t.aa=l;var i=u.k.B({source:n,parentEl:t.a},t.g[e.toLowerCase()]);n&&(n.src==t.u.src&&0<t.u.currentTime&&(i.startTime=t.u.currentTime),t.u.src=n.src),t.h=new window.videojs[e](t,i),t.h.L(function(){if(this.b.Ta(),!this.m.progressEvents){var t=this.b;t.Db=f,t.Qa=setInterval(u.bind(t,function(){this.u.kb<this.buffered().end(0)?this.j("progress"):1==this.Ia()&&(clearInterval(this.Qa),this.j("progress"))}),500),t.h.U("progress",function(){this.m.progressEvents=f;var t=this.b;t.Db=l,clearInterval(t.Qa)})}this.m.timeupdateEvents||(t=this.b,t.Eb=f,t.d("play",t.Ac),t.d("pause",t.ya),t.h.U("timeupdate",function(){this.m.timeupdateEvents=f,K(this.b)}))})}function K(t){t.Eb=l,t.ya(),t.o("play",t.Ac),t.o("pause",t.ya)}function M(t,e,n){if(t.h&&!t.h.aa)t.h.L(function(){this[e](n)});else try{t.h[e](n)}catch(i){throw u.log(i),i}}function L(t,e){if(t.h&&t.h.aa)try{return t.h[e]()}catch(n){throw t.h[e]===b?u.log("Video.js: "+e+" method not defined for "+t.ia+" playback technology.",n):"TypeError"==n.name?(u.log("Video.js: "+e+" unavailable on "+t.ia+" playback technology element.",n),t.h.aa=l):u.log(n),n}}function N(t){t.ad=l,u.o(document,"keydown",t.ic),document.documentElement.style.overflow=t.Wc,u.t(document.body,"vjs-full-window"),t.j("exitFullWindow")}function I(t,e){return e!==b?(e=!!e,e!==t.Ob&&((t.Ob=e)?(t.ja=f,t.t("vjs-user-inactive"),t.n("vjs-user-active"),t.j("useractive")):(t.ja=l,t.h.U("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),t.t("vjs-user-active"),t.n("vjs-user-inactive"),t.j("userinactive"))),t):t.Ob}function ea(){var t=u.media.Ua[i];return function(){throw Error('The "'+t+"\" method is not available on the playback technology's API")}}function fa(){var t=S[U],e=t.charAt(0).toUpperCase()+t.slice(1);R["set"+e]=function(e){return this.a.vjs_setProperty(t,e)}}function V(t){R[t]=function(){return this.a.vjs_getProperty(t)}}function W(t){return t.za=t.za||[],t.za}function X(t,e,n){for(var i,o,r=t.za,s=0,a=r.length;a>s;s++)i=r[s],i.id()===e?(i.show(),o=i):n&&i.J()==n&&0<i.mode()&&i.disable();(e=o?o.J():n?n:l)&&t.j(e+"trackchange")}function Y(t){0===t.ha&&t.load(),0===t.ga&&(t.b.d("timeupdate",u.bind(t,t.update,t.Q)),t.b.d("ended",u.bind(t,t.reset,t.Q)),("captions"===t.A||"subtitles"===t.A)&&t.b.V.textTrackDisplay.Z(t))}function ga(t){var e=t.split(":");t=0;var n,i,o;return 3==e.length?(n=e[0],i=e[1],e=e[2]):(n=0,i=e[0],e=e[1]),e=e.split(/\s+/),e=e.splice(0,1)[0],e=e.split(/\.|,/),o=parseFloat(e[1]),e=e[0],t+=3600*parseFloat(n),t+=60*parseFloat(i),t+=parseFloat(e),o&&(t+=o/1e3),t}function $(t,e){var n=t.split("."),i=ha;!(n[0]in i)&&i.execScript&&i.execScript("var "+n[0]);for(var o;n.length&&(o=n.shift());)n.length||e===b?i=i[o]?i[o]:i[o]={}:i[o]=e}var b=void 0,f=!0,j=null,l=!1,t;document.createElement("video"),document.createElement("audio"),document.createElement("track");var v=u;window.Rd=window.Sd=u,u.Rb="4.2",u.Dc="https:"==document.location.protocol?"https://":"http://",u.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,children:{mediaLoader:{},posterImage:{},textTrackDisplay:{},loadingSpinner:{},bigPlayButton:{},controlBar:{}},notSupportedMessage:'Sorry, no compatible source and playback technology were found for this video. Try using another browser like <a href="http://bit.ly/ccMUEC">Chrome</a> or download the latest <a href="http://adobe.ly/mwfN1">Adobe Flash Player</a>.'},"GENERATED_CDN_VSN"!==u.Rb&&(v.options.flash.swf=u.Dc+"vjs.zencdn.net/"+u.Rb+"/video-js.swf"),u.wa={},u.ka=u.CoreObject=m(),u.ka.extend=function(t){var e,n;t=t||{},e=t.init||t.i||this.prototype.init||this.prototype.i||m(),n=function(){e.apply(this,arguments)},n.prototype=u.k.create(this.prototype),n.prototype.constructor=n,n.extend=u.ka.extend,n.create=u.ka.create;for(var i in t)t.hasOwnProperty(i)&&(n.prototype[i]=t[i]);return n},u.ka.create=function(){var t=u.k.create(this.prototype);return this.apply(t,arguments),t},u.d=function(t,e,n){var i=u.getData(t);
6i.z||(i.z={}),i.z[e]||(i.z[e]=[]),n.s||(n.s=u.s++),i.z[e].push(n),i.W||(i.disabled=l,i.W=function(e){if(!i.disabled){e=u.hc(e);var n=i.z[e.type];if(n)for(var n=n.slice(0),o=0,r=n.length;r>o&&!e.mc();o++)n[o].call(t,e)}}),1==i.z[e].length&&(document.addEventListener?t.addEventListener(e,i.W,l):document.attachEvent&&t.attachEvent("on"+e,i.W))},u.o=function(t,e,n){if(u.lc(t)){var i=u.getData(t);if(i.z)if(e){var o=i.z[e];if(o){if(n){if(n.s)for(i=0;i<o.length;i++)o[i].s===n.s&&o.splice(i--,1)}else i.z[e]=[];u.dc(t,e)}}else for(o in i.z)e=o,i.z[e]=[],u.dc(t,e)}},u.dc=function(t,e){var n=u.getData(t);0===n.z[e].length&&(delete n.z[e],document.removeEventListener?t.removeEventListener(e,n.W,l):document.detachEvent&&t.detachEvent("on"+e,n.W)),u.Ab(n.z)&&(delete n.z,delete n.W,delete n.disabled),u.Ab(n)&&u.sc(t)},u.hc=function(t){function e(){return f}function n(){return l}if(!t||!t.Bb){var i=t||window.event;t={};for(var o in i)"layerX"!==o&&"layerY"!==o&&(t[o]=i[o]);if(t.target||(t.target=t.srcElement||document),t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement,t.preventDefault=function(){i.preventDefault&&i.preventDefault(),t.returnValue=l,t.zb=e},t.zb=n,t.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),t.cancelBubble=f,t.Bb=e},t.Bb=n,t.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),t.mc=e,t.stopPropagation()},t.mc=n,t.clientX!=j){o=document.documentElement;var r=document.body;t.pageX=t.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),t.pageY=t.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)}t.which=t.charCode||t.keyCode,t.button!=j&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t},u.j=function(t,e){var n=u.lc(t)?u.getData(t):{},i=t.parentNode||t.ownerDocument;return"string"==typeof e&&(e={type:e,target:t}),e=u.hc(e),n.W&&n.W.call(t,e),i&&!e.Bb()&&e.bubbles!==l?u.j(i,e):i||e.zb()||(n=u.getData(e.target),!e.target[e.type])||(n.disabled=f,"function"==typeof e.target[e.type]&&e.target[e.type](),n.disabled=l),!e.zb()},u.U=function(t,e,n){function i(){u.o(t,e,i),n.apply(this,arguments)}i.s=n.s=n.s||u.s++,u.d(t,e,i)};var w=Object.prototype.hasOwnProperty;u.e=function(t,e){var n,i;n=document.createElement(t||"div");for(i in e)w.call(e,i)&&(-1!==i.indexOf("aria-")||"role"==i?n.setAttribute(i,e[i]):n[i]=e[i]);return n},u.$=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},u.k={},u.k.create=Object.create||function(t){function e(){}return e.prototype=t,new e},u.k.ta=function(t,e,n){for(var i in t)w.call(t,i)&&e.call(n||this,i,t[i])},u.k.B=function(t,e){if(!e)return t;for(var n in e)w.call(e,n)&&(t[n]=e[n]);return t},u.k.fc=function(t,e){var n,i,o;t=u.k.copy(t);for(n in e)w.call(e,n)&&(i=t[n],o=e[n],t[n]=u.k.nc(i)&&u.k.nc(o)?u.k.fc(i,o):e[n]);return t},u.k.copy=function(t){return u.k.B({},t)},u.k.nc=function(t){return!!t&&"object"==typeof t&&"[object Object]"===t.toString()&&t.constructor===Object},u.bind=function(t,e,n){function i(){return e.apply(t,arguments)}return e.s||(e.s=u.s++),i.s=n?n+"_"+e.s:e.s,i},u.qa={},u.s=1,u.expando="vdata"+(new Date).getTime(),u.getData=function(t){var e=t[u.expando];return e||(e=t[u.expando]=u.s++,u.qa[e]={}),u.qa[e]},u.lc=function(t){return t=t[u.expando],!(!t||u.Ab(u.qa[t]))},u.sc=function(t){var e=t[u.expando];if(e){delete u.qa[e];try{delete t[u.expando]}catch(n){t.removeAttribute?t.removeAttribute(u.expando):t[u.expando]=j}}},u.Ab=function(t){for(var e in t)if(t[e]!==j)return l;return f},u.n=function(t,e){-1==(" "+t.className+" ").indexOf(" "+e+" ")&&(t.className=""===t.className?e:t.className+" "+e)},u.t=function(t,e){var n,i;if(-1!=t.className.indexOf(e)){for(n=t.className.split(" "),i=n.length-1;i>=0;i--)n[i]===e&&n.splice(i,1);t.className=n.join(" ")}},u.ma=u.e("video"),u.F=navigator.userAgent,u.Jc=/iPhone/i.test(u.F),u.Ic=/iPad/i.test(u.F),u.Kc=/iPod/i.test(u.F),u.Hc=u.Jc||u.Ic||u.Kc;var aa=u,x,y=u.F.match(/OS (\d+)_/i);x=y&&y[1]?y[1]:b,aa.Dd=x,u.Fc=/Android/i.test(u.F);var ba=u,z,A=u.F.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),B,C;A?(B=A[1]&&parseFloat(A[1]),C=A[2]&&parseFloat(A[2]),z=B&&C?parseFloat(A[1]+"."+A[2]):B?B:j):z=j,ba.Ec=z,u.Lc=u.Fc&&/webkit/i.test(u.F)&&2.3>u.Ec,u.Gc=/Firefox/i.test(u.F),u.Ed=/Chrome/i.test(u.F),u.Oc="ontouchstart"in window,u.wb=function(t){var e,n,i,o;if(e={},t&&t.attributes&&0<t.attributes.length){n=t.attributes;for(var r=n.length-1;r>=0;r--)i=n[r].name,o=n[r].value,("boolean"==typeof t[i]||-1!==",auto
6play,controls,loop,muted,default,".indexOf(","+i+","))&&(o=o!==j?f:l),e[i]=o}return e},u.Id=function(t,e){var n="";return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,"").getPropertyValue(e):t.currentStyle&&(n=t["client"+e.substr(0,1).toUpperCase()+e.substr(1)]+"px"),n},u.yb=function(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},u.Nb={},u.v=function(t){return 0===t.indexOf("#")&&(t=t.slice(1)),document.getElementById(t)},u.Ka=function(t,e){e=e||t;var n=Math.floor(t%60),i=Math.floor(t/60%60),o=Math.floor(t/3600),r=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||1/0===t)&&(o=i=n="-"),o=o>0||s>0?o+":":"",o+(((o||r>=10)&&10>i?"0"+i:i)+":")+(10>n?"0"+n:n)},u.Rc=function(){document.body.focus(),document.onselectstart=s(l)},u.zd=function(){document.onselectstart=s(f)},u.trim=function(t){return(t+"").replace(/^\s+|\s+$/g,"")},u.round=function(t,e){return e||(e=0),Math.round(t*Math.pow(10,e))/Math.pow(10,e)},u.sb=function(t,e){return{length:1,start:function(){return t},end:function(){return e}}},u.get=function(t,e,n){var i,o;"undefined"==typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(n){}throw Error("This browser does not support XMLHttpRequest.")}),o=new XMLHttpRequest;try{o.open("GET",t)}catch(r){n(r)}i=0===t.indexOf("file:")||0===window.location.href.indexOf("file:")&&-1===t.indexOf("http"),o.onreadystatechange=function(){4===o.readyState&&(200===o.status||i&&0===o.status?e(o.responseText):n&&n())};try{o.send()}catch(s){n&&n(s)}},u.rd=function(t){try{var e=window.localStorage||l;e&&(e.volume=t)}catch(n){22==n.code||1014==n.code?u.log("LocalStorage Full (VideoJS)",n):18==n.code?u.log("LocalStorage not allowed (VideoJS)",n):u.log("LocalStorage Error (VideoJS)",n)}},u.jc=function(t){return t.match(/^https?:\/\//)||(t=u.e("div",{innerHTML:'<a href="'+t+'">x</a>'}).firstChild.href),t},u.log=function(){u.log.history=u.log.history||[],u.log.history.push(arguments),window.console&&window.console.log(Array.prototype.slice.call(arguments))},u.Zc=function(t){var e,n;return t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),e?(t=document.documentElement,n=document.body,{left:e.left+(window.pageXOffset||n.scrollLeft)-(t.clientLeft||n.clientLeft||0),top:e.top+(window.pageYOffset||n.scrollTop)-(t.clientTop||n.clientTop||0)}):{left:0,top:0}},u.c=u.ka.extend({i:function(t,e,n){if(this.b=t,this.g=u.k.copy(this.g),e=this.options(e),this.Q=e.id||(e.el&&e.el.id?e.el.id:t.id()+"_component_"+u.s++),this.ed=e.name||j,this.a=e.el||this.e(),this.G=[],this.pb={},this.V={},(t=this.g)&&t.children){var i=this;u.k.ta(t.children,function(t,e){e!==l&&!e.loadEvent&&(i[t]=i.Z(t,e))})}this.L(n)}}),t=u.c.prototype,t.D=function(){if(this.j("dispose"),this.G)for(var t=this.G.length-1;t>=0;t--)this.G[t].D&&this.G[t].D();this.V=this.pb=this.G=j,this.o(),this.a.parentNode&&this.a.parentNode.removeChild(this.a),u.sc(this.a),this.a=j},t.K=p("b"),t.options=function(t){return t===b?this.g:this.g=u.k.fc(this.g,t)},t.e=function(t,e){return u.e(t,e)},t.v=p("a"),t.id=p("Q"),t.name=p("ed"),t.children=p("G"),t.Z=function(t,e){var n,i;return"string"==typeof t?(i=t,e=e||{},n=e.componentClass||u.$(i),e.name=i,n=new window.videojs[n](this.b||this,e)):n=t,this.G.push(n),"function"==typeof n.id&&(this.pb[n.id()]=n),(i=i||n.name&&n.name())&&(this.V[i]=n),"function"==typeof n.el&&n.el()&&(this.ra||this.a).appendChild(n.el()),n},t.removeChild=function(t){if("string"==typeof t&&(t=this.V[t]),t&&this.G){for(var e=l,n=this.G.length-1;n>=0;n--)if(this.G[n]===t){e=f,this.G.splice(n,1);break}e&&(this.pb[t.id]=j,this.V[t.name]=j,(e=t.v())&&e.parentNode===(this.ra||this.a)&&(this.ra||this.a).removeChild(t.v()))}},t.T=s(""),t.d=function(t,e){return u.d(this.a,t,u.bind(this,e)),this},t.o=function(t,e){return u.o(this.a,t,e),this},t.U=function(t,e){return u.U(this.a,t,u.bind(this,e)),this},t.j=function(t,e){return u.j(this.a,t,e),this},t.L=function(t){return t&&(this.aa?t.call(this):(this.Ra===b&&(this.Ra=[]),this.Ra.push(t))),this},t.Ta=function(){this.aa=f;var t=this.Ra;if(t&&0<t.length){for(var e=0,n=t.length;n>e;e++)t[e].call(this);this.Ra=[],this.j("ready")}},t.n=function(t){return u.n(this.a,t),this},t.t=function(t){return u.t(this.a,t),this},t.show=function(){return this.a.style.display="block",this},t.C=function(){return this.a.style.display="none",this},t.disable=function(){this.C(),this.show=m()},t.width=function(t,e){return E(this,"width",t,e)},t.height=function(t,e){return E(this,"height",t,e)},t.Vc=function(t,e){return this.width(t,f).height(e)},u.q=u.c.extend({i:function(t,e){u.c.call(this,t,e);var n=l;this.d("touchstart",function(t){t.preventDefault(),n=f}),this.d("touchmove",function(){n=l});var i=this;this.d("touchend",function(t){n&&i.p(t),t.preventDefault()}),this.d("click",this.p),this.d("focus",this.Na),this.d("blur",this.Ma)}}),t=u.q.prototype,t.e=function(t,e){return e=u.k.B({className:this.T(),innerHTML:'<div class="vjs-control-content"><span class="vjs-control-text">'+(this.pa||"Need Text")+"</span></div>",od:"button","aria-live":"polite",tabIndex:0},e),u.c.prototype.e.call(this,t,e)},t.T=function(){return"vjs-control "+u.c.prototype.T.call(this)},t.p=m(),t.Na=function(){u.d(document,"keyup",u.bind(this,this.ba))},t.ba=function(t){(32==t.which||13==t.which)&&(t.preventDefault(),this.p())},t.Ma=function(){u.o(document,"keyup",u.bind(this,this.ba))},u.O=u.c.extend({i:function(t,e){u.c.call(this,t,e),this.Qc=this.V[this.g.barName],this.handle=this.V[this.g.handleName],t.d(this.qc,u.bind(this,this.update)),this.d("mousedown",this.Oa),this.d("touchstart",this.Oa),this.d("focus",this.Na),this.d("blur",this.Ma),this.d("click",this.p),this.b.d("controlsvisible",u.bind(this,this.update)),t.L(u.bind(this,this.update)),this.P={}}}),t=u.O.prototype,t.e=function(t,e){return e=e||{},e.className+=" vjs-slider",e=u.k.B({od:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},e),u.c.prototype.e.call(this,t,e)},t.Oa=function(t){t.preventDefault(),u.Rc(),this.P.move=u.bind(this,this.Gb),this.P.end=u.bind(this,this.Hb),u.d(document,"mousemove",this.P.move),u.d(document,"mouseup",this.P.end),u.d(document,"touchmove",this.P.move),u.d(document,"touchend",this.P.end),this.Gb(t)},t.Hb=function(){u.zd(),u.o(document,"mousemove",this.P.move,l),u.o(document,"mouseup",this.P.end,l),u.o(document,"touchmove",this.P.move,l),u.o(document,"touchend",this.P.end,l),this.update()},t.update=function(){if(this.a){var t,e=this.xb(),n=this.handle,i=this.Qc;
6if(isNaN(e)&&(e=0),t=e,n){t=this.a.offsetWidth;var o=n.v().offsetWidth;t=o?o/t:0,e*=1-t,t=e+t/2,n.v().style.left=u.round(100*e,2)+"%"}i.v().style.width=u.round(100*t,2)+"%"}},t.Na=function(){u.d(document,"keyup",u.bind(this,this.ba))},t.ba=function(t){37==t.which?(t.preventDefault(),this.wc()):39==t.which&&(t.preventDefault(),this.xc())},t.Ma=function(){u.o(document,"keyup",u.bind(this,this.ba))},t.p=function(t){t.stopImmediatePropagation(),t.preventDefault()},u.ea=u.c.extend(),u.ea.prototype.defaultValue=0,u.ea.prototype.e=function(t,e){return e=e||{},e.className+=" vjs-slider-handle",e=u.k.B({innerHTML:'<span class="vjs-control-text">'+this.defaultValue+"</span>"},e),u.c.prototype.e.call(this,"div",e)},u.la=u.c.extend(),u.la.prototype.e=function(){var t=this.options().Tc||"ul";return this.ra=u.e(t,{className:"vjs-menu-content"}),t=u.c.prototype.e.call(this,"div",{append:this.ra,className:"vjs-menu"}),t.appendChild(this.ra),u.d(t,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),t},u.N=u.q.extend({i:function(t,e){u.q.call(this,t,e),this.selected(e.selected)}}),u.N.prototype.e=function(t,e){return u.q.prototype.e.call(this,"li",u.k.B({className:"vjs-menu-item",innerHTML:this.g.label},e))},u.N.prototype.p=function(){this.selected(f)},u.N.prototype.selected=function(t){t?(this.n("vjs-selected"),this.a.setAttribute("aria-selected",f)):(this.t("vjs-selected"),this.a.setAttribute("aria-selected",l))},u.R=u.q.extend({i:function(t,e){u.q.call(this,t,e),this.va=this.Ja(),this.Z(this.va),this.I&&0===this.I.length&&this.C(),this.d("keyup",this.ba),this.a.setAttribute("aria-haspopup",f),this.a.setAttribute("role","button")}}),t=u.R.prototype,t.oa=l,t.Ja=function(){var t=new u.la(this.b);if(this.options().title&&t.v().appendChild(u.e("li",{className:"vjs-menu-title",innerHTML:u.$(this.A),xd:-1})),this.I=this.createItems())for(var e=0;e<this.I.length;e++)ca(t,this.I[e]);return t},t.sa=m(),t.T=function(){return this.className+" vjs-menu-button "+u.q.prototype.T.call(this)},t.Na=m(),t.Ma=m(),t.p=function(){this.U("mouseout",u.bind(this,function(){D(this.va),this.a.blur()})),this.oa?G(this):H(this)},t.ba=function(t){t.preventDefault(),32==t.which||13==t.which?this.oa?G(this):H(this):27==t.which&&this.oa&&G(this)},u.w=u.c.extend({i:function(t,e,n){this.M=t,e=u.k.B(da(t),e),this.u={},this.rc=e.poster,this.rb=e.controls,t.controls=l,u.c.call(this,this,e,n),this.controls()?this.n("vjs-controls-enabled"):this.n("vjs-controls-disabled"),this.U("play",function(t){u.j(this.a,{type:"firstplay",target:this.a})||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}),this.d("ended",this.fd),this.d("play",this.Jb),this.d("firstplay",this.gd),this.d("pause",this.Ib),this.d("progress",this.jd),this.d("durationchange",this.pc),this.d("error",this.Fb),this.d("fullscreenchange",this.hd),u.wa[this.Q]=this,e.plugins&&u.k.ta(e.plugins,function(t,e){this[t](e)},this);var i,o,r,s;i=this.tc,t=function(){i(),clearInterval(o),o=setInterval(u.bind(this,i),250)},e=function(){i(),clearInterval(o)},this.d("mousedown",t),this.d("mousemove",i),this.d("mouseup",e),this.d("keydown",i),this.d("keyup",i),this.d("touchstart",t),this.d("touchmove",i),this.d("touchend",e),this.d("touchcancel",e),r=setInterval(u.bind(this,function(){this.ja&&(this.ja=l,I(this,f),clearTimeout(s),s=setTimeout(u.bind(this,function(){this.ja||I(this,l)}),2e3))}),250),this.d("dispose",function(){clearInterval(r),clearTimeout(s)})}}),t=u.w.prototype,t.g=u.options,t.D=function(){this.j("dispose"),this.o("dispose"),u.wa[this.Q]=j,this.M&&this.M.player&&(this.M.player=j),this.a&&this.a.player&&(this.a.player=j),clearInterval(this.Qa),this.ya(),this.h&&this.h.D(),u.c.prototype.D.call(this)},t.e=function(){var t=this.a=u.c.prototype.e.call(this,"div"),e=this.M;if(e.removeAttribute("width"),e.removeAttribute("height"),e.hasChildNodes()){var n,i,o,r,s;for(n=e.childNodes,i=n.length,s=[];i--;)o=n[i],r=o.nodeName.toLowerCase(),"track"===r&&s.push(o);for(n=0;n<s.length;n++)e.removeChild(s[n])}return e.id=e.id||"vjs_video_"+u.s++,t.id=e.id,t.className=e.className,e.id+="_html5_api",e.className="vjs-tech",e.player=t.player=this,this.n("vjs-paused"),this.width(this.g.width,f),this.height(this.g.height,f),e.parentNode&&e.parentNode.insertBefore(t,e),u.yb(e,t),t},t.Ac=function(){this.ec&&this.ya(),this.ec=setInterval(u.bind(this,function(){this.j("timeupdate")}),250)},t.ya=function(){clearInterval(this.ec)},t.fd=function(){this.g.loop&&(this.currentTime(0),this.play())},t.Jb=function(){u.t(this.a,"vjs-paused"),u.n(this.a,"vjs-playing")},t.gd=function(){this.g.starttime&&this.currentTime(this.g.starttime),this.n("vjs-has-started")},t.Ib=function(){u.t(this.a,"vjs-playing"),u.n(this.a,"vjs-paused")},t.jd=function(){1==this.Ia()&&this.j("loadedalldata")},t.pc=function(){this.duration(L(this,"duration"))},t.Fb=function(t){u.log("Video Error",t)},t.hd=function(){this.H?this.n("vjs-fullscreen"):this.t("vjs-fullscreen")},t.play=function(){return M(this,"play"),this},t.pause=function(){return M(this,"pause"),this},t.paused=function(){return L(this,"paused")===l?l:f},t.currentTime=function(t){return t!==b?(this.u.oc=t,M(this,"setCurrentTime",t),this.Eb&&this.j("timeupdate"),this):this.u.currentTime=L(this,"currentTime")||0},t.duration=function(t){return t!==b?(this.u.duration=parseFloat(t),this):(this.u.duration===b&&this.pc(),this.u.duration)},t.buffered=function(){var t=L(this,"buffered"),e=t.length-1,n=this.u.kb=this.u.kb||0;return t&&e>=0&&t.end(e)!==n&&(n=t.end(e),this.u.kb=n),u.sb(0,n)},t.Ia=function(){return this.duration()?this.buffered().end(0)/this.duration():0},t.volume=function(t){return t!==b?(t=Math.max(0,Math.min(1,parseFloat(t))),this.u.volume=t,M(this,"setVolume",t),u.rd(t),this):(t=parseFloat(L(this,"volume")),isNaN(t)?1:t)},t.muted=function(t){return t!==b?(M(this,"setMuted",t),this):L(this,"muted")||l},t.Sa=function(){return L(this,"supportsFullScreen")||l},t.xa=function(){var t=u.Nb.xa;return this.H=f,t?(u.d(document,t.ub,u.bind(this,function(e){this.H=document[t.H],this.H===l&&u.o(document,t.ub,arguments.callee),this.j("fullscreenchange")})),this.a[t.uc]()):this.h.Sa()?M(this,"enterFullScreen"):(this.ad=f,this.Wc=document.documentElement.style.overflow,u.d(document,"keydown",u.bind(this,this.ic)),document.documentElement.style.overflow="hidden",u.n(document.body,"vjs-full-window"),this.j("enterFullWindow"),this.j("fullscreenchange")),this},t.nb=function(){var t=u.Nb.xa;return this.H=l,t?document[t.mb]():this.h.Sa()?M(this,"exitFullScreen"):(N(this),this.j("fullscreenchange")),this},t.ic=function(t){27===t.keyCode&&(this.H===f?this.nb():N(this))},t.src=function(t){if(t instanceof Array){var e;t:{e=t;for(var n=0,i=this.g.techOrder;n<i.length;n++){var o=u.$(i[n]),r=window.videojs[o];if(r.isSupported())for(var s=0,a=e;s<a.length;s++){var c=a[s];if(r.canPlaySource(c)){e={source:c,h:o};break t}}}e=l}e?(t=e.source,e=e.h,e==this.ia?this.src(t):J(this,e,t)):this.a.appendChild(u.e("p",{innerHTML:this.options().notSupportedMessage}))}else t instanceof Object?window.videojs[this.ia].canPlaySource(t)?this.src(t.src):this.src([t]):(this.u.src=t,this.aa?(M(this,"src",t),"auto"==this.g.preload&&this.load(),this.g.autoplay&&this.play()):this.L(function(){this.src(t)}));return this},t.load=function(){return M(this,"load"),this},t.currentSrc=function(){return L(this,"currentSrc")||this.u.src||""},t.Pa=function(t){return t!==b?(M(this,"setPreload",t),this.g.preload=t,this):L(this,"preload")},t.autoplay=function(t){return t!==b?(M(this,"setAutoplay",t),this.g.autoplay=t,this):L(this,"autoplay")},t.loop=function(t){return t!==b?(M(this,"setLoop",t),this.g.loop=t,this):L(this,"loop")},t.poster=function(t){return t!==b&&(this.rc=t),this.rc},t.controls=function(t){return t!==b?(t=!!t,this.rb!==t&&((this.rb=t)?(this.t("vjs-controls-disabled"),this.n("vjs-controls-enabled"),this.j("controlsenabled")):(this.t("vjs-controls-enabled"),this.n("vjs-controls-disabled"),this.j("controlsdisabled"))),this):this.rb},u.w.prototype.Qb,t=u.w.prototype,t.Pb=function(t){return t!==b?(t=!!t,this.Qb!==t&&((this.Qb=t)?(this.n("vjs-using-native-control
6s"),this.j("usingnativecontrols")):(this.t("vjs-using-native-controls"),this.j("usingcustomcontrols"))),this):this.Qb},t.error=function(){return L(this,"error")},t.seeking=function(){return L(this,"seeking")},t.ja=f,t.tc=function(){this.ja=f},t.Ob=f;var O,P,Q;Q=document.createElement("div"),P={},Q.Fd!==b?(P.uc="requestFullscreen",P.mb="exitFullscreen",P.ub="fullscreenchange",P.H="fullScreen"):(document.mozCancelFullScreen?(O="moz",P.H=O+"FullScreen"):(O="webkit",P.H=O+"IsFullScreen"),Q[O+"RequestFullScreen"]&&(P.uc=O+"RequestFullScreen",P.mb=O+"CancelFullScreen"),P.ub=O+"fullscreenchange"),document[P.mb]&&(u.Nb.xa=P),u.Ea=u.c.extend(),u.Ea.prototype.g={Kd:"play",children:{playToggle:{},currentTimeDisplay:{},timeDivider:{},durationDisplay:{},remainingTimeDisplay:{},progressControl:{},fullscreenToggle:{},volumeControl:{},muteToggle:{}}},u.Ea.prototype.e=function(){return u.e("div",{className:"vjs-control-bar"})},u.Wb=u.q.extend({i:function(t,e){u.q.call(this,t,e),t.d("play",u.bind(this,this.Jb)),t.d("pause",u.bind(this,this.Ib))}}),t=u.Wb.prototype,t.pa="Play",t.T=function(){return"vjs-play-control "+u.q.prototype.T.call(this)},t.p=function(){this.b.paused()?this.b.play():this.b.pause()},t.Jb=function(){u.t(this.a,"vjs-paused"),u.n(this.a,"vjs-playing"),this.a.children[0].children[0].innerHTML="Pause"},t.Ib=function(){u.t(this.a,"vjs-playing"),u.n(this.a,"vjs-paused"),this.a.children[0].children[0].innerHTML="Play"},u.Xa=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.d("timeupdate",u.bind(this,this.Ba))}}),u.Xa.prototype.e=function(){var t=u.c.prototype.e.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});return this.content=u.e("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00',"aria-live":"off"}),t.appendChild(u.e("div").appendChild(this.content)),t},u.Xa.prototype.Ba=function(){var t=this.b.Lb?this.b.u.currentTime:this.b.currentTime();this.content.innerHTML='<span class="vjs-control-text">Current Time </span>'+u.Ka(t,this.b.duration())},u.Ya=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.d("timeupdate",u.bind(this,this.Ba))} 7}),u.Ya.prototype.e=function(){var t=u.c.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});return this.content=u.e("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">Duration Time </span>0:00',"aria-live":"off"}),t.appendChild(u.e("div").appendChild(this.content)),t},u.Ya.prototype.Ba=function(){var t=this.b.duration();t&&(this.content.innerHTML='<span class="vjs-control-text">Duration Time </span>'+u.Ka(t))},u.$b=u.c.extend({i:function(t,e){u.c.call(this,t,e)}}),u.$b.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},u.eb=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.d("timeupdate",u.bind(this,this.Ba))}}),u.eb.prototype.e=function(){var t=u.c.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});return this.content=u.e("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">Remaining Time </span>-0:00',"aria-live":"off"}),t.appendChild(u.e("div").appendChild(this.content)),t},u.eb.prototype.Ba=function(){this.b.duration()&&(this.content.innerHTML='<span class="vjs-control-text">Remaining Time </span>-'+u.Ka(this.b.duration()-this.b.currentTime()))},u.Fa=u.q.extend({i:function(t,e){u.q.call(this,t,e)}}),u.Fa.prototype.pa="Fullscreen",u.Fa.prototype.T=function(){return"vjs-fullscreen-control "+u.q.prototype.T.call(this)},u.Fa.prototype.p=function(){this.b.H?(this.b.nb(),this.a.children[0].children[0].innerHTML="Fullscreen"):(this.b.xa(),this.a.children[0].children[0].innerHTML="Non-Fullscreen")},u.cb=u.c.extend({i:function(t,e){u.c.call(this,t,e)}}),u.cb.prototype.g={children:{seekBar:{}}},u.cb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"})},u.Xb=u.O.extend({i:function(t,e){u.O.call(this,t,e),t.d("timeupdate",u.bind(this,this.Aa)),t.L(u.bind(this,this.Aa))}}),t=u.Xb.prototype,t.g={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"},t.qc="timeupdate",t.e=function(){return u.O.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})},t.Aa=function(){var t=this.b.Lb?this.b.u.currentTime:this.b.currentTime();this.a.setAttribute("aria-valuenow",u.round(100*this.xb(),2)),this.a.setAttribute("aria-valuetext",u.Ka(t,this.b.duration()))},t.xb=function(){var t;
7return"Flash"===this.b.ia&&this.b.seeking()?(t=this.b.u,t=t.oc?t.oc:this.b.currentTime()):t=this.b.currentTime(),t/this.b.duration()},t.Oa=function(t){u.O.prototype.Oa.call(this,t),this.b.Lb=f,this.Bd=!this.b.paused(),this.b.pause()},t.Gb=function(t){t=F(this,t)*this.b.duration(),t==this.b.duration()&&(t-=.1),this.b.currentTime(t)},t.Hb=function(t){u.O.prototype.Hb.call(this,t),this.b.Lb=l,this.Bd&&this.b.play()},t.xc=function(){this.b.currentTime(this.b.currentTime()+5)},t.wc=function(){this.b.currentTime(this.b.currentTime()-5)},u.$a=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.d("progress",u.bind(this,this.update))}}),u.$a.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text">Loaded: 0%</span>'})},u.$a.prototype.update=function(){this.a.style&&(this.a.style.width=u.round(100*this.b.Ia(),2)+"%")},u.Vb=u.c.extend({i:function(t,e){u.c.call(this,t,e)}}),u.Vb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:'<span class="vjs-control-text">Progress: 0%</span>'})},u.fb=u.ea.extend(),u.fb.prototype.defaultValue="00:00",u.fb.prototype.e=function(){return u.ea.prototype.e.call(this,"div",{className:"vjs-seek-handle"})},u.hb=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.h&&t.h.m&&t.h.m.volumeControl===l&&this.n("vjs-hidden"),t.d("loadstart",u.bind(this,function(){t.h.m&&t.h.m.volumeControl===l?this.n("vjs-hidden"):this.t("vjs-hidden")}))}}),u.hb.prototype.g={children:{volumeBar:{}}},u.hb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"})},u.gb=u.O.extend({i:function(t,e){u.O.call(this,t,e),t.d("volumechange",u.bind(this,this.Aa)),t.L(u.bind(this,this.Aa)),setTimeout(u.bind(this,this.update),0)}}),t=u.gb.prototype,t.Aa=function(){this.a.setAttribute("aria-valuenow",u.round(100*this.b.volume(),2)),this.a.setAttribute("aria-valuetext",u.round(100*this.b.volume(),2)+"%")},t.g={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"},t.qc="volumechange",t.e=function(){return u.O.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})},t.Gb=function(t){this.b.volume(F(this,t))},t.xb=function(){return this.b.muted()?0:this.b.volume()},t.xc=function(){this.b.volume(this.b.volume()+.1)},t.wc=function(){this.b.volume(this.b.volume()-.1)},u.ac=u.c.extend({i:function(t,e){u.c.call(this,t,e)}}),u.ac.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},u.ib=u.ea.extend(),u.ib.prototype.defaultValue="00:00",u.ib.prototype.e=function(){return u.ea.prototype.e.call(this,"div",{className:"vjs-volume-handle"})},u.da=u.q.extend({i:function(t,e){u.q.call(this,t,e),t.d("volumechange",u.bind(this,this.update)),t.h&&t.h.m&&t.h.m.volumeControl===l&&this.n("vjs-hidden"),t.d("loadstart",u.bind(this,function(){t.h.m&&t.h.m.volumeControl===l?this.n("vjs-hidden"):this.t("vjs-hidden")}))}}),u.da.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'<div><span class="vjs-control-text">Mute</span></div>'})},u.da.prototype.p=function(){this.b.muted(this.b.muted()?l:f)},u.da.prototype.update=function(){var t=this.b.volume(),e=3;for(0===t||this.b.muted()?e=0:.33>t?e=1:.67>t&&(e=2),this.b.muted()?"Unmute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Unmute"):"Mute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Mute"),t=0;4>t;t++)u.t(this.a,"vjs-vol-"+t);u.n(this.a,"vjs-vol-"+e)},u.na=u.R.extend({i:function(t,e){u.R.call(this,t,e),t.d("volumechange",u.bind(this,this.update)),t.h&&t.h.m&&t.h.m.Bc===l&&this.n("vjs-hidden"),t.d("loadstart",u.bind(this,function(){t.h.m&&t.h.m.Bc===l?this.n("vjs-hidden"):this.t("vjs-hidden")})),this.n("vjs-menu-button")}}),u.na.prototype.Ja=function(){var t=new u.la(this.b,{Tc:"div"}),e=new u.gb(this.b,u.k.B({Ad:f},this.g.Td));return t.Z(e),t},u.na.prototype.p=function(){u.da.prototype.p.call(this),u.R.prototype.p.call(this)},u.na.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'<div><span class="vjs-control-text">Mute</span></div>'})},u.na.prototype.update=u.da.prototype.update,u.bb=u.q.extend({i:function(t,e){u.q.call(this,t,e),(!t.poster()||!t.controls())&&this.C(),t.d("play",u.bind(this,this.C))}}),u.bb.prototype.e=function(){var t=u.e("div",{className:"vjs-poster",tabIndex:-1}),e=this.b.poster();return e&&("backgroundSize"in t.style?t.style.backgroundImage='url("'+e+'")':t.appendChild(u.e("img",{src:e}))),t},u.bb.prototype.p=function(){this.K().controls()&&this.b.play()},u.Ub=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.d("canplay",u.bind(this,this.C)),t.d("canplaythrough",u.bind(this,this.C)),t.d("playing",u.bind(this,this.C)),t.d("seeked",u.bind(this,this.C)),t.d("seeking",u.bind(this,this.show)),t.d("seeked",u.bind(this,this.C)),t.d("error",u.bind(this,this.show)),t.d("waiting",u.bind(this,this.show))}}),u.Ub.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-loading-spinner"})},u.Va=u.q.extend(),u.Va.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-big-play-button",innerHTML:"<span></span>","aria-label":"play video"})},u.Va.prototype.p=function(){this.b.play()},u.r=u.c.extend({i:function(t,e,n){u.c.call(this,t,e,n);var i,o;o=this,i=this.K(),t=function(){if(i.controls()&&!i.Pb()){var t,e;o.d("mousedown",o.p),o.d("touchstart",function(t){t.preventDefault(),t.stopPropagation(),e=I(this.b)}),t=function(t){t.stopPropagation(),e&&this.b.tc()},o.d("touchmove",t),o.d("touchleave",t),o.d("touchcancel",t),o.d("touchend",t);var n,r,s;n=0,o.d("touchstart",function(){n=(new Date).getTime(),s=f}),t=function(){s=l},o.d("touchmove",t),o.d("touchleave",t),o.d("touchcancel",t),o.d("touchend",function(){s===f&&(r=(new Date).getTime()-n,250>r&&this.j("tap"))}),o.d("tap",o.kd)}},e=u.bind(o,o.nd),this.L(t),i.d("controlsenabled",t),i.d("controlsdisabled",e)}}),u.r.prototype.nd=function(){this.o("tap"),this.o("touchstart"),this.o("touchmove"),this.o("touchleave"),this.o("touchcancel"),this.o("touchend"),this.o("click"),this.o("mousedown")},u.r.prototype.p=function(t){0===t.button&&this.K().controls()&&(this.K().paused()?this.K().play():this.K().pause())},u.r.prototype.kd=function(){I(this.K(),!I(this.K()))},u.r.prototype.m={volumeControl:f,fullscreenResize:l,progressEvents:l,timeupdateEvents:l},u.media={},u.media.Ua="play pause paused currentTime setCurrentTime duration buffered volume setVolume muted setMuted width height supportsFullScreen enterFullScreen src load currentSrc preload setPreload autoplay setAutoplay loop setLoop error networkState readyState seeking initialTime startOffsetTime played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks defaultPlaybackRate playbackRate mediaGroup controller controls defaultMuted".split(" ");for(var i=u.media.Ua.length-1;i>=0;i--)u.r.prototype[u.media.Ua[i]]=ea();u.l=u.r.extend({i:function(t,e,n){if(this.m.volumeControl=u.l.Sc(),this.m.movingMediaElementInDOM=!u.Hc,this.m.fullscreenResize=f,u.r.call(this,t,e,n),(e=e.source)&&this.a.currentSrc===e.src&&0<this.a.networkState?t.j("loadstart"):e&&(this.a.src=e.src),u.Oc&&t.options().nativeControlsForTouch!==l){var i,o,r,s;i=this,o=this.K(),e=o.controls(),i.a.controls=!!e,r=function(){i.a.controls=f},s=function(){i.a.controls=l},o.d("controlsenabled",r),o.d("controlsdisabled",s),e=function(){o.o("controlsenabled",r),o.o("c
7ontrolsdisabled",s)},i.d("dispose",e),o.d("usingcustomcontrols",e),o.Pb(f)}for(t.L(function(){this.M&&this.g.autoplay&&this.paused()&&(delete this.M.poster,this.play())}),t=u.l.Za.length-1;t>=0;t--)u.d(this.a,u.l.Za[t],u.bind(this.b,this.Yc));this.Ta()}}),t=u.l.prototype,t.D=function(){u.r.prototype.D.call(this)},t.e=function(){var t,e=this.b,n=e.M;n&&this.m.movingMediaElementInDOM!==l||(n?(t=n.cloneNode(l),u.l.gc(n),n=t,e.M=j):n=u.e("video",{id:e.id()+"_html5_api",className:"vjs-tech"}),n.player=e,u.yb(n,e.v())),t=["autoplay","preload","loop","muted"];for(var i=t.length-1;i>=0;i--){var o=t[i];e.g[o]!==j&&(n[o]=e.g[o])}return n},t.Yc=function(t){this.j(t),t.stopPropagation()},t.play=function(){this.a.play()},t.pause=function(){this.a.pause()},t.paused=function(){return this.a.paused},t.currentTime=function(){return this.a.currentTime},t.qd=function(t){try{this.a.currentTime=t}catch(e){u.log(e,"Video is not ready. (Video.js)")}},t.duration=function(){return this.a.duration||0},t.buffered=function(){return this.a.buffered},t.volume=function(){return this.a.volume},t.vd=function(t){this.a.volume=t},t.muted=function(){return this.a.muted},t.td=function(t){this.a.muted=t},t.width=function(){return this.a.offsetWidth},t.height=function(){return this.a.offsetHeight},t.Sa=function(){return"function"!=typeof this.a.webkitEnterFullScreen||!/Android/.test(u.F)&&/Chrome|Mac OS X 10.5/.test(u.F)?l:f},t.src=function(t){this.a.src=t},t.load=function(){this.a.load()},t.currentSrc=function(){return this.a.currentSrc},t.Pa=function(){return this.a.Pa},t.ud=function(t){this.a.Pa=t},t.autoplay=function(){return this.a.autoplay},t.pd=function(t){this.a.autoplay=t},t.controls=function(){return this.a.controls},t.loop=function(){return this.a.loop},t.sd=function(t){this.a.loop=t},t.error=function(){return this.a.error},t.seeking=function(){return this.a.seeking},u.l.isSupported=function(){return!!u.ma.canPlayType},u.l.lb=function(t){try{return!!u.ma.canPlayType(t.type)}catch(e){return""}},u.l.Sc=function(){var t=u.ma.volume;return u.ma.volume=t/2+.1,t!==u.ma.volume},u.l.Za="loadstart suspend abort error emptied stalled loadedmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate progress play pause ratechange volumechange".split(" "),u.l.gc=function(t){if(t){for(t.player=j,t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&t.load()}},u.Lc&&(document.createElement("video").constructor.prototype.canPlayType=function(t){return t&&-1!=t.toLowerCase().indexOf("video/mp4")?"maybe":""}),u.f=u.r.extend({i:function(t,e,n){u.r.call(this,t,e,n);var i=e.source;n=e.parentEl;var o=this.a=u.e("div",{id:t.id()+"_temp_flash"}),r=t.id()+"_flash_api";t=t.g;var s=u.k.B({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:t.autoplay,preload:t.Pa,loop:t.loop,muted:t.muted},e.flashVars),a=u.k.B({wmode:"opaque",bgcolor:"#000000"},e.params),l=u.k.B({id:r,name:r,"class":"vjs-tech"},e.attributes);if(i&&(i.type&&u.f.cd(i.type)?(t=u.f.yc(i.src),s.rtmpConnection=encodeURIComponent(t.qb),s.rtmpStream=encodeURIComponent(t.Mb)):s.src=encodeURIComponent(u.jc(i.src))),u.yb(o,n),e.startTime&&this.L(function(){this.load(),this.play(),this.currentTime(e.startTime)}),e.iFrameMode!==f||u.Gc)u.f.Xc(e.swf,o,s,a,l);else{var c=u.e("iframe",{id:r+"_iframe",name:r+"_iframe",className:"vjs-tech",scrolling:"no",marginWidth:0,marginHeight:0,frameBorder:0});s.readyFunction="ready",s.eventProxyFunction="events",s.errorEventProxyFunction="errors",u.d(c,"load",u.bind(this,function(){var t,n=c.contentWindow;t=c.contentDocument?c.contentDocument:c.contentWindow.document,t.write(u.f.kc(e.swf,s,a,l)),n.player=this.b,n.ready=u.bind(this.b,function(e){var n=this.h;n.a=t.getElementById(e),u.f.ob(n)}),n.events=u.bind(this.b,function(t,e){this&&"flash"===this.ia&&this.j(e)}),n.errors=u.bind(this.b,function(t,e){u.log("Flash Error",e)})})),o.parentNode.replaceChild(c,o)}}}),t=u.f.prototype,t.D=function(){u.r.prototype.D.call(this)},t.play=function(){this.a.vjs_play()},t.pause=function(){this.a.vjs_pause()},t.src=function(t){if(u.f.bd(t)?(t=u.f.yc(t),this.Od(t.qb),this.Pd(t.Mb)):(t=u.jc(t),this.a.vjs_src(t)),this.b.autoplay()){var e=this;setTimeout(function(){e.play()},0)}},t.currentSrc=function(){var t=this.a.vjs_getProperty("currentSrc");if(t==j){var e=this.Md(),n=this.Nd();e&&n&&(t=u.f.wd(e,n))}return t},t.load=function(){this.a.vjs_load()},t.poster=function(){this.a.vjs_getProperty("poster")},t.buffered=function(){return u.sb(0,this.a.vjs_getProperty("buffered"))},t.Sa=s(l);var R=u.f.prototype,S="rtmpConnection rtmpStream preload currentTime defaultPlaybackRate playbackRate autoplay loop mediaGroup controller controls volume muted defaultMuted".split(" "),T="error currentSrc networkState readyState seeking initialTime duration startOffsetTime paused played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks".split(" "),U;for(U=0;U<S.length;U++)V(S[U]),fa();for(U=0;U<T.length;U++)V(T[U]);if(u.f.isSupported=function(){return 10<=u.f.version()[0]},u.f.lb=function(t){return t.type in u.f.$c||t.type in u.f.zc?"maybe":void 0},u.f.$c={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},u.f.zc={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},u.f.onReady=function(t){t=u.v(t);var e=t.player||t.parentNode.player,n=e.h;t.player=e,n.a=t,u.f.ob(n)},u.f.ob=function(t){t.v().vjs_getProperty?t.Ta():setTimeout(function(){u.f.ob(t)},50)},u.f.onEvent=function(t,e){u.v(t).player.j(e)},u.f.onError=function(t,e){u.v(t).player.j("error"),u.log("Flash Error",e,t)},u.f.version=function(){var t="0,0,0";try{t=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(n){}}return t.split(",")},u.f.Xc=function(t,e,n,i,o){t=u.f.kc(t,n,i,o),t=u.e("div",{innerHTML:t}).childNodes[0],n=e.parentNode,e.parentNode.replaceChild(t,e);var r=n.childNodes[0];setTimeout(function(){r.style.display="block"},1e3)},u.f.kc=function(t,e,n,i){var o="",r="",s="";return e&&u.k.ta(e,function(t,e){o+=t+"="+e+"&"}),n=u.k.B({movie:t,flashvars:o,allowScriptAccess:"always",allowNetworking:"all"},n),u.k.ta(n,function(t,e){r+='<param name="'+t+'" value="'+e+'" />'}),i=u.k.B({data:t,width:"100%",height:"100%"},i),u.k.ta(i,function(t,e){s+=t+'="'+e+'" '}),'<object type="application/x-shockwave-flash"'+s+">"+r+"</object>"},u.f.wd=function(t,e){return t+"&"+e},u.f.yc=function(t){var e={qb:"",Mb:""};if(!t)return e;var n,i=t.indexOf("&");return-1!==i?n=i+1:(i=n=t.lastIndexOf("/")+1,0===i&&(i=n=t.length)),e.qb=t.substring(0,i),e.Mb=t.substring(n,t.length),e},u.f.cd=function(t){return t in u.f.zc},u.f.Nc=/^rtmp[set]?:\/\//i,u.f.bd=function(t){return u.f.Nc.test(t)},u.Mc=u.c.extend({i:function(t,e,n){if(u.c.call(this,t,e,n),t.g.sources&&0!==t.g.sources.length)t.src(t.g.sources);else for(e=0,n=t.g.techOrder;e<n.length;e++){var i=u.$(n[e]),o=window.videojs[i];if(o&&o.isSupported()){J(t,i);break}}}}),u.X=u.c.extend({i:function(t,e){u.c.call(this,t,e),this.Q=e.id||"vjs_"+e.kind+"_"+e.language+"_"+u.s++,this.vc=e.src,this.Uc=e["default"]||e.dflt,this.yd=e.title,this.Jd=e.srclang,this.dd=e.label,this.fa=[],this.bc=[],this.ga=this.ha=0,this.b.d("fullscreenchange",u.bind(this,this.Pc))}}),t=u.X.prototype,t.J=p("A"),t.src=p("vc"),t.tb=p("Uc"),t.title=p("yd"),t.label=p("dd"),t.readyState=p("ha"),t.mode=p("ga"),t.Pc=function(){this.a.style.fontSize=this.b.H?140*(screen.width/this.b.width())+"%":""},t.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-"+this.A
7+" vjs-text-track"})},t.show=function(){Y(this),this.ga=2,u.c.prototype.show.call(this)},t.C=function(){Y(this),this.ga=1,u.c.prototype.C.call(this)},t.disable=function(){2==this.ga&&this.C(),this.b.o("timeupdate",u.bind(this,this.update,this.Q)),this.b.o("ended",u.bind(this,this.reset,this.Q)),this.reset(),this.b.V.textTrackDisplay.removeChild(this),this.ga=0},t.load=function(){0===this.ha&&(this.ha=1,u.get(this.vc,u.bind(this,this.ld),u.bind(this,this.Fb)))},t.Fb=function(t){this.error=t,this.ha=3,this.j("error")},t.ld=function(t){var e,n;t=t.split("\n");for(var i="",o=1,r=t.length;r>o;o++)if(i=u.trim(t[o])){for(-1==i.indexOf("-->")?(e=i,i=u.trim(t[++o])):e=this.fa.length,e={id:e,index:this.fa.length},n=i.split(" --> "),e.startTime=ga(n[0]),e.ua=ga(n[1]),n=[];t[++o]&&(i=u.trim(t[o]));)n.push(i);e.text=n.join("<br/>"),this.fa.push(e)}this.ha=2,this.j("loaded")},t.update=function(){if(0<this.fa.length){var t=this.b.currentTime();if(this.Kb===b||t<this.Kb||this.La<=t){var e,n,i,o,r=this.fa,s=this.b.duration(),a=0,u=l,c=[];for(t>=this.La||this.La===b?o=this.vb!==b?this.vb:0:(u=f,o=this.Cb!==b?this.Cb:r.length-1);;){if(i=r[o],i.ua<=t)a=Math.max(a,i.ua),i.Ha&&(i.Ha=l);else if(t<i.startTime){if(s=Math.min(s,i.startTime),i.Ha&&(i.Ha=l),!u)break}else u?(c.splice(0,0,i),n===b&&(n=o),e=o):(c.push(i),e===b&&(e=o),n=o),s=Math.min(s,i.ua),a=Math.max(a,i.startTime),i.Ha=f;if(u){if(0===o)break;o--}else{if(o===r.length-1)break;o++}}for(this.bc=c,this.La=s,this.Kb=a,this.vb=e,this.Cb=n,t=this.bc,r="",s=0,a=t.length;a>s;s++)r+='<span class="vjs-tt-cue">'+t[s].text+"</span>";this.a.innerHTML=r,this.j("cuechange")}}},t.reset=function(){this.La=0,this.Kb=this.b.duration(),this.Cb=this.vb=0},u.Sb=u.X.extend(),u.Sb.prototype.A="captions",u.Yb=u.X.extend(),u.Yb.prototype.A="subtitles",u.Tb=u.X.extend(),u.Tb.prototype.A="chapters",u.Zb=u.c.extend({i:function(t,e,n){if(u.c.call(this,t,e,n),t.g.tracks&&0<t.g.tracks.length){e=this.b,t=t.g.tracks;var i;for(n=0;n<t.length;n++){i=t[n];var o=e,r=i.kind,s=i.label,a=i.language,l=i;i=o.za=o.za||[],l=l||{},l.kind=r,l.label=s,l.language=a,r=u.$(r||"subtitles"),o=new window.videojs[r+"Track"](o,l),i.push(o)}}}}),u.Zb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-text-track-display"})},u.Y=u.N.extend({i:function(t,e){var n=this.ca=e.track;e.label=n.label(),e.selected=n.tb(),u.N.call(this,t,e),this.b.d(n.J()+"trackchange",u.bind(this,this.update))}}),u.Y.prototype.p=function(){u.N.prototype.p.call(this),X(this.b,this.ca.Q,this.ca.J())},u.Y.prototype.update=function(){this.selected(2==this.ca.mode())},u.ab=u.Y.extend({i:function(t,e){e.track={J:function(){return e.kind},K:t,label:function(){return e.kind+" off"},tb:s(l),mode:s(l)},u.Y.call(this,t,e),this.selected(f)}}),u.ab.prototype.p=function(){u.Y.prototype.p.call(this),X(this.b,this.ca.Q,this.ca.J())},u.ab.prototype.update=function(){for(var t,e=W(this.b),n=0,i=e.length,o=f;i>n;n++)t=e[n],t.J()==this.ca.J()&&2==t.mode()&&(o=l);this.selected(o)},u.S=u.R.extend({i:function(t,e){u.R.call(this,t,e),1>=this.I.length&&this.C()}}),u.S.prototype.sa=function(){var t,e=[];e.push(new u.ab(this.b,{kind:this.A}));for(var n=0;n<W(this.b).length;n++)t=W(this.b)[n],t.J()===this.A&&e.push(new u.Y(this.b,{track:t}));return e},u.Ca=u.S.extend({i:function(t,e,n){u.S.call(this,t,e,n),this.a.setAttribute("aria-label","Captions Menu")}}),u.Ca.prototype.A="captions",u.Ca.prototype.pa="Captions",u.Ca.prototype.className="vjs-captions-button",u.Ga=u.S.extend({i:function(t,e,n){u.S.call(this,t,e,n),this.a.setAttribute("aria-label","Subtitles Menu")}}),u.Ga.prototype.A="subtitles",u.Ga.prototype.pa="Subtitles",u.Ga.prototype.className="vjs-subtitles-button",u.Da=u.S.extend({i:function(t,e,n){u.S.call(this,t,e,n),this.a.setAttribute("aria-label","Chapters Menu")}}),t=u.Da.prototype,t.A="chapters",t.pa="Chapters",t.className="vjs-chapters-button",t.sa=function(){for(var t,e=[],n=0;n<W(this.b).length;n++)t=W(this.b)[n],t.J()===this.A&&e.push(new u.Y(this.b,{track:t}));return e},t.Ja=function(){for(var t,e,n=W(this.b),i=0,o=n.length,r=this.I=[];o>i;i++)if(t=n[i],t.J()==this.A&&t.tb()){if(2>t.readyState())return this.Gd=t,void t.d("loaded",u.bind(this,this.Ja));e=t;break}if(n=this.va=new u.la(this.b),n.a.appendChild(u.e("li",{className:"vjs-menu-title",innerHTML:u.$(this.A),xd:-1})),e){t=e.fa;for(var s,i=0,o=t.length;o>i;i++)s=t[i],s=new u.Wa(this.b,{track:e,cue:s}),r.push(s),n.Z(s)}return 0<this.I.length&&this.show(),n},u.Wa=u.N.extend({i:function(t,e){var n=this.ca=e.track,i=this.cue=e.cue,o=t.currentTime();e.label=i.text,e.selected=i.startTime<=o&&o<i.ua,u.N.call(this,t,e),n.d("cuechange",u.bind(this,this.update))}}),u.Wa.prototype.p=function(){u.N.prototype.p.call(this),this.b.currentTime(this.cue.startTime),this.update(this.cue.startTime)},u.Wa.prototype.update=function(){var t=this.cue,e=this.b.currentTime();this.selected(t.startTime<=e&&e<t.ua)},u.k.B(u.Ea.prototype.g.children,{subtitlesButton:{},captionsButton:{},chaptersButton:{}}),"undefined"!=typeof window.JSON&&"function"===window.JSON.parse)u.JSON=window.JSON;else{u.JSON={};
7var Z=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;u.JSON.parse=function(a,c){function d(t,e){var n,i,o=t[e];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i=d(o,n),i!==b?o[n]=i:delete o[n]);return c.call(t,e,o)}var e;if(a=String(a),Z.lastIndex=0,Z.test(a)&&(a=a.replace(Z,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"==typeof c?d({"":e},""):e;throw new SyntaxError("JSON.parse(): invalid or malformed JSON data")}}u.cc=function(){var t,e,n=document.getElementsByTagName("video");if(n&&0<n.length)for(var i=0,o=n.length;o>i;i++){if(!(e=n[i])||!e.getAttribute){u.jb();break}e.player===b&&(t=e.getAttribute("data-setup"),t!==j&&(t=u.JSON.parse(t||"{}"),v(e,t)))}else u.Cc||u.jb()},u.jb=function(){setTimeout(u.cc,1)},"complete"===document.readyState?u.Cc=f:u.U(window,"load",function(){u.Cc=f}),u.jb(),u.md=function(t,e){u.w.prototype[t]=e};var ha=this;ha.Cd=f,$("videojs",u),$("_V_",u),$("videojs.options",u.options),$("videojs.players",u.wa),$("videojs.cache",u.qa),$("videojs.Component",u.c),u.c.prototype.player=u.c.prototype.K,u.c.prototype.dispose=u.c.prototype.D,u.c.prototype.createEl=u.c.prototype.e,u.c.prototype.el=u.c.prototype.v,u.c.prototype.addChild=u.c.prototype.Z,u.c.prototype.children=u.c.prototype.children,u.c.prototype.on=u.c.prototype.d,u.c.prototype.off=u.c.prototype.o,u.c.prototype.one=u.c.prototype.U,u.c.prototype.trigger=u.c.prototype.j,u.c.prototype.triggerReady=u.c.prototype.Ta,u.c.prototype.show=u.c.prototype.show,u.c.prototype.hide=u.c.prototype.C,u.c.prototype.width=u.c.prototype.width,u.c.prototype.height=u.c.prototype.height,u.c.prototype.dimensions=u.c.prototype.Vc,u.c.prototype.ready=u.c.prototype.L,u.c.prototype.addClass=u.c.prototype.n,u.c.prototype.removeClass=u.c.prototype.t,$("videojs.Player",u.w),u.w.prototype.dispose=u.w.prototype.D,u.w.prototype.requestFullScreen=u.w.prototype.xa,u.w.prototype.cancelFullScreen=u.w.prototype.nb,u.w.prototype.bufferedPercent=u.w.prototype.Ia,u.w.prototype.usingNativeControls=u.w.prototype.Pb,$("videojs.MediaLoader",u.Mc),$("videojs.TextTrackDisplay",u.Zb),$("videojs.ControlBar",u.Ea),$("videojs.Button",u.q),$("videojs.PlayToggle",u.Wb),$("videojs.FullscreenToggle",u.Fa),$("videojs.BigPlayButton",u.Va),$("videojs.LoadingSpinner",u.Ub),$("videojs.CurrentTimeDisplay",u.Xa),$("videojs.DurationDisplay",u.Ya),$("videojs.TimeDivider",u.$b),$("videojs.RemainingTimeDisplay",u.eb),$("videojs.Slider",u.O),$("videojs.ProgressControl",u.cb),$("videojs.SeekBar",u.Xb),$("videojs.LoadProgressBar",u.$a),$("videojs.PlayProgressBar",u.Vb),$("videojs.SeekHandle",u.fb),$("videojs.VolumeControl",u.hb),$("videojs.VolumeBar",u.gb),$("videojs.VolumeLevel",u.ac),$("videojs.VolumeMenuButton",u.na),$("videojs.VolumeHandle",u.ib),$("videojs.MuteToggle",u.da),$("videojs.PosterImage",u.bb),$("videojs.Menu",u.la),$("videojs.MenuItem",u.N),$("videojs.MenuButton",u.R),u.R.prototype.createItems=u.R.prototype.sa,u.S.prototype.createItems=u.S.prototype.sa,u.Da.prototype.createItems=u.Da.prototype.sa,$("videojs.SubtitlesButton",u.Ga),$("videojs.CaptionsButton",u.Ca),$("videojs.ChaptersButton",u.Da),$("videojs.MediaTechController",u.r),u.r.prototype.features=u.r.prototype.m,u.r.prototype.m.volumeControl=u.r.prototype.m.Bc,u.r.prototype.m.fullscreenResize=u.r.prototype.m.Hd,u.r.prototype.m.progressEvents=u.r.prototype.m.Ld,u.r.prototype.m.timeupdateEvents=u.r.prototype.m.Qd,$("videojs.Html5",u.l),u.l.Events=u.l.Za,u.l.isSupported=u.l.isSupported,u.l.canPlaySource=u.l.lb,u.l.prototype.setCurrentTime=u.l.prototype.qd,u.l.prototype.setVolume=u.l.prototype.vd,u.l.prototype.setMuted=u.l.prototype.td,u.l.prototype.setPreload=u.l.prototype.ud,u.l.prototype.setAutoplay=u.l.prototype.pd,u.l.prototype.setLoop=u.l.prototype.sd,$("videojs.Flash",u.f),u.f.isSupported=u.f.isSupported,u.f.canPlaySource=u.f.lb,u.f.onReady=u.f.onReady,$("videojs.TextTrack",u.X),u.X.prototype.label=u.X.prototype.label,$("videojs.CaptionsTrack",u.Sb),$("videojs.SubtitlesTrack",u.Yb),$("videojs.ChaptersTrack",u.Tb),$("videojs.autoSetup",u.cc),$("videojs.plugin",u.md),$("videojs.createTimeRange",u.sb)}(),!(new Image,window,navigator,encodeURIComponent),_wAMD.define("legacy/videojs/video.4.3",function(){}),_wAMD.define("site/published/sections/uploadbackground",["jquery","underscore","legacy/videojs/video.4.3"],function(t,e){var n="UploadPlayer",i="uploadplayer",o=i+"-container",r=i+"-shield",s=i+"-player",a="/weebly/libraries/videojs/video-js.swf",l="objectFit"in document.documentElement.style,u={player:null,init:function(n,i){return window.videojs.options.flash.swf=a,this.$node=t(n),this.options=e.chain(i).pick(["video_url","background_url","autoplay","loop","mute"]).defaults({autoplay:!0,loop:!0,mute:!0,controls:!1,techOrder:["html5","flash"],preload:"none"}
7).value(),this.ID=this.$node.data("section")||(new Date).getTime(),this.createBackgroundVideo(),this},createBackgroundVideo:function(){var n=s+"-"+this.ID,a=window.videojs.players[n];a&&a.dispose();var u=o+"-"+this.ID,c=t("<div/>",{"class":o,id:u}),d=t("<div/>",{"class":r}),h=t("<video>",{"class":s+" video-js",id:n,poster:this.options.background_url,append:t("<source>",{src:this.options.video_url,type:"video/mp4"})});c.append(h,d),this.$video=h,this.$container=c,this.$node.append(c),this.player=window.videojs(n,this.options),this.player.muted(this.options.mute),l||(this.$video.addClass("js-no-object-fit"),this.cover(),t(window).on("resize."+i,e.throttle(this.cover.bind(this),25)))},destroy:function(){this.player.dispose(),this.$node.removeData(n),this.$container.remove(),this.$node=null,this.$container=null,l||t(window).off("resize."+i)},cover:function(){var t=this.$node.outerHeight(),e=this.$node.outerWidth();this.size(t,e),this.center(t,e)},size:function(t,e){var n={},i=t/e,o=this.$video.outerHeight(),r=this.$video.outerWidth(),s=o/r;s>=i?(n.width="100%",n.height=""):(n.width="",n.height=t+"px"),this.$video.css(n)},center:function(t,e){var n={},i=this.$video.outerHeight(),o=this.$video.outerWidth();
7Math.ceil(i)>Math.ceil(t)&&(n.marginTop=-(i-t)/2,n.marginLeft=""),Math.ceil(o)>Math.ceil(e)&&(n.marginTop="",n.marginLeft=-(o-e)/2),this.$video.css(n)}};t.fn[n]=function(e){return this.each(function(){if(!t.data(this,n)){var i=Object.create(u);i.init(this,e),t.data(this,n,i)}})}}),_wAMD.define("site/published/sections/utils",["jquery","underscore","vendor/bower_components/mobile-detect/mobile-detect","vendor/bower_components/scrollreveal/dist/scrollreveal","vendor/bower_components/ytBackground/src/jquery.youtubebackground","vendor/bower_components/vimeoBackground/src/jquery.vimeobackground","site/published/sections/uploadbackground"],function(t,e,n,i){var o,r={applyBackgroundVideo:function(t,e,i,o){if(t){o&&t.css("minHeight",270),t.data("properties",e);var r=new n(window.navigator.userAgent);if(!r.mobile()&&(o||i)){switch(e.video_type){case"youtube":this.initYoutubeVideo(t,e);break;case"vimeo":this.initVimeoVideo(t,e);break;case"upload":this.initUploadedVideo(t,e);break;case"gallery":this.initGalleryVideo(t,e)}t.data("has-video",!0)}}},initYoutubeVideo:function(t,e){t.YTPlayer({videoId:e.video_id,repeat:e.loop,mute:e.mute,fitToBackground:!1,pauseOnScroll:!1,playerVars:{autoplay:e.autoplay,controls:0,showinfo:0,modestbranding:1,wmode:"transparent",branding:0,rel:0,autohide:0,origin:window.location.origin}})},initVimeoVideo:function(t,e){t.VimeoPlayer({videoId:e.video_id,loop:e.loop,mute:e.mute,autoplay:e.autoplay})},initUploadedVideo:function(t,e){t.UploadPlayer(e)},initGalleryVideo:function(t,e){t.UploadPlayer(e)},toggleVideoBackground:function(t){t&&(t.data("ytPlayer")?t.find('[id^="ytplayer"]').toggle():t.data("VimeoPlayer")?t.find('[id^="vimeoplayer"]').toggle():t.data("UploadPlayer")&&t.find('[id^="uploadplayer"]').toggle())},destroyVideoBackground:function(t){t&&(t.data("ytPlayer")?t.data("ytPlayer").destroy():t.data("VimeoPlayer")?t.data("VimeoPlayer").destroy():t.data("UploadPlayer")&&t.data("UploadPlayer").destroy(),t.removeData("has-video"))},applyBackgroundEffects:function(r,s,a){Object.keys(s).forEach(function(l){var u=s[l];switch(e.isObject(u.css)&&!e.isArray(u.css)&&Object.keys(u.css).forEac
7h(function(t){ 8r.css(t,u.css[t])}),e.isArray(u.classes)&&u.classes.forEach(function(t){r.addClass(t)}),l){case"parallax":var c=new n(window.navigator.userAgent);(c.mobile()||c.tablet())&&r.css("background-attachment","");break;case"reveal":o||(o=i());var d=a?r.find(".weebly-content-area"):r.find(".wsite-section-elements"),h=a?d.children(':not(".wsite-spacer-li")'):d.children(':not(".wsite-spacer")');if(0===h.length)break;h.each(function(e,n){var i=t(n);a&&"empty-message"!==i.attr("id")&&i.data("before-reveal-style",n.style),i.addClass("sr-nodelist")});var f=d[0].querySelectorAll(".sr-nodelist"),p={opacity:0,scale:1,easing:"ease-in",afterReveal:function(e){var n=t(e);a&&(n.data("before-reveal-style")&&(e.style=n.data("before-reveal-style"),n.removeData("before-reveal-style")),n.removeAttr("data-sr-id")),n.removeClass("sr-nodelist")},sequenceInterval:100};p=r.hasClass("wsite-header-section")?e.extend({duration:700,delay:800},p):e.extend({duration:300,delay:300,origin:"top",distance:"10px"},p);var m=e.defaults({},p);o.reveal(f,m,m.sequenceInterval)}})},getSectionElement:function(e){return t('.wsite-section[data-section="'+e+'"]')}};return r}),_wAMD.define("site/published/sections",["jquery","site/published/sections/utils","vendor/bower_components/scrollreveal/dist/scrollreveal"],function(t,e,n){var i=function(){var n=t(".wsite-section[data-video_type]");n.each(function(n,i){var o=t(i),r=o.data(),s=!0,a=!1;e.applyBackgroundVideo(o,r,a,s)})},o=function(){return n.prototype.isSupported()?void t(".wsite-section-effect-reveal").each(function(){var n=t(this),i={reveal:{}};e.applyBackgroundEffects(n,i,!1)}):void document.documentElement.classList.add("wsite-sr-disabled")},r=function(){t(".wsite-section-effect-parallax").each(function(){var n=t(this),i={parallax:{}};e.applyBackgroundEffects(n,i,!1)})};t(document).ready(function(){i(),r(),o()})}),function(t,e){"function"==typeof define&&define.amd?_wAMD.define("jquery-bridget/jquery-bridget",["jquery"],function(n){e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){function n(n,r,a){function l(t,e,i){var o,r="$()."+n+'("'+e+'")';return t.each(function(t,l){var u=a.data(l,n);if(!u)return void s(n+" not initialized. Cannot call methods, i.e. "+r);var c=u[e];if(!c||"_"==e.charAt(0))return void s(r+" is not a valid method");var d=c.apply(u,i);o=void 0===o?d:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,i){var o=a.data(i,n);o?(o.option(e),o._init()):(o=new r(i,e),a.data(i,n,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[n]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return l(this,t,e)}return u(this,t),this},i(a))}function i(t){!t||t&&t.bridget||(t.bridget=n)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return i(e||t.jQuery),n}),function(t,e){"function"==typeof define&&define.amd?_wAMD.define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{},i=n[t]=n[t]||{};return i[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!=i&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=0,o=n[i];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),i+=s?0:1,o=n[i]}return this}},t}),function(t,e){"function"==typeof define&&define.amd?_wAMD.define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){function t(t){var e=parseFloat(t),n=-1==t.indexOf("%")&&!isNaN(e);return n&&e}function e(){}function n(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var n=l[e];t[n]=0}return t}function i(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!c){c=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(e);var o=i(e);r.isBoxSizeOuter=s=200==t(o.width),n.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=i(e);if("none"==r.display)return n();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var c=a.isBorderBox="border-box"==r.boxSizing,d=0;u>d;d++){var h=l[d],f=r[h],p=parseFloat(f);a[h]=isNaN(p)?0:p}var m=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,v=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,b=a.borderLeftWidth+a.borderRightWidth,w=a.borderTopWidth+a.borderBottomWidth,T=c&&s,_=t(r.width);_!==!1&&(a.width=_+(T?0:m+b));var S=t(r.height);return S!==!1&&(a.height=S+(T?0:g+w)),a.innerWidth=a.width-(m+b),a.innerHeight=a.height-(g+w),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=l.length,c=!1;return r}),function(t,e){"function"==typeof define&&define.amd?_wAMD.define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){var t=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n<e.length;n++){var i=e[n],o=i+"MatchesSelector";if(t[o])return o}}();return function(e,n){return e[t](n)}}),function(t,e){"function"==typeof define&&define.amd?_wAMD.define("fizzy-ui-utils/utils",["de
8sandro-matches-selector/matches-selector"],function(n){return e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var n={};n.extend=function(t,e){for(var n in e)t[n]=e[n];return t},n.modulo=function(t,e){return(t%e+e)%e},n.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e},n.removeFrom=function(t,e){var n=t.indexOf(e);-1!=n&&t.splice(n,1)},n.getParent=function(t,n){for(;t!=document.body;)if(t=t.parentNode,e(t,n))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,i){t=n.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!i)return void o.push(t);e(t,i)&&o.push(t);for(var n=t.querySelectorAll(i),r=0;r<n.length;r++)o.push(n[r])}}),o},n.debounceMethod=function(t,e,n){var i=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){i.apply(r,e),delete r[o]},n||100)}},n.docReady=function(t){"complete"==document.readyState?t():document.addEventListener("DOMContentLoaded",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,n){return e+"-"+n}).toLowerCase()};var i=t.console;return n.htmlInit=function(e,o){n.docReady(function(){var r=n.toDashed(o),s="data-"+r,a=document.querySelectorAll("["+s+"]"),l=d
vendor: 15,210 bytes, line 8
8ocument.querySelectorAll(".js-"+r),u=n.makeArray(a).concat(n.makeArray(l)),c=s+"-options",d=t.jQuery;u.forEach(function(t){var n,r=t.getAttribute(s)||t.getAttribute(c);try{n=r&&JSON.parse(r)}catch(a){return void(i&&i.error("Error parsing "+s+" on "+t.className+": "+a))}var l=new e(t,n);d&&d.data(t,o,l)})})},n}),function(t,e){"function"==typeof define&&define.amd?_wAMD.define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){function n(t){for(var e in t)return!1;return e=null,!0}function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},c=i.prototype=Object.create(t.prototype);c.constructor=i,c._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},c.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.getSize=function(){this.size=e(this.element)},c.css=function(t){var e=this.element.style;for(var n in t){var i=u[n]||n;e[i]=t[n]}},c.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),i=t[e?"left":"right"],o=t[n?"top":"bottom"],r=this.layout.size,s=-1!=i.indexOf("%")?parseFloat(i)/100*r.width:parseInt(i,10),a=-1!=o.indexOf("%")?parseFloat(o)/100*r.height:parseInt(o,10);s=isNaN(s)?0:s,a=isNaN(a)?0:a,s-=e?r.paddingLeft:r.paddingRight,a-=n?r.paddingTop:r.paddingBottom,this.position.x=s,this.position.y=a},c.layoutPosition=function(){var t=this.layout.size,e={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=n?"paddingLeft":"paddingRight",r=n?"left":"right",s=n?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var l=i?"paddingTop":"paddingBottom",u=i?"top":"bottom",c=i?"bottom":"top",d=this.position.y+t[l];e[u]=this.getYValue(d),e[c]="",this.css(e),this.emitEvent("layout",[this])},c.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},c.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},c._transitionTo=function(t,e){this.getPosition();var n=this.position.x,i=this.position.y,o=parseInt(t,10),r=parseInt(e,10),s=o===this.position.x&&r===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return void this.layoutPosition();var a=t-n,l=e-i,u={};u.transform=this.getTranslate(a,l),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},c.getTranslate=function(t,e){var n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop");return t=n?t:-t,e=i?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},c.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},c.moveTo=c._transitionTo,c.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},c._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},c.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var n in t.onTransitionEnd)e.onEnd[n]=t.onTransitionEnd[n];for(n in t.to)e.ingProperties[n]=!0,t.isCleaning&&(e.clean[n]=!0);if(t.from){this.css(t.from);var i=this.element.offsetHeight;i=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var d="opacity,"+o(a);c.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:d,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},c.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},c.onotransitionend=function(t){this.ontransitionend(t)};var h={"-webkit-transform":"transform"};c.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=h[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],n(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd){var o=e.onEnd[i];o.call(this),delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])}},c.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},c._removeStyles=function(t){var e={};for(var n in t)e[n]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return c.removeTransitionStyles=function(){this.css(f)},c.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},c.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},c.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},c.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},n=this.getHideRevealTransitionEndProperty("visibleStyle");e[n]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},c.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},c.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var n in e)return n},c.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},n=this.getHideRevealTransitionEndProperty("hiddenStyle");e[n]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},c.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},c.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(t,e){"function"==typeof define&&define.amd?_wAMD.define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(n,i,o,r){return e(t,n,i,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,n,i,o){function r(t,e){var n=i.getQueryElement(t);if(!n)return void(l&&l.error("Bad element for "+this.constructor.namespace+": "+(n||t)));this.element=n,u&&(this.$element=u(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(e);var o=++d;this.element.outlayerGUID=o,h[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),n=e&&e[1],i=e&&e[2];if(!n.length)return 0;n=parseFloat(n);var o=p[i]||1;return n*o}var l=t.console,u=t.jQuery,c=function(){},d=0,h={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;i.extend(f,e.prototype),f.option=function(t){i.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),n=this.constructor.Item,i=[],o=0;o<e.length;o++){var r=e[o],s=new n(r,this);i.push(s)}return i},f._filterFindItemElements=function(t){return i.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(t,e){var i,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):o instanceof HTMLElement&&(i=o),this[t]=i?n(i)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var n=[];t.forEach(function(t){var i=this._getItemLayoutPosition(t);i.item=t,i.isInstant=e||t.isLayoutInstant,n.push(i)},this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,n,i,o){i?t.goTo(e,n):(t.stagger(o*this.stagger),t.moveTo(e,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=c,f._setContainerMeasure=function(t,e){if(void 0!==t){var n=this.size;n.isBorderBox&&(t+=e?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function n(){o.dispatchEvent(t+"Complete",null,[e])}function i(){s++,s==r&&n()}var o=this,r=e.length;if(!e||!r)return void n();var s=0;e.forEach(function(e){e.once(t,i)})},f.dispatchEvent=function(t,e,n){var i=e?[e].concat(n):n;if(this.emitEvent(t,i),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,n)}else this.$element.trigger(t,n)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){i.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=i.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=c,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=n(t),r={left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=i.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},i.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=n(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var n=this.items.slice(0);this.items=e.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(n)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,n){t.stagger(n*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,n){t.stagger(n*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var n=this.items[e];if(n.element==t)return n}},f.getItems=function(t){t=i.makeArray(t);var e=[];return t.forEach(function(t){var n=this.getItem(t);n&&e.push(n)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),i.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete h[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=i.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&h[e]},r.create=function(t,e){var n=s(r);return n.defaults=i.extend({},r.defaults),i.extend(n.defaults,e),n.compatOptions=i.extend({},r.compatOptions),n.namespace=t,n.data=r.data,n.Item=s(o),i.htmlInit(n,t),u&&u.bridget&&u.bridget(t,n),n};var p={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?_wAMD.define("vendor/bower_components/masonry/dist/masonry.pkgd",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var n=t.create("masonry");return n.compatOptions.fitWidth="isFitWidth",n.prototype._resetLayout=function(){this.get
8Size(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0},n.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],n=t&&t.element;this.columnWidth=n&&e(n).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/i,s=i-o%i,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth"),n=t?this.element.parentNode:this.element,i=e(n);this.containerWidth=i&&i.innerWidth},n.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=e&&1>e?"round":"ceil",i=Math[n](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var o=this._getColGroup(i),r=Math.min.apply(Math,o),s=o.indexOf(r),a={x:this.columnWidth*s,y:r},l=r+t.size.outerHeight,u=this.cols+1-o.length,c=0;u>c;c++)this.colYs[s+c]=l;return a},n.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],n=this.cols+1-t,i=0;n>i;i++){var o=this.colYs.slice(i,i+t);e[i]=Math.max.apply(Math,o)}return e},n.prototype._manageStamp=function(t){var n=e(t),i=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?i.left:i.right,s=r+n.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var l=Math.floor(s/this.columnWidth);l-=s%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var u=this._getOption("originTop"),c=(u?i.top:i.bottom)+n.outerHeight,d=a;l>=d;d++)this.colYs[d]=Math.max(c,this.colYs[d])},n.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},n}),function(t,e){"function"==typeof define&&define.amd?_wAMD.define("vendor/bower_components/jquery-bridget/jquery-bridget",["jquery"],function(n){return e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){function n(n,r,a){function l(t,e,i){var o,r="$()."+n+'("'+e+'")';return t.each(function(t,l){var u=a.data(l,n);if(!u)return void s(n+" not initialized. Cannot call methods, i.e. "+r);var c=u[e];if(!c||"_"==e.charAt(0))return void s(r+" is not a valid method");var d=c.apply(u,i);o=void 0===o?d:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,i){var o=a.data(i,n);o?(o.option(e),o._init()):(o=new r(i,e),a.data(i,n,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[n]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return l(this,t,e)}return u(this,t),this},i(a))}function i(t){!t||t&&t.bridget||(t.bridget=n)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return i(e||t.jQuery),n}),_wAMD.define("site/published/commerce-elements/utils",["jquery","underscore","mustache","vendor/bower_components/masonry/dist/masonry.pkgd","vendor/bower_components/jquery-bridget/jquery-bridget"],function(t,e,n,i,o){var r='<div class="product-pagination" data-max-page="{{max_page}}">\n<div class="product-grid__paging clearfix">\n<a class="product-grid__paging--link js-products-prev">\n<span class="product-grid__paging--arrow"></span>\n</a>\n<div class="pagination-wrapper">\n<a class="product-grid__paging--count js-page-num wsite-first" data-page="1">1</a>\n{{#show_head_ellipsis}}\n<span class="pagination-ellipsis"></span>\n{{/show_head_ellipsis}}\n{{#pages}}\n<a class="product-grid__paging--count js-page-num" data-page="{{.}}">{{.}}</a>\n{{/pages}}\n{{#show_tail_ellipsis}}\n<span class="pagination-ellipsis"></span>\n{{/show_tail_ellipsis}}\n<a class="product-grid__paging--count js-page-num wsite-last" data-page="{{max_page}}">{{max_page}}</a>\n</div>\n<a class="product-grid__paging--link product-grid--next js-products-next">\n<span class="product-grid__paging--arrow"></span>\n</a>\n</div>\n</div>',s={bindSlideshowListener:function(e){var n,i,o=!1,r=function(t,e,n){var i=t.eq(e%t.length);i.css({marginTop:-1*n,paddingTop:n}).fadeIn(400,function(){t.not(i).hide()})},s=function(e){var s=0,a=t(e.currentTarget),l=a.find(".js-slideshow-img");if(i=a.clone(),o=!0,l.length>1){var u=a.find(".js-default-img"),c=parseFloat(u.css("paddingTop"));r(l,++s,c),clearInterval(n),n=setInterval(function(){r(l,++s,c)},1e3)}},a=function(e){if(o){o=!1;var r=t(e.currentTarget);r.replaceWith(i),clearInterval(n)}};e.off("mouseenter.slideshow",".product-grid__item").on("mouseenter.slideshow",".product-grid__item",s).off("mouseleave.
8slideshow",".product-grid__item").on("mouseleave.slideshow",".product-grid__item",a)},listenToPagination:function(t,e,n){var i=t.find(".js-products-prev, .js-products-next"),o=t.find(".js-page-num");i.off("click.arrow").on("click.arrow",function(i){this.onArrowClick(i,t,e,n)}.bind(this)),o.off("click.number").on("click.number",function(i){this.onNumberClick(i,t,e,n)}.bind(this))},onArrowClick:function(e,n,i,o){var r=t(e.currentTarget),s=r.hasClass("js-products-prev")?-1:1,a=r.siblings(".pagination-wrapper"),l=parseInt(a.children(".wsite-selected").attr("data-page")),u=l+s;u>=1&&i>=u&&this.gotoPage(n,u,i,o)},onNumberClick:function(e,n,i,o){var r=t(e.currentTarget),s=parseInt(r.attr("data-page"));s>=1&&i>=s&&this.gotoPage(n,s,i,o)},gotoPage:function(t,e,n,i){this.renderPagination(t,e,n,i),this.renderPage(t,e,i)},renderPagination:function(t,e,i,o){var s=t.find(".product-pagination"),a=this.getPaginationData(e,i),l=n.render(r,a);s.replaceWith(l),t.find('a[data-page="'+e+'"]').addClass("wsite-selected"),this.listenToPagination(t,i,o)},assignShowMorePagination:function(e,n,i){e.find(".product-grid__more").on("click",function(o){var r=t(o.currentTarget),s=r.data("current-page");n>s&&!r.hasClass("disabled")&&(r.data("current-page",++s),r.addClass("disabled"),this.renderPage(e,s,i)),s===n&&r.remove()}.bind(this))},assignRowScrollListener:function(t,n,i){var o=t.find(".product-grid__item");if(0!==o.length){var r=o.outerWidth(!0),s=t.find(".js-row-wrapper");this.scrollIntervalFired=!1,this.scrollInterval=null,t.find(".js-scroll-arrow").off("mousedown touchstart mouseup touchend").on("mousedown touchstart",function(t){this.onSingleRowArrowMousedown(t,s)}.bind(this)).on("mouseup touchend",function(t){this.onSingleArrowMouseUp(t,s,r)}.bind(this)),n>1&&(this.singleRowWidth=0,s.off("scroll.singlerow").on("scroll.singlerow",e.throttle(function(e){this.onSingleRowScroll(e,t,n,r,i)}.bind(this),150)))}},onSingleRowArrowMousedown:function(e,n){if(3!==e.which){var i=t(e.currentTarget),o=i.hasClass("js-scroll-left")?-1:1;this.scrollTimeout=setTimeout(function(){this.scrollInterval=setInterval(function(){this.intervalFired=!0,n.animate({scrollLeft:0>o?"-=30":"+=30"},10)}.bind(this),15)}.bind(this),150)}},onSingleArrowMouseUp:function(e,n,i){if(3!==e.which){var o=t(e.currentTarget),r=o.hasClass("js-scroll-left")?-1:1;if(!this.intervalFired){var s=i,a=n.scrollLeft()%i;a>0&&(0>r?s=a:s-=a),s=Math.ceil(s),n.animate({scrollLeft:0>r?"-="+s+"px":"+="+s+"px"},100)}clearTimeout(this.scrollTimeout),clearInterval(this.scrollInterval),this.intervalFired=!1,this.scrollInterval=null}},onSingleRowScroll:function(e,n,i,o,r){var s=t(e.currentTarget);if(0===this.singleRowWidth){var a=n.find(".js-row-wrapper").get(0);this.singleRowWidth=a.scrollWidth}if(s.scrollLeft()>this.singleRowWidth-2*s.width()){var l=s.data("current-page");i>l&&(this.renderPage(n,++l,r),s.data("current-page",l),this.singleRowWidth=0)}},initializeMasonry:function(e){var n=e.find(".product-grid-masonry");if(n.length>0){n.data("masonry")&&n.masonry("destroy"),t.fn.masonry||o("masonry",i,t);var r={itemSelector:".product-grid__item",columnWidth:".product-grid__item",gutter:".product-grid-masonry--gutter",percentPosition:!0},s=n.find("img"),a=[];s.each(function(){var e=t(this),n=this.complete;if(!n){var i=new t.Deferred;a.push(i),e.on("load",function(){i.resolve()})}}),t.when.apply(t,a).done(function(){n.masonry(r)})}},removeListeners:function(e){e.off("mouseenter mouseleave click"),e.find(".js-products-prev, .js-products-next").off("click"),e.find(".js-page-num").off("click"),e.find(".js-row-wrapper").off("scroll.singlerow"),e.find(".js-scroll-arrow").off("mousedown mouseup mouseleave touchstart touchend"),t.fn.masonry&&e.find(".product-grid-masonry").masonry("destroy")},renderPage:function(t,e,n){var i=e-1;n(t,i)},resetPagination:function(t,e){t.replaceWith(e)},getPaginationData:function(t,n){ 9var i,o=e.range(1,t),r=e.range(t+1,n+1);return n>5&&t>2&&o.splice(0,t-3),n>5&&n-2>t&&r.splice(2,r.length),i=o.concat([t],r),i=e.filter(i,function(t){return 1!==t&&t!==n}),{max_page:n,pages:i,show_head_ellipsis:o[0]>2,show_tail_ellipsis:e.last(r)<n-1}}};return s}),_wAMD.define("site/published/commerce-elements/commerceElements",["jquery","site/published/commerce-elements/utils"],function(t,e){var n=function(){var n=t(".products__published");n.each(function(){var n=t(this),i=n.find("[data-max-page]").data("max-p
9age");e.bindSlideshowListener(n),n.find(".product-grid-image").length>0&&e.initializeMasonry(n,!0),n.find(".product-grid-single-row__wrapper").length>0?e.assignRowScrollListener(n,i,o):n.find(".product-grid__more").length>0?e.assignShowMorePagination(n,i,o):(n.find(".js-page-num").eq(0).addClass("wsite-selected"),e.listenToPagination(n,i,o))})},i=function(){var n=t(".categories__published");n.each(function(){var n=t(this),i=n.find("[data-max-page]").data("max-page");n.find(".product-grid-image").length>0&&e.initializeMasonry(n),n.find(".product-grid-single-row__wrapper").length>0?e.assignRowScrollListener(n,i,o):n.find(".product-grid__more").length>0?e.assignShowMorePagination(n,i,o):(n.find(".js-page-num").eq(0).addClass("wsite-selected"),e.listenToPagination(n,i,o))})},o=function(n,i){var o=n.find(".pagination__overlay"),r=n.attr("data-page-element-id"),s=n.attr("data-page-id"),a="/store/element/"+r+"/page/"+s+"/pagination/"+i,l=n.find(".product-grid-single-row__wrapper");0===l.length&&o.show(),t.ajax({url:a}).done(function(i){l.length>0?l.append(t(i).find(".product-grid__item")):n.find(".product-grid__paging").length>0?(t("body, html").animate({scrollTop:n.offset().top-70+"px"},300),n.find(".commerce-layout-wrapper").html(i),o.hide()):(n.find(".commerce-layout-wrapper").children().eq(0).append(t(i).children()),n.find(".product-grid__more").removeClass("disabled"),o.hide()),n.hasClass("products__published")&&e.bindSlideshowListener(n),e.initializeMasonry(n)})};t(document).ready(function(){n(),i()})}),_wAMD.define("site/published/core",["polyfill/all","jquery","legacy/jquery.animate","legacy/jquery_utils","jquery-ui/effect","jquery-ui/effect-highlight","jquery-ui/effect-fade","util/effect-slide-custom","util/platform/elements/PlatformElement","util/platform/elements/PlatformElementSettings","site/published/general","site/published/comments","site/published/form","site/published/search","site/published/sections","site/published/commerce-elements/commerceElements","underscore","mustache"],function(){}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("underscore"),require("backbone")):"function"==typeof _wAMD.define&&_wAMD.define.amd?_wAMD.define("backbone-radio",["underscore","backbone"],e):(t.Backbone=t.Backbone||{},t.Backbone.Radio=e(t._,t.Backbone))}(this,function(t,e){function n(t,e,n,i){var o=t[e];return n&&n!==o.callback&&n!==o.callback._callback||i&&i!==o.context?void 0:(delete t[e],!0)}function i(e,i,o,r){e||(e={});for(var s=i?[i]:t.keys(e),a=!1,l=0,u=s.length;u>l;l++)i=s[l],e[i]&&n(e,i,o,r)&&(a=!0);return a}function o(e){return c[e]||(c[e]=t.bind(l.log,l,e))}function r(e){return t.isFunction(e)?e:function(){return e}}t="default"in t?t["default"]:t,e="default"in e?e["default"]:e;var s={};s["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};var a=e.Radio,l=e.Radio={};l.VERSION="1.0.4",l.noConflict=function(){return e.Radio=a,this},l.DEBUG=!1,l._debugText=function(t,e,n){return t+(n?" on the "+n+" channel":"")+': "'+e+'"'},l.debugLog=function(t,e,n){l.DEBUG&&console&&console.warn&&console.warn(l._debugText(t,e,n))};var u=/\s+/;l._eventsApi=function(e,n,i,o){if(!i)return!1;var r={};if("object"===("undefined"==typeof i?"undefined":s["typeof"](i))){for(var a in i){var l=e[n].apply(e,[a,i[a]].concat(o));u.test(a)?t.extend(r,l):r[a]=l}return r}if(u.test(i)){for(var c=i.split(u),d=0,h=c.length;h>d;d++)r[c[d]]=e[n].apply(e,[c[d]].concat(o));return r}return!1},l._callHandler=function(t,e,n){var i=n[0],o=n[1],r=n[2];switch(n.length){case 0:return t.call(e);case 1:return t.call(e,i);case 2:return t.call(e,i,o);case 3:return t.call(e,i,o,r);default:return t.apply(e,n)}};var c={};t.extend(l,{log:function(e,n){if("undefined"!=typeof console){var i=t.toArray(arguments).slice(2);console.log("["+e+'] "'+n+'"',i)}},tuneIn:function(t){var e=l.channel(t);return e._tunedIn=!0,e.on("all",o(t)),this},tuneOut:function(t){var e=l.channel(t);return e._tunedIn=!1,e.off("all",o(t)),delete c[t],this}}),l.Requests={request:function(e){var n=t.toArray(arguments).slice(1),i=l._eventsApi(this,"request",e,n);if(i)return i;var o=this.channelName,r=this._requests;if(o&&this._tunedIn&&l.log.apply(this,[o,e].concat(n)),r&&(r[e]||r["default"])){var s=r[e]||r["default"];
9return n=r[e]?n:arguments,l._callHandler(s.callback,s.context,n)}l.debugLog("An unhandled request was fired",e,o)},reply:function(t,e,n){return l._eventsApi(this,"reply",t,[e,n])?this:(this._requests||(this._requests={}),this._requests[t]&&l.debugLog("A request was overwritten",t,this.channelName),this._requests[t]={callback:r(e),context:n||this},this)},replyOnce:function(e,n,i){if(l._eventsApi(this,"replyOnce",e,[n,i]))return this;var o=this,s=t.once(function(){return o.stopReplying(e),r(n).apply(this,arguments)});return this.reply(e,s,i)},stopReplying:function(t,e,n){return l._eventsApi(this,"stopReplying",t)?this:(t||e||n?i(this._requests,t,e,n)||l.debugLog("Attempted to remove the unregistered request",t,this.channelName):delete this._requests,this)}},l._channels={},l.channel=function(t){if(!t)throw new Error("You must provide a name for the channel.");return l._channels[t]?l._channels[t]:l._channels[t]=new l.Channel(t)},l.Channel=function(t){this.channelName=t},t.extend(l.Channel.prototype,e.Events,l.Requests,{reset:function(){return this.off(),this.stopListening(),this.stopReplying(),this}});var d,h,f=[e.Events,l.Requests];return t.each(f,function(e){t.each(e,function(e,n){l[n]=function(e){return h=t.toArray(arguments).slice(1),d=this.channel(e),d[n].apply(d,h)}})}),l.reset=function(e){var n=e?[this._channels[e]]:this._channels;t.each(n,function(t){t.reset()})},l}),function(t){if("object"==typeof exports)module.exports=t(require("underscore"),require("backbone"));else if("function"==typeof define&&define.amd)_wAMD.define("backbone-pageable",["underscore","backbone"],t);else if("undefined"!=typeof _&&"undefined"!=typeof Backbone){var e=Backbone.PageableCollection,n=t(_,Backbone);Backbone.PageableCollection.noConflict=function(){return Backbone.PageableCollection=e,n}}}(function(t,e){function n(e,n){if(!t.isNumber(e)||t.isNaN(e)||!t.isFinite(e)||~~e!==e)throw new TypeError("`"+n+"` must be a finite integer");return e}function i(t){for(var e,n,i,o,r={},s=decodeURIComponent,a=t.split("&"),l=0,u=a.length;u>l;l++){var c=a[l];e=c.split("="),n=e[0],i=e[1]||!0,n=s(n),i=s(i),o=r[n],p(o)?o.push(i):o?r[n]=[o,i]:r[n]=i}return r}function o(t,e,n){var i=t._events[e];if(i&&i.length){var o=i[i.length-1],r=o.callback;o.callback=function(){try{r.apply(this,arguments),n()}catch(t){throw t}finally{o.callback=r}}}else n()}var r=t.extend,s=t.omit,a=t.clone,l=t.each,u=t.pick,c=t.contains,d=t.isEmpty,h=t.pairs,f=t.invert,p=t.isArray,m=t.isFunction,g=t.isObject,v=t.keys,y=t.isUndefined,b=t.result,w=Math.ceil,T=Math.floor,_=Math.max,S=e.Collection.prototype,M=/[\s'"]/g,P=/[<>\s'"]/g,C=e.PageableCollection=e.Collection.extend({state:{firstPage:1,lastPage:null,currentPage:null,pageSize:25,totalPages:null,totalRecords:null,sortKey:null,order:-1},mode:"server",queryParams:{currentPage:"page",pageSize:"per_page",totalPages:"total_pages",totalRecords:"total_entries",sortKey:"sort_by",order:"order",directions:{"-1":"asc",1:"desc"}},constructor:function(t,e){S.constructor.apply(this,arguments),e=e||{};var n=this.mode=e.mode||this.mode||A.mode,i=r({},A.queryParams,this.queryParams,e.queryParams||{});i.directions=r({},A.queryParams.directions,this.queryParams.directions,i.directions||{}),this.queryParams=i;var o=this.state=r({},A.state,this.state,e.state||{});
9o.currentPage=null==o.currentPage?o.firstPage:o.currentPage,p(t)||(t=t?[t]:[]),"server"==n||null!=o.totalRecords||d(t)||(o.totalRecords=t.length),this.switchMode(n,r({fetch:!1,resetState:!1,models:t},e));var s=e.comparator;if(o.sortKey&&!s&&this.setSorting(o.sortKey,o.order,e),"server"!=n){var l=this.fullCollection;s&&e.full&&(this.comparator=null,l.comparator=s),e.full&&l.sort(),t&&!d(t)&&(this.reset([].slice.call(t),r({silent:!0},e)),this.getPage(o.currentPage),t.splice.apply(t,[0,t.length].concat(this.models)))}this._initState=a(this.state)},_makeFullCollection:function(t,n){var i,o,r,s=["url","model","sync","comparator"],a=this.constructor.prototype,l={};for(i=0,o=s.length;o>i;i++)r=s[i],y(a[r])||(l[r]=a[r]);var u=new(e.Collection.extend(l))(t,n);for(i=0,o=s.length;o>i;i++)r=s[i],this[r]!==a[r]&&(u[r]=this[r]);return u},_makeCollectionEventHandler:function(t,e){return function(n,i,s,u){var c=t._handlers;l(v(c),function(n){var i=c[n];t.off(n,i),e.off(n,i)});var d=a(t.state),h=d.firstPage,f=0===h?d.currentPage:d.currentPage-1,p=d.pageSize,m=f*p,g=m+p;if("add"==n){var b,T,_,S,u=u||{};if(s==e)T=e.indexOf(i),T>=m&&g>T&&(S=t,b=_=T-m);else{b=t.indexOf(i),T=m+b,S=e;var _=y(u.at)?T:u.at+m}if(u.onRemove||(++d.totalRecords,delete u.onRemove),t.state=t._checkState(d),S){S.add(i,r({},u||{},{at:_}));var M=b>=p?i:!y(u.at)&&g>_&&t.length>p?t.at(p):null;M&&o(s,n,function(){t.remove(M,{onAdd:!0})})}}if("remove"==n)if(u.onAdd)delete u.onAdd;else{if(--d.totalRecords){var P=d.totalPages=w(d.totalRecords/p);d.lastPage=0===h?P-1:P||h,d.currentPage>P&&(d.currentPage=d.lastPage)}else d.totalRecords=null,d.totalPages=null;t.state=t._checkState(d);var C,A=u.index;s==t?((C=e.at(g))&&o(t,n,function(){t.push(C,{onRemove:!0})}),e.remove(i)):A>=m&&g>A&&((C=e.at(g-1))&&o(t,n,function(){t.push(C,{onRemove:!0})}),t.remove(i))}if("reset"==n)if(u=s,s=i,s==t&&null==u.from&&null==u.to){var x=e.models.slice(0,m),k=e.models.slice(m+t.models.length);e.reset(x.concat(t.models).concat(k),u)}else s==e&&((d.totalRecords=e.models.length)||(d.totalRecords=null,d.totalPages=null),"client"==t.mode&&(d.lastPage=d.currentPage=d.firstPage),t.state=t._checkState(d),t.reset(e.models.slice(m,g),r({},u,{parse:!1})));"sort"==n&&(u=s,s=i,s===e&&t.reset(e.models.slice(m,g),r({},u,{parse:!1}))),l(v(c),function(n){var i=c[n];l([t,e],function(t){t.on(n,i);var e=t._events[n]||[];e.unshift(e.pop())})})}},_checkState:function(t){var e=this.mode,i=this.links,o=t.totalRecords,r=t.pageSize,s=t.currentPage,a=t.firstPage,l=t.totalPages;if(null!=o&&null!=r&&null!=s&&null!=a&&("infinite"==e?i:!0)){if(o=n(o,"totalRecords"),r=n(r,"pageSize"),s=n(s,"currentPage"),a=n(a,"firstPage"),1>r)throw new RangeError("`pageSize` must be >= 1");if(l=t.totalPages=w(o/r),0>a||a>1)throw new RangeError("`firstPage must be 0 or 1`");if(t.lastPage=0===a?_(0,l-1):l||a,"infinite"==e){if(!i[s+""])throw new RangeError("No link found for page "+s)}else if(a>s||l>0&&(a?s>l:s>=l))throw new RangeError("`currentPage` must be firstPage <= currentPage "+(a?">":">=")+" totalPages if "+a+"-based. Got "+s+".")}return t},setPageSize:function(t,e){t=n(t,"pageSize"),e=e||{first:!1};var i=this.state,o=w(i.totalRecords/t),a=o?_(i.firstPage,T(o*(i.firstPage?i.currentPage:i.currentPage+1)/i.totalPages)):i.firstPage;return i=this.state=this._checkState(r({},i,{pageSize:t,currentPage:e.first?i.firstPage:a,totalPages:o})),this.getPage(i.currentPage,s(e,["first"]))},switchMode:function(e,n){if(!c(["server","client","infinite"],e))throw new TypeError('`mode` must be one of "server", "client" or "infinite"');n=n||{fetch:!0,resetState:!0};var i=this.state=n.resetState?a(this._initState):this._checkState(r({},this.state));this.mode=e;var o,u=this,d=this.fullCollection,h=this._handlers=this._handlers||{};if("server"==e||d)"server"==e&&d&&(l(v(h),function(t){o=h[t],u.off(t,o),d.off(t,o)}),delete this._handlers,this._fullComparator=d.comparator,delete this.fullCollection);else{d=this._makeFullCollection(n.models||[],n),d.pageableCollection=this,this.fullCollection=d;var f=this._makeCollectionEventHandler(this,d);l(["add","remove","reset","sort"],function(e){h[e]=o=t.bind(f,{},e),u.on(e,o),d.on(e,o)}),d.comparator=this._fullComparator}if("infinite"==e)for(var p=this.links={},m=i.firstPage,g=w(i.totalRecords/i.pageSize),y=0===m?_(0,g-1):g||m,b=i.firstPage;y>=b;b++)p[b]=this.url;else this.links&&delete this.links;return n.fetch?this.fetch(s(n,"fetch","resetState")):this},hasPrevious:function(){var t=this.state,e=t.currentPage;return"infinite"!=this.mode?e>t.firstPage:!!this.links[e-1]},hasNext:function(){var t=this.state,e=this.state.currentPage;return"infinite"!=this.mode?e<t.lastPage:!!this.links[e+1]},getFirstPage:function(t){return this.getPage("first",t)},getPreviousPage:function(t){return this.getPage("prev",t)},getNextPage:function(t){return this.getPage("next",t)},getLastPage:function(t){return this.getPage("last",t)},getPage:function(t,e){var i=this.mode,o=this.fullCollection;e=e||{fetch:!1};var a=this.state,l=a.firstPage,u=a.currentPage,c=a.lastPage,h=a.pageSize,f=t;switch(t){case"first":f=l;break;case"prev":f=u-1;break;case"next":f=u+1;break;case"last":f=c;break;default:f=n(t,"index")}this.state=this._checkState(r({},a,{currentPage:f})),e.from=u,e.to=f;var p=(0===l?f:f-1)*h,m=o&&o.length?o.models.slice(p,p+h):[];return"client"!=i&&("infinite"!=i||d(m))||e.fetch?("infinite"==i&&(e.url=this.links[f]),this.fetch(s(e,"fetch"))):(this.reset(m,s(e,"fetch")),this)},getPageByOffset:function(t,e){if(0>t)throw new RangeError("`offset must be > 0`");t=n(t);var i=T(t/this.state.pageSize);return 0!==this.state.firstPage&&i++,i>this.state.lastPage&&(i=this.state.lastPage),this.getPage(i,e)},sync:function(t,n,i){var o=this;if("infinite"==o.mode){var s=i.success,a=o.state.currentPage;i.success=function(t,e,n){var l=o.links,u=o.parseLinks(t,r({xhr:n},i));u.first&&(l[o.state.firstPage]=u.first),u.prev&&(l[a-1]=u.prev),u.next&&(l[a+1]=u.next),s&&s(t,e,n)}}return(S.sync||e.sync).call(o,t,n,i)},parseLinks:function(t,e){var n={},i=e.xhr.getResponseHeader("Link");if(i){var o=["first","prev","next"];l(i.split(","),function(t){var e=t.split(";"),i=e[0].replace(P,""),r=e.slice(1);l(r,function(t){var e=t.split("="),r=e[0].replace(M,""),s=e[1].replace(M,"");"rel"==r&&c(o,s)&&(n[s]=i)})})}return n},parse:function(t,e){var n=this.parseState(t,a(this.queryParams),a(this.state),e);return n&&(this.state=this._checkState(r({},this.state,n))),this.parseRecords(t,e)},parseState:function(e,n,i,o){if(e&&2===e.length&&g(e[0])&&p(e[1])){var r=a(i),u=e[0];return l(h(s(n,"directions")),function(e){var n=e[0],i=e[1],o=u[i];y(o)||t.isNull(o)||(r[n]=u[i])}),u.order&&(r.order=1*f(n.directions)[u.order]),r}},parseRecords:function(t,e){return t&&2===t.length&&g(t[0])&&p(t[1])?t[1]:t},fetch:function(t){t=t||{};var e=this._checkState(this.state),n=this.mode;"infinite"!=n||t.url||(t.url=this.links[e.currentPage]);var o=t.data||{},l=b(t,"url")||b(this,"url")||"",c=l.indexOf("?");-1!=c&&(r(o,i(l.slice(c+1))),l=l.slice(0,c)),t.url=l,t.data=o;var d,f,p,g,w="client"==this.mode?u(this.queryParams,"sortKey","order"):s(u(this.queryParams,v(A.queryParams)),"directions"),T=h(w),_=a(this);for(d=0;d<T.length;d++)f=T[d],p=f[0],g=f[1],g=m(g)?g.call(_):g,null!=e[p]&&null!=g&&(o[g]=e[p]);e.sortKey&&e.order?o[w.order]=this.queryParams.directions[e.order+""]:e.sortKey||delete o[w.order];var M=h(s(this.queryParams,v(A.queryParams)));for(d=0;d<M.length;d++)f=M[d],g=f[1],g=m(g)?g.call(_):g,null!=g&&(o[f[0]]=g);if("server"!=n){var P=this,C=this.fullCollection,x=t.success;return t.success=function(e,i,o){o=o||{},y(t.silent)?delete o.silent:o.silent=t.silent;var s=e.models;"client"==n?C.reset(s,o):(C.add(s,r({at:C.length},r(o,{parse:!1}))),P.trigger("reset",P,o)),x&&x(e,i,o)},S.fetch.call(this,r({},t,{silent:!0}))}return S.fetch.call(this,t)},_makeComparator:function(t,e,n){var i=this.state;return t=t||i.sortKey,e=e||i.order,t&&e?(n||(n=function(t,e){return t.get(e)}),function(i,o){var r,s=n(i,t),a=n(o,t);return 1===e&&(r=s,s=a,a=r),s===a?0:a>s?-1:1}):void 0},setSorting:function(e,n,i){var o=this.state;o.sortKey=e,o.order=n=n||o.order;var s=this.fullCollection,a=!1,l=!1;e||(a=l=!0);var u=this.mode;i=r({side:"client"==u?u:"server",full:!0},i);var c=this._makeComparator(e,n,i.sortValue),d=i.full,h=i.side;return"client"==h?d?(s&&(s.comparator=c),a=!0):(this.comparator=c,l=!0):"server"!=h||d||(this.comparator=c),a&&(this.comparator=null),l&&s&&(s.comparator=null),this.fetchOptions=t.extend({},this.fetchOptions,{sort:[{property:e,direction:n>0?"ASC":"DESC"}]}),this}}),A=C.prototype;return C}),function(t){"object"==typeof exports?module.exports=t(require("backbone"),require("underscore")):"function"==typeof _wAMD.define&&_wAMD.define.amd&&_wAMD.define("backbone-validation",["backbone","underscore"],t)}(function(t,e){return t.Validation=function(e){var n={forceUpdate:!1,selector:"name",labelFormatter:"sentenceCase",valid:Function.prototype,invalid:Function.prototype},i={formatLabel:function(t,e){return u[n.labelFormatter](t,e)},format:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();return e.replace(/\{(\d+)\}/g,function(e,n){return"undefined"!=typeof t[n]?t[n]:e})}},o=function(n,i,r){return i=i||{},r=r||"",e.each(n,function(e,s){n.hasOwnProperty(s)&&(e&&"object"==typeof e&&!(e instanceof Array||e instanceof Date||e instanceof RegExp||e instanceof t.Model||e instanceof t.Collection)?o(e,i,r+s+"."):i[r+s]=e)}),i},r=function(){var t=function(t){return e.reduce(e.keys(e.result(t,"validation")||{}),function(t,e){return t[e]=void 0,t},{})},r=function(t,n){var i=t.validation?e.result(t,"validation")[n]||{}:{};return(e.isFunction(i)||e.isString(i))&&(i={fn:i}),e.isArray(i)||(i=[i]),e.reduce(i,function(t,n){return e.each(e.without(e.keys(n),"msg"),function(e){t.push({fn:c[e],val:n[e],msg:n.msg})}),t},[])},a=function(t,n,o,s){return e.reduce(r(t,n),function(r,a){var l=e.extend({},i,c),u=a.fn.call(l,o,n,a.val,t,s);return u===!1||r===!1?!1:u&&!r?e.result(a,"msg")||u:r},"")},l=function(t,n){var i,r={},s=!0,l=e.clone(n),u=o(n);return e.each(u,function(e,n){i=a(t,n,e,l),i&&(r[n]=i,s=!1)}),{invalidAttrs:r,isValid:s}},u=function(n,i){return{preValidate:function(t,n){var i,o=this,r={};return e.isObject(t)?(e.each(t,function(t,e){i=o.preValidate(e,t),i&&(r[e]=i)}),e.isEmpty(r)?void 0:r):a(this,t,n,e.extend({},this.attributes))},isValid:function(t){var n=o(this.attributes);return e.isString(t)?!a(this,t,n[t],e.extend({},this.attributes)):e.isArray(t)?e.reduce(t,function(t,i){return t&&!a(this,i,n[i],e.extend({},this.attributes))},!0,this):(t===!0&&this.validate(),this.validation?this._isValid:!0)},validate:function(r,s){var a=this,u=!r,c=e.extend({},i,s),d=t(a),h=e.extend({},d,a.attributes,r),f=o(r||h),p=l(a,h);return a._isValid=p.isValid,e.each(d,function(t,e){var i=p.invalidAttrs.hasOwnProperty(e);i||c.valid(n,e,c.selector)}),e.each(d,function(t,e){var i=p.invalidAttrs.hasOwnProperty(e),o=f.hasOwnProperty(e);
9i&&(o||u)&&c.invalid(n,e,p.invalidAttrs[e],c.selector)}),e.defer(function(){a.trigger("validated",a._isValid,a,p.invalidAttrs),a.trigger("validated:"+(a._isValid?"valid":"invalid"),a,p.invalidAttrs)}),!c.forceUpdate&&e.intersection(e.keys(p.invalidAttrs),e.keys(f)).length>0?p.invalidAttrs:void 0}}},d=function(t,n,i){e.extend(n,u(t,i))},h=function(t){delete t.validate,delete t.preValidate,delete t.isValid},f=function(t){d(this.view,t,this.options)},p=function(t){h(t)};return{version:"0.9.1",configure:function(t){e.extend(n,t)},bind:function(t,i){i=e.extend({},n,s,i);var o=i.model||t.model,r=i.collection||t.collection;if("undefined"==typeof o&&"undefined"==typeof r)throw"Before you execute the binding your view must have a model or a collection.\nSee http://thedersen.com/projects/backbone-validation/#using-form-model-validation for more information.";o?d(t,o,i):r&&(r.each(function(e){d(t,e,i)}),r.bind("add",f,{view:t,options:i}),r.bind("remove",p))},unbind:function(t,n){n=e.extend({},n);var i=n.model||t.model,o=n.collection||t.collection;i?h(i):o&&(o.each(function(t){h(t)}),o.unbind("add",f),o.unbind("remove",p))},mixin:u(null,n)}}(),s=r.callbacks={valid:function(t,e,n){t.$("["+n+'~="'+e+'"]').removeClass("invalid").removeAttr("data-error")},invalid:function(t,e,n,i){t.$("["+i+'~="'+e+'"]').addClass("invalid").attr("data-error",n)}},a=r.patterns={digits:/^\d+$/,number:/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/,email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,url:/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/i,domain:/^(?:[a-zA-Z0-9]+(?:\-*[a-zA-Z0-9])*\.)+[a-zA-Z]{2,6}$/},l=r.messages={required:"{0} is required",acceptance:"{0} must be accepted",min:"{0} must be greater than or equal to {1}",max:"{0} must be less than or equal to {1}",range:"{0} must be between {1} and {2}",length:"{0} must be {1} characters",minLength:"{0} must be at least {1} characters",maxLength:"{0} must be at most {1} characters",rangeLength:"{0} must be between {1} and {2} characters",oneOf:"{0} must be one of: {1}",equalTo:"{0} must be the same as {1}",digits:"{0} must only contain digits",number:"{0} must be a number","int":"{0} must be a whole number",email:"{0} must be a valid email",url:"{0} must be a valid url",domain:"{0} must be a valid domain",inlinePattern:"{0}
9 is invalid"},u=r.labelFormatters={none:function(t){return t},sentenceCase:function(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,e){return 0===e?t.toUpperCase():" "+t.toLowerCase()}).replace(/_/g," ")},label:function(t,e){return e.labels&&e.labels[t]||u.sentenceCase(t,e)}},c=r.validators=function(){var t=String.prototype.trim?function(t){return null===t?"":String.prototype.trim.call(t)}:function(t){var e=/^\s+/,n=/\s+$/;return null===t?"":t.toString().replace(e,"").replace(n,"")},n=function(t){return e.isNumber(t)||e.isString(t)&&t.match(a.number)},i=function(n){return!(e.isNull(n)||e.isUndefined(n)||e.isString(n)&&""===t(n)||e.isArray(n)&&e.isEmpty(n))};return{fn:function(t,n,i,o,r){return e.isString(i)&&(i=o[i]),i.call(o,t,n,r)},required:function(t,n,o,r,s){var a=e.isFunction(o)?o.call(r,t,n,s):o;return a||i(t)?a&&!i(t)?this.format(l.required,this.formatLabel(n,r)):void 0:!1},acceptance:function(t,n,i,o){return"true"===t||e.isBoolean(t)&&t!==!1?void 0:this.format(l.acceptance,this.formatLabel(n,o))},min:function(t,e,i,o){return!n(t)||i>t?this.format(l.min,this.formatLabel(e,o),i):void 0},max:function(t,e,i,o){return!n(t)||t>i?this.format(l.max,this.formatLabel(e,o),i):void 0},range:function(t,e,i,o){return!n(t)||t<i[0]||t>i[1]?this.format(l.range,this.formatLabel(e,o),i[0],i[1]):void 0},length:function(t,n,i,o){return e.isString(t)&&t.length===i?void 0:this.format(l.length,this.formatLabel(n,o),i)},minLength:function(t,n,i,o){return!e.isString(t)||t.length<i?this.format(l.minLength,this.formatLabel(n,o),i):void 0},maxLength:function(t,n,i,o){return!e.isString(t)||t.length>i?this.format(l.maxLength,this.formatLabel(n,o),i):void 0},rangeLength:function(t,n,i,o){return!e.isString(t)||t.length<i[0]||t.length>i[1]?this.format(l.rangeLength,this.formatLabel(n,o),i[0],i[1]):void 0},oneOf:function(t,n,i,o){return e.include(i,t)?void 0:this.format(l.oneOf,this.formatLabel(n,o),i.join(", "))},equalTo:function(t,e,n,i,o){return t!==o[n]?this.format(l.equalTo,this.formatLabel(e,i),this.formatLabel(n,i)):void 0},pattern:function(t,e,n,o){return i(t)&&t.toString().match(a[n]||n)?void 0:this.format(l[n]||l.inlinePattern,this.formatLabel(e,o),n)},url:function(t,e,n,i){return a.url.test(t)?void 0:this.format(l.url,this.formatLabel(e,i))},domain:function(t,e,n,i){return a.domain.test(t)?void 0:this.format(l.domain,this.formatLabel(e,i))},email:function(t,e,n,i){return a.email.test(t)?void 0:this.format(l.email,this.formatLabel(e,i))},number:function(t,e,n,i){return isNaN(parseFloat(t))||!isFinite(t)?this.format(l.number,this.formatLabel(e,i)):void 0},"int":function(t,e,n,i){return t%1!==0?this.format(l["int"],this.formatLabel(e,i)):void 0}}}();return e.each(c,function(t,n){c[n]=e.bind(c[n],e.extend({},i,c))}),r}(e),t.Validation}),function(t,e){"function"==typeof _wAMD.define&&_wAMD.define.amd?_wAMD.define("backbone-relational",["exports","backbone","underscore"],e):"undefined"!=typeof exports?e(exports,require("backbone"),require("underscore")):e(t,t.Backbone,t._)}(this,function(t,e,n){e.Relational={showWarnings:!0},e.Semaphore={_class:"Backbone.Semaphore",_permitsAvailable:null,_permitsUsed:0,acquire:function(){if(this._permitsAvailable&&this._permitsUsed>=this._permitsAvailable)throw new Error("Max permits acquired");this._permitsUsed++},release:function(){if(0===this._permitsUsed)throw new Error("All permits released");this._permitsUsed--},isLocked:function(){return this._permitsUsed>0},setAvailablePermits:function(t){if(this._permitsUsed>t)throw new Error("Available permits cannot be less than used permits");this._permitsAvailable=t}},e.BlockingQueue=function(){this._queue=[]},n.extend(e.BlockingQueue.prototype,e.Semaphore,{_class:"Backbone.BlockingQueue",_queue:null,add:function(t){this.isBlocked()?this._queue.push(t):t()},process:function(){var t=this._queue;for(this._queue=[];t&&t.length;)t.shift()()},block:function(){this.acquire()},unblock:function(){this.release(),this.isBlocked()||this.process()},isBlocked:function(){return this.isLocked()}}),e.Relational.eventQueue=new e.BlockingQueue,e.Store=function(){this._collections=[],this._reverseRelations=[],this._orphanRelations=[],this._subModels=[],this._modelScopes=[t]},n.extend(e.Store.prototype,e.Events,{_class:"Backbone.Store",initializeRelation:function(t,i,o){var r=n.isString(i.type)?e[i.type]||this.getObjectByName(i.type):i.type;r&&r.prototype instanceof e.Relation?new r(t,i,o):e.Relational.showWarnings&&"undefined"!=typeof console&&console.warn("Relation=%o; missing or invalid relation type!",i)},addModelScope:function(t){this._modelScopes.push(t)},removeModelScope:function(t){this._modelScopes=n.without(this._modelScopes,t)},addSubModels:function(t,e){this._subModels.push({superModelType:e,subModels:t})},setupSuperModel:function(t){n.find(this._subModels,function(e){return n.each(e.subModels||[],function(n,i){var o=this.getObjectByName(n);return t===o?(e.superModelType._subModels[i]=t,t._superModel=e.superModelType,t._subModelTypeValue=i,t._subModelTypeAttribute=e.superModelType.prototype.subModelTypeAttribute,!0):void 0},this)},this)},addReverseRelation:function(t){var e=n.any(this._reverseRelations,function(e){return n.all(t||[],function(t,n){return t===e[n]})});!e&&t.model&&t.type&&(this._reverseRelations.push(t),this._addRelation(t.model,t),this.retroFitRelation(t))},addOrphanRelation:function(t){var e=n.any(this._orphanRelations,function(e){return n.all(t||[],function(t,n){return t===e[n]})});!e&&t.model&&t.type&&this._orphanRelations.push(t)},processOrphanRelations:function(){n.each(this._orphanRelations.slice(0),function(t){var i=e.Relational.store.getObjectByName(t.relatedModel);i&&(this.initializeRelation(null,t),this._orphanRelations=n.without(this._orphanRelations,t))},this)},_addRelation:function(t,e){t.prototype.relations||(t.prototype.relations=[]),t.prototype.relations.push(e),n.each(t._subModels||[],function(t){this._addRelation(t,e)},this)},retroFitRelation:function(t){var e=this.getCollection(t.model,!1);e&&e.each(function(e){e instanceof t.model&&new t.type(e,t)},this)},getCollection:function(t,i){t instanceof e.RelationalModel&&(t=t.constructor);for(var o=t;o._superModel;)o=o._superModel;var r=n.find(this._collections,function(t){return t.model===o});return r||i===!1||(r=this._createCollection(o)),r},getObjectByName:function(t){var e=t.split("."),i=null;return n.find(this._modelScopes,function(t){return i=n.reduce(e||[],function(t,e){return t?t[e]:void 0},t),i&&i!==t?!0:void 0},this),i},_createCollection:function(t){var n;return t instanceof e.RelationalModel&&(t=t.constructor),t.prototype instanceof e.RelationalModel&&(n=new e.Collection,n.model=t,this._collections.push(n)),n},resolveIdForItem:function(t,i){var o=n.isString(i)||n.isNumber(i)?i:null;return null===o&&(i instanceof e.RelationalModel?o=i.id:n.isObject(i)&&(o=t.prototype._getNewId(i))),o||0===o||(o=null),o},find:function(t,e){var n=this.resolveIdForItem(t,e),i=this.getCollection(t);
9if(i){var o=i.get(n);if(o instanceof t)return o}return null},register:function(t){var e=this.getCollection(t);if(e){var n=t.collection;e.add(t),t.collection=n}},checkId:function(t,n){var i=this.getCollection(t),o=i&&i.get(n);if(o&&t!==o)throw e.Relational.showWarnings&&"undefined"!=typeof console&&console.warn("Duplicate id! Old RelationalModel=%o, new RelationalModel=%o",o,t),new Error("Cannot instantiate more than one Backbone.RelationalModel with the same id per type!")},update:function(t){var e=this.getCollection(t);e.contains(t)||this.register(t),e._onModelEvent("change:"+t.idAttribute,t,e),t.trigger("relational:change:id",t,e)},unregister:function(t){var i,o;t instanceof e.Model?(i=this.getCollection(t),o=[t]):t instanceof e.Collection?(i=this.getCollection(t.model),o=n.clone(t.models)):(i=this.getCollection(t),o=n.clone(i.models)),n.each(o,function(t){this.stopListening(t),n.invoke(t.getRelations(),"stopListening")},this),n.contains(this._collections,t)?i.reset([]):n.each(o,function(t){i.get(t)?i.remove(t):i.trigger("relational:remove",t,i)},this)},reset:function(){this.stopListening(),n.each(this._collections,function(t){this.unregister(t)},this),this._collections=[],this._subModels=[],this._modelScopes=[t]}}),e.Relational.store=new e.Store,e.Relation=function(t,i,o){if(this.instance=t,i=n.isObject(i)?i:{},this.reverseRelation=n.defaults(i.reverseRelation||{},this.options.reverseRelation),this.options=n.defaults(i,this.options,e.Relation.prototype.options),this.reverseRelation.type=n.isString(this.reverseRelation.type)?e[this.reverseRelation.type]||e.Relational.store.getObjectByName(this.reverseRelation.type):this.reverseRelation.type,this.key=this.options.key,this.keySource=this.options.keySource||this.key,this.keyDestination=this.options.keyDestination||this.keySource||this.key,this.model=this.options.model||this.instance.constructor,this.relatedModel=this.options.relatedModel,!n.isFunction(this.relatedModel)||this.relatedModel.prototype instanceof e.RelationalModel||(this.relatedModel=n.result(this,"relatedModel")),n.isString(this.relatedModel)&&(this.relatedModel=e.Relational.store.getObjectByName(this.relatedModel)),this.checkPreconditions()&&(!this.options.isAutoRelation&&this.reverseRelation.type&&this.reverseRelation.key&&e.Relational.store.addReverseRelation(n.defaults({isAutoRelation:!0,model:this.relatedModel, 10relatedModel:this.model,reverseRelation:this.options},this.reverseRelation)),t)){var r=this.keySource;r!==this.key&&"object"==typeof this.instance.get(this.key)&&(r=this.key),this.setKeyContents(this.instance.get(r)),this.relatedCollection=e.Relational.store.getCollection(this.relatedModel),this.keySource!==this.key&&delete this.instance.attributes[this.keySource],this.instance._relations[this.key]=this,this.initialize(o),this.options.autoFetch&&this.instance.fetchRelated(this.key,n.isObject(this.options.autoFetch)?this.options.autoFetch:{}),this.listenTo(this.instance,"destroy",this.destroy).listenTo(this.relatedCollection,"relational:add relational:change:id",this.tryAddRelated).listenTo(this.relatedCollection,"relational:remove",this.removeRelated)}},e.Relation.extend=e.Model.extend,n.extend(e.Relation.prototype,e.Events,e.Semaphore,{_class:"Backbone.Relation",options:{createModels:!0,includeInJSON:!0,isAutoRelation:!1,autoFetch:!1,parse:!1},instance:null,key:null,keyContents:null,relatedModel:null,relatedCollection:null,reverseRelation:null,related:null,checkPreconditions:function(){var t=this.instance,i=this.key,o=this.model,r=this.relatedModel,s=e.Relational.showWarnings&&"undefined"!=typeof console;if(!o||!i||!r)return s&&console.warn("Relation=%o: missing model, key or relatedModel (%o, %o, %o).",this,o,i,r),!1;if(!(o.prototype instanceof e.RelationalModel))return s&&console.warn("Relation=%o: model does not inherit from Backbone.RelationalModel (%o).",this,t),!1;if(!(r.prototype instanceof e.RelationalModel))return s&&console.warn("Relation=%o: relatedModel does not inherit from Backbone.RelationalModel (%o).",this,r),!1;if(this instanceof e.HasMany&&this.reverseRelation.type===e.HasMany)return s&&console.warn("Relation=%o: relation is a HasMany, and the reverseRelation is HasMany as well.",this),!1;if(t&&n.keys(t._relations).length){var a=n.find(t._relations,function(t){return t.key===i},this);if(a)return s&&console.warn("Cannot create relation=%o on %o for model=%o: already taken by relation=%o.",this,i,t,a),!1}return!0},setRelated:function(t){this.related=t,this.instance.attributes[this.key]=t},_isReverseRelation:function(t){return t.instance instanceof this.relatedModel&&this.reverseRelation.key===t.key&&this.key===t.reverseRelation.key},getReverseRelations:function(t){var e=[],i=n.isUndefined(t)?this.related&&(this.related.models||[this.related]):[t];return n.each(i||[],function(t){n.each(t.getRelations()||[],function(t){this._isReverseRelation(t)&&e.push(t)},this)},this),e},destroy:function(){this.stopListening(),this instanceof e.HasOne?this.setRelated(null):this instanceof e.HasMany&&this.setRelated(this._prepareCollection()),n.each(this.getReverseRelations(),function(t){t.removeRelated(this.instance)},this)}}),e.HasOne=e.Relation.extend({_class:"Backbone.HasOne",options:{reverseRelation:{type:"HasMany"}},initialize:function(t){this.listenTo(this.instance,"relational:change:"+this.key,this.onChange);var e=this.findRelated(t);this.setRelated(e),n.each(this.getReverseRelations(),function(e){e.addRelated(this.instance,t)},this)},findRelated:function(t){var e=null;if(t=n.defaults({parse:this.options.parse},t),this.keyContents instanceof this.relatedModel)e=this.keyContents;else if(this.keyContents||0===this.keyContents){var i=n.defaults({create:this.options.createModels},t);e=this.relatedModel.findOrCreate(this.keyContents,i)}return e&&(this.keyId=null),e},setKeyContents:function(t){this.keyContents=t,this.keyId=e.Relational.store.resolveIdForItem(this.relatedModel,this.keyContents)},onChange:function(t,i,o){if(!this.isLocked()){this.acquire(),o=o?n.clone(o):{};var r=n.isUndefined(o.__related),s=r?this.related:o.__related;if(r){this.setKeyContents(i);var a=this.findRelated(o);this.setRelated(a)}if(s&&this.related!==s&&n.each(this.getReverseRelations(s),function(t){t.removeRelated(this.instance,null,o)},this),n.each(this.getReverseRelations(),function(t){t.addRelated(this.instance,o)},this),!o.silent&&this.related!==s){var l=this;this.changed=!0,e.Relational.eventQueue.add(function(){l.instance.trigger("change:"+l.key,l.instance,l.related,o,!0),l.changed=!1})}this.release()}}
10,tryAddRelated:function(t,e,n){!this.keyId&&0!==this.keyId||t.id!==this.keyId||(this.addRelated(t,n),this.keyId=null)},addRelated:function(t,e){var i=this;t.queue(function(){if(t!==i.related){var o=i.related||null;i.setRelated(t),i.onChange(i.instance,t,n.defaults({__related:o},e))}})},removeRelated:function(t,e,i){if(this.related&&t===this.related){var o=this.related||null;this.setRelated(null),this.onChange(this.instance,t,n.defaults({__related:o},i))}}}),e.HasMany=e.Relation.extend({_class:"Backbone.HasMany",collectionType:null,options:{reverseRelation:{type:"HasOne"},collectionType:e.Collection,collectionKey:!0,collectionOptions:{}},initialize:function(t){if(this.listenTo(this.instance,"relational:change:"+this.key,this.onChange),this.collectionType=this.options.collectionType,!n.isFunction(this.collectionType)||this.collectionType===e.Collection||this.collectionType.prototype instanceof e.Collection||(this.collectionType=n.result(this,"collectionType")),n.isString(this.collectionType)){var i=this.collectionType;this.collectionType=e.Relational.store.getObjectByName(this.collectionType)}if(this.collectionType||(i&&e.Relational.showWarnings&&"undefined"!=typeof console&&console.warn("`collectionType` of "+i+" not found, using Backbone.Collection in its place."),this.collectionType=e.Collection),this.collectionType!==e.Collection&&!(this.collectionType.prototype instanceof e.Collection))throw new Error("`collectionType` must inherit from Backbone.Collection");var o=this.findRelated(t);this.setRelated(o)},_prepareCollection:function(t){if(this.related&&this.stopListening(this.related),!(t&&t instanceof e.Collection)){var i=n.isFunction(this.options.collectionOptions)?this.options.collectionOptions(this.instance):this.options.collectionOptions;t=new this.collectionType(null,i)}if(t.model=this.relatedModel,this.options.collectionKey){var o=this.options.collectionKey===!0?this.options.reverseRelation.key:this.options.collectionKey;t[o]&&t[o]!==this.instance?e.Relational.showWarnings&&"undefined"!=typeof console&&console.warn("Relation=%o; collectionKey=%s already exists on collection=%o",this,o,this.options.collectionKey):o&&(t[o]=this.instance)}return this.listenTo(t,"relational:add",this.handleAddition).listenTo(t,"relational:remove",this.handleRemoval).listenTo(t,"relational:reset",this.handleReset),t},findRelated:function(t){var i=null;if(t=n.defaults({parse:this.options.parse},t),this.keyContents instanceof e.Collection)this._prepareCollection(this.keyContents),i=this.keyContents;else{var o=[];n.each(this.keyContents,function(e){if(e instanceof this.relatedModel)var i=e;else i=this.relatedModel.findOrCreate(e,n.extend({merge:!0},t,{create:this.options.createModels}));i&&o.push(i)},this),i=this.related instanceof e.Collection?this.related:this._prepareCollection(),i.set(o,n.defaults({merge:!1,parse:!1},t))}return this.keyIds=n.difference(this.keyIds,n.pluck(i.models,"id")),i},setKeyContents:function(t){this.keyContents=t instanceof e.Collection?t:null,this.keyIds=[],this.keyContents||!t&&0!==t||(this.keyContents=n.isArray(t)?t:[t],n.each(this.keyContents,function(t){var n=e.Relational.store.resolveIdForItem(this.relatedModel,t);(n||0===n)&&this.keyIds.push(n)},this))},onChange:function(t,i,o){o=o?n.clone(o):{},this.setKeyContents(i),this.changed=!1;var r=this.findRelated(o);if(this.setRelated(r),!o.silent){var s=this;e.Relational.eventQueue.add(function(){s.changed&&(s.instance.trigger("change:"+s.key,s.instance,s.related,o,!0),s.changed=!1)})}},handleAddition:function(t,i,o){o=o?n.clone(o):{},this.changed=!0,n.each(this.getReverseRelations(t),function(t){t.addRelated(this.instance,o)},this);var r=this;!o.silent&&e.Relational.eventQueue.add(function(){r.instance.trigger("add:"+r.key,t,r.related,o)})},handleRemoval:function(t,i,o){o=o?n.clone(o):{},this.changed=!0,n.each(this.getReverseRelations(t),function(t){t.removeRelated(this.instance,null,o)},this);var r=this;!o.silent&&e.Relational.eventQueue.add(function(){r.instance.trigger("remove:"+r.key,t,r.related,o)})},handleReset:function(t,i){var o=this;i=i?n.clone(i):{},!i.silent&&e.Relational.eventQueue.add(function(){o.instance.trigger("reset:"+o.key,o.related,i)})}
10,tryAddRelated:function(t,e,i){var o=n.contains(this.keyIds,t.id);o&&(this.addRelated(t,i),this.keyIds=n.without(this.keyIds,t.id))},addRelated:function(t,e){var i=this;t.queue(function(){i.related&&!i.related.get(t)&&i.related.add(t,n.defaults({parse:!1},e))})},removeRelated:function(t,e,n){this.related.get(t)&&this.related.remove(t,n)}}),e.RelationalModel=e.Model.extend({_class:"Backbone.RelationalModel",relations:null,_relations:null,_isInitialized:!1,_deferProcessing:!1,_queue:null,_attributeChangeFired:!1,subModelTypeAttribute:"type",subModelTypes:null,keydefs:{},compoundKeyDelim:"-",constructor:function(t,i){if(i&&i.collection){var o=this,r=this.collection=i.collection;delete i.collection,this._deferProcessing=!0;var s=function(t){t===o&&(o._deferProcessing=!1,o.processQueue(),r.off("relational:add",s))};r.on("relational:add",s),n.defer(function(){s(o)})}e.Relational.store.processOrphanRelations(),e.Relational.store.listenTo(this,"relational:unregister",e.Relational.store.unregister),this._queue=new e.BlockingQueue,this._queue.block(),e.Relational.eventQueue.block();try{e.Model.apply(this,arguments)}finally{e.Relational.eventQueue.unblock()}this.createSavepoint(),this.on("sync",this.createSavepoint,this)},createSavepoint:function(){return this.savepoint=JSON.parse(JSON.stringify(this)),this},rollback:function(t){t=t||{},this.set(this.savepoint),this.changed=[],t.silent||this.trigger("rollback",this,t)},commit:function(t){t=t||{};var i=this,o=i.isNew(),r=[],s=[];return(o||i.hasChangedDeepSinceSavepoint())&&(o||n.each(i.relations,function(e){if(e.includeInJSON&&(r.push(e),e.includeInJSON=!1,!e.isAutoRelation)){var n=i.get(e.key);s.push(n.commit(t))}}),s.push(i.save(null,t)),n.each(r,function(t){t.includeInJSON=!0}),t.silent||i.trigger("commit",i,t)),e.$.when.apply(e.$,s)},hasChangedDeepSinceSavepoint:function(){return!n.isEqual(this.toJSON(),this.savepoint)},trigger:function(t){if(t.length>5&&0===t.indexOf("change")){var n=this,i=arguments;e.Relational.eventQueue.add(function(){if(n._isInitialized){var o=!0;if("change"===t)o=n.hasChanged()||n._attributeChangeFired,n._attributeChangeFired=!1;else{var r=t.slice(7),s=n.getRelation(r);s?(o=i[4]===!0,o?n.changed[r]=i[2]:s.changed||delete n.changed[r]):o&&(n._attributeChangeFired=!0)}o&&e.Model.prototype.trigger.apply(n,i)}})}else"destroy"===t?(e.Model.prototype.trigger.apply(this,arguments),e.Relational.store.unregister(this)):e.Model.prototype.trigger.apply(this,arguments);return this},initializeRelations:function(t){this.acquire(),this._relations={},n.each(this.relations||[],function(n){e.Relational.store.initializeRelation(this,n,t)},this),this._isInitialized=!0,this.release(),this.processQueue()},updateRelations:function(t,e){this._isInitialized&&!this.isLocked()&&n.each(this._relations,function(n){if(!t||n.keySource in t||n.key in t){var i=this.attributes[n.keySource]||this.attributes[n.key],o=t&&(t[n.keySource]||t[n.key]);(n.related!==i||null===i&&null===o)&&this.trigger("relational:change:"+n.key,this,i,e||{})}n.keySource!==n.key&&delete this.attributes[n.keySource]},this)},queue:function(t){this._queue.add(t)},processQueue:function(){this._isInitialized&&!this._deferProcessing&&this._queue.isBlocked()&&this._queue.unblock()},getRelation:function(t){return this._relations[t]},getRelations:function(){return n.values(this._relations)},fetchRelated:function(t,i,o){i=n.extend({update:!0,remove:!1},i);var r,s,a=[],l=this.getRelation(t),u=l&&(l.keyIds&&l.keyIds.slice(0)||(l.keyId||0===l.keyId?[l.keyId]:[]));if(o&&(r=l.related instanceof e.Collection?l.related.models:[l.related],n.each(r,function(t){(t.id||0===t.id)&&u.push(t.id)})),u&&u.length){var c=[];if(r=n.map(u,function(t){var e=l.relatedModel.findModel(t);if(!e){var n={};n[l.relatedModel.prototype.idAttribute]=t,e=l.relatedModel.findOrCreate(n,i),c.push(e)}return e},this),l.related instanceof e.Collection&&n.isFunction(l.related.url)&&(s=l.related.url(r)),s&&s!==l.related.url()){var d=n.defaults({error:function(){var t=arguments;n.each(c,function(e){e.trigger("destroy",e,e.collection,i),i.error&&i.error.apply(e,t)})},url:s},i);a=[l.related.fetch(d)]}else a=n.map(r,function(t){var e=n.defaults({error:function(){n.contains(c,t)&&(t.trigger("destroy",t,t.collection,i),i.error&&i.error.apply(t,arguments))}},i);return t.fetch(e)},this)}return a},get:function(t){var i=e.Model.prototype.get.call(this,t);if(!this.dotNotation||-1===t.indexOf("."))return i;var o=t.split("."),r=n.reduce(o,function(t,i){if(!n.isNull(t)&&!n.isUndefined(t)){if(t instanceof e.Model)return e.Model.prototype.get.call(t,i);if(t instanceof e.Collection)return e.Collection.prototype.at.call(t,i);throw new Error("Attribute must be an instanceof Backbone.Model or Backbone.Collection. Is: "+t+", currentSplit: "+i)}},this);if(void 0!==i&&void 0!==r)throw new Error("Ambiguous result for '"+t+"'. direct result: "+i+", dotNotation: "+r);return i||r},_getNewId:function(t){var e,n=this,i=null,o="",r=!1,s=n.keydefs.PRIMARY;return s&&(s.forEach(function(i,s){e=t[i]||n.attributes&&n.attributes[i],e||0===e?o+=(o?n.compoundKeyDelim:"")+(t[i]||n.attributes&&n.attributes[i]):r=!0}),r||(i=o)),i||(i=t&&n.idAttribute in t&&t[n.idAttribute]),i},set:function(t,i,o){e.Relational.eventQueue.block();var r;n.isObject(t)||null==t?(r=t,o=i):(r={},r[t]=i);try{var s=this.id,a=this._getNewId(r);e.Relational.store.checkId(this,a);var l=e.Model.prototype.set.apply(this,arguments);a&&(this.id=a),this._isInitialized||this.isLocked()?a&&a!==s&&e.Relational.store.update(this):(this.constructor.initializeModelHierarchy(),(a||0===a)&&e.Relational.store.register(this),this.initializeRelations(o)),r&&this.updateRelations(r,o)}finally{e.Relational.eventQueue.unblock()}return l},clone:function(){var t=n.clone(this.attributes);return n.isUndefined(t[this.idAttribute])||(t[this.idAttribute]=null),n.each(this.getRelations(),function(e){delete t[e.key]}),new this.constructor(t)},toJSON:function(t){if(this.isLocked())return this.id;this.acquire();var i=e.Model.prototype.toJSON.call(this,t);return!this.constructor._superModel||this.constructor._subModelTypeAttribute in i||(i[this.constructor._subModelTypeAttribute]=this.constructor._subModelTypeValue),n.each(this._relations,function(o){var r=i[o.key],s=o.options.includeInJSON,a=null;s===!0?r&&n.isFunction(r.toJSON)&&(a=r.toJSON(t)):n.isString(s)?(r instanceof e.Collection?a=r.pluck(s):r instanceof e.Model&&(a=r.get(s)),s===o.relatedModel.prototype.idAttribute&&(o instanceof e.HasMany?a=a.concat(o.keyIds):o instanceof e.HasOne&&(a=a||o.keyId,a||n.isObject(o.keyContents)||(a=o.keyContents||null)))):n.isArray(s)?r instanceof e.Collection?(a=[],r.each(function(t){var e={};n.each(s,function(n){e[n]=t.get(n)}),a.push(e)})):r instanceof e.Model&&(a={},n.each(s,function(t){a[t]=r.get(t)})):delete i[o.key],s&&(i[o.keyDestination]=a),o.keyDestination!==o.key&&delete i[o.key]}),this.release(),i}},{setup:function(t){return this.prototype.relations=(this.prototype.relations||[]).slice(0),this._subModels={},this._superModel=null,this.prototype.hasOwnProperty("subModelTypes")?e.Relational.store.addSubModels(this.prototype.subModelTypes,this):this.prototype.subModelTypes=null,n.each(this.prototype.relations||[],function(t){if(t.model||(t.model=this),t.reverseRelation&&t.model===this){var i=!0;if(n.isString(t.relatedModel)){var o=e.Relational.store.getObjectByName(t.relatedModel);i=o&&o.prototype instanceof e.RelationalModel}i?e.Relational.store.initializeRelation(null,t):n.isString(t.relatedModel)&&e.Relational.store.addOrphanRelation(t)}},this),this},build:function(t,e){this.initializeModelHierarchy();var n=this._findSubModelType(this,t)||this;return new n(t,e)},_findSubModelType:function(t,e){if(t._subModels&&t.prototype.subModelTypeAttribute in e){var n=e[t.prototype.subModelTypeAttribute],i=t._subModels[n];if(i)return i;for(n in t._subModels)if(i=this._findSubModelType(t._subModels[n],e))return i}return null},initializeModelHierarchy:function(){if(this.inheritRelations(),this.prototype.subModelTypes){var t=n.keys(this._subModels),i=n.omit(this.prototype.subModelTypes,t);n.each(i,function(t){var n=e.Relational.store.getObjectByName(t);n&&n.initializeModelHierarchy()})}},inheritRelations:function(){if(n.isUndefined(this._superModel)||n.isNull(this._superModel))if(e.Relational.store.setupSuperModel(this),this._superModel){if(this._superModel.inheritRelations(),this._superModel.prototype.relations){var t=n.filter(this._superModel.prototype.relations||[],function(t){return!n.any(this.prototype.relations||[],function(e){return t.relatedModel===e.relatedModel&&t.key===e.key},this)},this);this.prototype.relations=t.concat(this.prototype.relations)}}else this._superModel=!1},findOrCreate:function(t,e){e||(e={});var i=n.isObject(t)&&e.parse&&this.prototype.parse?this.prototype.parse(n.clone(t)):t,o=this.findModel(i);return n.isObject(t)&&(o&&e.merge!==!1?(delete e.collection,delete e.url,o.set(i,e)):o||e.create===!1||(o=this.build(t,e))),o},find:function(t,e){return e||(e={}),e.create=!1,this.findOrCreate(t,e)},findModel:function(t){return e.Relational.store.find(this,t)}}),n.extend(e.RelationalModel.prototype,e.Semaphore);var i=e.Collection.prototype.__initialize=e.Collection.prototype.initialize;e.Collection.prototype.initialize=function(t,e){i.apply(this,arguments),this.createSavepoint(),this.on("sync",this.createSavepoint,this)},e.Collection.prototype.createSavepoint=function(){return this._added=[],this._removed=[],this},e.Collection.prototype.rollback=function(t){return t=t||{},this.add(this._removed,{silent:!0}),n.each(this.models,function(t){t.rollback()}),this.remove(this._added,{silent:!0}),this.createSavepoint(),t.silent||this.trigger("rollback",this,t),this},e.Collection.prototype.hasChangedDeepSinceSavepoint=function(){return this._removed.length||this._added.length?!0:!!n.find(this.models,function(t){return t.hasChangedDeepSinceSavepoint()})},e.Collection.prototype.commit=function(t){var i=[];return this.hasChangedDeepSinceSavepoint()&&(t=t||{},n.each(this._removed,function(t){i.push(t.destroy())}),n.each(this.models,function(t){i.push(t.commit())}),this.createSavepoint(),t.silent||this.trigger("commit",this,t)),e.$.when.apply(e.$,i)},e.Collection.prototype._class="Backbone.Collection",e.Collection.prototype.__prepareModel=e.Collection.prototype._prepareModel,e.Collection.prototype._prepareModel=function(t,i){var o;return t instanceof e.Model?(t.collection||(t.collection=this),o=t):(i=i?n.clone(i):{},i.collection=this,o="undefined"!=typeof this.model.findOrCreate?this.model.findOrCreate(t,i):new this.model(t,i),o&&o.validationError&&(this.trigger("invalid",this,t,i),o=!1)),o};var o=e.Collection.prototype.__set=e.Collection.prototype.set;e.Collection.prototype.set=function(t,i){if(!(this.model.prototype instanceof e.RelationalModel))return o.apply(this,arguments);i&&i.parse&&(t=this.parse(t,i));var r=!n.isArray(t),s=[],a=[];t=r?t?[t]:[]:n.clone(t),n.each(t,function(t){t instanceof e.Model||(t=e.Collection.prototype._prepareModel.call(this,t,i)),t&&(a.push(t),this.get(t)||this.get(t.cid)?null!=t.id&&(this._byId[t.id]=t):s.push(t))},this),a=r?a.length?a[0]:null:a;var l=o.call(this,a,n.defaults({parse:!1},i));return n.each(s,function(t){(this.get(t)||this.get(t.cid))&&this.trigger("relational:add",t,this,i)},this),l};var r=e.Collection.prototype.__get=e.Collection.prototype.get;e.Collection.prototype.get=function(t){if(!(this.model.prototype instanceof e.RelationalModel))return r.apply(this,arguments);if(null!=t){var n=e.Relational.store.resolveIdForItem(this.model,t);return this._byId[null!=n?n:t.cid||t]}};var s=e.Collection.prototype.__add=e.Collection.prototype.add;e.Collection.prototype.add=function(t,i){if(!(this.model.prototype instanceof e.RelationalModel))return s.apply(this,arguments);var o=s.call(this,t,n.defaults(i||{},{add:!0,merge:!1,remove:!1}));return this._added=this._added.concat(o),o};var a=e.Collection.prototype.__remove=e.Collection.prototype.remove;e.Collection.prototype.remove=function(t,i){if(!(this.model.prototype instanceof e.RelationalModel))return this._removed=this._removed.concat(t),a.apply(this,arguments);var o=!n.isArray(t),r=[];t=o?t?[t]:[]:n.clone(t),i||(i={}),n.each(t,function(t){t=this.get(t)||t&&this.get(t.cid),t&&r.push(t)},this);var s=a.call(this,o?r.length?r[0]:null:r,i);return n.each(r,function(t){this.trigger("relational:remove",t,this,i)},this),this._removed=this._removed.concat(r),s};var l=e.Collection.prototype.__reset=e.Collection.prototype.reset;e.Collection.prototype.reset=function(t,i){i=n.extend({merge:!0},i);var o=l.call(this,t,i);return this._added=[],this._removed=[],this.model.prototype instanceof e.RelationalModel&&this.trigger("relational:reset",this,i),this.createSavepoint(),o};var u=e.Collection.prototype.__sort=e.Collection.prototype.sort;e.Collection.prototype.sort=function(t){var n=u.call(this,t);return this.model.prototype instanceof e.RelationalModel&&this.trigger("relational:reset",this,t),n};var c=e.Collection.prototype.__trigger=e.Collection.prototype.trigger;e.Collection.prototype.trigger=function(t){if(!(this.model.prototype instanceof e.RelationalModel))return c.apply(this,arguments);if("add"===t||"remove"===t||"reset"===t||"sort"===t){var i=this,o=arguments;n.isObject(o[3])&&(o=n.toArray(o),o[3]=n.clone(o[3])),e.Relational.eventQueue.add(function(){c.apply(i,o)})}else c.apply(this,arguments);return this},e.RelationalModel.extend=function(t,n){var i=e.Model.extend.apply(this,arguments);return i.setup(this),i}}
10),function(t,e){if("object"==typeof exports){var n=require("underscore"),i=require("backbone");module.exports=e(n,i)}else"function"==typeof _wAMD.define&&_wAMD.define.amd&&_wAMD.define("backbone.wreqr",["underscore","backbone"],e)}(this,function(t,e){return e.Wreqr=function(t,e,n){var i={};return i.Handlers=function(t,e){var n=function(t){this.options=t,this._wreqrHandlers={},e.isFunction(this.initialize)&&this.initialize(t)};return n.extend=t.Model.extend,e.extend(n.prototype,t.Events,{setHandlers:function(t){e.each(t,function(t,n){var i=null;e.isObject(t)&&!e.isFunction(t)&&(i=t.context,t=t.callback),this.setHandler(n,t,i)},this)},setHandler:function(t,e,n){var i={callback:e,context:n};this._wreqrHandlers[t]=i,this.trigger("handler:add",t,e,n)},hasHandler:function(t){return!!this._wreqrHandlers[t]},getHandler:function(t){var e=this._wreqrHandlers[t];if(!e)throw new Error("Handler not found for '"+t+"'");return function(){var t=Array.prototype.slice.apply(arguments);return e.callback.apply(e.context,t)}},removeHandler:function(t){delete this._wreqrHandlers[t]},removeAllHandlers:function(){this._wreqrHandlers={}}}),n}(t,n),i.CommandStorage=function(){var e=function(t){this.options=t,this._commands={},n.isFunction(this.initialize)&&this.initialize(t)};return n.extend(e.prototype,t.Events,{getCommands:function(t){var e=this._commands[t];return e||(e={command:t,instances:[]},this._commands[t]=e),e},addCommand:function(t,e){var n=this.getCommands(t);n.instances.push(e)},clearCommands:function(t){var e=this.getCommands(t);e.instances=[]}}),e}(),i.Commands=function(t){return t.Handlers.extend({storageType:t.CommandStorage,constructor:function(e){this.options=e||{},this._initializeStorage(this.options),this.on("handler:add",this._executeCommands,this);var n=Array.prototype.slice.call(arguments);t.Handlers.prototype.constructor.apply(this,n)},execute:function(t,e){t=arguments[0],e=Array.prototype.slice.call(arguments,1),this.hasHandler(t)?this.getHandler(t).apply(this,e):this.storage.addCommand(t,e)},_executeCommands:function(t,e,i){var o=this.storage.getCommands(t);n.each(o.instances,function(t){e.apply(i,t)}),this.storage.clearCommands(t)},_initializeStorage:function(t){var e,i=t.storageType||this.storageType;e=n.isFunction(i)?new i:i,this.storage=e}})}(i),i.RequestResponse=function(t){return t.Handlers.extend({request:function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);return this.getHandler(t).apply(this,e)}})}(i),i.EventAggregator=function(t,e){var n=function(){};return n.extend=t.Model.extend,e.extend(n.prototype,t.Events),n}(t,n),i}(e,e.Marionette,t),e.Wreqr}),function(t,e){if("object"==typeof exports){var n=require("underscore"),i=require("backbone");module.exports=e(n,i)}else"function"==typeof _wAMD.define&&_wAMD.define.amd&&_wAMD.define("backbone.babysitter",["underscore","backbone"],e)}(this,function(t,e){"option strict";return e.ChildViewContainer=function(t,e){var n=function(t){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),e.each(t,this.add,this)};e.extend(n.prototype,{add:function(t,e){var n=t.cid;return this._views[n]=t,t.model&&(this._indexByModel[t.model.cid]=n),e&&(this._indexByCustom[e]=n),this._updateLength(),this},findByModel:function(t){return this.findByModelCid(t.cid)},findByModelCid:function(t){var e=this._indexByModel[t];return this.findByCid(e)},findByCustom:function(t){var e=this._indexByCustom[t];return this.findByCid(e)},findByIndex:function(t){return e.values(this._views)[t]},findByCid:function(t){return this._views[t]},remove:function(t){var n=t.cid;return t.model&&delete this._indexByModel[t.model.cid],e.any(this._indexByCustom,function(t,e){return t===n?(delete this._indexByCustom[e],!0):void 0},this),delete this._views[n],this._updateLength(),this},call:function(t){this.apply(t,e.tail(arguments))},apply:function(t,n){e.each(this._views,function(i){e.isFunction(i[t])&&i[t].apply(i,n||[])})},_updateLength:function(){this.length=e.size(this._views)}});var i=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return e.each(i,function(t){n.prototype[t]=function(){var n=e.values(this._views),i=[n].concat(e.toArray(arguments));return e[t].apply(e,i)}}),n}(e,t),e.ChildViewContainer}
10),function(t,e){if("object"==typeof exports){var n=require("underscore"),i=require("backbone"),o=require("backbone.wreqr"),r=require("backbone.babysitter");module.exports=e(n,i,o,r)}else"function"==typeof _wAMD.define&&_wAMD.define.amd&&_wAMD.define("backbone-marionette-vendor",["underscore","backbone","backbone.wreqr","backbone.babysitter"],e)}(this,function(t,e){(function(t,e,n){function i(t,e){var n=new Error(t);throw n.name=e||"Error",n}var o={};e.Marionette=o,o.$=e.$;var r=Array.prototype.slice;return o.extend=e.Model.extend,o.getOption=function(t,e){if(t&&e){var n;return n=t.options&&e in t.options&&void 0!==t.options[e]?t.options[e]:t[e]}},o.normalizeMethods=function(t){var e,i={};return n.each(t,function(t,o){e=t,n.isFunction(e)||(e=this[e]),e&&(i[o]=e)},this),i},o.normalizeUIKeys=function(t,e){return"undefined"!=typeof t?(n.each(n.keys(t),function(n){var i=/@ui.[a-zA-Z_$0-9]*/g;n.match(i)&&(t[n.replace(i,function(t){return e[t.slice(4)]})]=t[n],delete t[n])}),t):void 0},o.triggerMethod=function(){function t(t,e,n){return n.toUpperCase()}var e=/(^|:)(\w)/gi,i=function(i){var o="on"+i.replace(e,t),r=this[o];return n.isFunction(this.trigger)&&this.trigger.apply(this,arguments),n.isFunction(r)?r.apply(this,n.tail(arguments)):void 0};return i}(),o.MonitorDOMRefresh=function(t){function e(t){t._isShown=!0,o(t)}function i(t){t._isRendered=!0,o(t)}function o(t){t._isShown&&t._isRendered&&r(t)&&n.isFunction(t.triggerMethod)&&t.triggerMethod("dom:refresh")}function r(e){return t.contains(e.el)}return function(t){t.listenTo(t,"show",function(){e(t)}),t.listenTo(t,"render",function(){i(t)})}}(document.documentElement),function(t){function e(t,e,o,r){var s=r.split(/\s+/);n.each(s,function(n){var r=t[n];r||i("Method '"+n+"' was configured as an event handler, but does not exist."),t.listenTo(e,o,r)})}function o(t,e,n,i){t.listenTo(e,n,i)}function r(t,e,i,o){var r=o.split(/\s+/);n.each(r,function(n){var o=t[n];t.stopListening(e,i,o)})}function s(t,e,n,i){t.stopListening(e,n,i)}function a(t,e,i,o,r){e&&i&&(n.isFunction(i)&&(i=i.call(t)),n.each(i,function(i,s){n.isFunction(i)?o(t,e,s,i):r(t,e,s,i)}))}t.bindEntityEvents=function(t,n,i){a(t,n,i,o,e)},t.unbindEntityEvents=function(t,e,n){a(t,e,n,s,r)}}(o),o.Callbacks=function(){this._deferred=o.$.Deferred(),this._callbacks=[]},n.extend(o.Callbacks.prototype,{add:function(t,e){this._callbacks.push({cb:t,ctx:e}),this._deferred.done(function(n,i){e&&(n=e),t.call(n,i)})},run:function(t,e){this._deferred.resolve(e,t)},reset:function(){var t=this._callbacks;this._deferred=o.$.Deferred(),this._callbacks=[],n.each(t,function(t){this.add(t.cb,t.ctx)},this)}}),o.Controller=function(t){this.triggerMethod=o.triggerMethod,this.options=t||{},n.isFunction(this.initialize)&&this.initialize(this.options)},o.Controller.extend=o.extend,n.extend(o.Controller.prototype,e.Events,{close:function(){this.stopListening();var t=Array.prototype.slice.call(arguments);this.triggerMethod.apply(this,["close"].concat(t)),this.unbind()}}),o.Region=function(t){if(this.options=t||{},this.el=o.getOption(this,"el"),this.el||i("An 'el' must be specified for a region.","NoElError"),this.initialize){var e=Array.prototype.slice.apply(arguments);this.initialize.apply(this,e)}},n.extend(o.Region,{buildRegion:function(t,e){var o=n.isString(t),r=n.isString(t.selector),s=n.isUndefined(t.regionType),a=n.isFunction(t);a||o||r||i("Region must be specified as a Region type, a selector string or an object with selector property");var l,u;o&&(l=t),t.selector&&(l=t.selector,delete t.selector),a&&(u=t),!a&&s&&(u=e),t.regionType&&(u=t.regionType,delete t.regionType),(o||a)&&(t={}),t.el=l;var c=new u(t);return t.parentEl&&(c.getEl=function(e){var i=t.parentEl;return n.isFunction(i)&&(i=i()),i.find(e)}),c}}),n.extend(o.Region.prototype,e.Events,{show:function(t){this.ensureEl();var e=t.isClosed||n.isUndefined(t.$el),i=t!==this.currentView;i&&this.close(),t.render(),o.triggerMethod.call(this,"before:show",t),o.triggerMethod.call(t,"before:show"),(i||e)&&this.open(t),this.currentView=t,o.triggerMethod.call(this,"show",t),o.triggerMethod.call(t,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(t){return o.$(t)},open:function(t){this.$el.empty().append(t.el)},close:function(){var t=this.currentView;t&&!t.isClosed&&(t.close?t.close():t.remove&&t.remove(),o.triggerMethod.call(this,"close",t),delete this.currentView)},attachView:function(t){this.currentView=t},reset:function(){this.close(),delete this.$el}}),o.Region.extend=o.extend,o.RegionManager=function(t){var e=t.Controller.extend({constructor:function(e){this._regions={},t.Controller.prototype.constructor.call(this,e)},addRegions:function(t,e){var i={};return n.each(t,function(t,o){n.isString(t)&&(t={selector:t}),t.selector&&(t=n.defaults({},t,e));var r=this.addRegion(o,t);i[o]=r},this),i},addRegion:function(e,i){var o,r=n.isObject(i),s=n.isString(i),a=!!i.selector;return o=s||r&&a?t.Region.buildRegion(i,t.Region):n.isFunction(i)?t.Region.buildRegion(i,t.Region):i,this._store(e,o),this.triggerMethod("region:add",e,o),o},get:function(t){return this._regions[t]},removeRegion:function(t){var e=this._regions[t];this._remove(t,e)},removeRegions:function(){n.each(this._regions,function(t,e){this._remove(e,t)},this)},closeRegions:function(){n.each(this._regions,function(t,e){t.close()},this)},close:function(){this.removeRegions(),t.Controller.prototype.close.apply(this,arguments)},_store:function(t,e){this._regions[t]=e,this._setLength()},_remove:function(t,e){e.close(),delete this._regions[t],this._setLength(),this.triggerMethod("region:remove",t,e)},_setLength:function(){this.length=n.size(this._regions)}}),i=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"]; 11return n.each(i,function(t){e.prototype[t]=function(){var e=n.values(this._regions),i=[e].concat(n.toArray(arguments));return n[t].apply(n,i)}}),e}(o),o.TemplateCache=function(t){this.templateId=t},n.extend(o.TemplateCache,{templateCaches:{},get:function(t){var e=this.templateCaches[t];return e||(e=new o.TemplateCache(t),this.templateCaches[t]=e),e.load()},clear:function(){var t,e=r.call(arguments),n=e.length;if(n>0)for(t=0;n>t;t++)delete this.templateCaches[e[t]];else this.templateCaches={}}}),n.extend(o.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var t=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(t),this.compiledTemplate},loadTemplate:function(t){var e=o.$(t).html();return e&&0!==e.length||i("Could not find template: '"+t+"'","NoTemplateError"),e},compileTemplate:function(t){return n.template(t)}
11}),o.Renderer={render:function(t,e){t||i("Cannot render the template since it's false, null or undefined.","TemplateNotFoundError");var n;return(n="function"==typeof t?t:o.TemplateCache.get(t))(e)}},o.View=e.View.extend({constructor:function(t){n.bindAll(this,"render"),n.isObject(this.behaviors)&&new o.Behaviors(this),this.options=n.extend({},n.result(this,"options"),n.isFunction(t)?t.call(this):t),this.events=this.normalizeUIKeys(n.result(this,"events")),e.View.prototype.constructor.apply(this,arguments),o.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled)},triggerMethod:o.triggerMethod,normalizeMethods:o.normalizeMethods,getTemplate:function(){return o.getOption(this,"template")},mixinTemplateHelpers:function(t){t=t||{};var e=o.getOption(this,"templateHelpers");return n.isFunction(e)&&(e=e.call(this)),n.extend(t,e)},normalizeUIKeys:function(t){var e=n.result(this,"ui");return o.normalizeUIKeys(t,e)},configureTriggers:function(){if(this.triggers){var t={},e=this.normalizeUIKeys(n.result(this,"triggers"));return n.each(e,function(e,i){var o=n.isObject(e),r=o?e.event:e;t[i]=function(t){if(t){var n=t.preventDefault,i=t.stopPropagation,s=o?e.preventDefault:n,a=o?e.stopPropagation:i;s&&n&&n.apply(t),a&&i&&i.apply(t)}var l={view:this,model:this.model,collection:this.collection};this.triggerMethod(r,l)}},this),t}},delegateEvents:function(t){this._delegateDOMEvents(t),o.bindEntityEvents(this,this.model,o.getOption(this,"modelEvents")),o.bindEntityEvents(this,this.collection,o.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(t){t=t||this.events,n.isFunction(t)&&(t=t.call(this));var i={},o=n.result(this,"behaviorEvents")||{},r=this.configureTriggers();n.extend(i,o,t,r),e.View.prototype.delegateEvents.call(this,i)},undelegateEvents:function(){var t=Array.prototype.slice.call(arguments);e.View.prototype.undelegateEvents.apply(this,t),o.unbindEntityEvents(this,this.model,o.getOption(this,"modelEvents")),o.unbindEntityEvents(this,this.collection,o.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var t=Array.prototype.slice.call(arguments),e=this.triggerMethod.apply(this,["before:close"].concat(t));e!==!1&&(this.isClosed=!0,this.triggerMethod.apply(this,["close"].concat(t)),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var t=n.result(this,"_uiBindings");this.ui={},n.each(n.keys(t),function(e){var n=t[e];this.ui[e]=this.$(n)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(n.each(this.ui,function(t,e){delete this.ui[e]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),o.ItemView=o.View.extend({constructor:function(){o.View.prototype.constructor.apply(this,arguments)},serializeData:function(){var t={};return this.model?t=this.model.toJSON():this.collection&&(t={items:this.collection.toJSON()}),t},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var t=this.serializeData();t=this.mixinTemplateHelpers(t);var e=this.getTemplate(),n=o.Renderer.render(e,t);return this.$el.html(n),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),o.View.prototype.close.apply(this,arguments),this.triggerMethod("item:closed"))}}),o.CollectionView=o.View.extend({itemViewEventPrefix:"itemview",constructor:function(t){this._initChildViewStorage(),o.View.prototype.constructor.apply(this,arguments),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment(),this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.isBuffering=!1,this.appendBuffer(this,this.elBuffer),this._triggerShowBufferedChildren(),this.initRenderBuffer()},_triggerShowBufferedChildren:function(){this._isShown&&(n.each(this._bufferedChildren,function(t){o.triggerMethod.call(t,"show")}),this._bufferedChildren=[])},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView),this.listenTo(this.collection,"remove",this.removeItemView),this.listenTo(this.collection,"reset",this.render))},addChildView:function(t,e,n){this.closeEmptyView();var i=this.getItemView(t),o=this.collection.indexOf(t);this.addItemView(t,i,o)},onShowCalled:function(){this.children.each(function(t){o.triggerMethod.call(t,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)}
11,triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.isEmpty(this.collection)?this.showEmptyView():this.showCollection(),this.endBuffering()},showCollection:function(){var t;this.collection.each(function(e,n){t=this.getItemView(e),this.addItemView(e,t,n)},this)},showEmptyView:function(){var t=this.getEmptyView();if(t&&!this._showingEmptyView){this._showingEmptyView=!0;var n=new e.Model;this.addItemView(n,t,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return o.getOption(this,"emptyView")},getItemView:function(t){var e=o.getOption(this,"itemView");return e||i("An `itemView` must be specified","NoItemViewError"),e},addItemView:function(t,e,i){var r=o.getOption(this,"itemViewOptions");n.isFunction(r)&&(r=r.call(this,t,i));var s=this.buildItemView(t,e,r);return this.addChildViewEventForwarding(s),this.triggerMethod("before:item:added",s),this.children.add(s),this.renderItemView(s,i),this._isShown&&!this.isBuffering&&o.triggerMethod.call(s,"show"),this.triggerMethod("after:item:added",s),s},addChildViewEventForwarding:function(t){var e=o.getOption(this,"itemViewEventPrefix");this.listenTo(t,"all",function(){var i=r.call(arguments),s=i[0],a=this.normalizeMethods(this.getItemEvents());i[0]=e+":"+s,i.splice(1,0,t),"undefined"!=typeof a&&n.isFunction(a[s])&&a[s].apply(this,i),o.triggerMethod.apply(this,i)},this)},getItemEvents:function(){return n.isFunction(this.itemEvents)?this.itemEvents.call(this):this.itemEvents},renderItemView:function(t,e){t.render(),this.appendHtml(this,t,e)},buildItemView:function(t,e,i){var o=n.extend({model:t},i);return new e(o)},removeItemView:function(t){var e=this.children.findByModel(t);this.removeChildView(e),this.checkEmpty()},removeChildView:function(t){t&&(this.stopListening(t),t.close?t.close():t.remove&&t.remove(),this.children.remove(t)),this.triggerMethod("item:removed",t)},isEmpty:function(t){return!this.collection||0===this.collection.length},checkEmpty:function(){this.isEmpty(this.collection)&&this.showEmptyView()},appendBuffer:function(t,e){t.$el.append(e)},appendHtml:function(t,e,n){t.isBuffering?(t.elBuffer.appendChild(e.el),t._bufferedChildren.push(e)):t.$el.append(e.el)},_initChildViewStorage:function(){this.children=new e.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),o.View.prototype.close.apply(this,arguments))},closeChildren:function(){this.children.each(function(t){this.removeChildView(t)},this),this.checkEmpty()}}),o.CompositeView=o.CollectionView.extend({constructor:function(){o.CollectionView.prototype.constructor.apply(this,arguments)},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView),this.listenTo(this.collection,"remove",this.removeItemView),this.listenTo(this.collection,"reset",this._renderChildren))})},getItemView:function(t){var e=o.getOption(this,"itemView")||this.constructor;return e||i("An `itemView` must be specified","NoItemViewError"),e},serializeData:function(){var t={};return this.model&&(t=this.model.toJSON()),t},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var t=this.renderModel();return this.$el.html(t),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(this.triggerMethod("composite:collection:before:render"),o.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var t={};t=this.serializeData(),t=this.mixinTemplateHelpers(t);var e=this.getTemplate();return o.Renderer.render(e,t)},appendBuffer:function(t,e){var n=this.getItemViewContainer(t);n.append(e)},appendHtml:function(t,e,n){if(t.isBuffering)t.elBuffer.appendChild(e.el),t._bufferedChildren.push(e);else{var i=this.getItemViewContainer(t);i.append(e.el)}},getItemViewContainer:function(t){if("$itemViewContainer"in t)return t.$itemViewContainer;var e,r=o.getOption(t,"itemViewContainer");if(r){var s=n.isFunction(r)?r.call(this):r;e=t.$(s),e.length<=0&&i("The specified `itemViewContainer` was not found: "+t.itemViewContainer,"ItemViewContainerMissingError")}else e=t.$el;return t.$itemViewContainer=e,e},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}
11),o.Layout=o.ItemView.extend({regionType:o.Region,constructor:function(t){t=t||{},this._firstRender=!0,this._initializeRegions(t),o.ItemView.prototype.constructor.call(this,t)},render:function(){return this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions(),o.ItemView.prototype.render.apply(this,arguments)},close:function(){this.isClosed||(this.regionManager.close(),o.ItemView.prototype.close.apply(this,arguments))},addRegion:function(t,e){var n={};return n[t]=e,this._buildRegions(n)[t]},addRegions:function(t){return this.regions=n.extend({},this.regions,t),this._buildRegions(t)},removeRegion:function(t){return delete this.regions[t],this.regionManager.removeRegion(t)},_buildRegions:function(t){var e=this,n={regionType:o.getOption(this,"regionType"),parentEl:function(){return e.$el}};return this.regionManager.addRegions(t,n)},_initializeRegions:function(t){var e;this._initRegionManager(),e=n.isFunction(this.regions)?this.regions(t):this.regions||{},this.addRegions(e)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(t){t.reset()})},_initRegionManager:function(){this.regionManager=new o.RegionManager,this.listenTo(this.regionManager,"region:add",function(t,e){this[t]=e,this.trigger("region:add",t,e)}),this.listenTo(this.regionManager,"region:remove",function(t,e){delete this[t],this.trigger("region:remove",t,e)})}}),o.Behavior=function(t,e){function n(e,n){this.view=n,this.defaults=t.result(this,"defaults")||{},this.options=t.extend({},this.defaults,e),this.$=function(){return this.view.$.apply(this.view,arguments)},this.initialize.apply(this,arguments)}return t.extend(n.prototype,{initialize:function(){},triggerMethod:o.triggerMethod}),t.extend(n,{extend:e.View.extend}),n}(n,e),o.Behaviors=function(t,e){function n(t){this.behaviors=n.parseBehaviors(t,t.behaviors),n.wrap(t,this.behaviors,["bindUIElements","unbindUIElements","delegateEvents","undelegateEvents","onShow","onClose","behaviorEvents","triggerMethod","setElement"])}var i={setElement:function(t,n){t.apply(this,e.tail(arguments,2)),e.each(n,function(t){t.$el=this.$el},this)},onShow:function(n,i){var o=e.tail(arguments,2);e.each(i,function(e){t.triggerMethod.apply(e,["show"].concat(o))}),e.isFunction(n)&&n.apply(this,o)},onClose:function(n,i){var o=e.tail(arguments,2);e.each(i,function(e){t.triggerMethod.apply(e,["close"].concat(o))}),e.isFunction(n)&&n.apply(this,o)},bindUIElements:function(t,n){t.apply(this),e.invoke(n,t)},unbindUIElements:function(t,n){t.apply(this),e.invoke(n,t)},triggerMethod:function(t,n){var i=e.tail(arguments,2);t.apply(this,i),e.each(n,function(e){t.apply(e,i)})},delegateEvents:function(n,i){var o=e.tail(arguments,2);n.apply(this,o),e.each(i,function(e){t.bindEntityEvents(this,this.model,t.getOption(e,"modelEvents")),t.bindEntityEvents(this,this.collection,t.getOption(e,"collectionEvents"))},this)},undelegateEvents:function(n,i){var o=e.tail(arguments,2);n.apply(this,o),e.each(i,function(e){t.unbindEntityEvents(this,this.model,t.getOption(e,"modelEvents")),t.unbindEntityEvents(this,this.collection,t.getOption(e,"collectionEvents"))},this)},behaviorEvents:function(n,i){var o={},r=e.result(this,"ui");return e.each(i,function(n,i){var s={},a=e.result(n,"events")||{},l=e.result(n,"ui"),u=e.extend({},r,l);a=t.normalizeUIKeys(a,u),e.each(e.keys(a),function(t){var o=new Array(i+2).join(" "),r=t+o,l=e.isFunction(a[t])?a[t]:n[a[t]];s[r]=e.bind(l,n)}),o=e.extend(o,s)}),o}};return e.extend(n,{behaviorsLookup:function(){throw new Error("You must define where your behaviors are stored. See https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.behaviors.md#behaviorslookup")},getBehaviorClass:function(t,i){return t.behaviorClass?t.behaviorClass:e.isFunction(n.behaviorsLookup)?n.behaviorsLookup.apply(this,arguments)[i]:n.behaviorsLookup[i]},parseBehaviors:function(t,i){return e.map(i,function(e,i){var o=n.getBehaviorClass(e,i);return new o(e,t)})},wrap:function(t,n,o){e.each(o,function(o){t[o]=e.partial(i[o],t[o],n)})}}),n}(o,n),o.AppRouter=e.Router.extend({constructor:function(t){e.Router.prototype.constructor.apply(this,arguments),this.options=t||{};var n=o.getOption(this,"appRoutes"),i=this._getController();this.processAppRoutes(i,n)},appRoute:function(t,e){var n=this._getController();this._addAppRoute(n,t,e)},processAppRoutes:function(t,e){if(e){var i=n.keys(e).reverse();n.each(i,function(n){this._addAppRoute(t,n,e[n])},this)}},_getController:function(){return o.getOption(this,"controller")},_addAppRoute:function(t,e,o){var r=t[o];r||i("Method '"+o+"' was not found on the controller"),this.route(e,o,n.bind(r,t))}}),o.Application=function(t){this._initRegionManager(),this._initCallbacks=new o.Callbacks,this.vent=new e.Wreqr.EventAggregator,this.commands=new e.Wreqr.Commands,this.reqres=new e.Wreqr.RequestResponse,this.submodules={},n.extend(this,t),this.triggerMethod=o.triggerMethod},n.extend(o.Application.prototype,e.Events,{execute:function(){this.commands.execute.apply(this.commands,arguments)},request:function(){return this.reqres.request.apply(this.reqres,arguments)},addInitializer:function(t){this._initCallbacks.add(t)},start:function(t){this.triggerMethod("initialize:before",t),this._initCallbacks.run(t,this),this.triggerMethod("initialize:after",t),this.triggerMethod("start",t)},addRegions:function(t){return this._regionManager.addRegions(t)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(t){this._regionManager.removeRegion(t)},getRegion:function(t){return this._regionManager.get(t)},module:function(t,e){var n=o.Module.getClass(e),i=r.call(arguments);return i.unshift(this),n.create.apply(n,i)},_initRegionManager:function(){this._regionManager=new o.RegionManager,this.listenTo(this._regionManager,"region:add",function(t,e){this[t]=e}),this.listenTo(this._regionManager,"region:remove",function(t,e){delete this[t]})}}
11),o.Application.extend=o.extend,o.Module=function(t,e,i){this.moduleName=t,this.options=n.extend({},this.options,i),this.initialize=i.initialize||this.initialize,this.submodules={},this._setupInitializersAndFinalizers(),this.app=e,this.startWithParent=!0,this.triggerMethod=o.triggerMethod,n.isFunction(this.initialize)&&this.initialize(this.options,t,e)},o.Module.extend=o.extend,n.extend(o.Module.prototype,e.Events,{initialize:function(){},addInitializer:function(t){this._initializerCallbacks.add(t)},addFinalizer:function(t){this._finalizerCallbacks.add(t)},start:function(t){this._isInitialized||(n.each(this.submodules,function(e){e.startWithParent&&e.start(t)}),this.triggerMethod("before:start",t),this._initializerCallbacks.run(t,this),this._isInitialized=!0,this.triggerMethod("start",t))},stop:function(){this._isInitialized&&(this._isInitialized=!1,o.triggerMethod.call(this,"before:stop"),n.each(this.submodules,function(t){t.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),o.triggerMethod.call(this,"stop"))},addDefinition:function(t,e){this._runModuleDefinition(t,e)},_runModuleDefinition:function(t,i){if(t){var r=n.flatten([this,this.app,e,o,o.$,n,i]);t.apply(this,r)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new o.Callbacks,this._finalizerCallbacks=new o.Callbacks}}),n.extend(o.Module,{create:function(t,e,i){var o=t,s=r.call(arguments);s.splice(0,3),e=e.split(".");var a=e.length,l=[];return l[a-1]=i,n.each(e,function(e,n){var r=o;o=this._getModule(r,e,t,i),this._addModuleDefinition(r,o,l[n],s)},this),o},_getModule:function(t,e,i,o,r){var s=n.extend({},o),a=this.getClass(o),l=t[e];return l||(l=new a(e,i,s),t[e]=l,t.submodules[e]=l),l},getClass:function(t){var e=o.Module;return t?t.prototype instanceof e?t:t.moduleClass||e:e},_addModuleDefinition:function(t,e,n,i){var o=this._getDefine(n),r=this._getStartWithParent(n,e);o&&e.addDefinition(o,i),this._addStartWithParent(t,e,r)},_getStartWithParent:function(t,e){var i;return n.isFunction(t)&&t.prototype instanceof o.Module?(i=e.constructor.prototype.startWithParent,n.isUndefined(i)?!0:i):n.isObject(t)?(i=t.startWithParent,n.isUndefined(i)?!0:i):!0},_getDefine:function(t){return!n.isFunction(t)||t.prototype instanceof o.Module?n.isObject(t)?t.define:null:t},_addStartWithParent:function(t,e,n){e.startWithParent=e.startWithParent&&n,e.startWithParent&&!e.startWithParentIsConfigured&&(e.startWithParentIsConfigured=!0,t.addInitializer(function(t){e.startWithParent&&e.start(t)}))}}),o})(this,e,t);return e.Marionette}),_wAMD.define("backbone-marionette",["mustache","backbone-marionette-vendor"],function(t,e){return e.Renderer.render=function(e,n){if(!e){var i=new Error("Cannot render the template since it's false, null or undefined.");throw i.name="TemplateNotFoundError",i}return"function"==typeof e?e(n):t.render(e,n)},e}),_wAMD.define("util/backbone-prevent",["jquery","underscore","backbone"],function(t,e,n){n.preventClose=function(i){var o=this;if(!this.defer){if(this.defer=t.Deferred(),n.preventClose.preventer){var r=n.preventClose.preventer();r&&r.promise?this.defer=r:r?this.defer.resolve():this.defer.reject(),this.defer.fail(function(){delete n.preventClose.preventer})}else this.defer.reject();this.defer.always(function(){e.defer(function(){delete o.defer})})}this.defer.fail(function(){i()})},n.preventClose.ifModelChanged=function(n,i){if(!n.hasChangedDeepSinceSavepoint())return!1;var o=t.Deferred();return i?i(function(){o.reject()},function(){o.resolve()}):e.defer(function(){confirm("Are you sure? You'll lose your current changes.")?o.reject():o.resolve()}),o.promise()};var i=n.View.prototype.constructor;n.View.prototype.constructor=function(){i.apply(this,arguments),this.preventClose&&(n.preventClose.preventer=e.bind(this.preventClose,this))}}),jsonrpc={},jsonrpc.CallStack=function(t,e,n,i){this._counter=0,this._enterFn=t,this._exitFn=n,this._enterScope=e,this._exitScope=i},jsonrpc.CallStack.prototype={enter:function(){this._counter=this._counter<0?1:this._counter+1,1===this._counter&&this._enterFn.apply(this._enterScope,arguments)},exit:function(t){this._counter-=1,0===this._counter&&this._exitFn.apply(this._exitScope,arguments)}},jsonrpc.DelayedTask=function(t,e,n){this._fn=t||function(){},this._scope=e||void 0,this._args=n||[],this._id=null},jsonrpc.Observable=function(){this._listeners=[]},jsonrpc.Observable.prototype={bind:function(t,e){var n={fn:t,scope:e||this};return this._listeners.push(n),n},unbind:function(t){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)},trigger:function(){var t;for(t=0;t<this._listeners.length;t+=1)this._listeners[t].fn.apply(this._listeners[t].scope,arguments)}},jsonrpc.DelayedTask.prototype={delay:function(t,e,n,i){var o=this;this._fn=e||this._fn,this._scope=n||this._scope,this._args=i||this._args,this.cancel(),this._id=window.setInterval(function(){window.clearInterval(o._id),o._id=null,o._fn.apply(o._scope,o._args)},t)},cancel:function(){this._id&&(window.clearInterval(this._id),this._id=null)}},jsonrpc.JsonRpc=function(t){var e=t.split("/");this._url=t,this._end=e[e.length-2],this.loading=new jsonrpc.Observable,this.loaded=new jsonrpc.Observable,this.unhandledFailure=new jsonrpc.Observable,this._loadingState=new jsonrpc.CallStack(this.loading.trigger,this.loading,this.loaded.trigger,this.loaded),this._requests=[],this._batchingMilliseconds=10,this._delayedTask=new jsonrpc.DelayedTask},jsonrpc.JsonRpc.prototype={setBatchingMilliseconds:function(t){this._batchingMilliseconds=t},call:function(){var t=this._getParams.apply(this,arguments);this._loadingState.enter(),t.standalone?this._sendRequests([t]):(this._requests.push(t),this._batchingMilliseconds?this._delayedTask.delay(this._batchingMilliseconds,this._sendRequests,this):this._sendRequests())},_sendRequests:function(t){function e(e,i,r){var s;if(e)s=o._isArray(i)?i:[i];else for(s=[],n=0;n<t.length;n+=1)s[n]={id:n,error:{message:i}};o._handleResponses(t,s,r)}var n,i,o=this,r=[],s=[],a=[],l=[],u=!0;for("undefined"==typeof t&&(t=o._requests,o._requests=[]),n=0;n<t.length;n+=1)t[n].request.id=n,t[n].secure?(l.push(t[n].request.method),s.push(t[n].request)):(a.push(t[n].request.method),r.push(t[n].request));r.length>0&&(1===r.length&&(r=r[0]),i=o._url+(u?"?"+this._end+"["+a.join()+"]":""),o._doJsonPost(i,r,e)),s.length>0&&(1===s.length&&(s=s[0]),i=o._url+(u?"?"+this._end+"["+l.join()+"]":""),o._doJsonpGet(i,s,e))},_handleResponses:function(t,e,n){var i,o,r;for(i=0;i<e.length;i+=1)o=e[i],r=t[o.id],this._handleResponse(r,o,n)},_handleResponse:function(t,e,n){var i=!e.error,o=i?e.result:e.error.message;this._loadingState.exit(),i?t.success.call(t.scope,o,n):t.failure.call(t.scope,o,n),t.callback.call(t.scope,i,o,n)},_getParams:function(){var t=this,e=Array.prototype.slice.call(arguments),n={request:{jsonrpc:"2.0",method:e.shift()}};for(n.request.params=[];e.length>1&&!this._isFunction(e[0]);)n.request.params.push(e.shift());return this._isFunction(e[0])?(n.success=e[0],n.scope=e[1]):(n.success=e[0].success,n.failure=e[0].failure,n.callback=e[0].callback,n.scope=e[0].scope,n.secure=!!e[0].secure,n.standalone=!!e[0].standalone),n.success=n.success||function(){},n.failure=n.failure||function(){t.unhandledFailure.trigger.apply(t.unhandledFailure,arguments)},n.callback=n.callback||function(){},n},_isArray:function(t){return"[object Array]"===Object.prototype.toString.apply(t)},_isFunction:function(t){return"[object Function]"===Object.prototype.toString.apply(t)},_beforeSend:function(t){},_doJsonPost:function(t,e,n){var i=Weebly.jQuery||require("jquery"),o=i.ajax({type:"POST",url:t,cache:!1,contentType:"application/json; charset=UTF-8",dataType:"json",beforeSend:this._beforeSend,data:JSON.stringify(e),headers:{"x-wtok":Weebly.RequestToken}}).done(function(t){var e=o.getResponseHeader("Content-Type");200!==o.status?n(!1,'Expected HTTP response "200 OK", found "'+o.status+" "+o.statusText+'"',o):0!==e.indexOf("application/json")?n(!1,'Expected JSON encoded response, found "'+e+'"',o):n(!0,t,o)}).fail(function(){n(!1,"HTTP request failed",o)})},_doJsonpGet:function(t,e,n){t="https://"+_W.securePrefix+t;var i=Weebly.jQuery||require("jquery"),o=i.ajax({type:"GET",url:t,cache:!1,jsonpCallback:"WJsonp",dataType:"jsonp",beforeSend:this._beforeSend,data:e,headers:{"x-wtok":Weebly.RequestToken}}).done(function(t){n(!0,t,o)}).fail(function(){n(!1,"HTTP request failed",o)})}},_wAMD.define("vendor/jsonrpc",function(t){return function(){var e;return e||t.jsonrpc}}(this)),function(t,e){"function"==typeof _wAMD.define&&_wAMD.define.amd?_wAMD.define("util/backbone-rpc",["underscore","backbone","vendor/jsonrpc"],e):e(t._,t.Backbone)}(this,function(t,e,n){var i=e.sync;t.extend(e,{sync:function(n,o,r){if(!o.rpc)return i.apply(e,arguments);var s;switch(n){case"delete":n="destroy";case"create":case"update":case"patch":s=r.attrs||o.toJSON(r);break;case"read":if(o.rpc&&"read"==n){r=t.extend({},t.omit(r,"data"),r.data),s=t.extend({filter:[]},r);var a=o.keydefs||o.model.prototype.keydefs;if(a.PRIMARY)for(var l=0;l<a.PRIMARY.length;l++){var u=a.PRIMARY[l];void 0==o.get(u)||t.findWhere(s.filter,{property:u})||s.filter.push({property:u,value:o.get(u)})}}break;default:console.warn(n+" params not defined for this model ",o),s=r.attrs||o.toJSON()}if(o.rpc[n]){var c=o.rpc[n](s);return c.done(function(t){return t.success===!1?r.error(t):r.success(t)}),c.fail(function(t){return r.error(t)}),c}console.warn(n+" not defined for this model ",o)}})}),function(t){t.ns=function(t,e){for(var e=e||window,n=t.split("."),i=0,o=n.length;o>i;i++){var r=n[i];"string"!=typeof r?e=r:(e[r]||(e[r]={}),e=e[r])}return e},t.setup_rpc=function(e){var n=t.ns(e.namespace),i=new jsonrpc.JsonRpc(e.url),o=t.jQuery||require("jquery"),r=function(t,e,n,r,s){return function(){var r=Array.prototype.slice.call(arguments);if(r.length<e)return void console.error("Wrong number of args for "+t);n=!!n,r.unshift(t);var a=o.Deferred();return r.push({success:a.resolve,failure:a.reject,scope:a,secure:n,standalone:s}),i.call.apply(i,r),a}};for(var s in e.actions)if(e.actions.hasOwnProperty(s))for(var a=t.ns(s,n),l=e.actions[s]||[],u=0;u<l.length;u++){var c=l[u];a[c.name]=r(s+"::"+c.name,c.len,c.secure,c.multiple,c.standalone)}},t.setup_model_rpc=function(e){var n=t.ns(e.rpc_namespace),i=t.ns(e.model_namespace),o=t.ns(e.collection_namespace),r=t.ns(e.bootstrap_namespace);_.extend(i,e.models),_.extend(o,e.collections),_.extend(r,e.bootstrap);for(var s in o)n[s]&&(o[s].rpc=n[s]);for(var s in i)if(n[s]){i[s].rpc=n[s];var a=i[s].relations;if(a)for(var l=0;l<a.length;l++){var u=a[l];
11o[u.relatedModel]&&(u.collectionType=u.relatedModel+"Collection")}}}}(window.Weebly||{}),_wAMD.define("backbone-all",["backbone","backbone-radio","backbone-pageable","backbone-validation","backbone-relational","backbone-marionette","util/backbone-prevent","util/backbone-rpc"],function(t){var e={},n=t.RelationalModel.extend;return t.Relational.store.addModelScope(e),t.RelationalModel.extend=function(t,i){var o=n.apply(this,arguments),r=t._class;return r&&(r=r.split("."),r=r[r.length-1],e[r]=o),o},t.Wreqr.Handlers.prototype.removeHandlers=function(t){for(var e=0;e<t.length;e++)this.removeHandler(t[e])},t}),_wAMD.define("site/published/app",["backbone-all"],function(t){var e=new t.Marionette.Application;return e.addRegions({contentRegion:"#wsite-content"}),e}),_wAMD.define("editor/page-manager/entities/Defaults",["underscore"],function(t){var e={"for":function(e){var n=["blog","link","nonclickable","store","category","product"],i=t.contains(n,e)?this[e]:this.page;return i.layout=i.layout||getDefaultPageType(currentThemeData,Weebly.view.isMobileView),i},page:{title:_W.stl("javascript.editor.page-manager.entities.Defaults_2"),kind:"page"},nonclickable:{title:_W.stl("javascript.editor.page-manager.entities.Defaults_8"),kind:"nonclickable",nonclickable:1},link:{title:_W.stl("javascript.editor.page-manager.entities.Defaults_3"),kind:"page",extlink:"http://"},blog:{title:_W.stl("javascript.editor.page-manager.entities.Defaults_4"),kind:"blog"},store:{title:_W.stl("javascript.editor.page-manager.entities.Defaults_5"),kind:"store",layout:"no-header",store_page_kind:"category",store_page_kind_id:"1"},category:{title:_W.stl("javascript.editor.page-manager.entities.Defaults_6"),kind:"store",layout:"no-header",store_page_kind:"category"},product:{title:_W.stl("javascript.editor.page-manager.entities.Defaults_7"),kind:"store",layout:"no-header",store_page_kind:"product"}};return e}),_wAMD.define("editor/page-manager/entities/PageHash",["underscore"],function(t){var e={initialize:function(t){return this.length=0,this.items={},t.length>0&&this.flatten(t),this},flatten:function(t){var e=this;t.each(function(t){e.add(t),e.flatten(t.get("children"))})},toJSON:function(){return hash={},t.each(this.items,function(t){hash[t.id]=t.toJSON()}),hash},get:function(t){return this.items[t]},add:function(t){this.items[t.id]||(this.length+=1,this.items[t.id]=t)},remove:function(t){this.length-=1,delete this.items[t.id]},each:function(e){return t.each(this.items,function(t,n){e.call(null,t,n)}),this},some:function(e){return t.some(this.items,function(t,n){return e.call(null,t,n)})},map:function(e){return t.map(this.items,function(t,n){return e.call(null,t,n)})},find:function(e){return t.find(this.items,function(t,n){return e.call(null,t,n)})}};return e}),_wAMD.define("editor/page-manager/entities/Pages",["jquery","underscore","backbone","editor/page-manager/entities/Defaults","editor/page-manager/entities/PageHash"],function(t,e,n,i,o){var r=n.Model.extend({defaults:function(t){return this.isNew()&&t?i["for"](t):{}},initialize:function(t){t=t||{},this.set(this.defaults(t.page_kind)),this.initChildren(),this.on("change",this.onModelChange.bind(this)),this.listenTo(this.get("children"),{changed:function(t){this.trigger("changed",t)},"page:go":function(t){this.trigger("page:go",t)},removed:function(t){this.trigger("removed",t)}})},onModelChange:function(){var t=e.keys(this.changedAttributes()),n=["title","hidden","pwprotected","membership_required","nav_menu"],i=e.intersection(n,t).length>0;i&&this.trigger("changed",this);var o=["title","hidden","layout","store_page_kind_id"],r=e.intersection(o,t).length>0;r&&this.trigger("page:go",this)},initChildren:function(){var t=this.get("children");t instanceof s==!1&&this.set("children",new s(t,{subcollection:!0}
11))},isCommercePage:function(){return e.contains(["store","category","product"],this.get("page_kind"))},hasCommerceModel:function(t){return this.hasCategory(t)||this.hasProduct(t)},hasProduct:function(t){return this.get("store_page_kind_id")==t.get("site_product_id")},hasCategory:function(t){return this.get("store_page_kind_id")==t.get("site_category_id")},commerceCleanup:function(){var t=this;Weebly.Editor.RPC.Page.cleanupCommercePage(t.id).done(function(){t.set({hidden:1,kind:"page",page_kind:"page",store_page_kind:null,store_page_kind_id:null})})},unescapedAttr:function(e){var n=this.get(e);return t("<div/>").html(n).text()},sync:function(t,n,i){var o=n.hasChanged("store_page_kind_id");return n.collection&&n.set("order",n.collection.indexOf(n)+1),n.isNew()&&n.collection.allPagesProtected()&&n.set("pwprotected",1),Weebly.Editor.RPC.Page.savePage(currentSite,n.id,n.attributes).then(function(t){t=e.mapObject(t,function(t,e){return("0"===t||"1"===t)&&(t=parseInt(t,10)),t});var i=n.isNew(),r=i?"save":"sync",s=!e.isEqual(n.toJSON(),t);return n.set(t,{silent:!0}),n.trigger(r,n),s&&n.trigger("change",n),o&&n.trigger("page:go",n),n})},destroy:function(t){return this.trigger("destroy",this,this.collection,this.collection.indexOf(this)), 12Weebly.Editor.RPC.Page.removePage(currentSite,this.id)},copy:function(){var t=this,n=Weebly.Editor.RPC.Page.copyPage(currentSite,t.id);return n.then(function(n){var i=e.extend(t.toJSON(),{id:n.page_id,children:[]});return new r(i)})},toJSON:function(t){var n=e.clone(this.attributes);return n.children=this.get("children").toJSON(),n},canBeHomepage:function(){var t=this.get("page_kind");return"nonclickable"!==t&&"link"!==t},trackEvent:function(t){Tracking.trackEvent("page",t,this.get("page_kind"))}}),s=n.Collection.extend({model:r,initialize:function(t,e){e=e||{},e.subcollection||this.on({"save add":function(t){t.isNew()||this.getHash().add(t)},removed:function(t){this.getHash().remove(t)}},this),this.on("destroy",this.relocateChildren,this),n.Collection.prototype.initialize.apply(this,arguments)},saveHierarchy:function(t){return this.mirrorHierarchy(t),Weebly.Editor.RPC.Page.saveHierarchy(currentSite,t)},mirrorHierarchy:function(t){function n(t,o){var r=1;e.each(o,function(e){var o=i.get(e.id);o.collection.remove(o,{silent:!0}),t.add(o,{silent:!0}),o.set("order",r++),n(o.get("children"),e.children)})}var i=this.getHash();n(this,t)},relocateChildren:function(t,e,n){for(var i=t.get("children"),o=i.at(0);o;)i.remove(o),e.add(o,{at:n++}),o=i.at(0);this.trigger("removed",t)},onSitePasswordChange:function(t,e){var n=this.getHash();if(!e)return void n.each(function(t){t.set("pwprotected",0)});var i=n.find(function(t){return t.get("pwprotected")});t||i||n.each(function(t){t.set("pwprotected",1)})},allPagesProtected:function(){return e.all(this.getHash().items,function(t){return 1==parseInt(t.get("pwprotected"))})},reset:function(t,e){delete this.pageHash,n.Collection.prototype.reset.call(this,t,e)},getHash:function(){return this.pageHash=this.pageHash||o.initialize(this),this.pageHash},getPage:function(t){return this.getHash().get(t)},getHomepage:function(){return this.at(0)},isHomepage:function(t){return t.id===this.getHomepage().id},canDeleteHomepage:function(){var t=this.at(1);return t&&"external"!==t.get("page_kind")&&"nonclickable"!==t.get("page_kind")},cleanupCommercePages:function(t){this.getHash().each(function(e){e.isCommercePage()&&e.hasCommerceModel(t)&&e.commerceCleanup()})}});return{PageModel:r,PageCollection:s}}),_wAMD.define("editor/page-manager/pages",["./entities/Pages"],function(t){var e=function(){return new t.PageCollection};return e()}),!function(t){var e=function(t,e){this.init("tooltip",t,e)};e.prototype={constructor:e,init:function(e,n,i){var o,r,s,a,l;for(this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.enabled=!0,s=this.options.trigger.split(" "),l=s.length;l--;)a=s[l],"click"==a?this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this)):"manual"!=a&&(o="hover"==a?"mouseenter":"focus",r="hover"==a?"mouseleave":"blur",this.$element.on(o+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.leave,this)));this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(e){return e=t.extend({},t.fn[this.type].defaults,this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},enter:function(e){var n,i=t.fn[this.type].defaults,o={};return this._options&&t.each(this._options,function(t,e){i[t]!=e&&(o[t]=e)},this),n=t(e.currentTarget)[this.type](o).data(this.type),n.options.delay&&n.options.delay.show?(clearTimeout(this.timeout),n.hoverState="in",void(this.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show))):n.show()},leave:function(e){var n=t(e.currentTarget)[this.type](this._options).data(this.type);return this.timeout&&clearTimeout(this.timeout),n.options.delay&&n.options.delay.hide?(n.hoverState="out",void(this.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide))):n.hide()},show:function(){var e,n,i,o,r,s,a=t.Event("tooltipshow");if(this.hasContent()&&this.enabled){if(this.$element.trigger(a),a.isDefaultPrevented())return;switch(e=this.tip(),this.setContent(),this.options.animation&&e.addClass("fade"),r="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,e.detach().css({top:0,left:0,display:"block"}),this.options.container?e.appendTo(this.options.container):e.insertAfter(this.$element),n=this.getPosition(),i=e[0].offsetWidth,o=e[0].offsetHeight,r){case"bottom":s={top:n.top+n.height,left:n.left+n.width/2-i/2};break;case"top":s={top:n.top-o,left:n.left+n.width/2-i/2};break;case"left":s={top:n.top+n.height/2-o/2,left:n.left-i};break;case"right":s={top:n.top+n.height/2-o/2,left:n.left+n.width}}this.applyPlacement(s,r),this.$element.trigger("shown")}},applyPlacement:function(t,e){var n,i,o,r,s=this.tip(),a=s[0].offsetWidth,l=s[0].offsetHeight;s.offset(t).addClass(e).addClass("in"),n=s[0].offsetWidth,i=s[0].offsetHeight,"top"==e&&i!=l&&(t.top=t.top+l-i,r=!0),"bottom"==e||"top"==e?(o=0,t.left<0&&(o=-2*t.left,t.left=0,s.offset(t),n=s[0].offsetWidth,i=s[0].offsetHeight),this.replaceArrow(o-a+n,n,"left")):this.replaceArrow(i-l,i,"top"),r&&s.offset(t)},replaceArrow:function(t,e,n){this.arrow().css(n,t?50*(1-t/e)+"%":"")},setContent:function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},hide:function(){function e(){var e=setTimeout(function(){n.off(t.support.transition.end).detach()},500);n.one(t.support.transition.end,function(){clearTimeout(e),n.detach()})}var n=this.tip(),i=t.Event("tooltiphide");return this.$element.trigger(i),i.isDefaultPrevented()?void 0:(n.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?e():n.detach(),this.$element.trigger("hidden"),this)},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var e=this.$element[0];return t.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{width:e.offsetWidth,height:e.offsetHeight},this.$element.offset())},getTitle:function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},tip:function(){return this.$tip=this.$tip||t(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(e){var n=e?t(e.currentTarget)[this.type](this._options).data(this.type):this;
12n.tip().hasClass("in")?n.hide():n.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var i=t(this),o=i.data("tooltip"),r="object"==typeof n&&n;o||i.data("tooltip",o=new e(this,r)),"string"==typeof n&&o[n]()})},t.fn.tooltip.Constructor=e,t.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(window.jQuery),!function(t){var e=function(t,e){this.init("popover",t,e)};e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype,{constructor:e,setContent:function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"html":"text"](n),t.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var t,e=this.$element,n=this.options;return t=("function"==typeof n.content?n.content.call(e[0]):n.content)||e.attr("data-content")},tip:function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),o=i.data("popover"),r="object"==typeof n&&n;o||i.data("popover",o=new e(this,r)),"string"==typeof n&&o[n]()})},t.fn.popover.Constructor=e,t.fn.popover.defaults=t.extend({},t.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(window.jQuery),_wAMD.define("vendor/bootstrap/popover",function(){}),function(t){function e(){return k()?(D||(D=O("editor-site-shared/relay"),I=O("site/editor/relay-constants")),!0):!1}function n(t){var e=t.closest("."+W);return e.length?e:t.parent()}function i(t){var e=t.find("."+z);return e.length?e:t.find("a").first()}function o(t){var e=t.find("."+V);return e.length?e:(e=t.find("."+L),e.length?e:t.find("li"))}function r(t){var e=t.closest("."+q);return e.length?e:t.parent()}function s(t){return t.find("."+q).first()}function a(t){var e=t.find("."+Y);return e.length?e:t.find("li")}function l(t){var e=t.find("."+$);return e.length?e:t.find("a")}function u(e){if(window.navFlyoutMenu){var n=window.currentPage||R,r=window.navFlyoutMenu.getMainList(),a=r.children(),u=t("body").find("#"+nt),c=t("body").find("#"+Z),d=B&&B.hasCustomMembership,f=B&&B.hasCustomMinicart,p=a.filter(function(){return!!t(this).find("#"+Z).length});p.length||(p=void 0);var m,g,b=window.getCartCount(),w=window.location.host,T=window.location.pathname,_=window._W.stl("javascript.cartText")+" (<span id='"+et+"'></span>)";w.indexOf(".checkout.weebly.com")>-1||w.indexOf(".checkout.editmysite.com")>-1||T.indexOf("store/checkout")>-1||"object"==typeof Weebly&&Weebly.EDITOR&&!Weebly.COMMERCE_ENABLED||"object"!=typeof Weebly||!Weebly.Commerce||"boolean"!=typeof Weebly.Commerce.hasCart||"object"==typeof Weebly&&Weebly.Commerce&&Weebly.Commerce.hasCart===!1?p&&(p.remove(),a=r.children(),window.navFlyoutMenu.writeOrderingClassNames()):(p||(f?(c.html(_),p=void 0):p=S(_),m=f?c:i(p),m.attr("id",Z).css("position","relative"),k()&&(g=O("config"),g.chromeless||(m=f?c.parent():h(p),m.attr("data-content",window._W.utl("javascript.editor.cartNotification")).popover({trigger:"hover",placement:"bottom",container:"#_editor-ui",delay:{show:500,hide:100}}))),m=f?c.parent():h(p),m.addClass(tt).css("position","relative"),E=f?c:p,window.reportCartNavElement(),f||(r.append(p),a=r.children(),window.navFlyoutMenu.writeOrderingClassNames())),t("#"+et).text(b));var P;p&&f?P=null:p&&(P=h(p));var A;A=d?t("#"+nt):a.filter(function(){return!!t(this).find("#"+nt).length}),A.length||(A=void 0);var x=Weebly.allowMemberRegistration?window._W.stl("html.weebly.libraries.flyout_menus_jq_7"):window._W.stl("html.weebly.libraries.flyout_menus_jq_8"),D=O("editor/p
12age-manager/pages"),I=D.some(function(t){return t.get("membership_required")}),H=k()&&(I||Weebly.allowMemberRegistration||Weebly.memberCount>0||Weebly.groupCount>0)&&Weebly.showMemberLoginLink,j=window._W&&_W.showLogin;if(!H&&!j||A?H||j||!A||(A.remove(),a=r.children(),window.navFlyoutMenu.writeOrderingClassNames()):(A=S(x),k()?A.attr("id","pgmember-login"):A.attr("id","member-login"),i(A).attr("id",nt),d?t(".wsite-custom-membership-wrapper").html(A):p&&!f?A.insertBefore(p):r.append(A),a=r.children(),window.navFlyoutMenu.writeOrderingClassNames()),k()&&A){g=O("config");var F=i(A);F=u.length?u:F,u.length&&F.text(x),g.chromeless||F.attr("data-content",window._W.utl("html.weebly.libraries.flyout_menus_jq_5")).popover({trigger:"hover",placement:"bottom",container:"body",delay:{show:500,hide:100}})}if(!window.DISABLE_NAV_MORE){var W=G.clone(!0,!0),V=a.filter(function(){return!!t(this).find("#"+Q).length});V.length||(V=void 0);var z=!1;V&&(V.hide(),z=!0);var U;if(z)if(U=h(V),U[0]._flyoutmenu_destroy)U=U[0]._flyoutmenu_destroy(!0);else{var Y=o(U)[0];Y._flyoutmenu_destroy&&(U=Y._flyoutmenu_destroy(!0))}var $,K,it,ot,rt=[],st=[],at=!1,lt=null;for(it=0;it<e.length;it++)ot=y(e[it].id,r),ot&&(ot.show(),rt.push(ot));for(p&&rt.push(p),A&&rt.push(A),it=0;it<rt.length;it++){ot=rt[it];var ut=h(ot),ct=v(ut);if(it){if(1==it)$=Math.abs(ct[0].top-st[0][0].top)>Math.abs(ct[0].left-st[0][0].left),$&&(K=ut.closest(".wsite-nav-vertical"),K.length&&(lt=K.offset().top+(parseInt(K.css("padding-top"),10)||0)+K.height()));else if($){if(null!==lt&&ct[1].top>lt){at=!0;break}}else if(Math.abs(ct[0].top-st[it-1][0].top)>5){at=!0;break}}else;st.push(ct)}var dt,ht,ft,pt=[];if(t("body").toggleClass("wsite-nav-condensed",!!at),at){V?V.show():(V=W,i(V).attr("id",Q).css("position","relative").on("click",!1),A&&!d?V.insertBefore(A):p&&!f?V.insertBefore(p):r.append(V));var mt=h(V).addClass(J).css("position","relative"),gt=h(rt[0]),vt=null;A&&!d&&(vt=h(A));var yt=P||vt||mt,bt=rt.length-1;for(p&&bt--,A&&bt--,it=bt;it>=0;it--){var wt=v(gt),Tt=v(yt);if(!($&&Tt[1].top>lt||!$&&Math.abs(wt[0].top-Tt[0].top)>5))break;rt[it].hide(),pt.unshift(it)}if(0===pt.length)V.remove(),t("body").removeClass("wsite-nav-condensed");else if(pt.length==e.length){for(it=0;it<pt.length;it++){var _t=y(e[pt[it]].id,r);_t&&_t.show()}V.remove(),t("body").removeClass("wsite-nav-condensed")}else{for(var St,D=O("editor/page-manager/pages"),Mt=[],Pt=0;Pt<pt.length;Pt++){dt=e[pt[Pt]],D.length&&(dt=D.getPage(dt.id).toJSON()),dt=t.extend({},dt),dt.title_html=dt.title,dt.membership_required=dt["membership-required"],k()&&(dt.url="page://"+dt.id);var Ct=y(dt.id,r);Ct&&(St=h(Ct)[0]._get_sublist()),!St&&U&&(St=!!U.find("#"+N+dt.id+" ."+q).length),St&&(dt.has_children=!0,dt.children=!1),Mt.push(dt)}var At=t(M(C("navigation/flyout/list")||C("menu/submenu-main"),{children:Mt}));k()&&window.processNavLinks(At),l(At).each(function(){var o=t(this).closest("[id]"),a=o.attr("id");if(a){a=a.replace(/[^\d]/g,"");var l;if(t.each(e,function(){return this.id===a?(l=this,!1):void 0}),l){if(o.is("span."+L)&&(o=o.children(),o.unwrap()),ht=N+l.id,o.attr("id",ht),ht.replace(/[^\d]/g,"")==n&&o.addClass(X),ft=i(o),!l.onclick){var u=l.url;if(window.IS_ARCHIVE||u.match(/^http:\/\//))ft.attr("href",u);else{var c=t(t.map(rt,function(t){return t.get()})),d=i(c.filter("[id*="+a+"]")),f=d.attr("href"),p=d.data("membership-required");f?ft.attr("href",f):l.nonclickable||ft.attr("href","/"+u),"number"==typeof p&&ft.attr("data-membership-required",""+p)}l.target&&ft.attr("target",l.target)}var m,g=y(l.id,r);g&&(m=h(g)[0]._flyoutmenu_destroy()),!m&&U&&(m=s(U.find("#"+N+l.id)),m.length||(m=void 0)),m&&s(o).replaceWith(m)}}}),mt.append(At),window.navFlyoutMenu.addItem(mt)}}if(U)for(it=0;it<pt[0];it++){dt=e[it];var xt=y(dt.id,r),kt=U.find("#"+N+dt.id+" ."+q+":first");kt.length&&(xt[0]._flyoutmenu_destroy&&xt[0]._flyoutmenu_destroy(),xt.append(kt),window.navFlyoutMenu.addItem(xt))}window.navFlyoutMenu.writeOrderingClassNames()}}}function c(t,e,n){var i=t.closest("."+W);i.length||(i=t.parent(),i.hasClass(L)&&(i=i.parent()));var o=d(i,e,n);if(o.length>=2){var r=o.eq(0).offset(),s=o.eq(1).offset(),a=Math.abs(r.left-s.left)-Math.abs(r.top-s.top);if(0!==a)return 0>a}return!g(t)}function d(e,n,i){var o=e.find("."+V);if(o.length)return o;var o=e.find("."+L);if(o.length)return o;var r=[];return e.children().each(function(e,o){var s=t(o);if(!n||s.hasClass(L)||s.hasClass(J)||o.id.match(/^pg/)||i&&o.id==i){var a=h(s);a.length&&r.push(a[0])}}),t(r)}function h(t){if(t.hasClass(L)){var e=t.find("."+V).first();t=e.length?e:t.children().first()}return t.hasClass(W)?void 0:t}function f(t){return o(t).add(a(t))}function p(t){var e=t.closest("."+L).siblings().find("."+V+":first-child");return e.length?e:t.parent().hasClass(L)?t.parent().siblings().children(":first-child"):t.siblings()}function m(t){var e=t.find("."+U).first();if(e.length)return e;if(e=t.closest("."+Y+", ."+V).find("."+U).first(),e.length)return e;if(e=t.find("ul").first(),!e.length){var n=t.next();n.hasClass(W)&&(e=n.children().first())}return e.length?e:void 0}function g(t){return!t.closest("."+U).length}function v(t){var e=t.is("a")?t:t.find("a"),n=t.offset(),i={top:n.top+t[0].offsetHeight,left:n.left+t[0].offsetWidth};if(!e)return[n,i];var o,r,s=e.offset(),a={top:s.top+e[0].offsetHeight,left:s.left+e[0].offsetWidth};return Math.abs(n.left-i.left)<10?(o=s,r=a):(o={top:Math.min(n.top,s.top),left
12:Math.min(n.left,s.left)},r={top:Math.max(i.top,a.top),left:Math.max(i.left,a.left)}),[o,r]}function y(e,n){var i=t("#pg"+e,n);return!i.length&&H&&(i=t("#"+H,n)),i.length?i:void 0}function b(){if(k()){for(var t=0;t<document.styleSheets.length;t++)try{if(document.styleSheets[t].title==j+"-theme-css"){var e=document.styleSheets[t],n=e.cssRules||e.rules;return n&&n.length>0}}catch(i){}return!1}return!0}function w(t){if(b())t();else var e=setInterval(function(){b()&&(clearInterval(e),t())},200)}function T(){return S(window._W.stl("html.weebly.libraries.flyout_menus_jq_6"))}function S(e){return t(M(P(),{title_html:e,url:"#",has_children:!1}))}function M(t,e){var n=O("mustache");return n.render(t,e,A())}function P(){return ot||(ot=C("navigation/item")||C("menu/item")),ot}function C(t){return A()[t]}function A(){return it||{}}function x(t){it=_.extend({},objectify(t))}function k(){return window.inEditor&&window.inEditor()}window.getCartCount=function(){var t=k()?0:"-";return t};var E=null;window.getCartNavElement=function(){return E},window.reportCartNavElement=function(){};var D,I,G,H,R,B,O=window._wAMD&&window._wAMD.require||window.require,j=window.STYLE_PREFIX||"weebly",F=300,L=j+"-nav-handle",N=j+"-nav-",W=j+"-menu-default",V=j+"-menu-item-wrap",z=j+"-menu-item",q=j+"-menu-wrap",U=j+"-menu",Y=j+"-menu-subitem-wrap",$=j+"-menu-subitem",X=j+"-nav-current",K=j+"-menus",Q=j+"-nav-more-a",J=j+"-nav-more",Z=j+"-nav-cart-a",tt=j+"-nav-cart",et=j+"-nav-cart-num",nt=j+"-nav-login-a";window.initPublishedFlyoutMenus=function(e,i,o,r,s,a,l){if(R=i,B=l,x(a),G=T(),e.length>0){var c=function(){H=r;var i=t("<div>",{id:K}).appendTo("body"),o=y(e[0].id);o&&(window.navFlyoutMenu=new window.FlyoutMenu(n(o),{relocate:i,aLiId:r}),u(e))};s?c():w(c)}window.refreshPublishedFlyoutMenus=function(){u(e)},t(".wsite-logo img").on("load",window.refreshPublishedFlyoutMenus),t(window).on("load",window.refreshPublishedFlyoutMenus)},window.flyoutMenusRefreshable=!0,window.initEditorFlyoutMenus=function(e,i){H=e,B=i,x(i.templates),w(function(){function i(){var t=getTopLevelSummary();if(t.length>0){var i=y(t[0].id);if(i){var o=n(i);o.is("table,tbody,thead,tr")?window.navFlyoutMenu=null:(window.navFlyoutMenu=new window.FlyoutMenu(o,{relocate:"#"+K,aLiId:e}),G=T(),u(t))}else window.navFlyoutMenu=null}}if(t.browser.webkit){var o=t("span."+L);o.hide(),setTimeout(function(){o.show(),i()},0)}else i()})},window.refreshNavCondense=function(t){"object"==typeof t&&_.extend(window.Weebly,t),!window.navFlyoutMenu||Weebly.view&&Weebly.view.isMobileView||u(getTopLevelSummary())},window.disableFlyouts=!1,window.FlyoutMenu=function(n,o){function s(n){function s(t){b&&M&&t.preventDefault()}function u(){return window.disableFlyouts?!1:(g.mouseoverItems.push(n),A++,C=!0,void(P||M||S&&(n.data("hasChildren",!0),p(n).each(function(t,e){e._flyoutmenu_contract&&e._flyoutmenu_contract()}),f(),n.data("isExpanded",!0))))}function d(){if(window.disableFlyouts)return!1;if(C=!1,P){var t=A;setTimeout(function(){A==t&&P&&!M&&(y(),n.data("isExpanded",!1))},w)}}function h(){return window.disableFlyouts?!1:void A++}function f(){M=!0;var i={wrapper:_,duration:F,complete:function(){if(M=!1,P=!0,C?(n[0]._flyoutmenu_contract=y,n[0]._flyoutmenu_hide=function(){M=!1,P=!1,C=!1,n[0]._flyoutmenu_contract=null,n[0]._flyoutmenu_hide=null,_.hide()}):y(),e()){var i=t(this),o=i.offset();D.trigger(I.EVENTS.SUBNAV_SHOWN,{top:o.top,left:o.left,width:i.outerWidth(),height:i.outerHeight()})}}},r=v(n);_.css("left",-1e4),_.show();var s=_.offsetParent(),a=s.is("body")?{top:0,left:0}:s.offset();_.hide(),S.show();var l;if(c(n,!0,o.aLiId))x=!1,_.css("top",-a.top+r[0].top),l=_.outerWidth(),r[1].left+l>t("body").outerWidth()?(k=!1,_.css("left",-a.left+r[0].left-l),i.direction="right",S.show("slide",i)):(k=!0,_.css("left",-a.left+r[1].left),i.direction="left",S.show("slide",i));else{x=!0,_.css("top",-a.top+r[1].top),l=_.outerWidth();var u=_.outerHeight();r[0].left+l>t("body").outerWidth()?_.css("left",-a.left+r[1].left-l):_.css("left",-a.left+r[0].left);var d;if(n.parentsUntil("body").filter(function(){return"fixed"===t(this).css("position")}).length>0){var h=t(window);d=h.height()+h.scrollTop()}else d=t(document).height();var f=parseInt(_.css("top"),10)-u-n.outerHeight();r[1].top+u>d&&f>0?(_.css("top",f+"px"),i.direction="down",E=!0):(i.direction="up",E=!1),S.show("slide",i)}}function y(t){if(!window.disableFlyouts&&n.parent().length){t&&(C=!1),M=!0,n[0]._flyoutmenu_contract=null,n[0]._flyoutmenu_hide=null;var i={wrapper:_,duration:F,complete:function(){M=!1,P=!1,C&&f(),e()&&D.trigger(I.EVENTS.SUBNAV_HIDDEN)}};x?(E?i.direction="down":i.direction="up",S.hide("slide",i)):k?(i.direction="left",S.hide("slide",i)):(i.direction="right",S.hide("slide",i))}}n.css("position","relative"),i(n).add(l(n)).css("position","relative");var _,S,M=!1,P=!1,C=!1,A=0,x=!1,k=!1,E=!1;S=m(n),S&&(_=r(S),_.css("position","absolute"),_.hide(),T?(_.on("mouseover",u),_.on("mouseout",d),_.on("click",function(t){s(t)})):(_.on("mouseover",h),_.on("click",function(t){s(t)}))),n.on("mouseover",u),n.on("mouseout",d),n.on("click",function(t){s(t)}),n[0]._flyoutmenu_destroy=function(t){if(n.off("mouseover",u),n.off("mouseout",d),n.off("click",
12s),_){T?(_.off("mouseover",u),_.off("mouseout",d),_.off("click",s)):(_.off("mouseover",h),_.off("click",s)),a(_).each(function(){this._flyoutmenu_destroy()}),t&&_.detach();var e=_;return _=null,S=null,e}},n[0]._get_sublist=function(){return S}}function u(){var e=1;d(n).each(function(){this.className=this.className.replace(new RegExp(N+"\\d+"),"");var n=t(this);"none"!=n.css("display")&&(n.addClass(N+e),e++)})}var g=this;g.mouseoverItems=[],n=t(n),o=o||{};var y,b="ontouchstart"in window,w=1e3*(o.delay||.5),T=o.relocate?t(o.relocate):!1;this.contract=function(){y.each(function(t,e){e._flyoutmenu_contract&&e._flyoutmenu_contract(!0)})},this.hideSubmenus=function(){y.each(function(t,e){e._flyoutmenu_hide&&e._flyoutmenu_hide()})},this.destroy=function(){y.each(function(t,e){e._flyoutmenu_destroy&&e._flyoutmenu_destroy()})},this.addItem=function(e){e=t(e);var n=h(e);if(n.length){s(n);var i=m(n);i&&a(i).each(function(){s(t(this))}),T&&i&&T.append(r(i)),y=y.add(n),u()}},this.removeItem=function(e){e=t(e);var n=h(e);n.length&&(n[0]._flyoutmenu_destroy&&n[0]._flyoutmenu_destroy(!0),n.remove(),y=y.not(n),u())},this.getMainList=function(){return n},this.writeOrderingClassNames=u,y=f(n),y.each(function(){s(t(this))}),u(),T&&d(n).each(function(e,n){var i=m(t(n));i&&T.append(r(i))})},window.whenThemeCSSLoaded||(window.whenThemeCSSLoaded=w),Weebly.Menus={inVerticalList:c};var it,ot;window.objectify=function(t){return _.isEmpty(t)?{}:t}}(Weebly.jQuery),_wAMD.define("legacy/flyout_menus_jq",["editor/page-manager/pages","util/effect-slide-custom","vendor/bootstrap/popover","mustache"],function(){}),function(t){t(document).ready(function(){t("a[rel=lightbox]").removeAttr("rel").add('a[rel^="lightbox["]').addClass("w-fancybox"),t.fn.fancybox&&(t(".w-fancybox").fancybox({prevEffect:"none",nextEffect:"none",padding:10,helpers:{title:{type:"inside"},thumbs:{width:50,height:50}}}),window.lightboxLoaded=!0)})}(Weebly.jQuery),_wAMD.define("site/published/fancybox",function(){}),function(t,e,n,i){var o=n(t),r=n(e),s=n.fancybox=function(){s.open.apply(this,arguments)},a=null,l=e.createTouch!==i,u=function(t){return t&&t.hasOwnProperty&&t instanceof n},c=function(t){return t&&"string"===n.type(t)},d=function(t){return c(t)&&t.indexOf("%")>0},h=function(t){return t&&!(t.style.overflow&&"hidden"===t.style.overflow)&&(t.clientWidth&&t.scrollWidth>t.clientWidth||t.clientHeight&&t.scrollHeight>t.clientHeight)},f=function(t,e){var n=parseInt(t,10);return e&&d(t)&&(n=s.getViewport()[e]/100*n),Math.ceil(n)},p=function(t,e){return f(t,e)+"px"};n.extend(s,{version:"2.1.0",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!l,autoCenter:!l,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0"'+(n.browser.msie?' allowtransparency="true"':"")+"></iframe>",closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:{closeClick:!0,speedOut:200,showEarly:!0,css:{}},title:{type:"float"}},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,
12skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){return t&&(n.isPlainObject(e)||(e={}),!1!==s.close(!0))?(n.isArray(t)||(t=u(t)?n(t).get():[t]),n.each(t,function(o,r){var a,l,d,h,f,p,m,g={};"object"===n.type(r)&&(r.nodeType&&(r=n(r)),u(r)?(g={href:r.attr("href"),title:r.attr("title"),isDom:!0,element:r},n.metadata&&n.extend(!0,g,r.metadata())):g=r),a=e.href||g.href||(c(r)?r:null),l=e.title!==i?e.title:g.title||"",d=e.content||g.content,h=d?"html":e.type||g.type,!h&&g.isDom&&(h=r.data("fancybox-type"),h||(f=r.prop("class").match(/fancybox\.(\w+)/),h=f?f[1]:null)),c(a)&&(h||(s.isImage(a)?h="image":s.isSWF(a)?h="swf":"#"===a.charAt(0)?h="inline":c(r)&&(h="html",d=r)),"ajax"===h&&(p=a.split(/\s+/,2),a=p.shift(),m=p.shift())),d||("inline"===h?a?d=n(c(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):g.isDom&&(d=r):"html"===h?d=a:h||a||!g.isDom||(h="inline",d=r)),n.extend(g,{href:a,type:h,content:d,title:l,selector:m}),t[o]=g}),s.opts=n.extend(!0,{},s.defaults,e),e.keys!==i&&(s.opts.keys=e.keys?n.extend({},s.defaults.keys,e.keys):!1),s.group=t,s._start(s.opts.index)):void 0},cancel:function(){var t=s.coming;t&&!1!==s.trigger("onCancel")&&(s.hideLoading(),s.ajaxLoad&&s.ajaxLoad.abort(),s.ajaxLoad=null,s.imgPreload&&(s.imgPreload.onload=s.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0).trigger("onReset").remove(),s.current||s.trigger("afterClose"),s.coming=null)},close:function(t){s.cancel(),!1!==s.trigger("beforeClose")&&(s.unbindEvents(),s.isOpen&&t!==!0?(s.isOpen=s.isOpened=!1,s.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),s.wrap.stop(!0,!0).removeClass("fancybox-opened"),"fixed"===s.wrap.css("position")&&s.wrap.css(s._getPosition(!0)),s.transitions[s.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),s._afterZoomOut()))},play:function(t){var e=function(){clearTimeout(s.player.timer)},i=function(){e(),s.current&&s.player.isActive&&(s.player.timer=setTimeout(s.next,s.current.playSpeed))},o=function(){e(),n("body").unbind(".player"),s.player.isActive=!1,s.trigger("onPlayEnd")},r=function(){s.current&&(s.current.loop||s.current.index<s.group.length-1)&&(s.player.isActive=!0,n("body").bind({"afterShow.player onUpdate.player":i,"onCancel.player beforeClose.player":o,"beforeLoad.player":e}),i(),s.trigger("onPlayStart"))};t===!0||!s.player.isActive&&t!==!1?r():o()},next:function(t){var e=s.current;e&&(c(t)||(t=e.direction.next),s.jumpto(e.index+1,t,"next"))},prev:function(t){var e=s.current;e&&(c(t)||(t=e.direction.prev),s.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,n){var o=s.current;o&&(t=f(t),s.direction=e||o.direction[t>=o.index?"next":"prev"],s.router=n||"jumpto",o.loop&&(0>t&&(t=o.group.length+t%o.group.length),t%=o.group.length),o.group[t]!==i&&(s.cancel(),s._start(t)))},reposition:function(t,e){var n;s.isOpen&&(n=s._getPosition(e),t&&"scroll"===t.type?(delete n.position,s.wrap.stop(!0,!0).animate(n,200)):s.wrap.css(n))},update:function(t){var e=t&&t.type,n=!e||"orientationchange"===e;n&&(clearTimeout(a),a=null),s.isOpen&&!a&&((n||l)&&(s.wrap.removeAttr("style").addClass("fancybox-tmp"),s.trigger("onUpdate")),a=setTimeout(function(){var n=s.current;n&&(s.wrap.removeClass("fancybox-tmp"),"scroll"!==e&&s._setDimension(),"scroll"===e&&n.canShrink||s.reposition(t),s.trigger("onUpdate"),a=null)},l?500:n?20:300))},toggle:function(t){s.isOpen&&(s.current.fitToView="boolean"===n.type(t)?t:!s.current.fitToView,s.update())},hideLoading:function(){r.unbind("keypress.fb"),n("#fancybox-loading").remove()},showLoading:function(){var t,e;s.hideLoading(),r.bind("keypress.fb",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),s.cancel())}),t=n('<div id="fancybox-loading"><div></div></div>').click(s.cancel).appendTo("body"),s.defaults.fixed||(e=s.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var e=s.current?s.current.locked:!1,n={x:o.scrollLeft(),y:o.scrollTop()};return e?(n.w=e[0].clientWidth,n.h=e[0].clientHeight):(n.w=l&&t.innerWidth?t.innerWidth:o.width(),n.h=l&&t.innerHe
12ight?t.innerHeight:o.height()),n},unbindEvents:function(){s.wrap&&u(s.wrap)&&s.wrap.unbind(".fb"),r.unbind(".fb"),o.unbind(".fb")},bindEvents:function(){var t,e=s.current;e&&(o.bind("orientationchange.fb"+(l?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),s.update),t=e.keys,t&&r.bind("keydown.fb",function(o){var r=o.which||o.keyCode,a=o.target||o.srcElement;o.ctrlKey||o.altKey||o.shiftKey||o.metaKey||a&&(a.type||n(a).is("[contenteditable]"))||n.each(t,function(t,a){return e.group.length>1&&a[r]!==i?(s[t](a[r]),o.preventDefault(),!1):n.inArray(r,a)>-1?(s[t](),o.preventDefault(),!1):void 0})}),n.fn.mousewheel&&e.mouseWheel&&s.wrap.bind("mousewheel.fb",function(t,i,o,r){for(var a=t.target||null,l=n(a),u=!1;l.length&&!(u||l.is(".fancybox-skin")||l.is(".fancybox-wrap"));)u=h(l[0]),l=n(l).parent();0===i||u||s.group.length>1&&!e.canShrink&&(r>0||o>0?s.prev(r>0?"down":"left"):(0>r||0>o)&&s.next(0>r?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var i,o=e||s.coming||s.current;if(o){if(n.isFunction(o[t])&&(i=o[t].apply(o,Array.prototype.slice.call(arguments,1))),i===!1)return!1;"onCancel"!==t||s.isOpened||(s.isActive=!1),o.helpers&&n.each(o.helpers,function(e,i){i&&s.helpers[e]&&n.isFunction(s.helpers[e][t])&&s.helpers[e][t](i,o)}),n.event.trigger(t+".fb")}},isImage:function(t){return c(t)&&t.match(/\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$/i); 13},isSWF:function(t){return c(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,i,o,r,a,u={};if(t=f(t),e=s.group[t]||null,!e)return!1;if(u=n.extend(!0,{},s.opts,e),r=u.margin,a=u.padding,"number"===n.type(r)&&(u.margin=[r,r,r,r]),"number"===n.type(a)&&(u.padding=[a,a,a,a]),u.modal&&n.extend(!0,u,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),u.autoSize&&(u.autoWidth=u.autoHeight=!0),"auto"===u.width&&(u.autoWidth=!0),"auto"===u.height&&(u.autoHeight=!0),u.group=s.group,u.index=t,s.coming=u,!1===s.trigger("beforeLoad"))return void(s.coming=null);if(o=u.type,i=u.href,!o)return s.coming=null,s.current&&s.router&&"jumpto"!==s.router?(s.current.index=t,s[s.router](s.direction)):!1;if(s.isActive=!0,("image"===o||"swf"===o)&&(u.autoHeight=u.autoWidth=!1,u.scrolling="visible"),"image"===o&&(u.aspectRatio=!0),"iframe"===o&&l&&(u.scrolling="scroll"),u.wrap=n(u.tpl.wrap).addClass("fancybox-"+(l?"mobile":"desktop")+" fancybox-type-"+o+" fancybox-tmp "+u.wrapCSS).appendTo(u.parent),n.extend(u,{skin:n(".fancybox-skin",u.wrap),outer:n(".fancybox-outer",u.wrap),inner:n(".fancybox-inner",u.wrap)}),n.each(["Top","Right","Bottom","Left"],function(t,e){u.skin.css("padding"+e,p(u.padding[t]))}),s.trigger("onReady"),"inline"===o||"html"===o){if(!u.content||!u.content.length)return s._error("content")}else if(!i)return s._error("href");"image"===o?s._loadImage():"ajax"===o?s._loadAjax():"iframe"===o?s._loadIframe():s._afterLoad()},_error:function(t){n.extend(s.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t}),s._afterLoad(),s.close(!0)},_loadImage:function(){var t=s.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,s.coming.width=this.width,s.coming.height=this.height,s._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,s._error("image")},t.src=s.coming.href,t.complete!==i&&t.complete||s.showLoading()},_loadAjax:function(){var t=s.coming;s.showLoading(),s.ajaxLoad=n.ajax(n.extend({},t.ajax,{url:t.href,error:function(t,e){s.coming&&"abort"!==e?s._error("ajax",t):s.hideLoading()},success:function(e,n){"success"===n&&(t.content=e,s._afterLoad())}}))},_loadIframe:function(){var t=s.coming,e=n(t.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",l?"auto":t.iframe.scrolling).attr("src",t.href);n(t.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","https://about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(s.showLoading(),e.one("load",function(){n(this).data("ready",1),l||n(this).bind("load.fb",s.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),s._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||s._afterLoad()},_preloadImages:function(){var t,e,n=s.group,i=s.current,o=n.length,r=i.preload?Math.min(i.preload,o-1):0;for(e=1;r>=e;e+=1)t=n[(i.index+e)%o],"image"===t.type&&t.href&&((new Image).src=t.href)},_afterLoad:function(){var t,e,i,o,r,a,l=s.coming,c=s.current,d="fancybox-placeholder";if(s.hideLoading(),l&&s.isActive!==!1){if(!1===s.trigger("afterLoad",l,c)
13)return l.wrap.stop(!0).trigger("onReset").remove(),void(s.coming=null);switch(c&&(s.trigger("beforeChange",c),c.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove(),"fixed"===c.wrap.css("position")&&c.wrap.css(s._getPosition(!0))),s.unbindEvents(),t=l,e=l.content,i=l.type,o=l.scrolling,n.extend(s,{wrap:t.wrap,skin:t.skin,outer:t.outer,inner:t.inner,current:t,previous:c}),r=t.href,i){case"inline":case"ajax":case"html":t.selector?e=n("<div>").html(e).find(t.selector):u(e)&&(e.data(d)||e.data(d,n('<div class="'+d+'"></div>').insertAfter(e).hide()),e=e.show().detach(),t.wrap.bind("onReset",function(){n(this).find(e).length&&e.hide().replaceAll(e.data(d)).data(d,!1)}));break;case"image":e=t.tpl.image.replace("{href}",r);break;case"swf":e='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+r+'"></param>',a="",n.each(t.swf,function(t,n){e+='<param name="'+t+'" value="'+n+'"></param>',a+=" "+t+'="'+n+'"'}),e+='<embed src="'+r+'" type="application/x-shockwave-flash" width="100%" height="100%"'+a+"></embed></object>"}u(e)&&e.parent().is(t.inner)||t.inner.append(e),s.trigger("beforeShow"),t.inner.css("overflow","yes"===o?"scroll":"no"===o?"hidden":o),s._setDimension(),t.wrap.removeClass("fancybox-tmp"),t.pos=n.extend({},t.dim,s._getPosition(!0)),s.isOpen=!1,s.coming=null,s.bindEvents(),s.isOpened?c.prevMethod&&s.transitions[c.prevMethod]():n(".fancybox-wrap").not(t.wrap).stop(!0).trigger("onReset").remove(),s.transitions[s.isOpened?t.nextMethod:t.openMethod](),s._preloadImages()}},_setDimension:function(){var t,e,i,o,r,a,l,u,c,h,m,g,v,y,b,w=s.getViewport(),T=0,_=!1,S=!1,M=s.wrap,P=s.skin,C=s.inner,A=s.current,x=A.width,k=A.height,E=A.minWidth,D=A.minHeight,I=A.maxWidth,G=A.maxHeight,H=A.scrolling,R=A.scrollOutside?A.scrollbarWidth:0,B=A.margin,O=B[1]+B[3],j=B[0]+B[2];if(M.add(P).add(C).width("auto").height("auto"),t=P.outerWidth(!0)-P.width(),e=P.outerHeight(!0)-P.height(),i=O+t,o=j+e,r=d(x)?(w.w-i)*f(x)/100:x,a=d(k)?(w.h-o)*f(k)/100:k,"iframe"===A.type){if(y=A.content,A.autoHeight&&1===y.data("ready"))try{y[0].contentWindow.document.location&&(C.width(r).height(9999),b=y.contents().find("body"),R&&b.css("overflow-x","hidden"),a=b.height())}catch(F){}}else(A.autoWidth||A.autoHeight)&&(C.addClass("fancybox-tmp"),A.autoWidth||C.width(r),A.autoHeight||C.height(a),A.autoWidth&&(r=C.width()),A.autoHeight&&(a=C.height()),C.removeClass("fancybox-tmp"));if(x=f(r),k=f(a),c=r/a,E=f(d(E)?f(E,"w")-i:E),I=f(d(I)?f(I,"w")-i:I),D=f(d(D)?f(D,"h")-o:D),G=f(d(G)?f(G,"h")-o:G),l=I,u=G,g=w.w-O,v=w.h-j,A.aspectRatio?(x>I&&(x=I,k=x/c),k>G&&(k=G,x=k*c),E>x&&(x=E,k=x/c),D>k&&(k=D,x=k*c)):(x=Math.max(E,Math.min(x,I)),k=Math.max(D,Math.min(k,G))),A.fitToView)if(I=Math.min(w.w-i,I),G=Math.min(w.h-o,G),C.width(f(x)).height(f(k)),M.width(f(x+t)),h=M.width(),m=M.height(),A.aspectRatio)for(;(h>g||m>v)&&x>E&&k>D&&!(T++>19);)k=Math.max(D,Math.min(G,k-10)),x=k*c,E>x&&(x=E,k=x/c),x>I&&(x=I,k=x/c),C.width(f(x)).height(f(k)),M.width(f(x+t)),h=M.width(),m=M.height();else x=Math.max(E,Math.min(x,x-(h-g))),k=Math.max(D,Math.min(k,k-(m-v)));R&&"auto"===H&&a>k&&g>x+t+R&&(x+=R),C.width(f(x)).height(f(k)),M.width(f(x+t)),h=M.width(),m=M.height(),_=(h>g||m>v)&&x>E&&k>D,S=A.aspectRatio?l>x&&u>k&&r>x&&a>k:(l>x||u>k)&&(r>x||a>k),n.extend(A,{dim:{width:p(h),height:p(m)},origWidth:r,origHeight:a,canShrink:_,canExpand:S,wPadding:t,hPadding:e,wrapSpace:m-P.outerHeight(!0),skinSpace:P.height()-k}),!y&&A.autoHeight&&k>D&&G>k&&!S&&C.height("auto")},_getPosition:function(t){var e=s.current,n=s.getViewport(),i=e.margin,o=s.wrap.width()+i[1]+i[3],r=s.wrap.height()+i[0]+i[2],a={position:"absolute",top:i[0],left:i[3]};return e.autoCenter&&e.fixed&&!t&&r<=n.h&&o<=n.w?a.position="fixed":e.locked||(a.top+=n.y,a.left+=n.x),a.top=p(Math.max(a.top,a.top+(n.h-r)*e.topRatio)),a.left=p(Math.max(a.left,a.left+(n.w-o)*e.leftRatio)),a},_afterZoomIn:function(){var t=s.current;t&&(s.isOpen=s.isOpened=!0,s.wrap.addClass("fancybox-opened").css("overflow","visible"),s.reposition(),(t.closeClick||t.nextClick)&&s.inner.css("cursor","pointer").bind("click.fb",function(e){n(e.target).is("a")||n(e.target).parent().is("a")||s[t.closeClick?"close"
13:"next"]()}),t.closeBtn&&n(t.tpl.closeBtn).appendTo(s.skin).bind("click.fb",s.close),t.arrows&&s.group.length>1&&((t.loop||t.index>0)&&n(t.tpl.prev).appendTo(s.outer).bind("click.fb",s.prev),(t.loop||t.index<s.group.length-1)&&n(t.tpl.next).appendTo(s.outer).bind("click.fb",s.next)),s.trigger("afterShow"),t.loop||t.index!==t.group.length-1?s.opts.autoPlay&&!s.player.isActive&&(s.opts.autoPlay=!1,s.play()):s.play(!1))},_afterZoomOut:function(){var t=s.current;n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),n.extend(s,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),s.trigger("afterClose",t)}}),s.transitions={getOrigPosition:function(){var t=s.current,e=t.element,n=t.orig,i={},o=50,r=50,a=t.hPadding,l=t.wPadding,c=s.getViewport();return!n&&t.isDom&&e.is(":visible")&&(n=e.find("img:first"),n.length||(n=e)),u(n)?(i=n.offset(),n.is("img")&&(o=n.outerWidth(),r=n.outerHeight())):(i.top=c.y+(c.h-r)*t.topRatio,i.left=c.x+(c.w-o)*t.leftRatio),t.locked&&(i.top-=c.y,i.left-=c.x),i={top:p(i.top-a*t.topRatio),left:p(i.left-l*t.leftRatio),width:p(o+l),height:p(r+a)}},step:function(t,e){var n,i,o,r=e.prop,a=s.current,l=a.wrapSpace,u=a.skinSpace;("width"===r||"height"===r)&&(n=e.end===e.start?1:(t-e.start)/(e.end-e.start),s.isClosing&&(n=1-n),i="width"===r?a.wPadding:a.hPadding,o=t-i,s.skin[r](f("width"===r?o:o-l*n)),s.inner[r](f("width"===r?o:o-l*n-u*n)))},zoomIn:function(){var t=s.current,e=t.pos,i=t.openEffect,o="elastic"===i,r=n.extend({opacity:1},e);delete r.position,o?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===i&&(e.opacity=.1),s.wrap.css(e).animate(r,{duration:"none"===i?0:t.openSpeed,easing:t.openEasing,step:o?this.step:null,complete:s._afterZoomIn})},zoomOut:function(){var t=s.current,e=t.closeEffect,n="elastic"===e,i={opacity:.1};n&&(i=this.getOrigPosition(),t.closeOpacity&&(i.opacity=.1)),s.wrap.animate(i,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:n?this.step:null,complete:s._afterZoomOut})},changeIn:function(){var t,e=s.current,n=e.nextEffect,i=e.pos,o={opacity:1},r=s.direction,a=200;i.opacity=.1,"elastic"===n&&(t="down"===r||"up"===r?"top":"left","down"===r||"right"===r?(i[t]=p(f(i[t])-a),o[t]="+="+a+"px"):(i[t]=p(f(i[t])+a),o[t]="-="+a+"px")),"none"===n?s._afterZoomIn():s.wrap.css(i).animate(o,{duration:e.nextSpeed,easing:e.nextEasing,complete:s._afterZoomIn})},changeOut:function(){var t=s.previous,e=t.prevEffect,i={opacity:.1},o=s.direction,r=200;"elastic"===e&&(i["down"===o||"up"===o?"top":"left"]=("up"===o||"left"===o?"-":"+")+"="+r+"px"),t.wrap.animate(i,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){n(this).trigger("onReset").remove()}})}},s.helpers.overlay={overlay:null,update:function(){var t,i="100%";this.overlay.width(i).height("100%"),n.browser.msie?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),r.width()>t&&(i=r.width())):r.width()>o.width()&&(i=r.width()),this.overlay.width(i).height(r.height())},onReady:function(t,i){n(".fancybox-overlay").stop(!0,!0),this.overlay||n.extend(this,{overlay:n('<div class="fancybox-overlay"></div>').appendTo(i.parent),margin:r.height()>o.height()||"scroll"===n("body").css("overflow-y")?n("body").css("margin-right"):!1,el:n(e.all&&!e.querySelector?"html":"body")}),i.fixed&&!l&&(this.overlay.addClass("fancybox-overlay-fixed"),i.autoCenter&&(this.overlay.append(i.wrap),i.locked=this.overlay)),t.showEarly===!0&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var i=this.overlay.unbind(".fb").width("auto").height("auto").css(t.css);t.closeClick&&i.bind("click.fb",function(t){n(t.target).hasClass("fancybox-overlay")&&s.close()}),e.fixed&&!l?e.locked&&(this.el.addClass("fancybox-lock"),this.margin!==!1&&n("body").css("margin-right",f(this.margin)+e.scrollbarWidth)):this.update(),i.show()},onUpdate:function(t,e){(!e.fixed||l)&&this.update()},afterClose:function(t){var e=this,i=t.speedOut||0;e.overlay&&!s.isActive&&e.overlay.fadeOut(i||0,function(){n("body").css("margin-right",e.margin),e.el.removeClass("fancybox-lock"),e.overlay.remove(),e.overlay=null})}},s.helpers.title={beforeShow:function(t){var e,i,o=s.current.title,r=t.type;if(c(o)&&""!==n.trim(o)){switch(e=n('<div class="fancybox-title fancybox-title-'+r+'-wrap">'+o+"</div>"),r){case"inside":i=s.skin;break;case"outside":i=s.wrap;break;case"over":i=s.inner;break;default:i=s.skin,e.appendTo("body").width(e.width()).wrapInner('<span class="child"></span>'),s.current.margin[2]+=Math.abs(f(e.css("margin-bottom")))}
13"top"===t.position?e.prependTo(i):e.appendTo(i)}}},n.fn.fancybox=function(t){var e,i=n(this),o=this.selector||"",a=function(r){var a,l,u=n(this).blur(),c=e;r.ctrlKey||r.altKey||r.shiftKey||r.metaKey||u.is(".fancybox-wrap")||(a=t.groupAttr||"data-fancybox-group",l=u.attr(a),l||(a="rel",l=u.get(0)[a]),l&&""!==l&&"nofollow"!==l&&(u=o.length?n(o):i,u=u.filter("["+a+'="'+l+'"]'),c=u.index(this)),t.index=c,s.open(u,t)!==!1&&r.preventDefault())};return t=t||{},e=t.index||0,o&&t.live!==!1?r.undelegate(o,"click.fb-start").delegate(o+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a):i.unbind("click.fb-start").bind("click.fb-start",a),this},r.ready(function(){n.scrollbarWidth===i&&(n.scrollbarWidth=function(){var t=n('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),i=e.innerWidth()-e.height(99).innerWidth();return t.remove(),i}),n.support.fixedPosition===i&&(n.support.fixedPosition=function(){var t=n('<div style="position:fixed;top:20px;"></div>').appendTo("body"),e=20===t[0].offsetTop||15===t[0].offsetTop;return t.remove(),e}()),n.extend(s.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")})})}(window,document,jQuery),function(t){var e=t.fancybox;e.helpers.thumbs={wrap:null,list:null,width:0,source:function(e){var n;return e.element&&(n=t(e.element).find("img").attr("src")),!n&&"image"===e.type&&e.href&&(n=e.href),n},init:function(e,n){var i,o=this,r=e.width||50,s=e.height||50,a=e.source||this.source;i="";for(var l=0;l<n.group.length;l++)i+='<li><a style="width:'+r+"px;height:"+s+'px;" href="javascript:jQuery.fancybox.jumpto('+l+');"></a></li>';this.wrap=t('<div id="fancybox-thumbs"></div>').addClass(e.position||"bottom").appendTo("body"),this.list=t("<ul>"+i+"</ul>").appendTo(this.wrap),t.each(n.group,function(e){var i=a(n.group[e]);i&&t("<img />").load(function(){var n,i,a,l=this.width,u=this.height;o.list&&l&&u&&(n=l/r,i=u/s,a=o.list.children().eq(e).find("a"),n>=1&&i>=1&&(n>i?(l=Math.floor(l/i),u=s):(l=r,u=Math.floor(u/n))),t(this).css({width:l,height:u,top:Math.floor(s/2-u/2),left:Math.floor(r/2-l/2)}),a.width(r).height(s),t(this).hide().appendTo(a).fadeIn(300))}).attr("src",i)}),this.width=this.list.children().eq(0).outerWidth(!0),this.list.width(this.width*(n.group.length+1)).css("left",Math.floor(.5*t(window).width()-(n.index*this.width+.5*this.width)))},beforeLoad:function(t,e){return e.group.length<2?void(e.helpers.thumbs=!1):void(e.margin["top"===t.position?0:2]+=(t.height||50)+15)},afterShow:function(t,e){this.list?this.onUpdate(t,e):this.init(t,e),this.list.children().removeClass("active").eq(e.index).addClass("active")},onUpdate:function(e,n){this.list&&this.list.stop(!0).animate({left:Math.floor(.5*t(window).width()-(n.index*this.width+.5*this.width))},150)},beforeClose:function(){this.wrap&&this.wrap.remove(),this.wrap=null,this.list=null,this.width=0}}}(jQuery),_wAMD.define("legacy/fancybox/fancybox",function(){}),_wAMD.require(["underscore","mustache","site/published/core","site/published/app","util/platform/elements/PlatformElement","backbone","legacy/flyout_menus_jq","site/published/fancybox","legacy/fancybox/fancybox"],function(t,e,n,i,o,r){if(i.start(),window.PlatformElement=o,t.each(_W.templates,function(t,n){e.compilePartial(n,t)}),_W.events={},t.extend(_W.events,r.Events),document.createEvent&&document.addEventListener){var s=document.createEvent("Event");s.initEvent("appReady",!0,!1),document.dispatchEvent(s),document.documentElement.appReady=1}else 0===document.documentElement.appReady?document.documentElement.appReady++:document.documentElement.appReady=1}),_wAMD.define("site/published/main",function(){}),_wAMD.define("site/main",function(){});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.