var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
webpackJsonp([17],{0:function(r,n,a){a(2403);a(987);a(284);a(463);a(465);a(981);a(994);a(982);a(983);a(986);a(464);a(979);a(633);a(553);a(632);a(985);a(984);a(973);a(988);a(989);a(990);a(991);a(992);a(993);a(995)},5:function(r,n,a){n=new (a(265));r.exports=n},12:function(r,n,a){r=a(17)["default"];n["default"]=r||function(a){for(var g=1;g<arguments.length;g++){var k=arguments[g],c;for(c in k)Object.prototype.hasOwnProperty.call(k,c)&&(a[c]=k[c])}return a};n.__esModule=!0},18:function(r,n,a){(function(a,
g){r.exports=g()})(this,function(){function a(b,f){f&&(b.prototype=Object.create(f.prototype));b.prototype.constructor=b}function g(b){return d(b)?b:K(b)}function k(b){return p(b)?b:W(b)}function c(b){return l(b)?b:G(b)}function e(b){return d(b)&&!s(b)?b:da(b)}function d(b){return!(!b||!b[Ib])}function p(b){return!(!b||!b[Jb])}function l(b){return!(!b||!b[Kb])}function s(b){return p(b)||l(b)}function m(b){return!(!b||!b[sa])}function u(b){b.value=!1;return b}function h(b){b&&(b.value=!0)}function F(){}
function t(b,f){f=f||0;for(var a=Math.max(0,b.length-f),d=Array(a),c=0;c<a;c++)d[c]=b[c+f];return d}function C(b){void 0===b.size&&(b.size=b.__iterate(r));return b.size}function n(b,f){if("number"!==typeof f){var a=f>>>0;if(""+a!==f||4294967295===a)return NaN;f=a}return 0>f?C(b)+f:f}function r(){return!0}function X(b,f,a){return(0===b||void 0!==a&&b<=-a)&&(void 0===f||void 0!==a&&f>=a)}function ba(b,f,a){return void 0===b?a:0>b?Math.max(0,f+b):void 0===f?b:Math.min(f,b)}function y(b){this.next=b}
function z(b,f,a,d){b=0===b?f:1===b?a:[f,a];d?d.value=b:d={value:b,done:!1};return d}function R(){return{value:void 0,done:!0}}function Pa(b){return b&&"function"===typeof b.next}function Ca(b){var f=bb(b);return f&&f.call(b)}function bb(b){b=b&&(cb&&b[cb]||b[Lb]);if("function"===typeof b)return b}function K(b){if(null===b||void 0===b)b=Qa();else if(d(b))b=b.toSeq();else{var f=Mb(b)||"object"===typeof b&&new la(b);if(!f)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+
b);b=f}return b}function W(b){return null===b||void 0===b?Qa().toKeyedSeq():d(b)?p(b)?b.toSeq():b.fromEntrySeq():Nb(b)}function G(b){return null===b||void 0===b?Qa():!d(b)?db(b):p(b)?b.entrySeq():b.toIndexedSeq()}function da(b){return(null===b||void 0===b?Qa():!d(b)?db(b):p(b)?b.entrySeq():b).toSetSeq()}function ea(b){this._array=b;this.size=b.length}function la(b){var f=Object.keys(b);this._object=b;this._keys=f;this.size=f.length}function Da(b){this._iterable=b;this.size=b.length||b.size}function Ea(b){this._iterator=
b;this._iteratorCache=[]}function eb(b){return!(!b||!b[Ob])}function Qa(){return Pb||(Pb=new ea([]))}function Nb(b){var f=Array.isArray(b)?(new ea(b)).fromEntrySeq():Pa(b)?(new Ea(b)).fromEntrySeq():bb(b)?(new Da(b)).fromEntrySeq():"object"===typeof b?new la(b):void 0;if(!f)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+b);return f}function db(b){var f=Mb(b);if(!f)throw new TypeError("Expected Array or iterable object of values: "+b);return f}function Mb(b){return b&&
"number"===typeof b.length?new ea(b):Pa(b)?new Ea(b):bb(b)?new Da(b):void 0}function Qb(b,f,a,d){var c=b._cache;if(c){for(var h=c.length-1,m=0;m<=h;m++){var e=c[a?h-m:m];if(!1===f(e[1],d?e[0]:m,b))return m+1}return m}return b.__iterateUncached(f,a)}function Rb(b,f,a,d){var c=b._cache;if(c){var h=c.length-1,m=0;return new y(function(){var b=c[a?h-m:m];return m++>h?R():z(f,d?b[0]:m-1,b[1])})}return b.__iteratorUncached(f,a)}function fb(b,f){return f?gb(f,b,"",{"":b}):hb(b)}function gb(b,f,a,d){return Array.isArray(f)?
b.call(d,a,G(f).map(function(a,aa){return gb(b,a,aa,f)})):f&&(f.constructor===Object||void 0===f.constructor)?b.call(d,a,W(f).map(function(a,aa){return gb(b,a,aa,f)})):f}function hb(b){return Array.isArray(b)?G(b).map(hb).toList():b&&(b.constructor===Object||void 0===b.constructor)?W(b).map(hb).toMap():b}function H(b,f){if(b===f||b!==b&&f!==f)return!0;if(!b||!f)return!1;if("function"===typeof b.valueOf&&"function"===typeof f.valueOf){b=b.valueOf();f=f.valueOf();if(b===f||b!==b&&f!==f)return!0;if(!b||
!f)return!1}return"function"===typeof b.equals&&"function"===typeof f.equals&&b.equals(f)?!0:!1}function ib(b,f){if(b===f)return!0;if(!d(f)||void 0!==b.size&&void 0!==f.size&&b.size!==f.size||void 0!==b.__hash&&void 0!==f.__hash&&b.__hash!==f.__hash||p(b)!==p(f)||l(b)!==l(f)||m(b)!==m(f))return!1;if(0===b.size&&0===f.size)return!0;var a=!s(b);if(m(b)){var c=b.entries();return f.every(function(b,f){var d=c.next().value;return d&&H(d[1],b)&&(a||H(d[0],f))})&&c.next().done}var h=!1;if(void 0===b.size)if(void 0===
f.size)"function"===typeof b.cacheResult&&b.cacheResult();else{var h=!0,e=b;b=f;f=e}var g=!0,e=f.__iterate(function(f,d){if(a?!b.has(f):h?!H(f,b.get(d,w)):!H(b.get(d,w),f))return g=!1});return g&&b.size===e}function M(b,f){if(!(this instanceof M))return new M(b,f);this._value=b;this.size=void 0===f?Infinity:Math.max(0,f);if(0===this.size){if(jb)return jb;jb=this}}function Ra(b,f){if(!b)throw Error(f);}function N(b,f,a){if(!(this instanceof N))return new N(b,f,a);Ra(0!==a,"Cannot step a Range by 0");
b=b||0;void 0===f&&(f=Infinity);a=void 0===a?1:Math.abs(a);f<b&&(a=-a);this._start=b;this._end=f;this._step=a;this.size=Math.max(0,Math.ceil((f-b)/a-1)+1);if(0===this.size){if(kb)return kb;kb=this}}function ma(){throw TypeError("Abstract");}function Fa(){}function ta(){}function Sa(){}function S(b){if(!1===b||(null===b||void 0===b)||"function"===typeof b.valueOf&&(b=b.valueOf(),!1===b||null===b||void 0===b))return 0;if(!0===b)return 1;var f=typeof b;if("number"===f){f=b|0;for(f!==b&&(f^=4294967295*
b);4294967295<b;)b/=4294967295,f^=b;return f>>>1&1073741824|f&3221225471}if("string"===f)return b.length>Gc?(f=lb[b],void 0===f&&(f=mb(b),nb===Hc&&(nb=0,lb={}),nb++,lb[b]=f),b=f):b=mb(b),b;if("function"===typeof b.hashCode)return b.hashCode();if("object"===f)return Ic(b);if("function"===typeof b.toString)return mb(b.toString());throw Error("Value type "+f+" cannot be hashed.");}function mb(b){for(var f=0,a=0;a<b.length;a++)f=31*f+b.charCodeAt(a)|0;return f>>>1&1073741824|f&3221225471}function Ic(b){var f;
if(ob&&(f=pb.get(b),void 0!==f))return f;f=b[pa];if(void 0!==f)return f;if(!Ta){f=b.propertyIsEnumerable&&b.propertyIsEnumerable[pa];if(void 0!==f)return f;a:{if(b&&0<b.nodeType)switch(b.nodeType){case 1:f=b.uniqueID;break a;case 9:f=b.documentElement&&b.documentElement.uniqueID;break a}f=void 0}if(void 0!==f)return f}f=++qb;qb&1073741824&&(qb=0);if(ob)pb.set(b,f);else{if(void 0!==Sb&&!1===Sb(b))throw Error("Non-extensible objects are not allowed as keys.");if(Ta)Object.defineProperty(b,pa,{enumerable:!1,
configurable:!1,writable:!1,value:f});else if(void 0!==b.propertyIsEnumerable&&b.propertyIsEnumerable===b.constructor.prototype.propertyIsEnumerable)b.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},b.propertyIsEnumerable[pa]=f;else if(void 0!==b.nodeType)b[pa]=f;else throw Error("Unable to set a non-enumerable property on object.");}return f}function T(b){Ra(Infinity!==b,"Cannot perform this action with an infinite size.")}function x(b){return null===
b||void 0===b?fa():rb(b)&&!m(b)?b:fa().withMutations(function(f){var a=k(b);T(a.size);a.forEach(function(b,a){return f.set(a,b)})})}function rb(b){return!(!b||!b[Tb])}function Ga(b,f){this.ownerID=b;this.entries=f}function ua(b,f,a){this.ownerID=b;this.bitmap=f;this.nodes=a}function Ha(b,f,a){this.ownerID=b;this.count=f;this.nodes=a}function qa(b,f,a){this.ownerID=b;this.keyHash=f;this.entries=a}function ga(b,f,a){this.ownerID=b;this.keyHash=f;this.entry=a}function sb(b,f,a){this._type=f;this._reverse=
a;this._stack=b._root&&{node:b._root,index:0,__prev:void 0}}function tb(b,f,a,d){var c=Object.create(v);c.size=b;c._root=f;c.__ownerID=a;c.__hash=d;c.__altered=!1;return c}function fa(){return Ub||(Ub=tb(0))}function Vb(b,f,a){var d;if(b._root){d=u(Jc);var c=u(Wb);f=ub(b._root,b.__ownerID,0,void 0,f,a,d,c);if(!c.value)return b;d=b.size+(d.value?a===w?-1:1:0)}else{if(a===w)return b;d=1;f=new Ga(b.__ownerID,[[f,a]])}return b.__ownerID?(b.size=d,b._root=f,b.__hash=void 0,b.__altered=!0,b):f?tb(d,f):
fa()}function ub(b,f,a,d,c,m,e,l){if(!b){if(m===w)return b;h(l);h(e);return new ga(f,d,[c,m])}return b.update(f,a,d,c,m,e,l)}function vb(b,f,a,d,c){if(b.keyHash===d)return new qa(f,d,[b.entry,c]);var h=(0===a?b.keyHash:b.keyHash>>>a)&P,m=(0===a?d:d>>>a)&P,e;b=h===m?[vb(b,f,a+B,d,c)]:(e=new ga(f,d,c),h<m?[b,e]:[e,b]);return new ua(f,1<<h|1<<m,b)}function Ua(b,f,a){for(var c=[],h=0;h<a.length;h++){var m=a[h],e=k(m);d(m)||(e=e.map(function(b){return fb(b)}));c.push(e)}return Xb(b,f,c)}function Yb(b,
f,a){return b&&b.mergeDeep&&d(f)?b.mergeDeep(f):H(b,f)?b:f}function Zb(b){return function(f,a,c){if(f&&f.mergeDeepWith&&d(a))return f.mergeDeepWith(b,a);a=b(f,a,c);return H(f,a)?f:a}}function Xb(b,f,a){a=a.filter(function(b){return 0!==b.size});return 0===a.length?b:0===b.size&&!b.__ownerID&&1===a.length?b.constructor(a[0]):b.withMutations(function(b){for(var d=f?function(a,d){b.update(d,w,function(b){return b===w?a:f(b,a,d)})}:function(f,a){b.set(a,f)},c=0;c<a.length;c++)a[c].forEach(d)})}function $b(b,
f,a,d){var c=b===w,h=f.next();if(h.done)return c=c?a:b,d=d(c),d===c?b:d;Ra(c||b&&b.set,"invalid keyPath");var h=h.value,m=c?w:b.get(h,w);d=$b(m,f,a,d);return d===m?b:d===w?b.remove(h):(c?fa():b).set(h,d)}function ac(b){b-=b>>1&1431655765;b=(b&858993459)+(b>>2&858993459);b=b+(b>>4)&252645135;b+=b>>8;return b+(b>>16)&127}function D(b){var f=wb();if(null===b||void 0===b)return f;if(bc(b))return b;var a=c(b),d=a.size;if(0===d)return f;T(d);return 0<d&&d<Y?Ia(0,d,B,null,new na(a.toArray())):f.withMutations(function(b){b.setSize(d);
a.forEach(function(f,a){return b.set(a,f)})})}function bc(b){return!(!b||!b[cc])}function na(b,f){this.array=b;this.ownerID=f}function dc(b,f){function a(b,d){var aa=d===m?e&&e.array:b&&b.array,l=d>c?0:c-d,Na=h-d;Na>Y&&(Na=Y);return function(){if(l===Na)return Ja;var b=f?--Na:l++;return aa&&aa[b]}}function d(b,m,e){var l,p=b&&b.array,g=e>c?0:c-e>>m,s=(h-e>>m)+1;s>Y&&(s=Y);return function(){do{if(l){var b=l();if(b!==Ja)return b;l=null}if(g===s)return Ja;b=f?--s:g++;l=0===m-B?a(p&&p[b],e+(b<<m)):d(p&&
p[b],m-B,e+(b<<m))}while(1)}}var c=b._origin,h=b._capacity,m=Ka(h),e=b._tail;return 0===b._level?a(b._root,0):d(b._root,b._level,0)}function Ia(b,f,a,d,c,h,m){var e=Object.create(Q);e.size=f-b;e._origin=b;e._capacity=f;e._level=a;e._root=d;e._tail=c;e.__ownerID=h;e.__hash=m;e.__altered=!1;return e}function wb(){return ec||(ec=Ia(0,0,B))}function Kc(b,f,a){f=n(b,f);if(f!==f)return b;if(f>=b.size||0>f)return b.withMutations(function(b){0>f?oa(b,f).set(0,a):oa(b,0,f+1).set(f,a)});f+=b._origin;var d=
b._tail,c=b._root,h=u(Wb);f>=Ka(b._capacity)?d=xb(d,b.__ownerID,0,f,a,h):c=xb(c,b.__ownerID,b._level,f,a,h);return!h.value?b:b.__ownerID?(b._root=c,b._tail=d,b.__hash=void 0,b.__altered=!0,b):Ia(b._origin,b._capacity,b._level,c,d)}function xb(b,f,a,d,c,m){var e=d>>>a&P,l=b&&e<b.array.length;if(!l&&void 0===c)return b;if(0<a){l=b&&b.array[e];c=xb(l,f,a-B,d,c,m);if(c===l)return b;b=va(b,f);b.array[e]=c;return b}if(l&&b.array[e]===c)return b;h(m);b=va(b,f);void 0===c&&e===b.array.length-1?b.array.pop():
b.array[e]=c;return b}function va(b,f){return f&&b&&f===b.ownerID?b:new na(b?b.array.slice():[],f)}function fc(b,f){if(f>=Ka(b._capacity))return b._tail;if(f<1<<b._level+B){for(var a=b._root,d=b._level;a&&0<d;)a=a.array[f>>>d&P],d-=B;return a}}function oa(b,f,a){void 0!==f&&(f|=0);void 0!==a&&(a|=0);var d=b.__ownerID||new F,c=b._origin,h=b._capacity;f=c+f;a=void 0===a?h:0>a?h+a:c+a;if(f===c&&a===h)return b;if(f>=a)return b.clear();for(var m=b._level,e=b._root,l=0;0>f+l;)e=new na(e&&e.array.length?
[void 0,e]:[],d),m+=B,l+=1<<m;l&&(f+=l,c+=l,a+=l,h+=l);for(var p=Ka(h),g=Ka(a);g>=1<<m+B;)e=new na(e&&e.array.length?[e]:[],d),m+=B;var l=b._tail,s=g<p?fc(b,a-1):g>p?new na([],d):l;if(l&&g>p&&f<h&&l.array.length){for(var k=e=va(e,d),C=m;C>B;C-=B)var t=p>>>C&P,k=k.array[t]=va(k.array[t],d);k.array[p>>>B&P]=l}a<h&&(s=s&&s.removeAfter(d,0,a));if(f>=g)f-=g,a-=g,m=B,e=null,s=s&&s.removeBefore(d,0,f);else if(f>c||g<p){for(l=0;e;){h=f>>>m&P;if(h!==g>>>m&P)break;h&&(l+=(1<<m)*h);m-=B;e=e.array[h]}e&&f>c&&
(e=e.removeBefore(d,m,f-l));e&&g<p&&(e=e.removeAfter(d,m,g-l));l&&(f-=l,a-=l)}return b.__ownerID?(b.size=a-f,b._origin=f,b._capacity=a,b._level=m,b._root=e,b._tail=s,b.__hash=void 0,b.__altered=!0,b):Ia(f,a,m,e,s)}function Va(b,f,a){for(var m=[],h=0,e=0;e<a.length;e++){var l=a[e],p=c(l);p.size>h&&(h=p.size);d(l)||(p=p.map(function(b){return fb(b)}));m.push(p)}h>b.size&&(b=b.setSize(h));return Xb(b,f,m)}function Ka(b){return b<Y?0:b-1>>>B<<B}function I(b){return null===b||void 0===b?Wa():gc(b)?b:Wa().withMutations(function(f){var a=
k(b);T(a.size);a.forEach(function(b,a){return f.set(a,b)})})}function gc(b){return rb(b)&&m(b)}function yb(b,f,a,d){var c=Object.create(I.prototype);c.size=b?b.size:0;c._map=b;c._list=f;c.__ownerID=a;c.__hash=d;return c}function Wa(){return hc||(hc=yb(fa(),wb()))}function ic(b,f,a){var d=b._map,c=b._list,h=d.get(f),m=void 0!==h;if(a===w){if(!m)return b;c.size>=Y&&c.size>=2*d.size?(f=c.filter(function(b,f){return void 0!==b&&h!==f}),d=f.toKeyedSeq().map(function(b){return b[0]}).flip().toMap(),b.__ownerID&&
(d.__ownerID=f.__ownerID=b.__ownerID)):(d=d.remove(f),f=h===c.size-1?c.pop():c.set(h,void 0))}else if(m){if(a===c.get(h)[1])return b;f=c.set(h,[f,a])}else d=d.set(f,c.size),f=c.set(c.size,[f,a]);return b.__ownerID?(b.size=d.size,b._map=d,b._list=f,b.__hash=void 0,b):yb(d,f)}function Z(b,f){this._iter=b;this._useKeys=f;this.size=b.size}function wa(b){this._iter=b;this.size=b.size}function xa(b){this._iter=b;this.size=b.size}function ya(b){this._iter=b;this.size=b.size}function jc(b){var f=ha(b);f._iter=
b;f.size=b.size;f.flip=function(){return b};f.reverse=function(){var f=b.reverse.apply(this);f.flip=function(){return b.reverse()};return f};f.has=function(f){return b.includes(f)};f.includes=function(f){return b.has(f)};f.cacheResult=zb;f.__iterateUncached=function(f,a){var d=this;return b.__iterate(function(b,a){return!1!==f(a,b,d)},a)};f.__iteratorUncached=function(f,a){if(f===ia){var d=b.__iterator(f,a);return new y(function(){var b=d.next();if(!b.done){var f=b.value[0];b.value[0]=b.value[1];
b.value[1]=f}return b})}return b.__iterator(f===$?La:$,a)};return f}function kc(b,f,a){var d=ha(b);d.size=b.size;d.has=function(f){return b.has(f)};d.get=function(d,c){var h=b.get(d,w);return h===w?c:f.call(a,h,d,b)};d.__iterateUncached=function(d,c){var h=this;return b.__iterate(function(b,c,m){return!1!==d(f.call(a,b,c,m),c,h)},c)};d.__iteratorUncached=function(d,c){var h=b.__iterator(ia,c);return new y(function(){var c=h.next();if(c.done)return c;var m=c.value,e=m[0];return z(d,e,f.call(a,m[1],
e,b),c)})};return d}function Ab(b,f){var a=ha(b);a._iter=b;a.size=b.size;a.reverse=function(){return b};b.flip&&(a.flip=function(){var f=jc(b);f.reverse=function(){return b.flip()};return f});a.get=function(a,d){return b.get(f?a:-1-a,d)};a.has=function(a){return b.has(f?a:-1-a)};a.includes=function(f){return b.includes(f)};a.cacheResult=zb;a.__iterate=function(f,a){var d=this;return b.__iterate(function(b,a){return f(b,a,d)},!a)};a.__iterator=function(f,a){return b.__iterator(f,!a)};return a}function lc(b,
f,a,d){var c=ha(b);d&&(c.has=function(d){var c=b.get(d,w);return c!==w&&!!f.call(a,c,d,b)},c.get=function(d,c){var h=b.get(d,w);return h!==w&&f.call(a,h,d,b)?h:c});c.__iterateUncached=function(c,h){var m=this,e=0;b.__iterate(function(b,h,l){if(f.call(a,b,h,l))return e++,c(b,d?h:e-1,m)},h);return e};c.__iteratorUncached=function(c,h){var m=b.__iterator(ia,h),e=0;return new y(function(){for(;;){var h=m.next();if(h.done)return h;var l=h.value,p=l[0],l=l[1];if(f.call(a,l,p,b))return z(c,d?p:e++,l,h)}})};
return c}function Lc(b,f,a){var d=x().asMutable();b.__iterate(function(c,h){d.update(f.call(a,c,h,b),0,function(b){return b+1})});return d.asImmutable()}function Mc(b,f,a){var d=p(b),h=(m(b)?I():x()).asMutable();b.__iterate(function(c,m){h.update(f.call(a,c,m,b),function(b){return b=b||[],b.push(d?[m,c]:c),b})});var g=p(b)?k:l(b)?c:e;return h.map(function(f){return A(b,g(f))})}function Bb(b,f,a,d){var c=b.size;void 0!==f&&(f|=0);void 0!==a&&(a|=0);if(X(f,a,c))return b;var h=ba(f,c,0),c=ba(a,c,c);
if(h!==h||c!==c)return Bb(b.toSeq().cacheResult(),f,a,d);f=c-h;var m;f===f&&(m=0>f?0:f);f=ha(b);f.size=0===m?m:b.size&&m||void 0;!d&&(eb(b)&&0<=m)&&(f.get=function(f,a){f=n(this,f);return 0<=f&&f<m?b.get(f+h,a):a});f.__iterateUncached=function(f,a){var c=this;if(0===m)return 0;if(a)return this.cacheResult().__iterate(f,a);var e=0,l=!0,aa=0;b.__iterate(function(b,a){if(!l||!(l=e++<h))return aa++,!1!==f(b,d?a:aa-1,c)&&aa!==m});return aa};f.__iteratorUncached=function(f,a){if(0!==m&&a)return this.cacheResult().__iterator(f,
a);var c=0!==m&&b.__iterator(f,a),e=0,l=0;return new y(function(){for(;e++<h;)c.next();if(++l>m)return R();var b=c.next();return d||f===$?b:f===La?z(f,l-1,void 0,b):z(f,l-1,b.value[1],b)})};return f}function Nc(b,f,a){var d=ha(b);d.__iterateUncached=function(d,c){var h=this;if(c)return this.cacheResult().__iterate(d,c);var m=0;b.__iterate(function(b,c,e){return f.call(a,b,c,e)&&++m&&d(b,c,h)});return m};d.__iteratorUncached=function(d,c){var h=this;if(c)return this.cacheResult().__iterator(d,c);var m=
b.__iterator(ia,c),e=!0;return new y(function(){if(!e)return R();var b=m.next();if(b.done)return b;var c=b.value,l=c[0],c=c[1];return!f.call(a,c,l,h)?(e=!1,R()):d===ia?b:z(d,l,c,b)})};return d}function mc(b,f,a,d){var c=ha(b);c.__iterateUncached=function(c,h){var m=this;if(h)return this.cacheResult().__iterate(c,h);var e=!0,l=0;b.__iterate(function(b,h,p){if(!e||!(e=f.call(a,b,h,p)))return l++,c(b,d?h:l-1,m)});return l};c.__iteratorUncached=function(c,h){var m=this;if(h)return this.cacheResult().__iterator(c,
h);var e=b.__iterator(ia,h),l=!0,p=0;return new y(function(){var b,h,g;do{b=e.next();if(b.done)return d||c===$?b:c===La?z(c,p++,void 0,b):z(c,p++,b.value[1],b);g=b.value;h=g[0];g=g[1];l&&(l=f.call(a,g,h,m))}while(l);return c===ia?b:z(c,h,g,b)})};return c}function Oc(b,f){var a=p(b),c=[b].concat(f).map(function(b){d(b)?a&&(b=k(b)):b=a?Nb(b):db(Array.isArray(b)?b:[b]);return b}).filter(function(b){return 0!==b.size});if(0===c.length)return b;if(1===c.length){var h=c[0];if(h===b||a&&p(h)||l(b)&&l(h))return h}h=
new ea(c);a?h=h.toKeyedSeq():l(b)||(h=h.toSetSeq());h=h.flatten(!0);h.size=c.reduce(function(b,f){if(void 0!==b){var a=f.size;if(void 0!==a)return b+a}},0);return h}function nc(b,f,a){var c=ha(b);c.__iterateUncached=function(c,h){function m(b,p){var g=this;b.__iterate(function(b,h){if((!f||p<f)&&d(b))m(b,p+1);else if(!1===c(b,a?h:e++,g))l=!0;return!l},h)}var e=0,l=!1;m(b,0);return e};c.__iteratorUncached=function(c,h){var m=b.__iterator(c,h),e=[],l=0;return new y(function(){for(;m;){var b=m.next();
if(!1!==b.done)m=e.pop();else{var p=b.value;c===ia&&(p=p[1]);if((!f||e.length<f)&&d(p))e.push(m),m=p.__iterator(c,h);else return a?b:z(c,l++,p,b)}}return R()})};return c}function Pc(b,f,a){var d=p(b)?k:l(b)?c:e;return b.toSeq().map(function(c,h){return d(f.call(a,c,h,b))}).flatten(!0)}function Qc(b,f){var a=ha(b);a.size=b.size&&2*b.size-1;a.__iterateUncached=function(a,c){var d=this,h=0;b.__iterate(function(b,c){return(!h||!1!==a(f,h++,d))&&!1!==a(b,h++,d)},c);return h};a.__iteratorUncached=function(a,
c){var d=b.__iterator($,c),h=0,m;return new y(function(){if(!m||h%2)if(m=d.next(),m.done)return m;return h%2?z(a,h++,f):z(a,h++,m.value,m)})};return a}function za(b,f,a){f||(f=oc);var c=p(b),d=0,h=b.toSeq().map(function(f,c){return[c,f,d++,a?a(f,c,b):f]}).toArray();h.sort(function(b,a){return f(b[3],a[3])||b[2]-a[2]}).forEach(c?function(b,f){h[f].length=2}:function(b,f){h[f]=b[1]});return c?W(h):l(b)?G(h):da(h)}function Xa(b,f,a){f||(f=oc);if(a){var c=b.toSeq().map(function(f,c){return[f,a(f,c,b)]}).reduce(function(b,
a){return pc(f,b[1],a[1])?a:b});return c&&c[0]}return b.reduce(function(b,a){return pc(f,b,a)?a:b})}function pc(b,f,a){b=b(a,f);return 0===b&&a!==f&&(void 0===a||null===a||a!==a)||0<b}function Cb(b,f,a){b=ha(b);b.size=(new ea(a)).map(function(b){return b.size}).min();b.__iterate=function(b,f){for(var a=this.__iterator($,f),c,d=0;!(c=a.next()).done&&!1!==b(c.value,d++,this););return d};b.__iteratorUncached=function(b,c){var d=a.map(function(b){return b=g(b),Ca(c?b.reverse():b)}),h=0,m=!1;return new y(function(){var a;
m||(a=d.map(function(b){return b.next()}),m=a.some(function(b){return b.done}));return m?R():z(b,h++,f.apply(null,a.map(function(b){return b.value})))})};return b}function A(b,f){return eb(b)?f:b.constructor(f)}function qc(b){if(b!==Object(b))throw new TypeError("Expected [K, V] tuple: "+b);}function rc(b){T(b.size);return C(b)}function ha(b){return Object.create((p(b)?W:l(b)?G:da).prototype)}function zb(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):K.prototype.cacheResult.call(this)}
function oc(b,f){return b>f?1:b<f?-1:0}function sc(b){var f=Ca(b);if(!f){if(!(b&&"number"===typeof b.length))throw new TypeError("Expected iterable or array-like: "+b);f=Ca(g(b))}return f}function U(b,f){var a,c=function(h){if(h instanceof c)return h;if(!(this instanceof c))return new c(h);if(!a){a=!0;var m=Object.keys(b);try{m.forEach(Rc.bind(void 0,d))}catch(e){}d.size=m.length;d._name=f;d._keys=m;d._defaultValues=b}this._map=x(h)},d=c.prototype=Object.create(L);return d.constructor=c}function Ya(b,
f,a){b=Object.create(Object.getPrototypeOf(b));b._map=f;b.__ownerID=a;return b}function Rc(b,f){Object.defineProperty(b,f,{get:function(){return this.get(f)},set:function(b){Ra(this.__ownerID,"Cannot set on an immutable record.");this.set(f,b)}})}function E(b){return null===b||void 0===b?Db():Eb(b)&&!m(b)?b:Db().withMutations(function(f){var a=e(b);T(a.size);a.forEach(function(b){return f.add(b)})})}function Eb(b){return!(!b||!b[tc])}function Fb(b,f){return b.__ownerID?(b.size=f.size,b._map=f,b):
f===b._map?b:0===f.size?b.__empty():b.__make(f)}function uc(b,f){var a=Object.create(V);a.size=b?b.size:0;a._map=b;a.__ownerID=f;return a}function Db(){return vc||(vc=uc(fa()))}function ja(b){return null===b||void 0===b?Gb():wc(b)?b:Gb().withMutations(function(f){var a=e(b);T(a.size);a.forEach(function(b){return f.add(b)})})}function wc(b){return Eb(b)&&m(b)}function xc(b,f){var a=Object.create(Za);a.size=b?b.size:0;a._map=b;a.__ownerID=f;return a}function Gb(){return yc||(yc=xc(Wa()))}function J(b){return null===
b||void 0===b?Aa||(Aa=ra(0)):zc(b)?b:(Aa||(Aa=ra(0))).unshiftAll(b)}function zc(b){return!(!b||!b[Ac])}function ra(b,f,a,c){var d=Object.create(Ba);d.size=b;d._head=f;d.__ownerID=a;d.__hash=c;d.__altered=!1;return d}function ka(b,f){var a=function(a){b.prototype[a]=f[a]};Object.keys(f).forEach(a);Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(f).forEach(a);return b}function Sc(b,f){return f}function Tc(b,f){return[f,b]}function $a(b){return function(){return!b.apply(this,arguments)}}function Bc(b){return function(){return-b.apply(this,
arguments)}}function Cc(b){return"string"===typeof b?JSON.stringify(b):b}function Uc(){return t(arguments)}function Dc(b,f){return b<f?1:b>f?-1:0}function Vc(b){if(Infinity===b.size)return 0;var f=m(b),a=p(b),c=f?1:0;b=b.__iterate(a?f?function(b,f){c=31*c+Ec(S(b),S(f))|0}:function(b,f){c=c+Ec(S(b),S(f))|0}:f?function(b){c=31*c+S(b)|0}:function(b){c=c+S(b)|0});return Wc(b,c)}function Wc(b,f){f=Ma(f,3432918353);f=Ma(f<<15|f>>>-15,461845907);f=Ma(f<<13|f>>>-13,5);f=(f+3864292196|0)^b;f=Ma(f^f>>>16,2246822507);
f=Ma(f^f>>>13,3266489909);return(f^f>>>16)>>>1&1073741824|(f^f>>>16)&3221225471}function Ec(b,f){return b^f+2654435769+(b<<6)+(b>>2)|0}var ca=Array.prototype.slice;a(k,g);a(c,g);a(e,g);g.isIterable=d;g.isKeyed=p;g.isIndexed=l;g.isAssociative=s;g.isOrdered=m;g.Keyed=k;g.Indexed=c;g.Set=e;var Ib="@@__IMMUTABLE_ITERABLE__@@",Jb="@@__IMMUTABLE_KEYED__@@",Kb="@@__IMMUTABLE_INDEXED__@@",sa="@@__IMMUTABLE_ORDERED__@@",B=5,Y=1<<B,P=Y-1,w={},Jc={value:!1},Wb={value:!1},La=0,$=1,ia=2,cb="function"===typeof Symbol&&
Symbol.iterator,Lb="@@iterator",Hb=cb||Lb;y.prototype.toString=function(){return"[Iterator]"};y.KEYS=La;y.VALUES=$;y.ENTRIES=ia;y.prototype.inspect=y.prototype.toSource=function(){return this.toString()};y.prototype[Hb]=function(){return this};a(K,g);K.of=function(){return K(arguments)};K.prototype.toSeq=function(){return this};K.prototype.toString=function(){return this.__toString("Seq {","}")};K.prototype.cacheResult=function(){!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),
this.size=this._cache.length);return this};K.prototype.__iterate=function(b,f){return Qb(this,b,f,!0)};K.prototype.__iterator=function(b,f){return Rb(this,b,f,!0)};a(W,K);W.prototype.toKeyedSeq=function(){return this};a(G,K);G.of=function(){return G(arguments)};G.prototype.toIndexedSeq=function(){return this};G.prototype.toString=function(){return this.__toString("Seq [","]")};G.prototype.__iterate=function(b,f){return Qb(this,b,f,!1)};G.prototype.__iterator=function(b,f){return Rb(this,b,f,!1)};
a(da,K);da.of=function(){return da(arguments)};da.prototype.toSetSeq=function(){return this};K.isSeq=eb;K.Keyed=W;K.Set=da;K.Indexed=G;var Ob="@@__IMMUTABLE_SEQ__@@";K.prototype[Ob]=!0;a(ea,G);ea.prototype.get=function(b,f){return this.has(b)?this._array[n(this,b)]:f};ea.prototype.__iterate=function(b,f){for(var a=this._array,c=a.length-1,d=0;d<=c;d++)if(!1===b(a[f?c-d:d],d,this))return d+1;return d};ea.prototype.__iterator=function(b,f){var a=this._array,c=a.length-1,d=0;return new y(function(){return d>
c?R():z(b,d,a[f?c-d++:d++])})};a(la,W);la.prototype.get=function(b,f){return void 0!==f&&!this.has(b)?f:this._object[b]};la.prototype.has=function(b){return this._object.hasOwnProperty(b)};la.prototype.__iterate=function(b,f){for(var a=this._object,c=this._keys,d=c.length-1,h=0;h<=d;h++){var m=c[f?d-h:h];if(!1===b(a[m],m,this))return h+1}return h};la.prototype.__iterator=function(b,f){var a=this._object,c=this._keys,d=c.length-1,h=0;return new y(function(){var m=c[f?d-h:h];return h++>d?R():z(b,m,
a[m])})};la.prototype[sa]=!0;a(Da,G);Da.prototype.__iterateUncached=function(b,f){if(f)return this.cacheResult().__iterate(b,f);var a=Ca(this._iterable),c=0;if(Pa(a))for(var d;!(d=a.next()).done&&!1!==b(d.value,c++,this););return c};Da.prototype.__iteratorUncached=function(b,f){if(f)return this.cacheResult().__iterator(b,f);var a=Ca(this._iterable);if(!Pa(a))return new y(R);var c=0;return new y(function(){var f=a.next();return f.done?f:z(b,c++,f.value)})};a(Ea,G);Ea.prototype.__iterateUncached=function(b,
f){if(f)return this.cacheResult().__iterate(b,f);for(var a=this._iterator,c=this._iteratorCache,d=0;d<c.length;)if(!1===b(c[d],d++,this))return d;for(var h;!(h=a.next()).done&&!(h=h.value,c[d]=h,!1===b(h,d++,this)););return d};Ea.prototype.__iteratorUncached=function(b,f){if(f)return this.cacheResult().__iterator(b,f);var a=this._iterator,c=this._iteratorCache,d=0;return new y(function(){if(d>=c.length){var f=a.next();if(f.done)return f;c[d]=f.value}return z(b,d,c[d++])})};var Pb;a(M,G);M.prototype.toString=
function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"};M.prototype.get=function(b,f){return this.has(b)?this._value:f};M.prototype.includes=function(b){return H(this._value,b)};M.prototype.slice=function(b,f){var a=this.size;return X(b,f,a)?this:new M(this._value,ba(f,a,a)-ba(b,a,0))};M.prototype.reverse=function(){return this};M.prototype.indexOf=function(b){return H(this._value,b)?0:-1};M.prototype.lastIndexOf=function(b){return H(this._value,b)?this.size:
-1};M.prototype.__iterate=function(b,f){for(var a=0;a<this.size;a++)if(!1===b(this._value,a,this))return a+1;return a};M.prototype.__iterator=function(b,f){var a=this,c=0;return new y(function(){return c<a.size?z(b,c++,a._value):R()})};M.prototype.equals=function(b){return b instanceof M?H(this._value,b._value):ib(b)};var jb;a(N,G);N.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1<this._step?" by "+this._step:"")+" ]"};N.prototype.get=function(b,
f){return this.has(b)?this._start+n(this,b)*this._step:f};N.prototype.includes=function(b){b=(b-this._start)/this._step;return 0<=b&&b<this.size&&b===Math.floor(b)};N.prototype.slice=function(b,f){if(X(b,f,this.size))return this;b=ba(b,this.size,0);f=ba(f,this.size,this.size);return f<=b?new N(0,0):new N(this.get(b,this._end),this.get(f,this._end),this._step)};N.prototype.indexOf=function(b){b-=this._start;return 0===b%this._step&&(b/=this._step,0<=b&&b<this.size)?b:-1};N.prototype.lastIndexOf=function(b){return this.indexOf(b)};
N.prototype.__iterate=function(b,f){for(var a=this.size-1,c=this._step,d=f?this._start+a*c:this._start,h=0;h<=a;h++){if(!1===b(d,h,this))return h+1;d+=f?-c:c}return h};N.prototype.__iterator=function(b,f){var a=this.size-1,c=this._step,d=f?this._start+a*c:this._start,h=0;return new y(function(){var m=d;d+=f?-c:c;return h>a?R():z(b,h++,m)})};N.prototype.equals=function(b){return b instanceof N?this._start===b._start&&this._end===b._end&&this._step===b._step:ib(this,b)};var kb;a(ma,g);a(Fa,ma);a(ta,
ma);a(Sa,ma);ma.Keyed=Fa;ma.Indexed=ta;ma.Set=Sa;var Ma="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(b,f){b|=0;f|=0;var a=b&65535,c=f&65535;return a*c+((b>>>16)*c+a*(f>>>16)<<16>>>0)|0},Sb=Object.isExtensible,Ta;try{Object.defineProperty({},"@",{}),Ta=!0}catch($c){Ta=!1}var ob="function"===typeof WeakMap,pb;ob&&(pb=new WeakMap);var qb=0,pa="__immutablehash__";"function"===typeof Symbol&&(pa=Symbol(pa));var Gc=16,Hc=255,nb=0,lb={};a(x,Fa);x.prototype.toString=function(){return this.__toString("Map {",
"}")};x.prototype.get=function(b,f){return this._root?this._root.get(0,void 0,b,f):f};x.prototype.set=function(b,f){return Vb(this,b,f)};x.prototype.setIn=function(b,f){return this.updateIn(b,w,function(){return f})};x.prototype.remove=function(b){return Vb(this,b,w)};x.prototype.deleteIn=function(b){return this.updateIn(b,function(){return w})};x.prototype.update=function(b,f,a){return 1===arguments.length?b(this):this.updateIn([b],f,a)};x.prototype.updateIn=function(b,f,a){a||(a=f,f=void 0);b=$b(this,
sc(b),f,a);return b===w?void 0:b};x.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):fa()};x.prototype.merge=function(){return Ua(this,void 0,arguments)};x.prototype.mergeWith=function(b){var f=ca.call(arguments,1);return Ua(this,b,f)};x.prototype.mergeIn=function(b){var f=ca.call(arguments,1);return this.updateIn(b,fa(),function(b){return"function"===typeof b.merge?b.merge.apply(b,f):f[f.length-1]})};x.prototype.mergeDeep=
function(){return Ua(this,Yb,arguments)};x.prototype.mergeDeepWith=function(b){var f=ca.call(arguments,1);return Ua(this,Zb(b),f)};x.prototype.mergeDeepIn=function(b){var f=ca.call(arguments,1);return this.updateIn(b,fa(),function(b){return"function"===typeof b.mergeDeep?b.mergeDeep.apply(b,f):f[f.length-1]})};x.prototype.sort=function(b){return I(za(this,b))};x.prototype.sortBy=function(b,f){return I(za(this,f,b))};x.prototype.withMutations=function(b){var f=this.asMutable();b(f);return f.wasAltered()?
f.__ensureOwner(this.__ownerID):this};x.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new F)};x.prototype.asImmutable=function(){return this.__ensureOwner()};x.prototype.wasAltered=function(){return this.__altered};x.prototype.__iterator=function(b,f){return new sb(this,b,f)};x.prototype.__iterate=function(b,f){var a=this,c=0;this._root&&this._root.iterate(function(f){c++;return b(f[1],f[0],a)},f);return c};x.prototype.__ensureOwner=function(b){return b===this.__ownerID?
this:!b?(this.__ownerID=b,this.__altered=!1,this):tb(this.size,this._root,b,this.__hash)};x.isMap=rb;var Tb="@@__IMMUTABLE_MAP__@@",v=x.prototype;v[Tb]=!0;v["delete"]=v.remove;v.removeIn=v.deleteIn;Ga.prototype.get=function(b,f,a,c){b=this.entries;f=0;for(var d=b.length;f<d;f++)if(H(a,b[f][0]))return b[f][1];return c};Ga.prototype.update=function(b,f,a,c,d,m,e){a=d===w;f=this.entries;for(var l=0,p=f.length;l<p&&!H(c,f[l][0]);l++);var g=l<p;if(g?f[l][1]===d:a)return this;h(e);(a||!g)&&h(m);if(!(a&&
1===f.length)){if(!g&&!a&&f.length>=Xc){b||(b=new F);c=new ga(b,S(c),[c,d]);for(d=0;d<f.length;d++)m=f[d],c=c.update(b,0,void 0,m[0],m[1]);return c}f=(m=b&&b===this.ownerID)?f:t(f);g?a?l===p-1?f.pop():f[l]=f.pop():f[l]=[c,d]:f.push([c,d]);return m?(this.entries=f,this):new Ga(b,f)}};ua.prototype.get=function(b,f,a,c){void 0===f&&(f=S(a));var d=1<<((0===b?f:f>>>b)&P),h=this.bitmap;return 0===(h&d)?c:this.nodes[ac(h&d-1)].get(b+B,f,a,c)};ua.prototype.update=function(b,f,a,c,d,h,m){void 0===a&&(a=S(c));
var e=(0===f?a:a>>>f)&P,l=1<<e,p=this.bitmap,g=0!==(p&l);if(!g&&d===w)return this;var s=ac(p&l-1),k=this.nodes,C=g?k[s]:void 0;f=ub(C,b,f+B,a,c,d,h,m);if(f===C)return this;if(!g&&f&&k.length>=Yc){s=p;l=0;g=Array(Y);for(p=0;0!==s;p++,s>>>=1)g[p]=s&1?k[l++]:void 0;g[e]=f;return new Ha(b,l+1,g)}if(g&&!f&&2===k.length&&(k[s^1].constructor===ga||k[s^1].constructor===qa))return k[s^1];if(g&&f&&1===k.length&&(f.constructor===ga||f.constructor===qa))return f;e=b&&b===this.ownerID;l=g?f?p:p^l:p|l;if(g)if(f)k=
e?k:t(k),k[s]=f;else if(f=k.length-1,e&&s===f)k.pop();else{g=Array(f);for(C=p=0;C<f;C++)C===s&&(p=1),g[C]=k[C+p];k=g}else if(g=k.length+1,e&&s+1===g)k[s]=f;else{p=Array(g);for(a=C=0;a<g;a++)a===s?(p[a]=f,C=-1):p[a]=k[a+C];k=p}return e?(this.bitmap=l,this.nodes=k,this):new ua(b,l,k)};Ha.prototype.get=function(b,a,c,d){void 0===a&&(a=S(c));var h=this.nodes[(0===b?a:a>>>b)&P];return h?h.get(b+B,a,c,d):d};Ha.prototype.update=function(b,a,c,d,h,m,e){void 0===c&&(c=S(d));var l=(0===a?c:c>>>a)&P,p=this.nodes,
g=p[l];if(h===w&&!g)return this;a=ub(g,b,a+B,c,d,h,m,e);if(a===g)return this;c=this.count;if(g){if(!a&&(c--,c<Zc)){a=g=0;c=Array(c);d=0;h=1;for(m=p.length;d<m;d++,h<<=1)e=p[d],void 0!==e&&d!==l&&(g|=h,c[a++]=e);return new ua(b,g,c)}}else c++;p=(g=b&&b===this.ownerID)?p:t(p);p[l]=a;return g?(this.count=c,this.nodes=p,this):new Ha(b,c,p)};qa.prototype.get=function(b,a,c,d){b=this.entries;a=0;for(var h=b.length;a<h;a++)if(H(c,b[a][0]))return b[a][1];return d};qa.prototype.update=function(b,a,c,d,m,e,
l){void 0===c&&(c=S(d));var p=m===w;if(c!==this.keyHash){if(p)return this;h(l);h(e);return vb(this,b,a,c,[d,m])}var g=this.entries;a=0;for(c=g.length;a<c&&!H(d,g[a][0]);a++);var s=a<c;if(s?g[a][1]===m:p)return this;h(l);(p||!s)&&h(e);if(p&&2===c)return new ga(b,this.keyHash,g[a^1]);l=(e=b&&b===this.ownerID)?g:t(g);s?p?a===c-1?l.pop():l[a]=l.pop():l[a]=[d,m]:l.push([d,m]);return e?(this.entries=l,this):new qa(b,this.keyHash,l)};ga.prototype.get=function(b,a,c,d){return H(c,this.entry[0])?this.entry[1]:
d};ga.prototype.update=function(b,a,c,d,m,e,l){c=m===w;var p=H(d,this.entry[0]);if(p?m===this.entry[1]:c)return this;h(l);if(c)h(e);else{if(p)return b&&b===this.ownerID?(this.entry[1]=m,this):new ga(b,this.keyHash,[d,m]);h(e);return vb(this,b,a,S(d),[d,m])}};Ga.prototype.iterate=qa.prototype.iterate=function(b,a){for(var c=this.entries,d=0,h=c.length-1;d<=h;d++)if(!1===b(c[a?h-d:d]))return!1};ua.prototype.iterate=Ha.prototype.iterate=function(b,a){for(var c=this.nodes,d=0,h=c.length-1;d<=h;d++){var m=
c[a?h-d:d];if(m&&!1===m.iterate(b,a))return!1}};ga.prototype.iterate=function(b,a){return b(this.entry)};a(sb,y);sb.prototype.next=function(){for(var b=this._type,a=this._stack;a;){var c=a.node,d=a.index++,h;if(c.entry){if(0===d)return z(b,c.entry[0],c.entry[1])}else if(c.entries){if(h=c.entries.length-1,d<=h)return z(b,c.entries[this._reverse?h-d:d][0],c.entries[this._reverse?h-d:d][1])}else if(h=c.nodes.length-1,d<=h){if(c=c.nodes[this._reverse?h-d:d]){if(c.entry)return z(b,c.entry[0],c.entry[1]);
a=this._stack={node:c,index:0,__prev:a}}continue}a=this._stack=this._stack.__prev}return R()};var Ub,Xc=Y/4,Yc=Y/2,Zc=Y/4;a(D,ta);D.of=function(){return this(arguments)};D.prototype.toString=function(){return this.__toString("List [","]")};D.prototype.get=function(b,a){b=n(this,b);if(0<=b&&b<this.size){b+=this._origin;var c=fc(this,b);return c&&c.array[b&P]}return a};D.prototype.set=function(b,a){return Kc(this,b,a)};D.prototype.remove=function(b){return!this.has(b)?this:0===b?this.shift():b===this.size-
1?this.pop():this.splice(b,1)};D.prototype.insert=function(b,a){return this.splice(b,0,a)};D.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=B,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):wb()};D.prototype.push=function(){var b=arguments,a=this.size;return this.withMutations(function(c){oa(c,0,a+b.length);for(var d=0;d<b.length;d++)c.set(a+d,b[d])})};D.prototype.pop=function(){return oa(this,0,-1)};D.prototype.unshift=
function(){var b=arguments;return this.withMutations(function(a){oa(a,-b.length);for(var c=0;c<b.length;c++)a.set(c,b[c])})};D.prototype.shift=function(){return oa(this,1)};D.prototype.merge=function(){return Va(this,void 0,arguments)};D.prototype.mergeWith=function(b){var a=ca.call(arguments,1);return Va(this,b,a)};D.prototype.mergeDeep=function(){return Va(this,Yb,arguments)};D.prototype.mergeDeepWith=function(b){var a=ca.call(arguments,1);return Va(this,Zb(b),a)};D.prototype.setSize=function(b){return oa(this,
0,b)};D.prototype.slice=function(b,a){var c=this.size;return X(b,a,c)?this:oa(this,ba(b,c,0),ba(a,c,c))};D.prototype.__iterator=function(b,a){var c=0,d=dc(this,a);return new y(function(){var a=d();return a===Ja?R():z(b,c++,a)})};D.prototype.__iterate=function(b,a){for(var c=0,d=dc(this,a),h;(h=d())!==Ja&&!1!==b(h,c++,this););return c};D.prototype.__ensureOwner=function(b){return b===this.__ownerID?this:!b?(this.__ownerID=b,this):Ia(this._origin,this._capacity,this._level,this._root,this._tail,b,this.__hash)};
D.isList=bc;var cc="@@__IMMUTABLE_LIST__@@",Q=D.prototype;Q[cc]=!0;Q["delete"]=Q.remove;Q.setIn=v.setIn;Q.deleteIn=Q.removeIn=v.removeIn;Q.update=v.update;Q.updateIn=v.updateIn;Q.mergeIn=v.mergeIn;Q.mergeDeepIn=v.mergeDeepIn;Q.withMutations=v.withMutations;Q.asMutable=v.asMutable;Q.asImmutable=v.asImmutable;Q.wasAltered=v.wasAltered;na.prototype.removeBefore=function(b,a,c){if(c===a?1<<a:0===this.array.length)return this;var d=c>>>a&P;if(d>=this.array.length)return new na([],b);var h=0===d,m;if(0<
a){var e=this.array[d];m=e&&e.removeBefore(b,a-B,c);if(m===e&&h)return this}if(h&&!m)return this;b=va(this,b);if(!h)for(h=0;h<d;h++)b.array[h]=void 0;m&&(b.array[d]=m);return b};na.prototype.removeAfter=function(b,a,c){if(c===(a?1<<a:0)||0===this.array.length)return this;var d=c-1>>>a&P;if(d>=this.array.length)return this;var h;if(0<a){var m=this.array[d];h=m&&m.removeAfter(b,a-B,c);if(h===m&&d===this.array.length-1)return this}b=va(this,b);b.array.splice(d+1);h&&(b.array[d]=h);return b};var Ja={},
ec;a(I,x);I.of=function(){return this(arguments)};I.prototype.toString=function(){return this.__toString("OrderedMap {","}")};I.prototype.get=function(b,a){var c=this._map.get(b);return void 0!==c?this._list.get(c)[1]:a};I.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wa()};I.prototype.set=function(b,a){return ic(this,b,a)};I.prototype.remove=function(b){return ic(this,b,w)};I.prototype.wasAltered=function(){return this._map.wasAltered()||
this._list.wasAltered()};I.prototype.__iterate=function(b,a){var c=this;return this._list.__iterate(function(a){return a&&b(a[1],a[0],c)},a)};I.prototype.__iterator=function(b,a){return this._list.fromEntrySeq().__iterator(b,a)};I.prototype.__ensureOwner=function(b){if(b===this.__ownerID)return this;var a=this._map.__ensureOwner(b),c=this._list.__ensureOwner(b);return!b?(this.__ownerID=b,this._map=a,this._list=c,this):yb(a,c,b,this.__hash)};I.isOrderedMap=gc;I.prototype[sa]=!0;I.prototype["delete"]=
I.prototype.remove;var hc;a(Z,W);Z.prototype.get=function(b,a){return this._iter.get(b,a)};Z.prototype.has=function(b){return this._iter.has(b)};Z.prototype.valueSeq=function(){return this._iter.valueSeq()};Z.prototype.reverse=function(){var b=this,a=Ab(this,!0);this._useKeys||(a.valueSeq=function(){return b._iter.toSeq().reverse()});return a};Z.prototype.map=function(b,a){var c=this,d=kc(this,b,a);this._useKeys||(d.valueSeq=function(){return c._iter.toSeq().map(b,a)});return d};Z.prototype.__iterate=
function(b,a){var c=this,d;return this._iter.__iterate(this._useKeys?function(a,f){return b(a,f,c)}:(d=a?rc(this):0,function(h){return b(h,a?--d:d++,c)}),a)};Z.prototype.__iterator=function(b,a){if(this._useKeys)return this._iter.__iterator(b,a);var c=this._iter.__iterator($,a),d=a?rc(this):0;return new y(function(){var h=c.next();return h.done?h:z(b,a?--d:d++,h.value,h)})};Z.prototype[sa]=!0;a(wa,G);wa.prototype.includes=function(b){return this._iter.includes(b)};wa.prototype.__iterate=function(b,
a){var c=this,d=0;return this._iter.__iterate(function(a){return b(a,d++,c)},a)};wa.prototype.__iterator=function(b,a){var c=this._iter.__iterator($,a),d=0;return new y(function(){var a=c.next();return a.done?a:z(b,d++,a.value,a)})};a(xa,da);xa.prototype.has=function(b){return this._iter.includes(b)};xa.prototype.__iterate=function(b,a){var c=this;return this._iter.__iterate(function(a){return b(a,a,c)},a)};xa.prototype.__iterator=function(b,a){var c=this._iter.__iterator($,a);return new y(function(){var a=
c.next();return a.done?a:z(b,a.value,a.value,a)})};a(ya,W);ya.prototype.entrySeq=function(){return this._iter.toSeq()};ya.prototype.__iterate=function(b,a){var c=this;return this._iter.__iterate(function(a){if(a){qc(a);var f=d(a);return b(f?a.get(1):a[1],f?a.get(0):a[0],c)}},a)};ya.prototype.__iterator=function(b,a){var c=this._iter.__iterator($,a);return new y(function(){for(;;){var a=c.next();if(a.done)return a;var f=a.value;if(f){qc(f);var h=d(f);return z(b,h?f.get(0):f[0],h?f.get(1):f[1],a)}}})};
wa.prototype.cacheResult=Z.prototype.cacheResult=xa.prototype.cacheResult=ya.prototype.cacheResult=zb;a(U,Fa);U.prototype.toString=function(){return this.__toString((this._name||this.constructor.name||"Record")+" {","}")};U.prototype.has=function(b){return this._defaultValues.hasOwnProperty(b)};U.prototype.get=function(b,a){if(!this.has(b))return a;var c=this._defaultValues[b];return this._map?this._map.get(b,c):c};U.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),
this;var b=this.constructor;return b._empty||(b._empty=Ya(this,fa()))};U.prototype.set=function(b,a){if(!this.has(b))throw Error('Cannot set unknown key "'+b+'" on '+(this._name||this.constructor.name||"Record"));var c=this._map&&this._map.set(b,a);return this.__ownerID||c===this._map?this:Ya(this,c)};U.prototype.remove=function(b){if(!this.has(b))return this;b=this._map&&this._map.remove(b);return this.__ownerID||b===this._map?this:Ya(this,b)};U.prototype.wasAltered=function(){return this._map.wasAltered()};
U.prototype.__iterator=function(b,a){var c=this;return k(this._defaultValues).map(function(b,a){return c.get(a)}).__iterator(b,a)};U.prototype.__iterate=function(b,a){var c=this;return k(this._defaultValues).map(function(b,a){return c.get(a)}).__iterate(b,a)};U.prototype.__ensureOwner=function(b){if(b===this.__ownerID)return this;var a=this._map&&this._map.__ensureOwner(b);return!b?(this.__ownerID=b,this._map=a,this):Ya(this,a,b)};var L=U.prototype;L["delete"]=L.remove;L.deleteIn=L.removeIn=v.removeIn;
L.merge=v.merge;L.mergeWith=v.mergeWith;L.mergeIn=v.mergeIn;L.mergeDeep=v.mergeDeep;L.mergeDeepWith=v.mergeDeepWith;L.mergeDeepIn=v.mergeDeepIn;L.setIn=v.setIn;L.update=v.update;L.updateIn=v.updateIn;L.withMutations=v.withMutations;L.asMutable=v.asMutable;L.asImmutable=v.asImmutable;a(E,Sa);E.of=function(){return this(arguments)};E.fromKeys=function(b){return this(k(b).keySeq())};E.prototype.toString=function(){return this.__toString("Set {","}")};E.prototype.has=function(b){return this._map.has(b)};
E.prototype.add=function(b){return Fb(this,this._map.set(b,!0))};E.prototype.remove=function(b){return Fb(this,this._map.remove(b))};E.prototype.clear=function(){return Fb(this,this._map.clear())};E.prototype.union=function(){var b=ca.call(arguments,0),b=b.filter(function(b){return 0!==b.size});return 0===b.length?this:0===this.size&&!this.__ownerID&&1===b.length?this.constructor(b[0]):this.withMutations(function(a){for(var c=0;c<b.length;c++)e(b[c]).forEach(function(b){return a.add(b)})})};E.prototype.intersect=
function(){var b=ca.call(arguments,0);if(0===b.length)return this;var b=b.map(function(b){return e(b)}),a=this;return this.withMutations(function(c){a.forEach(function(a){b.every(function(b){return b.includes(a)})||c.remove(a)})})};E.prototype.subtract=function(){var b=ca.call(arguments,0);if(0===b.length)return this;var b=b.map(function(b){return e(b)}),a=this;return this.withMutations(function(c){a.forEach(function(a){b.some(function(b){return b.includes(a)})&&c.remove(a)})})};E.prototype.merge=
function(){return this.union.apply(this,arguments)};E.prototype.mergeWith=function(b){var a=ca.call(arguments,1);return this.union.apply(this,a)};E.prototype.sort=function(b){return ja(za(this,b))};E.prototype.sortBy=function(b,a){return ja(za(this,a,b))};E.prototype.wasAltered=function(){return this._map.wasAltered()};E.prototype.__iterate=function(b,a){var c=this;return this._map.__iterate(function(a,d){return b(d,d,c)},a)};E.prototype.__iterator=function(b,a){return this._map.map(function(b,a){return a}).__iterator(b,
a)};E.prototype.__ensureOwner=function(b){if(b===this.__ownerID)return this;var a=this._map.__ensureOwner(b);return!b?(this.__ownerID=b,this._map=a,this):this.__make(a,b)};E.isSet=Eb;var tc="@@__IMMUTABLE_SET__@@",V=E.prototype;V[tc]=!0;V["delete"]=V.remove;V.mergeDeep=V.merge;V.mergeDeepWith=V.mergeWith;V.withMutations=v.withMutations;V.asMutable=v.asMutable;V.asImmutable=v.asImmutable;V.__empty=Db;V.__make=uc;var vc;a(ja,E);ja.of=function(){return this(arguments)};ja.fromKeys=function(b){return this(k(b).keySeq())};
ja.prototype.toString=function(){return this.__toString("OrderedSet {","}")};ja.isOrderedSet=wc;var Za=ja.prototype;Za[sa]=!0;Za.__empty=Gb;Za.__make=xc;var yc;a(J,ta);J.of=function(){return this(arguments)};J.prototype.toString=function(){return this.__toString("Stack [","]")};J.prototype.get=function(b,a){var c=this._head;for(b=n(this,b);c&&b--;)c=c.next;return c?c.value:a};J.prototype.peek=function(){return this._head&&this._head.value};J.prototype.push=function(){if(0===arguments.length)return this;
for(var b=this.size+arguments.length,a=this._head,c=arguments.length-1;0<=c;c--)a={value:arguments[c],next:a};return this.__ownerID?(this.size=b,this._head=a,this.__hash=void 0,this.__altered=!0,this):ra(b,a)};J.prototype.pushAll=function(b){b=c(b);if(0===b.size)return this;T(b.size);var a=this.size,d=this._head;b.reverse().forEach(function(b){a++;d={value:b,next:d}});return this.__ownerID?(this.size=a,this._head=d,this.__hash=void 0,this.__altered=!0,this):ra(a,d)};J.prototype.pop=function(){return this.slice(1)};
J.prototype.unshift=function(){return this.push.apply(this,arguments)};J.prototype.unshiftAll=function(b){return this.pushAll(b)};J.prototype.shift=function(){return this.pop.apply(this,arguments)};J.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this.__hash=this._head=void 0,this.__altered=!0,this):Aa||(Aa=ra(0))};J.prototype.slice=function(b,a){if(X(b,a,this.size))return this;var c=ba(b,this.size,0);if(ba(a,this.size,this.size)!==this.size)return ta.prototype.slice.call(this,
b,a);for(var d=this.size-c,h=this._head;c--;)h=h.next;return this.__ownerID?(this.size=d,this._head=h,this.__hash=void 0,this.__altered=!0,this):ra(d,h)};J.prototype.__ensureOwner=function(b){return b===this.__ownerID?this:!b?(this.__ownerID=b,this.__altered=!1,this):ra(this.size,this._head,b,this.__hash)};J.prototype.__iterate=function(b,a){if(a)return this.reverse().__iterate(b);for(var c=0,d=this._head;d&&!1!==b(d.value,c++,this);)d=d.next;return c};J.prototype.__iterator=function(b,a){if(a)return this.reverse().__iterator(b);
var c=0,d=this._head;return new y(function(){if(d){var a=d.value;d=d.next;return z(b,c++,a)}return R()})};J.isStack=zc;var Ac="@@__IMMUTABLE_STACK__@@",Ba=J.prototype;Ba[Ac]=!0;Ba.withMutations=v.withMutations;Ba.asMutable=v.asMutable;Ba.asImmutable=v.asImmutable;Ba.wasAltered=v.wasAltered;var Aa;g.Iterator=y;ka(g,{toArray:function(){T(this.size);var b=Array(this.size||0);this.valueSeq().__iterate(function(a,c){b[c]=a});return b},toIndexedSeq:function(){return new wa(this)},toJS:function(){return this.toSeq().map(function(b){return b&&
"function"===typeof b.toJS?b.toJS():b}).__toJS()},toJSON:function(){return this.toSeq().map(function(b){return b&&"function"===typeof b.toJSON?b.toJSON():b}).__toJS()},toKeyedSeq:function(){return new Z(this,!0)},toMap:function(){return x(this.toKeyedSeq())},toObject:function(){T(this.size);var b={};this.__iterate(function(a,c){b[c]=a});return b},toOrderedMap:function(){return I(this.toKeyedSeq())},toOrderedSet:function(){return ja(p(this)?this.valueSeq():this)},toSet:function(){return E(p(this)?
this.valueSeq():this)},toSetSeq:function(){return new xa(this)},toSeq:function(){return l(this)?this.toIndexedSeq():p(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return J(p(this)?this.valueSeq():this)},toList:function(){return D(p(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(b,a){return 0===this.size?b+a:b+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+a},concat:function(){var b=ca.call(arguments,0);return A(this,Oc(this,b))},
includes:function(b){return this.some(function(a){return H(a,b)})},entries:function(){return this.__iterator(ia)},every:function(b,a){T(this.size);var c=!0;this.__iterate(function(d,h,m){if(!b.call(a,d,h,m))return c=!1});return c},filter:function(b,a){return A(this,lc(this,b,a,!0))},find:function(b,a,c){return(b=this.findEntry(b,a))?b[1]:c},findEntry:function(b,a){var c;this.__iterate(function(d,h,m){if(b.call(a,d,h,m))return c=[h,d],!1});return c},findLastEntry:function(b,a){return this.toSeq().reverse().findEntry(b,
a)},forEach:function(b,a){T(this.size);return this.__iterate(a?b.bind(a):b)},join:function(b){T(this.size);b=void 0!==b?""+b:",";var a="",c=!0;this.__iterate(function(d){c?c=!1:a+=b;a+=null!==d&&void 0!==d?d.toString():""});return a},keys:function(){return this.__iterator(La)},map:function(b,a){return A(this,kc(this,b,a))},reduce:function(b,a,c){T(this.size);var d,h;2>arguments.length?h=!0:d=a;this.__iterate(function(a,f,m){h?(h=!1,d=a):d=b.call(c,d,a,f,m)});return d},reduceRight:function(b,a,c){var d=
this.toKeyedSeq().reverse();return d.reduce.apply(d,arguments)},reverse:function(){return A(this,Ab(this,!0))},slice:function(b,a){return A(this,Bb(this,b,a,!0))},some:function(b,a){return!this.every($a(b),a)},sort:function(b){return A(this,za(this,b))},values:function(){return this.__iterator($)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(b,a){return C(b?this.toSeq().filter(b,a):this)},countBy:function(b,
a){return Lc(this,b,a)},equals:function(b){return ib(this,b)},entrySeq:function(){var b=this;if(b._cache)return new ea(b._cache);var a=b.toSeq().map(Tc).toIndexedSeq();a.fromEntrySeq=function(){return b.toSeq()};return a},filterNot:function(b,a){return this.filter($a(b),a)},findLast:function(b,a,c){return this.toKeyedSeq().reverse().find(b,a,c)},first:function(){return this.find(r)},flatMap:function(b,a){return A(this,Pc(this,b,a))},flatten:function(b){return A(this,nc(this,b,!0))},fromEntrySeq:function(){return new ya(this)},
get:function(b,a){return this.find(function(a,c){return H(c,b)},void 0,a)},getIn:function(b,a){for(var c=this,d=sc(b),h;!(h=d.next()).done;)if(h=h.value,c=c&&c.get?c.get(h,w):w,c===w)return a;return c},groupBy:function(b,a){return Mc(this,b,a)},has:function(b){return this.get(b,w)!==w},hasIn:function(b){return this.getIn(b,w)!==w},isSubset:function(b){b="function"===typeof b.includes?b:g(b);return this.every(function(a){return b.includes(a)})},isSuperset:function(b){b="function"===typeof b.isSubset?
b:g(b);return b.isSubset(this)},keySeq:function(){return this.toSeq().map(Sc).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(b){return Xa(this,b)},maxBy:function(b,a){return Xa(this,a,b)},min:function(b){return Xa(this,b?Bc(b):Dc)},minBy:function(b,a){return Xa(this,a?Bc(a):Dc,b)},rest:function(){return this.slice(1)},skip:function(b){return this.slice(Math.max(0,b))},skipLast:function(b){return A(this,this.toSeq().reverse().skip(b).reverse())},skipWhile:function(b,
a){return A(this,mc(this,b,a,!0))},skipUntil:function(b,a){return this.skipWhile($a(b),a)},sortBy:function(b,a){return A(this,za(this,a,b))},take:function(b){return this.slice(0,Math.max(0,b))},takeLast:function(b){return A(this,this.toSeq().reverse().take(b).reverse())},takeWhile:function(b,a){return A(this,Nc(this,b,a))},takeUntil:function(b,a){return this.takeWhile($a(b),a)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Vc(this))}});var O=
g.prototype;O[Ib]=!0;O[Hb]=O.values;O.__toJS=O.toArray;O.__toStringMapper=Cc;O.inspect=O.toSource=function(){return this.toString()};O.chain=O.flatMap;O.contains=O.includes;(function(){try{Object.defineProperty(O,"length",{get:function(){if(!g.noLengthWarning){var b;try{throw Error();}catch(a){b=a.stack}if(-1===b.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+
b),this.size}}})}catch(b){}})();ka(k,{flip:function(){return A(this,jc(this))},findKey:function(b,a){var c=this.findEntry(b,a);return c&&c[0]},findLastKey:function(b,a){return this.toSeq().reverse().findKey(b,a)},keyOf:function(b){return this.findKey(function(a){return H(a,b)})},lastKeyOf:function(b){return this.findLastKey(function(a){return H(a,b)})},mapEntries:function(b,a){var c=this,d=0;return A(this,this.toSeq().map(function(h,m){return b.call(a,[m,h],d++,c)}).fromEntrySeq())},mapKeys:function(b,
a){var c=this;return A(this,this.toSeq().flip().map(function(d,h){return b.call(a,d,h,c)}).flip())}});var ab=k.prototype;ab[Jb]=!0;ab[Hb]=O.entries;ab.__toJS=O.toObject;ab.__toStringMapper=function(b,a){return JSON.stringify(a)+": "+Cc(b)};ka(c,{toKeyedSeq:function(){return new Z(this,!1)},filter:function(b,a){return A(this,lc(this,b,a,!1))},findIndex:function(b,a){var c=this.findEntry(b,a);return c?c[0]:-1},indexOf:function(b){b=this.toKeyedSeq().keyOf(b);return void 0===b?-1:b},lastIndexOf:function(b){b=
this.toKeyedSeq().reverse().keyOf(b);return void 0===b?-1:b},reverse:function(){return A(this,Ab(this,!1))},slice:function(b,a){return A(this,Bb(this,b,a,!1))},splice:function(b,a){var c=arguments.length;a=Math.max(a|0,0);if(0===c||2===c&&!a)return this;var d=0>b?this.count():this.size;b=ba(b,d,0);d=this.slice(0,b);return A(this,1===c?d:d.concat(t(arguments,2),this.slice(b+a)))},findLastIndex:function(b,a){var c=this.toKeyedSeq().findLastKey(b,a);return void 0===c?-1:c},first:function(){return this.get(0)},
flatten:function(b){return A(this,nc(this,b,!1))},get:function(b,a){b=n(this,b);return 0>b||Infinity===this.size||void 0!==this.size&&b>this.size?a:this.find(function(a,c){return c===b},void 0,a)},has:function(b){b=n(this,b);return 0<=b&&(void 0!==this.size?Infinity===this.size||b<this.size:-1!==this.indexOf(b))},interpose:function(b){return A(this,Qc(this,b))},interleave:function(){var b=[this].concat(t(arguments)),a=Cb(this.toSeq(),G.of,b),c=a.flatten(!0);a.size&&(c.size=a.size*b.length);return A(this,
c)},last:function(){return this.get(-1)},skipWhile:function(b,a){return A(this,mc(this,b,a,!1))},zip:function(){var b=[this].concat(t(arguments));return A(this,Cb(this,Uc,b))},zipWith:function(b){var a=t(arguments);a[0]=this;return A(this,Cb(this,b,a))}});c.prototype[Kb]=!0;c.prototype[sa]=!0;ka(e,{get:function(b,a){return this.has(b)?b:a},includes:function(b){return this.has(b)},keySeq:function(){return this.valueSeq()}});e.prototype.has=O.includes;ka(W,k.prototype);ka(G,c.prototype);ka(da,e.prototype);
ka(Fa,k.prototype);ka(ta,c.prototype);ka(Sa,e.prototype);return{Iterable:g,Seq:K,Collection:ma,Map:x,OrderedMap:I,List:D,Stack:J,Set:E,OrderedSet:ja,Record:U,Range:N,Repeat:M,is:H,fromJS:fb}})},21:function(r,n,a){r.exports={"default":a(233),__esModule:!0}},41:function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var q=(a=a(18))&&a.__esModule?a:{"default":a};n["default"]=function(a){a.config={setState:function(a,c){return this.state=c},getState:function(a){return a},onSerialize:function(a){return a.toJS()},
onDeserialize:function(a){return q["default"].fromJS(a)}};return a};r.exports=n["default"]},46:function(r,n){function a(a,g){g.forEach(function(g){Object.keys(Object(g)).forEach(function(c){a(c,g[c])})})}Object.defineProperty(n,"__esModule",{value:!0});n.isPromise=function(a){return!!a&&("object"===typeof a||"function"===typeof a)&&"function"===typeof a.then};n.eachObject=a;n.assign=function(q){for(var g=arguments.length,k=Array(1<g?g-1:0),c=1;c<g;c++)k[c-1]=arguments[c];a(function(a,c){return q[a]=
c},k);return q};n.isFunction=function(a){return"function"===typeof a}},50:function(r,n,a){var q=a(3)["default"],g=a(2)["default"];n=a(5);a=function(){function a(){g(this,a)}q(a,[{key:"bootstrap",value:function(a){this.dispatch(a)}}]);return a}();n=n.createActions(a);window.StaticActions=n;r.exports=n},75:function(r,n,a){var q=a(3)["default"],g=a(2)["default"],k=a(17)["default"],c=a(21)["default"],e=a(160);n=a(5);var d=a(568),p=a(50),l=a(248),s=a(145),m=a(363);a=a(902);var u=a.DEFAULT_COLLECTION_CONFIGURATIONS,
h=a.DEFAULT_COLLECTION_CONFIGURATION,F=a.DEFAULT_TEMPLATE_PAGE_CONFIGURATION;a=function(){function a(){g(this,a);this.bindListeners({handleLoadTemplate:l.LOAD_TEMPLATE,staticInitialized:p.BOOTSTRAP});this.exportPublicMethods({isTemplateOwner:this.isTemplateOwner,getCollectionConfig:this.getCollectionConfig,getCustomType:this.getCustomType,getPageConfig:this.getPageConfig})}q(a,[{key:"getCollectionConfig",value:function(a){return this.getState().collectionConfigs[a]}},{key:"getCustomType",value:function(a){return this.getState().customTypes[a]}},
{key:"getPageConfig",value:function(a){return this.getState().pageConfigs[a]}},{key:"isTemplateOwner",value:function(){var a=this.getState();return a.ownerWebsiteId===a.websiteId}},{key:"staticInitialized",value:function(a){this.setTemplateData(a.template);this.demoCollections=this.processDemoCollections(a.demoCollections);this.websiteId=a.website.id}},{key:"handleLoadTemplate",value:function(a){this.waitFor(d.dispatchToken);a.error?this.error=a.response:(this.error=null,this.setTemplateData(a.template),
this.demoCollections=this.processDemoCollections(a.demoCollections))}},{key:"setTemplateData",value:function(a){a&&(this.id=a.id,this.name=a.name,this.updatedOn=a.updatedOn,this.ownerWebsiteId=a.ownerWebsiteId,this.collectionConfigs=this.processCollectionConfigs(a.collectionConfigs),this.pageConfigs=this.processPageConfigs(a.pageConfigs),this.customTypes=this.processCustomTypes(a.customTypes),this.layouts=this.processLayouts(a.layouts),this.navigations=a.navigations)}},{key:"processCollectionConfigs",
value:function(a){a.products&&(a.products=k({},u.products,a.products),a.products.acceptTypes&&0===a.products.acceptTypes.length&&(a.products.acceptTypes=u.products.acceptTypes),a.products.ordering=s.USER);a=k({},u,a);a=e(a,function(a){a=k({},h,a);!0===a.index?a.folderBehavior=m.INDEX:!0===a.folder&&(a.folderBehavior=m.NONE);return a});var c=a.folders||a.folder;c&&(c.acceptTypes=this.calculateFolderAcceptTypes(a));return a}},{key:"calculateFolderAcceptTypes",value:function(a){var d=["subscription",
"gallery-block","template-page"];return c(a).filter(function(c){return a[c].folder?!1:-1===d.indexOf(c)}).concat(["link"])}},{key:"processPageConfigs",value:function(a){return e(a,function(a){return k({},F,a)})}},{key:"processCustomTypes",value:function(){return(0>=arguments.length||void 0===arguments[0]?[]:arguments[0]).reduce(function(a,c){a[c.name]=c;return a},{})}},{key:"processDemoCollections",value:function(a){return a||[]}},{key:"processLayouts",value:function(a){return a||{}}}]);return a}();
r.exports=n.createStore(a,"TemplateStore")},88:function(r,n){function a(){}Object.defineProperty(n,"__esModule",{value:!0});n.getInternalMethods=function(a,c){var e=c?g:q,d=c?a.prototype:a;return Object.getOwnPropertyNames(d).reduce(function(a,c){if(-1!==e.indexOf(c))return a;a[c]=d[c];return a},{})};n.warn=function(a){"undefined"!==typeof console&&console.warn(new ReferenceError(a))};n.uid=function(a,c){for(var e=0,d=c;Object.hasOwnProperty.call(a,d);)d=c+String(++e);return d};n.formatAsConstant=
function(a){return a.replace(/[a-z]([A-Z])/g,function(a){return a[0]+"_"+a[1].toLowerCase()}).toUpperCase()};n.dispatchIdentity=function(a){for(var c=arguments.length,e=Array(1<c?c-1:0),d=1;d<c;d++)e[d-1]=arguments[d];this.dispatch(e.length?[a].concat(e):a)};var q=Object.getOwnPropertyNames(a),g=Object.getOwnPropertyNames(a.prototype)},102:function(r,n,a){var q=a(84),g=a(40),k=a(288);r.exports=function(a,e){var d=(g.Object||{})[a]||Object[a],p={};p[a]=e(d);q(q.S+q.F*k(function(){d(1)}),"Object",p)}},
143:function(r,n){r.exports=function(){var a=[],q=function(g){g=a.indexOf(g);0<=g&&a.splice(g,1)};return{subscribe:function(g){a.push(g);return{dispose:function(){return q(g)}}},push:function(g){a.forEach(function(a){return a(g)})},unsubscribe:q}}},144:function(r,n){r.exports={GET:1,POST:2,PUT:3,DELETE:4}},147:function(r,n,a){var q=a(3)["default"],g=a(2)["default"],k=a(24)["default"];n=a(5);var c=a(287);a=function(){function a(){g(this,a);this.generateActions("insert","insertMany")}q(a,[{key:"read",
value:function(a,e,l){var g=this;void 0===e&&(e=!1);this.dispatch(a);return c.read(a,e,l).then(function(a){return g.actions.insert(a.data)})["catch"](function(a){a=a.data;return k.reject(a.message||a)})}},{key:"readForCollection",value:function(a){var e=this;this.dispatch(a);return c.readForCollection(a).then(function(a){return e.actions.insertMany(a.data.results)})["catch"](function(a){a=a.data;return k.reject(a.message||a)})}},{key:"update",value:function(a,e){var l=this;this.dispatch(a.id);return a.field?
c.updateField(a).then(function(a){return l.actions.insert(a.data.item)})["catch"](function(a){a=a.data;return k.reject(a.message||a)}):c.update(a,e).then(function(a){a=a.data;l.actions.insert(a);return a})["catch"](function(a){a=a.data;return k.reject(a.message||a)})}},{key:"updateForCollection",value:function(a,e){var l=this;return c.updateForCollection(a,e).then(function(a){return l.actions.insert(a.data)})["catch"](function(a){a=a.data;return k.reject(a.message||a)})}},{key:"create",value:function(a,
e,l){var g=this;return c.create(a,e,l).then(function(a){a=a.data;g.actions.insert(a);return a})["catch"](function(a){a=a.data;return k.reject(a.message||a)})}},{key:"createForCollection",value:function(a,e,l){var g=this;return c.createForCollection(a,e,l).then(function(a){a=a.data;g.actions.insert(a);return a})["catch"](function(a){a=a.data;return k.reject(a.message||a)})}},{key:"delete",value:function(a,e){this.dispatch(a);return c["delete"](a,e)["catch"](function(a){a=a.data;return k.reject(a.message||
a)})}},{key:"deleteMany",value:function(a){this.dispatch(a);return c.deleteMany(a)}}]);return a}();r.exports=n.createActions(a)},155:function(r,n,a){var q=a(3)["default"],g=a(2)["default"],k=a(24)["default"];n=a(18);var c=n.Map,e=n.fromJS;n=a(5);var d=a(147);a=a(41);var p=function(){function a(){g(this,a);this.state=c();this.bindActions(d);this.exportPublicMethods({fetch:this.fetch,fetchForCollection:this.fetchForCollection,getForCollection:this.getForCollection})}q(a,[{key:"onInsert",value:function(a){this.setState(this.state.set(a.id,
e(a)))}},{key:"onInsertMany",value:function(a){var c=this.state;a.forEach(function(a){return c=c.set(a.id,e(a))});this.setState(c)}},{key:"onDelete",value:function(a){this.setState(this.state["delete"](a))}},{key:"onDeleteMany",value:function(a){this.setState(this.state.filter(function(c,d){return-1===a.indexOf(d)}))}},{key:"fetch",value:function(a,c,e){var h=this;void 0===c&&(c=!1);var l=this.getState().get(a);return l?k.resolve(l):d.read(a,c,e).then(function(){return h.getState().get(a)})}},{key:"fetchForCollection",
value:function(a){var c=this,e=this.getForCollection(a);return 0<e.size?k.resolve(e):d.readForCollection(a).then(function(){return c.getForCollection(a)})}},{key:"getForCollection",value:function(a){return this.getState().filter(function(c){return c.get("collectionId")===a})}}]);return a}();r.exports=n.createStore(a(p),"ContentItemStore")},156:function(r,n,a){function q(a){return{url:Oa[a.action].replace("{collectionId}",a.collectionId),isFallback:!0}}function g(){var a=0>=arguments.length||void 0===
arguments[0]?{}:arguments[0];if(!a.collectionId)return{url:X[a.action],isFallback:!0};if(a.parentId)return q(a);var c=C[a.collectionOrdering];if(!c)return q(a);c=c[a.recordType];return!c?q(a):{url:c[a.action].replace("{collectionId}",a.collectionId),isFallback:!1}}var k=a(12)["default"],c,e,d,p,l,s,m,u,h,F,t=a(144);n=a(93);a=a(145);var C=(m={},m[a.CHRONOLOGICAL]=(p={},p[n.TEXT]=(c={},c[t.GET]="/api/content/blogs/{collectionId}/text-posts/{id}",c[t.POST]="/api/content/blogs/{collectionId}/text-posts",
c[t.PUT]="/api/content/blogs/{collectionId}/text-posts/{id}",c[t.DELETE]="/api/content/blogs/{collectionId}/text-posts/{id}",c),p[n.IMAGE]=(e={},e[t.GET]="/api/content/blogs/{collectionId}/image-posts/{id}",e[t.POST]="/api/content/blogs/{collectionId}/image-posts",e[t.PUT]="/api/content/blogs/{collectionId}/image-posts/{id}",e[t.DELETE]="/api/content/blogs/{collectionId}/image-posts/{id}",e),p[n.VIDEO]=(d={},d[t.GET]="/api/content/blogs/{collectionId}/video-posts/{id}",d[t.POST]="/api/content/blogs/{collectionId}/video-posts",
d[t.PUT]="/api/content/blogs/{collectionId}/video-posts/{id}",d[t.DELETE]="/api/content/blogs/{collectionId}/video-posts/{id}",d),p),m[a.CALENDAR]=(s={},s[n.EVENT]=(l={},l[t.GET]="/api/content/calendars/{collectionId}/events/{id}",l[t.POST]="/api/content/calendars/{collectionId}/events",l[t.PUT]="/api/content/calendars/{collectionId}/events/{id}",l[t.DELETE]="/api/content/calendars/{collectionId}/events/{id}",l),s),m),Fc=(u={},u[a.CHRONOLOGICAL]="/api/content/blogs/{collectionId}/posts",u[a.CALENDAR]=
"/api/content/calendars/{collectionId}/events",u),Oa=(h={},h[t.GET]="/api/content-collections/{collectionId}/content-items/{id}",h[t.POST]="/api/content-collections/{collectionId}/content-items",h[t.PUT]="/api/content-collections/{collectionId}/content-items/{id}",h[t.DELETE]="/api/content-collections/{collectionId}/content-items/{id}",h),X=(F={},F[t.GET]="/api/content-items/{id}",F[t.POST]="/api/content-items",F[t.PUT]="/api/content-items/{id}",F[t.DELETE]="/api/content-items/{id}",F);r.exports=
{getTemplateForSingleItem:function(){return g(0>=arguments.length||void 0===arguments[0]?{}:arguments[0]).url},getTemplateForCollectionItems:function(a){if(!a)return"/api/content-collections/{collectionId}/content-items";a=Fc[a];return!a?"/api/content-collections/{collectionId}/content-items":a},getMainImageUploadUrl:function(){var a=g(k({},0>=arguments.length||void 0===arguments[0]?{}:arguments[0],{action:t.DELETE}));return a.isFallback?"/api/commondata/SaveMedia":a.url+"/main-image"},getMainImageDeletionUrl:function(){var a=
g(k({},0>=arguments.length||void 0===arguments[0]?{}:arguments[0],{action:t.DELETE}));return a.isFallback?"/api/commondata/ClearEmbeddedAsset":a.url+"/main-image"}}},221:function(r,n,a){var q=a(3)["default"],g=a(2)["default"],k=a(17)["default"],c=a(644),e=a(769);n=a(5);var d=a(314),p=a(248);a=function(){function a(){g(this,a)}q(a,[{key:"loadAll",value:function(){var a=this;this.dispatch();return e.loadTemplateInstallations().then(function(c){a.actions.loadSuccess(c.data)},function(c){a.actions.loadFailure(c.error)})}},
{key:"setPreviewInstallation",value:function(a,e,l){var h=this,g=k({},a,{previewInstallationId:e});c.save(a.id,g).then(function(a){p.loadTemplate.defer(l);h.dispatch(e);setTimeout(d.refresh,1E3)},function(a){})}},{key:"setLiveInstallation",value:function(a,c){var l=this;e.setLiveInstallation(a).then(function(h){p.loadTemplate.defer(c);l.dispatch(a);setTimeout(d.refresh,1E3)},function(a){})}},{key:"setHomepageCollectionId",value:function(a){var c=this;return e.setHomepageCollectionId(a).then(function(d){d=
{homepageCollectionId:a};c.dispatch(d);return d},function(d){d={homepageCollectionId:a,error:!0};c.dispatch(d);return d})}},{key:"updateInstallation",value:function(a){return e.updateInstallation(a).then(this.actions.loadAll)}},{key:"loadSuccess",value:function(a){this.dispatch(a)}},{key:"loadFailure",value:function(a){this.dispatch(a)}}]);return a}();r.exports=n.createActions(a)},229:function(r,n,a){var q=a(3)["default"],g=a(2)["default"];n=a(5);var k=a(50),c=a(221);a=function(){function a(){g(this,
a);this.templateInstallations={};this.bindListeners({handleLoadSuccess:c.LOAD_SUCCESS,handleLoadFailure:c.LOAD_FAILURE,handleStaticInitialized:k.BOOTSTRAP,handlePreviewSet:c.SET_PREVIEW_INSTALLATION,handleTemplateSet:c.SET_LIVE_INSTALLATION,handleHomepageCollectionIdSet:c.SET_HOMEPAGE_COLLECTION_ID});this.exportPublicMethods({getHomepageCollectionId:this.getHomepageCollectionId})}q(a,[{key:"getHomepageCollectionId",value:function(){return this.getState().activeInstallation?this.getState().activeInstallation.homepageCollectionId:
this.getState().homepageCollectionId}},{key:"handleStaticInitialized",value:function(a){var c=a.authenticatedAccountWebsiteSettings;this.previewInstallationId=c?c.previewInstallationId:null;this.homepageCollectionId=a.homepageCollectionId;a.templateInstallation?(this.liveInstallationId=a.templateInstallation.id,this.templateInstallations[this.liveInstallationId]=a.templateInstallation):this.liveInstallationId=null;this.updateInstallationReferences()}},{key:"updateInstallationReferences",value:function(){this.liveInstallation=
this.getTemplateInstallation(this.liveInstallationId);this.previewInstallation=null;this.previewInstallationId!==this.liveInstallationId&&(this.previewInstallation=this.getTemplateInstallation(this.previewInstallationId));this.activeInstallation=this.previewInstallation||this.liveInstallation}},{key:"getTemplateInstallation",value:function(a){return!a||!this.templateInstallations[a]?null:this.templateInstallations[a]}},{key:"handleHomepageCollectionIdSet",value:function(a){a.error||(this.homepageCollectionId=
a.homepageCollectionId,this.activeInstallation&&(this.activeInstallation.homepageCollectionId=a.homepageCollectionId))}},{key:"handlePreviewSet",value:function(a){this.previewInstallationId=a;this.updateInstallationReferences()}},{key:"handleTemplateSet",value:function(a){this.liveInstallationId=a;this.previewInstallationId=null;this.updateInstallationReferences()}},{key:"handleLoadSuccess",value:function(a){var c={};a.forEach(function(a){this[a.id]=a},c);this.maintainMissingInstallation(c,this.liveInstallationId);
this.maintainMissingInstallation(c,this.previewInstallationId);this.templateInstallations=c;this.updateInstallationReferences()}},{key:"maintainMissingInstallation",value:function(a,c){c&&!a[c]&&(a[c]=this.templateInstallations[c])}},{key:"handleLoadFailure",value:function(){console.error("Unable to load installations")}}]);return a}();r.exports=n.createStore(a,"TemplateInstallationsStore")},232:function(r,n,a){var q=a(21)["default"];r.exports=function(a){var k={};q(a).map(function(c){var e=a[c];
"object"===typeof e?k[c]=JSON.stringify(e):void 0!==e&&(k[c]=e)});return k}},233:function(r,n,a){a(235);r.exports=a(40).Object.keys},235:function(r,n,a){var q=a(178);a(102)("keys",function(a){return function(k){return a(q(k))}})},248:function(r,n,a){var q=a(3)["default"],g=a(2)["default"];n=a(5);var k=a(768);a=function(){function a(){g(this,a)}q(a,[{key:"loadTemplate",value:function(a){var c=this;k.getTemplate(a).then(function(a){c.dispatch(a.data)},function(a){c.dispatch({error:!0,response:a})})}}]);
return a}();r.exports=n.createActions(a)},264:function(r,n,a){function q(a){if(a&&a.__esModule)return a;var c={};if(null!=a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);c["default"]=a;return c}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function a(c,d){for(var e=0;e<d.length;e++){var g=d[e];g.enumerable=g.enumerable||!1;g.configurable=!0;"value"in g&&(g.writable=!0);Object.defineProperty(c,g.key,g)}}return function(c,d,e){d&&a(c.prototype,d);e&&a(c,e);
return c}}();n["default"]=function(a,l,g,m,k){var h=e.uid(a._actionsRegistry,l+"."+g);a._actionsRegistry[h]=1;var F={id:h,namespace:l,name:g},t=new d(a,h,m,k,F),C=function(c){return a.dispatch(h,c,F)};m=function(){t.dispatched=!1;var a=t._dispatch.apply(t,arguments);!t.dispatched&&(void 0!==a&&!c.isPromise(a))&&(c.isFunction(a)?a(C):C(a));return a};m.defer=function(){for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];setTimeout(function(){t._dispatch.apply(null,c)})};m.id=h;m.data=
F;l=a.actions[l];g=e.uid(l,g);return l[g]=m};var k=a(46),c=q(k);a=a(88);var e=q(a),d=function(){function a(c,d,e,g,h){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.id=d;this._dispatch=e.bind(this);this.actions=g;this.actionDetails=h;this.alt=c}g(a,[{key:"dispatch",value:function(a){this.dispatched=!0;this.alt.dispatch(this.id,a,this.actionDetails)}}]);return a}();r.exports=n["default"]},265:function(r,n,a){function q(a){if(a&&a.__esModule)return a;var c={};
if(null!=a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);c["default"]=a;return c}function g(a){if(Array.isArray(a)){for(var c=0,d=Array(a.length);c<a.length;c++)d[c]=a[c];return d}return Array.from(a)}function k(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(a.__proto__=c)}function c(a,
c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(n,"__esModule",{value:!0});var e=Function.prototype.bind,d=function(){function a(c,d){for(var h=0;h<d.length;h++){var e=d[h];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(c,e.key,e)}}return function(c,d,h){d&&a(c.prototype,d);h&&a(c,h);return c}}(),p=a(279),l=a(269),s=q(l),l=a(46),m=q(l),l=a(268),u=q(l),l=a(88),h=q(l),F=(a=a(264))&&a.__esModule?
a:{"default":a};a=function(){function a(d){d=void 0===d?{}:d;c(this,a);this.config=d;this.serialize=d.serialize||JSON.stringify;this.deserialize=d.deserialize||JSON.parse;this.dispatcher=d.dispatcher||new p.Dispatcher;this.batchingFunction=d.batchingFunction||function(a){return a()};this.actions={global:{}};this.stores={};this.storeTransforms=d.storeTransforms||[];this.trapAsync=!1;this._actionsRegistry={};this._initSnapshot={};this._lastSnapshot={}}d(a,[{key:"dispatch",value:function(a,c,d){var h=
this;this.batchingFunction(function(){var e=Math.random().toString(18).substr(2,16);return h.dispatcher.dispatch({id:e,action:a,data:c,details:d})})}},{key:"createUnsavedStore",value:function(a){var c=a.displayName||"";u.createStoreConfig(this.config,a);for(var d=u.transformStore(this.storeTransforms,a),h=arguments.length,e=Array(1<h?h-1:0),l=1;l<h;l++)e[l-1]=arguments[l];return m.isFunction(d)?u.createStoreFromClass.apply(u,[this,d,c].concat(e)):u.createStoreFromObject(this,d,c)}},{key:"createStore",
value:function(a,c){var d=c||a.displayName||a.name||"";u.createStoreConfig(this.config,a);var e=u.transformStore(this.storeTransforms,a);if(this.stores[d]||!d)this.stores[d]?h.warn("A store named "+d+" already exists, double check your store names or pass in your own custom identifier for each store"):h.warn("Store name was not specified"),d=h.uid(this.stores,d);for(var l=arguments.length,g=Array(2<l?l-2:0),p=2;p<l;p++)g[p-2]=arguments[p];e=m.isFunction(e)?u.createStoreFromClass.apply(u,[this,e,d].concat(g)):
u.createStoreFromObject(this,e,d);this.stores[d]=e;s.saveInitialSnapshot(this,d);return e}},{key:"generateActions",value:function(){for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];return this.createActions(c.reduce(function(a,c){a[c]=h.dispatchIdentity;return a},{name:"global"}))}},{key:"createAction",value:function(a,c,d){return(0,F["default"])(this,"global",a,c,d)}},{key:"createActions",value:function(a){var l=arguments,p=this,s=void 0===arguments[1]?{}:arguments[1],t={},u=h.uid(this._actionsRegistry,
a.displayName||a.name||"Unknown");if(m.isFunction(a)){var q,n,r;(function(){m.assign(t,h.getInternalMethods(a,!0));var p=function(a){function e(){c(this,e);for(var a=arguments.length,d=Array(a),h=0;h<a;h++)d[h]=arguments[h];a:{var m=Object.getPrototypeOf(e.prototype),h="constructor",a=this,l=!0;for(;l;)if(null===m&&(m=Function.prototype),l=Object.getOwnPropertyDescriptor(m,h),void 0===l){m=Object.getPrototypeOf(m);if(null===m)break;l=!0}else{if("value"in l){a=l.value;break a}h=l.get;a=void 0===h?
void 0:h.call(a);break a}a=void 0}a.apply(this,d)}k(e,a);d(e,[{key:"generateActions",value:function(){for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];c.forEach(function(a){t[a]=h.dispatchIdentity})}}]);return e}(a);q=l.length;n=Array(2<q?q-2:0);for(r=2;r<q;r++)n[r-2]=l[r];m.assign(t,new (e.apply(p,[null].concat(g(n)))))})()}else m.assign(t,a);this.actions[u]=this.actions[u]||{};m.eachObject(function(a,c){if(m.isFunction(c)){s[a]=(0,F["default"])(p,u,a,c,s);var d=h.formatAsConstant(a);
s[d]=s[a].id}},[t]);return s}},{key:"takeSnapshot",value:function(){for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];a=s.snapshot(this,c);m.assign(this._lastSnapshot,a);return this.serialize(a)}},{key:"rollback",value:function(){s.setAppState(this,this.serialize(this._lastSnapshot),function(a){a.lifecycle("rollback");a.emitChange()})}},{key:"recycle",value:function(){for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];a=c.length?s.filterSnapshots(this,this._initSnapshot,
c):this._initSnapshot;s.setAppState(this,this.serialize(a),function(a){a.lifecycle("init");a.emitChange()})}},{key:"flush",value:function(){var a=this.serialize(s.snapshot(this));this.recycle();return a}},{key:"bootstrap",value:function(a){s.setAppState(this,a,function(a){a.lifecycle("bootstrap");a.emitChange()})}},{key:"prepare",value:function(a,c){var d={};if(!a.displayName)throw new ReferenceError("Store provided does not have a name");d[a.displayName]=c;return this.serialize(d)}},{key:"addActions",
value:function(a,c){for(var d=arguments.length,h=Array(2<d?d-2:0),e=2;e<d;e++)h[e-2]=arguments[e];this.actions[a]=Array.isArray(c)?this.generateActions.apply(this,c):this.createActions.apply(this,[c].concat(h))}},{key:"addStore",value:function(a,c){for(var d=arguments.length,h=Array(2<d?d-2:0),e=2;e<d;e++)h[e-2]=arguments[e];this.createStore.apply(this,[c,a].concat(h))}},{key:"getActions",value:function(a){return this.actions[a]}},{key:"getStore",value:function(a){return this.stores[a]}}],[{key:"debug",
value:function(a,c){"undefined"!==typeof window&&(window["alt.js.org"]=window["alt.js.org"]||[],window["alt.js.org"].push({name:a,alt:c}));return c}}]);return a}();n["default"]=a;r.exports=n["default"]},266:function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var q=function(){function a(c,d){for(var g=0;g<d.length;g++){var l=d[g];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(c,l.key,l)}}return function(e,d,g){d&&a(e.prototype,d);g&&
a(e,g);return e}}(),g=function(a){if(a&&a.__esModule)return a;var e={};if(null!=a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(e[d]=a[d]);e["default"]=a;return e}(a(46)),k=(a=a(143))&&a.__esModule?a:{"default":a};a=function(){function a(e,d,p,l){var s=this;if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var m=d.lifecycleEvents;this.transmitter=(0,k["default"])();this.lifecycle=function(a,c){m[a]&&m[a].push(c)};this.state=p||d;this.preventDefault=!1;this.displayName=
d.displayName;this.boundListeners=d.boundListeners;this.StoreModel=l;var u=d.output||function(a){return a};this.emitChange=function(){return s.transmitter.push(u(s.state))};var h=function(a,c){try{return a()}catch(h){if(d.handlesOwnErrors)return s.lifecycle("error",{error:h,payload:c,state:s.state}),!1;throw h;}};g.assign(this,d.publicMethods);this.dispatchToken=e.dispatcher.register(function(a){s.preventDefault=!1;s.lifecycle("beforeEach",{payload:a,state:s.state});var c=d.actionListeners[a.action]||
d.otherwise;c&&!1!==h(function(){return c.call(d,a.data,a.action)},a)&&!s.preventDefault&&s.emitChange();d.reduce&&(h(function(){d.setState(d.reduce(s.state,a))},a),s.preventDefault||s.emitChange());s.lifecycle("afterEach",{payload:a,state:s.state})});this.lifecycle("init")}q(a,[{key:"listen",value:function(a){var c=this;this.transmitter.subscribe(a);return function(){return c.unlisten(a)}}},{key:"unlisten",value:function(a){this.lifecycle("unlisten");this.transmitter.unsubscribe(a)}},{key:"getState",
value:function(){return this.StoreModel.config.getState.call(this,this.state)}}]);return a}();n["default"]=a;r.exports=n["default"]},267:function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var q=a(143),g=q&&q.__esModule?q:{"default":q},k=function(a){if(a&&a.__esModule)return a;var e={};if(null!=a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(e[d]=a[d]);e["default"]=a;return e}(a(46));n["default"]={waitFor:function(){for(var a=arguments.length,e=Array(a),d=0;d<a;d++)e[d]=
arguments[d];if(!e.length)throw new ReferenceError("Dispatch tokens not provided");a=e;1===e.length&&(a=Array.isArray(e[0])?e[0]:e);e=a.map(function(a){return a.dispatchToken||a});this.dispatcher.waitFor(e)},exportAsync:function(a){this.registerAsync(a)},registerAsync:function(a){var e=this,d=0,g=k.isFunction(a)?a(this.alt):a;a=Object.keys(g).reduce(function(a,c){var m=g[c],u=k.isFunction(m)?m(e):m;["success","error","loading"].forEach(function(a){if(u[a]&&!u[a].id)throw Error(a+" handler must be an action function");
});a[c]=function(){for(var a=arguments.length,c=Array(a),m=0;m<a;m++)c[m]=arguments[m];var a=e.getInstance().getState(),m=u.local&&u.local.apply(u,[a].concat(c)),m=u.shouldFetch?u.shouldFetch.apply(u,[a].concat(c)):null==m,l=u.interceptResponse||function(a){return a},g=function(a,h){return function(m){var g=function(){d-=1;a(l(m,a,c));if(h)throw m;};return e.alt.trapAsync?function(){return g()}:g()}};if(m)return d+=1,u.loading&&u.loading(l(null,u.loading,c)),u.remote.apply(u,[a].concat(c)).then(g(u.success),
g(u.error,1));e.emitChange()};return a},{});this.exportPublicMethods(a);this.exportPublicMethods({isLoading:function(){return 0<d}})},exportPublicMethods:function(a){var e=this;k.eachObject(function(a,c){if(!k.isFunction(c))throw new TypeError("exportPublicMethods expects a function");e.publicMethods[a]=c},[a])},emitChange:function(){this.getInstance().emitChange()},on:function(a,e){"error"===a&&(this.handlesOwnErrors=!0);var d=this.lifecycleEvents[a]||(0,g["default"])();this.lifecycleEvents[a]=d;
return d.subscribe(e.bind(this))},bindAction:function(a,e){if(!a)throw new ReferenceError("Invalid action reference passed in");if(!k.isFunction(e))throw new TypeError("bindAction expects a function");if(1<e.length)throw new TypeError("Action handler in store "+this.displayName+" for "+((a.id||a).toString()+" was defined with ")+"two parameters. Only a single parameter is passed through the dispatcher, did you mean to pass in an Object instead?");var d=a.id?a.id:a;this.actionListeners[d]=e.bind(this);
this.boundListeners.push(d)},bindActions:function(a){var e=this;k.eachObject(function(a,c){var l=a.replace(/./,function(a){return"on"+a[0].toUpperCase()}),g=null;if(e[a]&&e[l])throw new ReferenceError("You have multiple action handlers bound to an action: "+(a+" and "+l));e[a]?g=e[a]:e[l]&&(g=e[l]);g&&e.bindAction(c,g)},[a])},bindListeners:function(a){var e=this;k.eachObject(function(a,c){var l=e[a];if(!l)throw new ReferenceError(a+" defined but does not exist in "+e.displayName);Array.isArray(c)?
c.forEach(function(a){e.bindAction(a,l)}):e.bindAction(c,l)},[a])}};r.exports=n["default"]},268:function(r,n,a){function q(a){if(a&&a.__esModule)return a;var c={};if(null!=a)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);c["default"]=a;return c}function g(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});
c&&(a.__proto__=c)}function k(a,c,d){if(d){var e=c.StoreModel.config;d=p.isFunction(d)?d(c.state):d;c.state=e.setState.call(a,c.state,d);a.alt.dispatcher.isDispatching()||a.emitChange()}}function c(a,c,d,e){a.boundListeners=[];a.lifecycleEvents={};a.actionListeners={};a.publicMethods={};a.handlesOwnErrors=!1;return p.assign(a,s["default"],{displayName:d,alt:c,dispatcher:c.dispatcher,preventDefault:function(){this.getInstance().preventDefault=!0}},e)}Object.defineProperty(n,"__esModule",{value:!0});
var e=Function.prototype.bind;n.createStoreConfig=function(a,c){c.config=p.assign({getState:function(a){return p.assign({},a)},setState:p.assign},a,c.config)};n.transformStore=function(a,c){return a.reduce(function(a,c){return c(a)},c)};n.createStoreFromObject=function(a,d,h){var e=void 0,g=c({},a,h,p.assign({getInstance:function(){return e},setState:function(a){k(this,e,a)}},d));g.bindListeners&&s["default"].bindListeners.call(g,g.bindListeners);g.observe&&s["default"].bindListeners.call(g,g.observe(a));
g.lifecycle&&p.eachObject(function(a,c){s["default"].on.call(g,a,c)},[g.lifecycle]);return e=p.assign(new l["default"](a,g,g.state||{},d),g.publicMethods,{displayName:h})};n.createStoreFromClass=function(a,s,h){var F=void 0,q=s.config,n=function(a){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");for(var a=arguments.length,d=Array(a),h=0;h<a;h++)d[h]=arguments[h];a:{var e=Object.getPrototypeOf(c.prototype),h="constructor",a=this,m=!0;for(;m;)if(null===
e&&(e=Function.prototype),m=Object.getOwnPropertyDescriptor(e,h),void 0===m){e=Object.getPrototypeOf(e);if(null===e)break;m=!0}else{if("value"in m){a=m.value;break a}h=m.get;a=void 0===h?void 0:h.call(a);break a}a=void 0}a.apply(this,d)}g(c,a);return c}(s);c(n.prototype,a,h,{getInstance:function(){return F},setState:function(a){k(this,F,a)}});for(var r=arguments.length,Oa=Array(3<r?r-3:0),X=3;X<r;X++)Oa[X-3]=arguments[X];n=new (e.apply(n,[null].concat(Oa)));q.bindListeners&&n.bindListeners(q.bindListeners);
q.datasource&&n.registerAsync(q.datasource);return F=p.assign(new l["default"](a,n,"object"===typeof n.state?n.state:null,s),d.getInternalMethods(s),q.publicMethods,{displayName:h})};r=a(88);var d=q(r);r=a(46);var p=q(r),l=(r=a(266))&&r.__esModule?r:{"default":r},s=(a=a(267))&&a.__esModule?a:{"default":a}},269:function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});n.setAppState=function(a,k,c){var e=a.deserialize(k);q.eachObject(function(d,p){var l=a.stores[d];l&&function(){var a=l.StoreModel.config,
m=l.state;a.onDeserialize&&(e[d]=a.onDeserialize(p)||p);q.eachObject(function(a){return delete m[a]},[m]);q.assign(m,e[d]);c(l)}()},[e])};n.snapshot=function(a,k){var c=void 0===k?[]:k;return(c.length?c:Object.keys(a.stores)).reduce(function(c,d){var p=d.displayName||d,l=a.stores[p],k=l.StoreModel.config;l.lifecycle("snapshot");k=k.onSerialize&&k.onSerialize(l.state);c[p]=k?k:l.getState();return c},{})};n.saveInitialSnapshot=function(a,k){var c=a.deserialize(a.serialize(a.stores[k].state));a._initSnapshot[k]=
c;a._lastSnapshot[k]=c};n.filterSnapshots=function(a,k,c){return c.reduce(function(a,c){var g=c.displayName||c;if(!k[g])throw new ReferenceError(g+" is not a valid store");a[g]=k[g];return a},{})};var q=function(a){if(a&&a.__esModule)return a;var k={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(k[c]=a[c]);k["default"]=a;return k}(a(46))},279:function(r,n,a){r.exports.Dispatcher=a(280)},280:function(r,n,a){function q(){this.$Dispatcher_callbacks={};this.$Dispatcher_isPending=
{};this.$Dispatcher_isHandled={};this.$Dispatcher_isDispatching=!1;this.$Dispatcher_pendingPayload=null}var g=a(281),k=1;q.prototype.register=function(a){var e="ID_"+k++;this.$Dispatcher_callbacks[e]=a;return e};q.prototype.unregister=function(a){g(this.$Dispatcher_callbacks[a],"Dispatcher.unregister(...): `%s` does not map to a registered callback.",a);delete this.$Dispatcher_callbacks[a]};q.prototype.waitFor=function(a){g(this.$Dispatcher_isDispatching,"Dispatcher.waitFor(...): Must be invoked while dispatching.");
for(var e=0;e<a.length;e++){var d=a[e];this.$Dispatcher_isPending[d]?g(this.$Dispatcher_isHandled[d],"Dispatcher.waitFor(...): Circular dependency detected while waiting for `%s`.",d):(g(this.$Dispatcher_callbacks[d],"Dispatcher.waitFor(...): `%s` does not map to a registered callback.",d),this.$Dispatcher_invokeCallback(d))}};q.prototype.dispatch=function(a){g(!this.$Dispatcher_isDispatching,"Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch.");this.$Dispatcher_startDispatching(a);
try{for(var e in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[e]||this.$Dispatcher_invokeCallback(e)}finally{this.$Dispatcher_stopDispatching()}};q.prototype.isDispatching=function(){return this.$Dispatcher_isDispatching};q.prototype.$Dispatcher_invokeCallback=function(a){this.$Dispatcher_isPending[a]=!0;this.$Dispatcher_callbacks[a](this.$Dispatcher_pendingPayload);this.$Dispatcher_isHandled[a]=!0};q.prototype.$Dispatcher_startDispatching=function(a){for(var e in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[e]=
!1,this.$Dispatcher_isHandled[e]=!1;this.$Dispatcher_pendingPayload=a;this.$Dispatcher_isDispatching=!0};q.prototype.$Dispatcher_stopDispatching=function(){this.$Dispatcher_pendingPayload=null;this.$Dispatcher_isDispatching=!1};r.exports=q},281:function(r,n){r.exports=function(a,q,g,k,c,e,d,p){if(!a){if(void 0===q)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[g,k,c,e,d,p],s=0;a=Error("Invariant Violation: "+
q.replace(/%s/g,function(){return l[s++]}))}a.framesToPop=1;throw a;}}},284:function(r,n){YUI.add("model",function(a,q){function g(){g.superclass.constructor.apply(this,arguments)}var k=YUI.namespace("Env.Model"),c=a.Lang,e=a.Array,d=a.Object,p="error";a.Model=a.extend(g,a.Base,{idAttribute:"id",_allowAdHocAttrs:!0,_isYUIModel:!0,initializer:function(a){this.changed={};this.lastChange={};this.lists=[]},destroy:function(a,c){var d=this;"function"===typeof a&&(c=a,a=null);d.onceAfter("destroy",function(){function g(h){h||
e.each(d.lists.concat(),function(c){c.remove(d,a)});c&&c.apply(null,arguments)}a&&(a.remove||a["delete"])?d.sync("delete",a,g):g()});return g.superclass.destroy.call(d)},generateClientId:function(){k.lastId||(k.lastId=0);return this.constructor.NAME+"_"+(k.lastId+=1)},getAsHTML:function(d){d=this.get(d);return a.Escape.html(c.isValue(d)?String(d):"")},getAsURL:function(a){a=this.get(a);return encodeURIComponent(c.isValue(a)?String(a):"")},isModified:function(){return this.isNew()||!d.isEmpty(this.changed)},
isNew:function(){return!c.isValue(this.get("id"))},load:function(a,c){var d=this;"function"===typeof a&&(c=a,a={});a||(a={});d.sync("read",a,function(e,h){var g={options:a,response:h},k;e?(g.error=e,g.src="load",d.fire(p,g)):(d._loadEvent||(d._loadEvent=d.publish("load",{preventable:!1})),k=g.parsed=d._parse(h),d.setAttrs(k,a),d.changed={},d.fire("load",g));c&&c.apply(null,arguments)});return d},parse:function(c){if("string"===typeof c)try{return a.JSON.parse(c)}catch(d){return this.fire(p,{error:d,
response:c,src:"parse"}),null}return c},save:function(a,c){var d=this;"function"===typeof a&&(c=a,a={});a||(a={});d._validate(d.toJSON(),function(e){e?c&&c.call(null,e):d.sync(d.isNew()?"create":"update",a,function(h,e){var g={options:a,response:e},k;h?(g.error=h,g.src="save",d.fire(p,g)):(d._saveEvent||(d._saveEvent=d.publish("save",{preventable:!1})),e&&(k=g.parsed=d._parse(e),d.setAttrs(k,a)),d.changed={},d.fire("save",g));c&&c.apply(null,arguments)})});return d},set:function(a,c,d){var e={};e[a]=
c;return this.setAttrs(e,d)},setAttrs:function(c,e){var m=this.idAttribute,g,h,p,k;e=a.merge(e);k=e._transaction={};"id"!==m&&(c=a.merge(c),d.owns(c,m)?c.id=c[m]:d.owns(c,"id")&&(c[m]=c.id));for(h in c)d.owns(c,h)&&this._setAttr(h,c[h],e);if(!d.isEmpty(k)){m=this.changed;p=this.lastChange={};for(h in k)d.owns(k,h)&&(g=k[h],m[h]=g.newVal,p[h]={newVal:g.newVal,prevVal:g.prevVal,src:g.src||null});e.silent||(this._changeEvent||(this._changeEvent=this.publish("change",{preventable:!1})),e.changed=p,this.fire("change",
e))}return this},sync:function(){var a=e(arguments,0,!0).pop();"function"===typeof a&&a()},toJSON:function(){var a=this.getAttrs();delete a.clientId;delete a.destroyed;delete a.initialized;"id"!==this.idAttribute&&delete a.id;return a},undo:function(a,c){var m=this.lastChange,g=this.idAttribute,h={},p;a||(a=d.keys(m));e.each(a,function(a){d.owns(m,a)&&(a=a===g?"id":a,p=!0,h[a]=m[a].prevVal)});return p?this.setAttrs(h,c):this},validate:function(a,c){c&&c()},addAttr:function(a,d,e){var p=this.idAttribute,
h;p&&a===p&&(p=this._isLazyAttr("id")||this._getAttrCfg("id"),h=d.value===d.defaultValue?null:d.value,c.isValue(h)||(h=p.value===p.defaultValue?null:p.value,c.isValue(h)||(h=c.isValue(d.defaultValue)?d.defaultValue:p.defaultValue)),d.value=h,p.value!==h&&(p.value=h,this._isLazyAttr("id")?this._state.add("id","lazy",p):this._state.add("id","value",h)));return g.superclass.addAttr.apply(this,arguments)},_parse:function(a){return this.parse(a)},_validate:function(a,d){function e(h){c.isValue(h)?(g.fire(p,
{attributes:a,error:h,src:"validate"}),d(h)):d()}var g=this;1===g.validate.length?e(g.validate(a,e)):g.validate(a,e)},_setAttrVal:function(a,c,d,e,h,p){var k=g.superclass._setAttrVal.apply(this,arguments),q=h&&h._transaction,n=p&&p.initializing;k&&(q&&!n)&&(q[a]={newVal:this.get(a),prevVal:d,src:h.src||null});return k}},{NAME:"model",ATTRS:{clientId:{valueFn:"generateClientId",readOnly:!0},id:{value:null}}})},"3.17.2",{requires:["base-build","escape","json-parse"]})},286:function(r,n){r.exports={QUEUED:1,
PROCESSING:2,READY:3,ERROR:4,DOWNLOAD_ERROR:5,ERROR_TOO_LARGE:6,ERROR_FILE_NOT_FOUND:7,ERROR_UNSUPPORTED_IMAGE_TYPE:8,ERROR_UNSUPPORTED_AUDIO_TYPE:9}},287:function(r,n,a){function q(a){var c=2>=arguments.length||void 0===arguments[2]?"":arguments[2];return d.getTemplateForSingleItem(g({},1>=arguments.length||void 0===arguments[1]?{}:arguments[1],{action:a})).replace("{id}",c)}var g=a(12)["default"],k=a(117),c=a(22),e=a(232),d=a(156),p=a(144);r.exports={read:function(a,d,e){void 0===d&&(d=!1);return d?
c.get("/api/rest/global-content-items/"+a):c.get(q(p.GET,e,a))},readForCollection:function(a,e){var m=d.getTemplateForCollectionItems(e).replace("{collectionId}",a);return c.get(m)},update:function(a,d){delete a.author;delete a.pendingPushedServices;delete a.pushedServices;return c.put(q(p.PUT,d,a.id),a)},updateForCollection:function(a,d){delete a.author;delete a.pendingPushedServices;delete a.pushedServices;return c.put(q(p.PUT,d,a.id),a)},create:function(a,d,e){return c.post(q(p.POST,e),a,d)},createForCollection:function(a,
d,e){return c.post(q(p.POST,e),a,d)},updateField:function(a){a=e(a);return c.post("/api/commondata/SaveItemField",k.stringify(a))},"delete":function(a,d){return c["delete"](q(p.DELETE,d,a))},deleteMany:function(a){a=k.stringify({items:a});return c.post("/api/commondata/RemoveItems",a,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})}}},314:function(r,n,a){var q=a(3)["default"],g=a(2)["default"];n=a(5);a=function(){function a(){g(this,a);this.generateActions("refresh","setUrl","removeLoadHandler",
"disableEditing","enableEditing","previewLockScreen","previewPreviousUrl")}q(a,[{key:"addLoadHandler",value:function(a,e){this.dispatch({key:a,callback:e})}}]);return a}();r.exports=n.createActions(a)},318:function(r,n){r.exports={ENABLED:1,DISABLED:2}},463:function(r,n){YUI.add("squarespace-model-sync-rest",function(a){function q(){this._ioConfigCache={}}q.prototype={sync:function(g,k,c){a.Lang.isValue(k.timeout)||(k.timeout=1E7);a.ModelSync.REST.prototype.sync.apply(this,arguments)},_storeRequest:function(g,
k){this._ioConfigCache[g.id]=a.merge(k,{})},_retrieveAndEvict:function(a){var k=this._ioConfigCache[a];this._ioConfigCache[a]=null;return k},_isCrumbFailure:function(a){return a&&a.crumbFail&&a.crumb},_sendSyncIORequest:function(g){var k=a.ModelSync.REST.prototype._sendSyncIORequest.apply(this,arguments);this._storeRequest(k,g);return k},_onSyncIOEnd:function(g,k){this._retrieveAndEvict(g);a.ModelSync.REST.prototype._onSyncIOEnd.apply(this,arguments)},_onSyncIOSuccess:function(g,k,c){var e=this._retrieveAndEvict(g),
d={},p=k.responseText;a.Lang.isValue(p)&&p.trim()&&(d=a.JSON.parse(p));this._isCrumbFailure(d)?(d=d.crumb,a.ModelSync.REST.CSRF_TOKEN=d,a.Env.CSRF_TOKEN=d,e.headers["X-CSRF-Token"]=d,this._sendSyncIORequest(e)):a.ModelSync.REST.prototype._onSyncIOSuccess.apply(this,arguments)},_onSyncIOFailure:function(g,k,c){if(g=c.callback){c={};var e=k.responseText;a.Lang.isValue(e)&&e.trim()&&(c=a.JSON.parse(e));g({code:k.status,msg:k.statusText,responseJSON:c},k)}}};a.mix(q,a.ModelSync.REST,!1,null,1);a.namespace("Squarespace.ModelSync").REST=
q},"1.0",{requires:["model-sync-rest"]})},464:function(r,n){YUI.add("model-list",function(a,q){function g(){g.superclass.constructor.apply(this,arguments)}var k=a.Attribute.prototype,c=a.Lang,e=a.Array;a.ModelList=a.extend(g,a.Base,{model:a.Model,_isYUIModelList:!0,initializer:function(c){c||(c={});var e=this.model=c.model||this.model;"string"===typeof e&&((this.model=a.Object.getValue(a,e.split(".")))||a.error("ModelList: Model class not found: "+e));this.publish("add",{defaultFn:this._defAddFn});
this.publish("reset",{defaultFn:this._defResetFn});this.publish("remove",{defaultFn:this._defRemoveFn});this.after("*:idChange",this._afterIdChange);this._clear();c.items&&this.add(c.items,{silent:!0})},destructor:function(){this._clear()},add:function(d,g){var l=d._isYUIModelList;return l||c.isArray(d)?e.map(l?d.toArray():d,function(c,d){var e=g||{};"index"in e&&(e=a.merge(e,{index:e.index+d}));return this._add(c,e)},this):this._add(d,g)},create:function(c,e,g){var k=this;"function"===typeof e&&
(g=e,e={});e||(e={});c._isYUIModel||(c=new this.model(c));k.fire("create",a.merge(e,{model:c}));return c.save(e,function(a){a||k.add(c,e);g&&g.apply(null,arguments)})},each:function(a,c){var e=this._items.concat(),g,m,k;g=0;for(k=e.length;g<k;g++)m=e[g],a.call(c||m,m,g,this);return this},filter:function(a,c){var e=[],g=this._items,m,k,h;"function"===typeof a&&(c=a,a={});m=0;for(h=g.length;m<h;++m)k=g[m],c.call(this,k,m,this)&&e.push(k);return a.asList?(g=new this.constructor({model:this.model}),e.length&&
g.add(e,{silent:!0}),g):e},get:function(a){return this.attrAdded(a)?k.get.apply(this,arguments):this.invoke("get",a)},getAsHTML:function(c){return this.attrAdded(c)?a.Escape.html(k.get.apply(this,arguments)):this.invoke("getAsHTML",c)},getAsURL:function(a){return this.attrAdded(a)?encodeURIComponent(k.get.apply(this,arguments)):this.invoke("getAsURL",a)},getByClientId:function(a){return this._clientIdMap[a]||null},getById:function(a){return this._idMap[a]||null},invoke:function(a){var c=[this._items,
a].concat(e(arguments,1,!0));return e.invoke.apply(e,c)},load:function(a,c){var e=this;"function"===typeof a&&(c=a,a={});a||(a={});this.sync("read",a,function(g,m){var k={options:a,response:m},h;g?(k.error=g,k.src="load",e.fire("error",k)):(e._loadEvent||(e._loadEvent=e.publish("load",{preventable:!1})),h=k.parsed=e._parse(m),e.reset(h,a),e.fire("load",k));c&&c.apply(null,arguments)});return this},map:function(a,c){return e.map(this._items,a,c)},parse:function(c){if("string"===typeof c)try{return a.JSON.parse(c)||
[]}catch(e){return this.fire("error",{error:e,response:c,src:"parse"}),null}return c||[]},remove:function(a,g){var l=a._isYUIModelList;return l||c.isArray(a)?(a=e.map(l?a.toArray():a,function(a){return c.isNumber(a)?this.item(a):a},this),e.map(a,function(a){return this._remove(a,g)},this)):this._remove(a,g)},reset:function(c,g){c||(c=[]);g||(g={});var l=a.merge({src:"reset"},g);c=c._isYUIModelList?c.toArray():e.map(c,function(a){return a._isYUIModel?a:new this.model(a)},this);l.models=c;g.silent?
this._defResetFn(l):(this.comparator&&c.sort(a.bind(this._sort,this)),this.fire("reset",l));return this},some:function(a,c){var e=this._items.concat(),g,m,k;g=0;for(k=e.length;g<k;g++)if(m=e[g],a.call(c||m,m,g,this))return!0;return!1},sort:function(c){if(!this.comparator)return this;var e=this._items.concat();c||(c={});e.sort(a.rbind(this._sort,this,c));e=a.merge(c,{models:e,src:"sort"});c.silent?this._defResetFn(e):this.fire("reset",e);return this},sync:function(){var a=e(arguments,0,!0).pop();"function"===
typeof a&&a()},toArray:function(){return this._items.concat()},toJSON:function(){return this.map(function(a){return a.toJSON()})},_add:function(d,e){var g;e||(e={});d._isYUIModel||(d=new this.model(d));g=d.get("id");if(this._clientIdMap[d.get("clientId")]||c.isValue(g)&&this._idMap[g])this.fire("error",{error:"Model is already in the list.",model:d,src:"add"});else return g=a.merge(e,{index:"index"in e?e.index:this._findIndex(d),model:d}),e.silent?this._defAddFn(g):this.fire("add",g),d},_attachList:function(a){a.lists.push(this);
a.addTarget(this)},_clear:function(){e.each(this._items,this._detachList,this);this._clientIdMap={};this._idMap={};this._items=[]},_compare:function(a,c){return a<c?-1:a>c?1:0},_detachList:function(a){var c=e.indexOf(a.lists,this);-1<c&&(a.lists.splice(c,1),a.removeTarget(this))},_findIndex:function(a){var c=this._items,e=c.length,g=0,m,k;if(!this.comparator||!e)return e;for(k=this.comparator(a);g<e;)m=g+e>>1,a=c[m],0>this._compare(this.comparator(a),k)?g=m+1:e=m;return g},_parse:function(a){return this.parse(a)},
_remove:function(d,e){var g;e||(e={});c.isNumber(d)?(g=d,d=this.item(g)):g=this.indexOf(d);if(-1===g||!d)this.fire("error",{error:"Model is not in the list.",index:g,model:d,src:"remove"});else return g=a.merge(e,{index:g,model:d}),e.silent?this._defRemoveFn(g):this.fire("remove",g),d},_sort:function(a,c,e){a=this._compare(this.comparator(a),this.comparator(c));return 0===a?a:e&&e.descending?-a:a},_afterIdChange:function(a){var e=a.newVal,g=a.prevVal;a=a.target;if(c.isValue(g))if(this._idMap[g]===
a)delete this._idMap[g];else return;else if(-1===this.indexOf(a))return;c.isValue(e)&&(this._idMap[e]=a)},_defAddFn:function(a){var e=a.model,g=e.get("id");this._clientIdMap[e.get("clientId")]=e;c.isValue(g)&&(this._idMap[g]=e);this._attachList(e);this._items.splice(a.index,0,e)},_defRemoveFn:function(a){var e=a.model,g=e.get("id");this._detachList(e);delete this._clientIdMap[e.get("clientId")];c.isValue(g)&&delete this._idMap[g];this._items.splice(a.index,1)},_defResetFn:function(a){"sort"===a.src?
this._items=a.models.concat():(this._clear(),a.models.length&&this.add(a.models,{silent:!0}))}},{NAME:"modelList"});a.augment(g,a.ArrayList)},"3.17.2",{requires:"array-extras array-invoke arraylist base-build escape json-parse model".split(" ")})},465:function(r,n){YUI.add("model-sync-rest",function(a,q){function g(){}var k=a.Lang;g.CSRF_TOKEN=YUI.Env.CSRF_TOKEN;g.EMULATE_HTTP=!1;g.HTTP_HEADERS={Accept:"application/json","Content-Type":"application/json"};g.HTTP_METHODS={create:"POST",read:"GET",
update:"PUT","delete":"DELETE"};g.HTTP_TIMEOUT=3E4;g._NON_ATTRS_CFG=["root","url"];g.prototype={root:"",url:"",initializer:function(a){a||(a={});"root"in a&&(this.root=a.root||"");"url"in a&&(this.url=a.url||"")},getURL:function(c,e){var d=this.root,g=this.url;return this._isYUIModelList?!g?this.model.prototype.root:this._substituteURL(g,a.merge(this.getAttrs(),e)):d&&("create"===c||this.isNew())?d:!g?this._joinURL(this.getAsURL("id")||""):this._substituteURL(g,a.merge(this.getAttrs(),e))},parseIOResponse:function(a){return a.responseText},
serialize:function(c){return a.JSON.stringify(this)},sync:function(c,e,d){e||(e={});var k=this.getURL(c,e),l=g.HTTP_METHODS[c],q=a.merge(g.HTTP_HEADERS,e.headers),m=e.timeout||g.HTTP_TIMEOUT;e=e.csrfToken||g.CSRF_TOKEN;var n;"POST"===l||"PUT"===l?n=this.serialize(c):delete q["Content-Type"];if(g.EMULATE_HTTP&&("PUT"===l||"DELETE"===l))q["X-HTTP-Method-Override"]=l,l="POST";if(e&&("POST"===l||"PUT"===l||"DELETE"===l))q["X-CSRF-Token"]=e;this._sendSyncIORequest({action:c,callback:d,entity:n,headers:q,
method:l,timeout:m,url:k})},_joinURL:function(a){var e=this.root;if(!e&&!a)return"";"/"===a.charAt(0)&&(a=a.substring(1));return e&&"/"===e.charAt(e.length-1)?e+a+"/":e+"/"+a},_parse:function(a){"function"===typeof this.parseIOResponse&&(a=this.parseIOResponse(a));return this.parse(a)},_sendSyncIORequest:function(c){return a.io(c.url,{arguments:{action:c.action,callback:c.callback,url:c.url},context:this,data:c.entity,headers:c.headers,method:c.method,timeout:c.timeout,on:{start:this._onSyncIOStart,
failure:this._onSyncIOFailure,success:this._onSyncIOSuccess,end:this._onSyncIOEnd}})},_substituteURL:function(c,e){if(!c)return"";var d={};a.Object.each(e,function(a,c){if(k.isString(a)||k.isNumber(a))d[c]=encodeURIComponent(a)});return k.sub(c,d)},_onSyncIOEnd:function(a,e){},_onSyncIOFailure:function(a,e,d){(a=d.callback)&&a({code:e.status,msg:e.statusText},e)},_onSyncIOSuccess:function(a,e,d){(a=d.callback)&&a(null,e)},_onSyncIOStart:function(a,e){}};a.namespace("ModelSync").REST=g},"3.17.2",{requires:["model",
"io-base","json-stringify"]})},466:function(r,n,a){var q=a(3)["default"],g=a(2)["default"],k=a(24)["default"],c=a(571);n=a(5);a=function(){function a(){g(this,a);this.generateActions("insert","insertMany")}q(a,[{key:"create",value:function(a){var e=this;this.dispatch(a);return c.create(a).then(function(a){a=a.data;e.actions.insert(a);return a.id})}},{key:"read",value:function(a){var e=this;this.dispatch(a);return c.read(a).then(function(a){return e.actions.insert(a.data)})}},{key:"readAll",value:function(){var a=
this;return c.readAll().then(function(c){return a.actions.insertMany(c.data)})["catch"](function(a){return k.reject(a.data.message)})}},{key:"delete",value:function(a){return c["delete"](a)["catch"](function(a){return k.reject(a.data.message)})}},{key:"update",value:function(a){var e=this;return a.id&&!a.urlId?c.generateUrl(a).then(function(g){a.urlId=g.data.urlId;return c.create(a).then(function(a){e.actions.insert(a.data);return a.data})})["catch"](function(a){return k.reject(a.data.message)}):
c.create(a).then(function(a){a=a.data;e.actions.insert(a);return a})}}]);return a}();r.exports=n.createActions(a)},492:function(r,n,a){var q=a(3)["default"],g=a(2)["default"];n=a(5);a=function(){function a(){g(this,a);this.generateActions("reset")}q(a,[{key:"updateAttributes",value:function(a,e){this.dispatch({itemId:a,attrs:e})}}]);return a}();r.exports=n.createActions(a)},553:function(r,n){YUI.add("datatype-date-format",function(a,q){var g=function(a,e,d){"undefined"===typeof d&&(d=10);for(e+="";parseInt(a,
10)<d&&1<d;d/=10)a=e+a;return a.toString()},k={formats:{a:function(a,e){return e.a[a.getDay()]},A:function(a,e){return e.A[a.getDay()]},b:function(a,e){return e.b[a.getMonth()]},B:function(a,e){return e.B[a.getMonth()]},C:function(a){return g(parseInt(a.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],g:function(a){return g(parseInt(k.formats.G(a)%100,10),0)},G:function(a){var e=a.getFullYear(),d=parseInt(k.formats.V(a),10);a=parseInt(k.formats.W(a),10);a>d?e++:0===a&&52<=d&&e--;return e},
H:["getHours","0"],I:function(a){a=a.getHours()%12;return g(0===a?12:a,0)},j:function(a){var e=new Date(""+a.getFullYear()+"/1/1 GMT");a=new Date(""+a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate()+" GMT")-e;a=parseInt(a/6E4/60/24,10)+1;return g(a,0,100)},k:["getHours"," "],l:function(a){a=a.getHours()%12;return g(0===a?12:a," ")},m:function(a){return g(a.getMonth()+1,0)},M:["getMinutes","0"],p:function(a,e){return e.p[12<=a.getHours()?1:0]},P:function(a,e){return e.P[12<=a.getHours()?1:0]},s:function(a,
e){return parseInt(a.getTime()/1E3,10)},S:["getSeconds","0"],u:function(a){a=a.getDay();return 0===a?7:a},U:function(a){var e=parseInt(k.formats.j(a),10);a=6-a.getDay();e=parseInt((e+a)/7,10);return g(e,0)},V:function(a){var e=parseInt(k.formats.W(a),10),d=(new Date(""+a.getFullYear()+"/1/1")).getDay(),e=e+(4<d||1>=d?0:1);53===e&&4>(new Date(""+a.getFullYear()+"/12/31")).getDay()?e=1:0===e&&(e=k.formats.V(new Date(""+(a.getFullYear()-1)+"/12/31")));return g(e,0)},w:"getDay",W:function(a){var e=parseInt(k.formats.j(a),
10);a=7-k.formats.u(a);e=parseInt((e+a)/7,10);return g(e,0,10)},y:function(a){return g(a.getFullYear()%100,0)},Y:"getFullYear",z:function(a){a=a.getTimezoneOffset();var e=g(parseInt(Math.abs(a/60),10),0),d=g(Math.abs(a%60),0);return(0<a?"-":"+")+e+d},Z:function(a){var e=a.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");4<e.length&&(e=k.formats.z(a));return e},"%":function(a){return"%"}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"%I:%M:%S %p",
R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(c,e){e=e||{};if(!a.Lang.isDate(c))return a.Lang.isValue(c)?c:"";var d,p;d=e.format||"%Y-%m-%d";p=a.Intl.get("datatype-date-format");for(var l=function(a,c){var d=k.aggregates[c];return"locale"===d?p[c]:d},q=function(d,e){var h=k.formats[e];switch(a.Lang.type(h)){case "string":return c[h]();case "function":return h.call(c,c,p);case "array":if("string"===a.Lang.type(h[0]))return g(c[h[0]](),h[1]);default:return e}};d.match(/%[cDFhnrRtTxX]/);)d=
d.replace(/%([cDFhnrRtTxX])/g,l);d=d.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,q);l=q=void 0;return d}};a.mix(a.namespace("Date"),k);a.namespace("DataType");a.DataType.Date=a.Date},"3.17.2",{lang:"ar ar-JO ca ca-ES da da-DK de de-AT de-DE el el-GR en en-AU en-CA en-GB en-IE en-IN en-JO en-MY en-NZ en-PH en-SG en-US es es-AR es-BO es-CL es-CO es-EC es-ES es-MX es-PE es-PY es-US es-UY es-VE fi fi-FI fr fr-BE fr-CA fr-FR hi hi-IN hu id id-ID it it-IT ja ja-JP ko ko-KR ms ms-MY nb nb-NO nl nl-BE nl-NL pl pl-PL pt pt-BR ro ro-RO ru ru-RU sv sv-SE th th-TH tr tr-TR vi vi-VN zh-Hans zh-Hans-CN zh-Hant zh-Hant-HK zh-Hant-TW".split(" ")})},
568:function(r,n,a){var q=a(3)["default"],g=a(2)["default"];n=a(18);var k=n.Map,c=n.fromJS;n=a(5);var e=a(41),d=a(50),p=a(248);a=function(){function a(){g(this,a);this.state=k();this.bindListeners({onSiteLayoutReset:[d.bootstrap,p.loadTemplate]});this.exportPublicMethods({getCollectionLinks:this.getCollectionLinks})}q(a,[{key:"onSiteLayoutReset",value:function(a){a=a.siteLayout;if(!a)return!1;var d=k();a.forEach(function(a){d=d.set(a.identifier,c(a))});this.setState(d)}},{key:"getCollectionLinks",
value:function(){return this.state.reduce(function(a,c){var d=c.toJS().links;a.push(d.filter(function(a){return!!a.collectionId}));return a},[])}}]);return a}();r.exports=n.createStore(e(a),"SiteNavigationStore")},571:function(r,n,a){var q=a(117),g=a(22),k=a(232),c=a(963);r.exports={generateUrl:function(a){if(a.id){var d=3>a.title.length?a.typeName+"-"+a.title:a.title,d=c(d);return g.post("/api/content-collections/"+a.id+"/generate-url",{title:a.title,urlId:d})}},create:function(a){a=k(a);a=q.stringify(a);
return g.post("/api/commondata/SaveCollection",a,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})},read:function(a){return g.get("/api/commondata/GetCollection",{params:{collectionId:a}})},readAll:function(){return g.get("/api/commondata/GetCollections")},"delete":function(a){return g.post("/api/commondata/RemoveCollection",q.stringify({collectionId:a}))}}},632:function(r,n){YUI.add("datatype-date-math",function(a,q){var g=a.Lang;a.mix(a.namespace("Date"),{isValidDate:function(a){return g.isDate(a)&&
isFinite(a)&&"Invalid Date"!=a&&!isNaN(a)&&null!=a?!0:!1},areEqual:function(a,c){return this.isValidDate(a)&&this.isValidDate(c)&&a.getTime()==c.getTime()},isGreater:function(a,c){return this.isValidDate(a)&&this.isValidDate(c)&&a.getTime()>c.getTime()},isGreaterOrEqual:function(a,c){return this.isValidDate(a)&&this.isValidDate(c)&&a.getTime()>=c.getTime()},isInRange:function(a,c,e){return this.isGreaterOrEqual(a,c)&&this.isGreaterOrEqual(e,a)},addDays:function(a,c){return new Date(a.getTime()+864E5*
c)},addMonths:function(a,c){var e=a.getFullYear(),d=a.getMonth()+c,e=Math.floor(e+d/12),d=(d%12+12)%12,g=new Date(a.getTime());g.setFullYear(e);g.setMonth(d);return g},addYears:function(a,c){var e=a.getFullYear()+c,d=new Date(a.getTime());d.setFullYear(e);return d},listOfDatesInMonth:function(a){if(!this.isValidDate(a))return[];var c=this.daysInMonth(a),e=a.getFullYear();a=a.getMonth();for(var d=[],g=1;g<=c;g++)d.push(new Date(e,a,g,12,0,0));return d},daysInMonth:function(a){if(!this.isValidDate(a))return 0;
var c=a.getMonth(),e=[31,28,31,30,31,30,31,31,30,31,30,31];if(1!=c)return e[c];a=a.getFullYear();return 0===a%400?29:0===a%100?28:0===a%4?29:28}});a.namespace("DataType");a.DataType.Date=a.Date},"3.17.2",{requires:["yui-base"]})},633:function(r,n){YUI.add("datatype-date-parse",function(a,q){a.mix(a.namespace("Date"),{parse:function(g){g=new Date(+g||g);return a.Lang.isDate(g)?g:null}});a.namespace("Parsers").date=a.Date.parse;a.namespace("DataType");a.DataType.Date=a.Date},"3.17.2")},644:function(r,
n,a){var q=a(3)["default"],g=a(2)["default"];n=a(5);var k=a(767);a=function(){function a(){g(this,a);this.generateActions("saveSuccess")}q(a,[{key:"save",value:function(a,c){var g=this;this.dispatch();return k.save(a,c).then(function(a){g.actions.saveSuccess(a)})}}]);return a}();r.exports=n.createActions(a)},767:function(r,n,a){var q=a(21)["default"],g=a(22);r.exports={save:function(a,c){c.tutorialsCompleted&&!(c.tutorialsCompleted instanceof Array)&&(c.tutorialsCompleted=q(c.tutorialsCompleted));
return g.put("/api/member-website-settings/"+a,c)}}},768:function(r,n,a){var q=a(22);r.exports={getTemplate:function(a){return q.get("/api/templates/"+a)}}},769:function(r,n,a){var q=a(22),g=a(117);r.exports={loadTemplateInstallations:function(){return q.get("/api/template-installations")},setLiveInstallation:function(a){return q.post("/api/template/SetTemplate",g.stringify({installationId:a}))},updateInstallation:function(a){return q.put("/api/template-installations/"+a.id,a)},setHomepageCollectionId:function(a){return q.post("/api/template/SetHomepageCollection",
g.stringify({collectionId:a}))}}},870:function(r,n,a){var q=a(3)["default"],g=a(2)["default"],k=a(24)["default"];n=a(18);var c=n.Map,e=n.fromJS;n=a(5);var d=a(466);a=a(41);var p=function(){function a(){g(this,a);this.state=c();this.bindActions(d);this.exportPublicMethods({fetch:this.fetch})}q(a,[{key:"onInsert",value:function(a){this.setState(this.state.set(a.id,e(a)))}},{key:"onInsertMany",value:function(a){var c=this.state;a.forEach(function(a){return c=c.set(a.id,e(a))});this.setState(c)}},{key:"onDelete",
value:function(a){this.setState(this.state["delete"](a.id))}},{key:"fetch",value:function(a){var c=this,e=this.getState().get(a);return e?k.resolve(e):d.read(a).then(function(){return c.getState().get(a)})}}]);return a}();r.exports=n.createStore(a(p),"ContentCollectionStore")},902:function(r,n,a){n=a(145);var q=a(31);a=a(908);r.exports={DEFAULT_COLLECTION_CONFIGURATIONS:{page:{collectionType:q.COLLECTION_TYPE_PAGE,typeName:"page",title:"Page",ordering:n.CUSTOM,icon:"page",addText:"Add Block"},"gallery-block":{collectionType:q.GALLERY_BLOCK,
typeName:"gallery-block",title:"Gallery Block",ordering:n.USER,acceptTypes:["image","video"]},products:{collectionType:q.PRODUCTS,typeName:"products",title:"Products",pageSize:20,ordering:n.USER,acceptTypes:["store_item"],view:a.PRODUCT_TABLE,icon:"products",addText:"Add Product"},"template-page":{collectionType:q.TEMPLATE_PAGE,title:"Template Page",icon:"projects"},"splash-page":{collectionType:q.SPLASH_PAGE,typeName:"splash-page",title:"Cover Page",ordering:n.CUSTOM,icon:"splash-page"},subscription:{collectionType:q.COLLECTION_TYPE_SUBSCRIPTION,
typeName:"subscription",title:"Subscription",ordering:n.CHRONOLOGICAL}},DEFAULT_COLLECTION_CONFIGURATION:{collectionType:q.COLLECTION_TYPE_GENERIC,supported:!0},DEFAULT_TEMPLATE_PAGE_CONFIGURATION:{icon:"template-page",collectionType:q.TEMPLATE_PAGE,supported:!0,folder:!1}}},908:function(r,n){r.exports={LIST:"list",GRID:"grid",PRODUCT:"product"}},962:function(r,n,a){var q=a(3)["default"],g=a(2)["default"],k=a(18);n=a(5);var c=a(492),e=a(147),d=a(155);a=a(41);var p=k.Map,l=function(){function a(){g(this,
a);this.state=p();this.bindListeners({onUpdateAttributes:c.updateAttributes,unstageChanges:[e.insert,e["delete"],c.reset]});this.exportPublicMethods({fetchStaged:this.fetchStaged,getItemDirtyState:this.getItemDirtyState,getItemState:this.getItemState,unstageChanges:this.unstageChanges})}q(a,[{key:"onUpdateAttributes",value:function(a){var c=k.fromJS(a.attrs),d=this.state.get(a.itemId);d&&(c=d.merge(a.attrs));this.setState(this.state.set(a.itemId,c))}},{key:"unstageChanges",value:function(a){this.setState(this.state["delete"](a.id))}},
{key:"getItemState",value:function(a){if(a=this.state.get(a))return a.toJS()}},{key:"getItemDirtyState",value:function(a){return!!this.state.get(a)}},{key:"fetchStaged",value:function(a,c){var h=this.state.get(a);return d.fetch(a,!1,c).then(function(a){return h?a.merge(h.toJS()):a})}}]);return a}();r.exports=n.createStore(a(l),"YUIStagedContentItemStore")},963:function(r,n){r.exports=function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"").toLowerCase().replace(/[^a-z0-9_\s]+/g,"").replace(/[\s]+/g,
"-")}},973:function(r,n,a){var q=a(75),g=a(31),k=a(363);YUI.add("squarespace-content-collection-utils",function(a){a.namespace("Squarespace").ContentCollectionUtils={groupCollectionsByTypeName:function(e){for(var d={},g=0;g<e.length;g++){var l=e[g];if(!l.get("isDemoCollection")){l=l.get("typeName");if(!d[l]){var k=q.getState().collectionConfigs[l];d[l]={title:k?k.title:"Unknown",collections:[]}}d[l].collections.push(e[g])}}return a.Object.values(d)},getIconClassNames:function(a){var c=a.getTemplateConfiguration(),
k="";c&&c.get("supported")&&(k=c.get("icon"));""===k&&(c&&c.get("collectionType")===g.TEMPLATE_PAGE)&&(k="template-page");""===k&&(k=a.get("typeName"));return k},filterCollections:function(e,d){var k=["collectionType","ordering","folder","index"];return a.Squarespace.ContentCollectionCache.filter(function(l){if(a.Lang.isArray(d)&&-1!==d.indexOf(l.get("id"))||l.get("isDemoCollection")&&l.get("type")!==g.TEMPLATE_PAGE)return!1;var q=!0,m=l.getTemplateConfiguration(),n;for(n in e)if(q=e[n],a.Lang.isArray(q)||
(q=[q]),q=a.Array.some(q,function(d,e){var g;g=n;g=-1!==k.indexOf(g)?a.Lang.isValue(m)&&m.get(g)===d:l.get(g)===d;return g}),!q)break;return q})},getCollectionFilter:function(a,c){return a===g.PRODUCTS?{collectionType:a}:{collectionType:a,ordering:c}},isTemplatePage:function(a){return a.get("type")===g.TEMPLATE_PAGE},isIndex:function(a){return(a=a.getTemplateConfiguration())&&a.get("folderBehavior")==k.INDEX?!0:!1},isFolder:function(a){return(a=a.getTemplateConfiguration())&&a.get("folder")},isVanillaFolder:function(a){return this.isFolder(a)&&
!this.isIndex(a)},isAdjustablePageSizeCollection:function(e){var d=q.getCollectionConfig(e.get("typeName")),d=d&&d.forcePageSize,k=e.get("type")===g.COLLECTION_TYPE_GENERIC,l=this._getCollectionOrdering(e)===a.Squarespace.CollectionOrdering.CHRONOLOGICAL;return!d&&!this.isIndex(e)&&!this.isFolder(e)&&k&&l},isBlog:function(e){return!this.isGenericOrProduct(e)||this.isFolder(e)||this.isIndex(e)?!1:this._getCollectionOrdering(e)==a.Squarespace.CollectionOrdering.CHRONOLOGICAL?!0:!1},_getCollectionOrdering:function(a){return a.get("ordering")||
a.getTemplateConfiguration().get("ordering")},isPostableByEmailAddress:function(e){var d=this._getCollectionOrdering(e);return!this.isIndex(e)&&!this.isFolder(e)&&e.get("type")===g.COLLECTION_TYPE_GENERIC&&d!==a.Squarespace.CollectionOrdering.CALENDAR&&d!==a.Squarespace.CollectionOrdering.CUSTOM&&d!==a.Squarespace.CollectionOrdering.MUSIC_ALBUM},isSupportedByBookmarklet:function(e){return!this.isIndex(e)&&!this.isFolder(e)&&e.get("type")===g.COLLECTION_TYPE_GENERIC&&this._getCollectionOrdering(e)===
a.Squarespace.CollectionOrdering.CHRONOLOGICAL},hasSupportForInjectableCodePerItem:function(e){return!this.isIndex(e)&&!this.isFolder(e)&&e.get("type")===g.COLLECTION_TYPE_GENERIC&&this._getCollectionOrdering(e)===a.Squarespace.CollectionOrdering.CHRONOLOGICAL},hasSupportForSyndication:function(e){return!this.isIndex(e)&&!this.isFolder(e)&&e.get("type")===g.COLLECTION_TYPE_GENERIC&&this._getCollectionOrdering(e)===a.Squarespace.CollectionOrdering.CHRONOLOGICAL},isDemoCollectionId:function(e){var d=
q.getState().demoCollections;return!d?!1:!!a.Array.find(d,function(a){return a.collectionId==e})},isGenericOrProduct:function(a){a=a.getTemplateConfiguration();return!a?!1:!1===a.get("folder")&&(a.get("collectionType")===g.PRODUCTS||a.get("collectionType")===g.COLLECTION_TYPE_GENERIC)},isProduct:function(a){var c=a.getTemplateConfiguration();return!c||a.get("isDemoCollection")?!1:!1===c.get("folder")&&c.get("collectionType")===g.PRODUCTS},isPage:function(a){a=a.getTemplateConfiguration();return!a?
!1:!1===a.get("folder")&&a.get("collectionType")===g.COLLECTION_TYPE_PAGE},isNotCalendar:function(e){return e.getTemplateConfiguration().get("ordering")===a.Squarespace.CollectionOrdering.CALENDAR?!1:!0},usesDisplayIndex:function(e){return[a.Squarespace.CollectionOrdering.MUSIC_ALBUM,a.Squarespace.CollectionOrdering.USER].contains(e)},getIdentifierForCollection:function(e){if(!a.Lang.isValue(e))return null;var d=e.get("typeName");!d&&e.get("type")===g.COLLECTION_TYPE_PAGE&&(e.set("typeName","page"),
d="page");var k=e.get("type");if(k===g.COLLECTION_TYPE_GENERIC){var l=e.get("ordering");a.Lang.isValue(l)||(l=q.getCollectionConfig(d),d=q.getPageConfig(d),l=(l||d).ordering);if(a.Squarespace.ContentCollectionUtils.isIndex(e))return"INDEX";if(l===a.Squarespace.CollectionOrdering.USER)return"GALLERY";if(l===a.Squarespace.CollectionOrdering.CHRONOLOGICAL)return"BLOG";if(l===a.Squarespace.CollectionOrdering.CALENDAR)return"CALENDAR";if(l===a.Squarespace.CollectionOrdering.MUSIC_ALBUM)return"MUSIC_ALBUM";
if(l===a.Squarespace.CollectionOrdering.KNOWLEDGE_BASE)return"KNOWLEDGE_BASE"}if(k===g.COLLECTION_TYPE_PAGE)return"PAGE";if(k===g.PRODUCTS)return"PRODUCT";if(k===g.TEMPLATE_PAGE)return"TEMPLATE_PAGE"}}})},979:function(r,n){YUI.add("squarespace-mixins-event-list",function(a){a.namespace("Squarespace.Mixins");a.Squarespace.Mixins.EventList=a.Base.create("EventList",a.Base,[],{initializer:function(){a.Do.before(function(q){var g=a.Object.hasKey(q,"upcoming"),k=a.Object.hasKey(q,"past");if(g&&k)return new a.Do.AlterArgs("Parsing calendar-specific response",
[[].concat(q.upcoming).concat(q.past)])},this,"parse",this)},getPastEvents:function(){var q=new Date;return this.filter(function(g){g=g.get("structuredContent");if(null===g)return!1;g=a.DataType.Date.parse(g.get("endDate"));return a.DataType.Date.isGreater(q,g)})},getUpcomingEvents:function(){var q=new Date;return this.filter(function(g){g=g.get("structuredContent");if(null===g)return!1;g=a.DataType.Date.parse(g.get("endDate"));return!a.DataType.Date.isGreater(q,g)})}})},"1.0",{requires:["base","datatype-date",
"event-custom","json"]})},981:function(r,n){YUI.add("squarespace-models-audio",function(a){a.namespace("Squarespace.Models");a.Squarespace.Models.Audio=a.Base.create("Audio",a.Squarespace.Models.StructuredContent,[],{},{ATTRS:{_type:{value:"Audio",validator:function(a){return"Audio"===a},readOnly:!0},embed:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},audioAssetUrl:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},artistName:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},
lengthInMilliSeconds:{value:null,validator:a.Squarespace.AttrValidators.isNullOrNumber},bitRate:{value:null,validator:a.Squarespace.AttrValidators.isNullOrNumber},sampleRate:{value:null,validator:a.Squarespace.AttrValidators.isNullOrNumber}}})},"1.0",{requires:["base","squarespace-attr-validators","squarespace-models-structured-content"]})},982:function(r,n){YUI.add("squarespace-models-calendar-event",function(a){a.namespace("Squarespace.Models");a.Squarespace.Models.CalendarEvent=a.Base.create("CalendarEvent",
a.Squarespace.Models.StructuredContent,[],{},{ATTRS:{_type:{value:"CalendarEvent",validator:function(a){return"CalendarEvent"===a},readOnly:!0},startDate:{valueFn:function(){var a=new Date,g=a.getMinutes();a.setSeconds(0);a.setMilliseconds(0);30<=g?(a.addHours(1),a.setMinutes(0)):a.setMinutes(30);return a.getTime()},validator:a.Squarespace.AttrValidators.isNumber},endDate:{valueFn:function(){var a=new Date(this.get("startDate"));a.addHours(1);return a.getTime()},validator:a.Squarespace.AttrValidators.isNumber}}})},
"1.0",{requires:["base","squarespace-attr-validators","squarespace-models-structured-content"]})},983:function(r,n){YUI.add("squarespace-models-check-in",function(a){a.namespace("Squarespace.Models");a.Squarespace.Models.CheckIn=a.Base.create("CheckIn",a.Squarespace.Models.StructuredContent,[],{},{ATTRS:{_type:{value:"CheckIn",validator:function(a){return"CheckIn"===a},readOnly:!0},checkinId:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},venueId:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},
timeZone:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},venueName:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},address:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},crossStreet:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},city:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},state:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},country:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},
postalCode:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},categoryId:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},categoryPluralName:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},categoryShortName:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},categoryIcon:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString}}})},"1.0",{requires:["base","squarespace-attr-validators","squarespace-models-structured-content"]})},
984:function(r,n,a){var q=a(31),g=a(363);YUI.add("squarespace-models-collection-configuration",function(a){a.namespace("Squarespace.Models");a.Squarespace.Models.CollectionConfiguration=a.Base.create("CollectionConfiguration",a.Model,[],{initializer:function(c){a.Lang.isBoolean(c.index)&&c.index?this.set("folderBehavior",g.INDEX):a.Lang.isBoolean(c.folder)&&c.folder&&this.set("folderBehavior",g.NONE)}},{ATTRS:{collectionType:{value:q.COLLECTION_TYPE_GENERIC},folder:{value:!1},folderBehavior:{},supported:{value:!0}}})},
"1.0",{requires:["base","model"]})},985:function(r,n,a){a(5);var q=a(229),g=a(221),k=a(75),c=a(466),e=a(870),d=a(31),p=a(101),l=a(286),s=a(145);YUI.add("squarespace-models-content-collection",function(a){a.namespace("Squarespace.Models");var n=a.Squarespace.Models.ContentCollection=a.Base.create("Collection",a.Model,[],{initializer:function(c){this.publish("delete");this.items=c?new a.Squarespace.Models.ContentItemList({items:c.items||[],parent:this,limit:this.get("itemLimit")}):new a.Squarespace.Models.ContentItemList({parent:this,
limit:this.get("itemLimit")});this._itemsEventHandle=this.items.after(["load","add","remove"],this._updateItemCount,this);this._syncFolderChange(this.get("folder"));this.after("folderChange",function(a){this._syncFolderChange(a.newVal)});this._initialAttrs=this.getAttrs();this.unlistenToModelStore=e.listen(this._handleStoreChange.bind(this))},destructor:function(){this._itemsEventHandle.detach();this._itemsEventHandle=null;this.items.destroy();this.items=null},toDebugString:function(){return a.JSON.stringify(this.getAttrs(["navigationTitle",
"urlId","configureUrlId","id"]))},toJSON:function(){var a=this.constructor.superclass.toJSON.call(this);a.items=this.items.toJSON();return a},parse:function(a){a=n.superclass.parse.apply(this,arguments);a.passwordProtected&&(a.password=p.PASSWORD_MASK);return a},sync:function(a,c,d){switch(a){case "create":this._ensureDemoCloneAndSave(d);break;case "delete":this.fire("delete",c);this._delete(d);break;case "read":this._read(c,d);break;case "update":this._ensureDemoCloneAndSave(d)}},load:function(c,
d,e){"function"===typeof c&&(e=d,d=c,c={});if(this._readInProgress)this.onceAfter("load",d,e);else a.Model.prototype.load.call(this,c,d?a.bind(d,e||this):null)},resetToLastRead:function(){return e.fetch(this.get("id")).then(function(c){var d=this.getAttrs();a.Object.keys(d).map(function(a){d[a]=void 0});c=a.merge(d,this._initialAttrs,this.parse(c.toJS()));this.setAttrs(c);this.set("dirty",!1)}.bind(this)).catch(this._errorHandler)},updateAttributes:function(a,c){this.setAttrs(a,c)},ensureProcessedItems:function(){var c=
function(d){this.items.load({fields:["mediaProcessingState"]},function(){this.items.some(function(a){return a.get("mediaProcessingState")!==l.READY})?a.later(500,this,c,d):d()}.bind(this))}.bind(this);return new a.Promise(function(a){c(a)}.bind(this))},_syncFolderChange:function(a){a&&this.set("dropdown",!0)},_ensureDemoCloneAndSave:function(c){if(this._shouldCloneCollection()){var d=this.toJSON();delete d.id;this.cloneToNewCollection({silent:!0}).then(a.bind(this._save,this,c,d))}else this._save(c)},
_handleStoreChange:function(a){if(a=a.get(this.getId()))this.setAttrs(this.parse(a.toJS())),this.set("dirty",!1)},serialize:function(c){c=a.merge(c,this.toJSON());c.collectionId=c.id;delete c.dirty;delete c.body;delete c.tags;delete c.categories;delete c.iTunesImage;delete c.items;a.Lang.isValue(c.mainImage)&&(c.mainImageId=a.instanceOf(c.mainImage,a.Squarespace.Models.ContentItem)?c.mainImage.get("id"):c.mainImage.id);delete c.mainImage;c.metadata&&c.metadata.albumCover&&delete c.metadata.albumCover;
c.productQuickViewEnabled&&(c.features.productQuickView.isEnabled=c.productQuickViewEnabled,delete c.productQuickViewEnabled);c.relatedItemsEnabled&&(c.features.relatedItems.isEnabled=c.relatedItemsEnabled,delete c.relatedItemsEnabled);return c},_errorHandler:function(a){console.error(a.stack)},_save:function(a,d){d=this.serialize(d);c.update(d).then(function(c){c.error?a(c,null):(this._initialAttrs=c,a(null,c))}).catch(this._errorHandler)},_delete:function(a){c.delete(this.get("id")).then(function(c){a(null,
c)},function(c){a(c,null)}).catch(this._errorHandler)},_read:function(c,d){this._readInProgress=!0;e.fetch(this.get("id")).then(function(c){var e=this.parse(c.toJS());a.Squarespace.ContentCollectionUtils.usesDisplayIndex(e.ordering)?this._fetchItemCount(e.id).then(function(a){this._readInProgress=!1;e.itemCount=a;d(null,e)}.bind(this)):(this._readInProgress=!1,d(null,e))}.bind(this),function(a){this._readInProgress=!1;d(a,null)}.bind(this)).catch(this._errorHandler)},_updateItemCount:function(){a.Squarespace.ContentCollectionUtils.usesDisplayIndex(this.get("ordering"))&&
(this.isNew()?this.set("itemCount",0):this._fetchItemCount(this.get("id")).then(function(a){this.set("itemCount",a)}.bind(this)).catch(this._errorHandler))},_fetchItemCount:function(c){return new a.Promise(function(d,e){a.Data.get({url:"/api/content-collections/"+c+"/item-count",success:function(a){d(a)},failure:e},this)})},getTemplateConfiguration:function(){var c;c=this.get("typeName");var e=this.get("type");return(c=e===d.TEMPLATE_PAGE?k.getPageConfig(c):k.getCollectionConfig(c))?new a.Squarespace.Models.CollectionConfiguration(c):
new a.Squarespace.Models.CollectionConfiguration({collectionType:e||d.COLLECTION_TYPE_GENERIC,ordering:this.get("ordering"),folder:this.get("folder"),supported:!1})},cloneToNewCollection:function(c){return new a.Promise(a.bind(function(d,e){var g=a.Squarespace.Singletons.TemplateNavigationList.getItemByCollectionId(this.get("id"));this._cloneExampleContent(c).then(a.bind(function(a){g.set("collectionId",a);g.save(d)},this))},this))},_cloneExampleContent:function(c){c=c||{};var d=new a.Promise(a.bind(function(d,
e){var l=this.get("id");a.Data.post({url:"/api/commondata/CopyCollection",data:{collectionId:this.get("id"),processPointedCollectionItems:!!c.processPointedCollectionItems},success:function(c){this.setAttrs(a.merge({mainImageId:null,mainImage:null},c));var h=c.id;q.getHomepageCollectionId()===l?g.setHomepageCollectionId(h).then(function(a){a.error?e():d(h)}):d(h)}},this)},this));d.then(a.bind(function(){this.fire("clonedExampleContent",{silent:!!c.silent})},this));return d},_shouldCloneCollection:function(){return this.get("isDemoCollection")&&
this.get("type")===d.COLLECTION_TYPE_PAGE},deleteTrashItems:function(c){a.Data.del({url:"/api/recycle-bin/collection/"+this.get("id")+"/items",success:function(a){c(a,null)},failure:function(a){c(null,a)}})},getId:function(){return this.get("id")},_set:function(a,c,d){return this.constructor.superclass._set.call(this,a,c,d)}},{ATTRS:{dirty:{value:!1},body:{value:null},title:{validator:a.Lang.isString},navigationTitle:{validator:a.Lang.isString},description:{value:{html:"",source:""}},websiteId:{},
id:{value:null},enabled:{value:!0,validator:a.Lang.isBoolean},deleted:{value:!1,validator:a.Lang.isBoolean},homepage:{validator:a.Lang.isBoolean},starred:{validator:a.Lang.isBoolean},synchronizing:{validator:a.Lang.isBoolean},updatedOn:{},folder:{value:!1},isDemoCollection:{getter:function(){return a.Squarespace.ContentCollectionUtils.isDemoCollectionId(this.get("id"))}},itemCountExceeded:{getter:function(){return this.get("type")==d.PRODUCTS&&this.get("itemCount")>=this.get("maxItemCount")?!0:!1}},
itemCount:{validator:a.Lang.isNumber},isEmpty:{getter:function(){return 0===this.items.size()}},maxItemCount:{getter:function(){return this.get("type")==d.PRODUCTS?200:9999}},tags:{value:[],validator:a.Lang.isArray},categories:{value:[],validator:a.Lang.isArray},pageSize:{validator:a.Lang.isNumber,valueFn:function(){if(this.getTemplateConfiguration().get("ordering")===s.CHRONOLOGICAL)return 20}},itemLimit:{value:20,validator:a.Squarespace.AttrValidators.isNumber},ordering:{validator:function(c){return a.Object.values(s).contains(c)}},
type:{validator:function(c){return a.Object.values(d).contains(c)}},typeName:{validator:a.Lang.isString},fullUrl:{validator:a.Lang.isString},urlId:{validator:a.Squarespace.AttrValidators.isNullOrString},configureUrlId:{getter:function(c){c="";a.Lang.isValue(this.get("id"))&&(c=this.get("id")+"-configure");return c}},nextDisplayIndex:{getter:function(){return this.get("itemCount")}},regionName:{value:"default",validator:function(c){return!a.Lang.isString(c)||0===c.length?!1:a.Object.keys(k.getState().layouts).contains(c)}},
postByEmailAddress:{getter:function(a){return a?a+"@"+Static.SQUARESPACE_CONTEXT.prodDomain:""}}}});a.Squarespace.Models.ContentCollectionList=a.Base.create("Collections",a.ModelList,[],{model:a.Squarespace.Models.ContentCollection,sync:function(a,d,e){"read"==a&&c.readAll().then(function(a){e(null,a)},function(a){e(a,null)}).catch(this._errorHandler)},getCollectionById:function(c,d,e){var g=this.getById(c);g?d.call(e,g):(g=new a.Squarespace.Models.ContentCollection({id:c}),g.load({},function(){this.add(g);
d.call(e,g)},this))},getCollectionFromData:function(c,d){if(!c)return null;if(!c.id)throw"getCollectionFromData needs at least an ID in the data to work.";var e=this.getById(c.id);e?!d&&!a.Squarespace.UtilAuthenticated.isBetaFeatureEnabled("configurationPanels")&&e.setAttrs(c):e=this.add(new a.Squarespace.Models.ContentCollection(c));return e}});a.Squarespace.Utils.isInDamaskFrame()?a.Squarespace.ContentCollectionCache=a.config.win.top.Y.Squarespace.ContentCollectionCache:a.Squarespace.ContentCollectionCache=
new a.Squarespace.Models.ContentCollectionList},"2.0",{requires:"base model model-list promise squarespace-models-collection-configuration squarespace-models-content-item squarespace-models-content-item-list squarespace-util".split(" ")})},986:function(r,n,a){var q=a(156);YUI.add("squarespace-models-content-item-list",function(a){a.namespace("Squarespace.Models");var k=a.Squarespace.Models.ContentItemList=a.Base.create("ContentItemList",a.ModelList,[a.Squarespace.Mixins.EventList],{initializer:function(c){this.model=
a.Squarespace.Models.ContentItem;c=c||{};(c=c.items)&&this.reset(c)},sync:function(a,e,d){switch(a){case "create":console.error("Squarespace.Models.ContentItemList: Create not implemented.");break;case "delete":console.error("Squarespace.Models.ContentItemList: Create not implemented.");break;case "read":this._read(e,d);break;case "update":console.error("Squarespace.Models.ContentItemList: Create not implemented.")}},load:function(a,e){if(this.get("isChildItemList"))throw"Squarespace.Models.ContentItemList: Child items are loaded with their parent item. Loading them manually is not supported";
k.superclass.load.call(this,a,e)},removeItems:function(c,e){this.remove(c,{source:"bulk-remove"});var d=a.Array.map(c,function(a){var c=a.get("id");a.destroy();return c},this);a.Data.post({url:"/api/commondata/RemoveItems",data:{items:d},success:function(d){this.get("parent").load();a.Lang.isFunction(e)&&e(null,d);this.fire("bulk-remove",c)},failure:function(c){a.Lang.isFunction(e)&&e(c,null)}},this)},moveItems:function(c,e,d){if(this.get("isChildItemList"))throw"Squarespace.Models.ContentItemList: Moving child items is not currently supported.";
var k=a.Array.map(c,function(a){return null!==this.getById(a.get("id"))?this.remove(this.getById(a.get("id"))):a},this),l=e.get("id"),n=e.items;n.load(a.bind(function(){n.add(k)},this));var m=a.Array.map(k,function(a){a.set("collectionId",l);a.get("items").each(function(a){a.set("collectionId",l)});return a.get("id")},this);a.Data.post({url:"/api/commondata/MoveItems",data:{toCollectionId:l,items:m},success:function(m){this.get("parent").load();a.Lang.isFunction(d)&&d(null,m);this.fire("move-items",
c,e)},failure:function(c){a.Lang.isFunction(d)&&d(c,null)}},this)},reorderItems:function(c,e,d){var k=this.get("parent"),l={};this.get("isChildItemList")?(l.collectionId=k.get("collectionId"),l.parentId=k.get("id")):l.collectionId=k.get("id");var n=1===c.length,m;n?(c=c[0],m=this.indexOf(this.getById(c.get("id"))),this._reorder([c],e),0!==e&&(l.afterId=this.item(e-1).get("id")),l.itemId=c.get("id")):(this._reorder(c,e),0!==e&&(l.afterId=this.item(e-1).get("id")),c=a.Array.map(c,function(a){return a.get("id")},
this),l.itemIds=a.JSON.stringify(c));var q=a.bind(function(c){a.Data.post({url:"/api/commondata/ReorderItems",data:c,success:function(c){n&&(0===m||0===e)&&k.load();a.Lang.isUndefined(c.items)||a.Array.each(c.items,function(a,c){this.getById(a.id).set("displayIndex",a.displayIndex)},this);this.fire("reordered");a.Lang.isFunction(d)&&d(null,c);0<this._reorderQueue.size()&&q(thie._reorderQueue.next())},failure:function(c){a.Lang.isFunction(d)&&d(c,null)}},this)},this);this._reorderQueue||(this._reorderQueue=
new a.Queue);this._reorderQueue.add(l);q(this._reorderQueue.next())},_reorder:function(a,e){var d=a.map(function(a){return this.getById(a.get("id"))},this);this.remove(d,{onReorder:!0,source:"reorder"});this.add(d,{onReorder:!0,source:"reorder",index:e})},_read:function(c,e){a.Data.get({url:this._getReadUrl(),data:a.merge({limit:this.get("limit")},c),success:function(a){this.set("pagination",{hasNextPage:a.hasNextPage,hasPreviousPage:a.hasPreviousPage,nextPageStart:a.nextPageStart,previousPageStart:a.previousPageStart});
e(null,a.results)},failure:function(a){e(a,null)}},this)},_getReadUrl:function(){var c=this.get("parent"),e=q.getTemplateForCollectionItems(c.get("ordering"));return a.Lang.sub(e,{collectionId:c.get("id")})}},{ATTRS:{parent:{value:null,validator:function(c){return c instanceof a.Squarespace.Models.ContentCollection||c instanceof a.Squarespace.Models.ContentItem}},isChildItemList:{getter:function(){return this.get("parent")instanceof a.Squarespace.Models.ContentItem}},pagination:{value:null},limit:{value:20,
validator:a.Squarespace.AttrValidators.isNumber}}})},"1.0",{requires:"base json model-list squarespace-mixins-event-list squarespace-models-content-collection squarespace-content-collection-utils squarespace-models-content-item squarespace-util".split(" ")})},987:function(r,n,a){var q=a(318),g=a(286),k=a(93),c=a(368),e=a(147),d=a(155),p=a(492),l=a(962);a(144);var s=a(156);YUI.add("squarespace-models-content-item",function(a){a.namespace("Squarespace.Models");var n=a.Squarespace.Models.ContentItem=
a.Base.create("Item",a.Model,[],{sync:function(a,c,d){switch(a){case "delete":this.parentCollection.then(this._getUrlDeterminants.bind(this)).then(this._delete.bind(this,d));break;case "read":this.parentCollection.then(this._getUrlDeterminants.bind(this)).then(this._read.bind(this,c,d));break;case "update":this.parentCollection.then(this._getUrlDeterminants.bind(this)).then(this._save.bind(this,d));break;case "create":this.parentCollection.then(this._getUrlDeterminants.bind(this)).then(this._create.bind(this,
c,d))}},_errorHandler:function(a){console.error(a.stack)},_save:function(a,c){var d=this.serialize();d.id||this._create(a);d.collectionId?e.updateForCollection(d,c).then(function(c){this._initialAttrs=c;a(null,c)},function(c){a(c,null)}).catch(this._errorHandler):e.update(d).then(function(c){this._initialAttrs=c;a(null,c)},function(c){a(c,null)}).catch(this._errorHandler)},_create:function(a,c,d){var g=this.serialize();g.collectionId?e.createForCollection(g,a,d).then(function(a){c(null,a)},function(a){c(a,
null)}).catch(this._errorHandler):e.create(g,a).then(function(a){c(null,a)},function(a){c(a,null)}).catch(this._errorHandler)},_delete:function(a,c){e.delete(this.get("id"),c).then(function(c){a(null,c)},function(c){a(c,null)}).catch(this._errorHandler)},_read:function(a,c,d){this.get("isGlobalFakeContentItem")?this._readGlobalFakeContentItem(this.get("id"),a,c):(this._readInProgress=!0,a.forceReload&&e.read(this.get("id"),!1,d).then(function(a){this._readInProgress=!1;a=a?a.toJS():a;c(null,a)}.bind(this),
function(a){this._readInProgress=!1;c(a,null)}.bind(this)).catch(this._errorHandler),l.fetchStaged(this.get("id"),d).then(function(a){this._readInProgress=!1;c(null,a.toJS())}.bind(this),function(a){this._readInProgress=!1;c(a,null)}.bind(this)).catch(this._errorHandler))},_readGlobalFakeContentItem:function(c,d,e){a.Data.get({url:"/api/rest/global-content-items/"+c,success:function(a){e(null,a)},failure:function(a){e(a,null)}},this)},_getUrlDeterminants:function(a){var c={recordType:this.get("recordType")};
a&&(c.collectionOrdering=a.get("ordering"),c.collectionId=a.get("id"),c.parentId=this.get("parentId"));return c},resetToLastRead:function(){p.reset(this.toJSON());return d.fetch(this.get("id")).then(function(c){var d=this.getAttrs();a.Object.keys(d).map(function(a){d[a]=void 0});this.setAttrs(a.merge(d,this._initialAttrs,c.toJS()))}.bind(this)).catch(this._errorHandler)},initializer:function(c){this._needsJobListener()&&this._bindJobListener();this._updateNextDisplayIndex();c=this.get("items");c.after(["add",
"remove"],function(){this._updateNextDisplayIndex();p.updateAttributes(this.getId(),{items:this.get("items")})},this);this.items=c;this._initialAttrs=this.getAttrs();this.parentCollection=new a.Promise(function(c,d){var e=this.get("collectionId");e?a.Squarespace.ContentCollectionCache.getCollectionById(e,c):c(null)}.bind(this));this.unlistenToModelStore=d.listen(this._handleStoreChange.bind(this));this.unlistenToStagedStore=l.listen(this._handleStagedStoreChange.bind(this))},destructor:function(){this._jobListener&&
(this._jobListener.detach(),this._jobListener=null);this.unlistenToModelStore();this.unlistenToStagedStore()},_handleStagedStoreChange:function(){var a=l.getItemState(this.getId());a||(a=(a=d.getState().get(this.getId()))?a.toJS():{});this.setAttrs(a)},_handleStoreChange:function(c){if(c=c.get(this.getId())){var d=l.getItemState(this.getId());this.setAttrs(a.merge(c.toJS(),d))}},updateAttributes:function(a,c){this.setAttrs(a,c);p.updateAttributes(this.getId(),a)},toJSON:function(){var c=n.superclass.toJSON.call(this),
d=c.structuredContent;a.Lang.isValue(d)&&(c.structuredContent=d.toJSON());c.items=c.items.toJSON();a.Lang.isObject(c.pushedServices)&&(c.pushedServices=a.Object.keys(c.pushedServices));a.Lang.isObject(c.pendingPushedServices)&&(c.pendingPushedServices=a.Object.keys(c.pendingPushedServices));return c},serialize:function(){var a=this.toJSON();delete a.dirty;delete a.items;delete a.author;delete a.fullUrl;delete a.assetUrl;delete a.resolved;delete a.postItemInjectCode;delete a.promotedBlock;delete a.promotedBlockType;
delete a.nextDisplayIndex;delete a.mediaIsUploading;delete a.hasFileData;delete a.isGlobalFakeContentItem;delete a.childrenGroups;delete a.colorData;delete a.mainImage;delete a.gallery;delete a.originalVariants;this._normalizeDates(a);this._attachCommentingToData(a);this._attachWorkflowToData(a);this._updateStructuredContent(a);return a},_updateStructuredContent:function(c){c.structuredContent&&c.startDate&&(c.structuredContent=a.merge(c.structuredContent,{startDate:c.startDate,endDate:c.endDate}))},
_getWorkflowStateForString:function(d){return a.Object.getValue({published:c.PUBLISHED,scheduled:c.SCHEDULED,needsreview:c.NEEDS_REVIEW,draft:c.DRAFT},d)},_attachWorkflowToData:function(c){a.Lang.isValue(c.workflow)&&(c.workflowState=this._getWorkflowStateForString(c.workflow.state),c.publishOn=c.workflow.date,delete c.workflow)},_attachCommentingToData:function(c){a.Lang.isValue(c.commenting)&&(c.commentState=a.Squarespace.CommentStates["allow"===c.commenting.state?"ENABLED":"DISABLED"],c.commentDisableOn=
c.commenting.date,delete c.commenting)},_normalizeDates:function(c){a.Array.each("addedOn publishOn updatedOn commentDisableOn startDate endDate".split(" "),function(d,e){a.Lang.isDate(c[d])&&(c[d]=c[d].getTime())},this)},save:function(c,d){this.isNew()||!a.Lang.isObject(c)||!c.fields?n.superclass.save.call(this,c,d):this._saveFields(c.fields,d)},autoSave:function(c,d){a.Lang.isFunction(c)?(d=c,c={}):a.Lang.isValue(c)||(c={});c.headers=a.merge(c.headers,{"X-AutoSave":!0});this.save(c,d)},like:function(c){a.Data.post({url:"/api/content-items/"+
this.getId()+"/sentiment/like",success:function(d){a.Lang.isFunction(c)&&c(null,d)},failure:function(d){a.Lang.isFunction(c)&&c(d,null)}},this)},dislike:function(c){a.Data.post({url:"/api/content-items/"+this.getId()+"/sentiment/dislike",success:function(d){a.Lang.isFunction(c)&&c(null,d)},failure:function(d){a.Lang.isFunction(c)&&c(d,null)}},this)},clearFileData:function(c){this.setAttrs({systemDataId:null,systemDataOrigin:null,mediaProcessingState:null,systemDataSourceType:null,systemDataVariants:null,
filename:null});this.parentCollection.then(this._getUrlDeterminants.bind(this)).then(function(c){var d=this.get("id");c=s.getMainImageDeletionUrl(c).replace("{id}",d);a.Data.del({url:c,data:{itemId:d}})}.bind(this))},clearChildGroup:function(c,d){a.Data.post({url:"/api/commondata/ClearChildGroup",data:{childType:c,itemId:this.get("id")},success:function(c){a.Lang.isFunction(d)&&d(null,c)},failure:function(c){a.Lang.isFunction(d)&&d(c,null)}})},createConfiguration:function(c){c=a.merge(c,{model:this,
title:"Back",panelPathName:this.get("name")||"newItem"});return new (a.Squarespace.ContentItemEditorFactory.getEditor(this,{variant:a.Squarespace.ContentItemEditorVariants.PANEL}))(c)},getAssetUrlForFormat:function(c){return a.Lang.sub("{assetUrl}?format={format}",{assetUrl:this.get("assetUrl"),format:c})},getId:function(){return this.get("id")},isLicensedAssetPreview:function(){return a.Lang.isValue(this.get("licensedAssetPreview"))},isLicensedAsset:function(){return a.Lang.isValue(this.get("licensedAssetId"))},
getMainImageUploadUrl:function(a){this.parentCollection.then(this._getUrlDeterminants.bind(this)).then(function(c){a(s.getMainImageUploadUrl(c).replace("{id}",this.get("id")))}.bind(this))},_needsJobListener:function(){var a=this.get("mediaProcessingState");return a===g.QUEUED||a===g.PROCESSING},_bindJobListener:function(){Static&&Static.JOB_MANAGER&&(this._jobListener=a.config.win.Static.JOB_MANAGER.on("completed",function(c){var d=this.get("id"),e=c.get("data.contentItemId");c=c.get("data.globalContentItemId");
e===d?(this.load({forceReload:!0}),this._jobListener.detach()):a.Lang.isValue(c)&&c===d&&(this._readGlobalFakeContentItem(c,{},function(a,c){a?console.log("error loading model",a):(this.set("assetUrl",c.assetUrl),this.setAttrs(c))}.bind(this)),this._jobListener.detach())},this))},_updateNextDisplayIndex:function(){var a=0;this.get("items").each(function(c){c=c.get("displayIndex");c>=a&&(a=c+1)},this);this._set("nextDisplayIndex",a)},_saveFields:function(c,d){if(1<c.length)throw Error("Saving multiple fields is not currently supported.");
var g=c[0],g={field:g,itemId:this.get("id"),value:this.get(g)};e.update(g).then(function(c){a.Lang.isFunction(d)&&d(null,c.item)},function(c){a.Lang.isFunction(d)&&d.call(c,null)}).catch(this._errorHandler)},_getStructuredContentCtor:function(){switch(this.get("recordType")){case k.AUDIO:return a.Squarespace.Models.Audio;case k.EVENT:return a.Squarespace.Models.CalendarEvent;case k.CHECKIN:return a.Squarespace.Models.CheckIn;case k.EMBED:case k.VIDEO:return a.Squarespace.Models.Embed;case k.INSTAGRAM:return a.Squarespace.Models.Instagram;
case k.KBARTICLE:return a.Squarespace.Models.KBArticle;case k.LINK:return a.Squarespace.Models.Link;case k.QUOTE:return a.Squarespace.Models.Quote;case k.STORE_ITEM:return a.Squarespace.Models.StoreItem;case k.TWEET:return a.Squarespace.Models.Tweet;default:return null}}},{ATTRS:{id:{value:null},collectionId:{value:null},parentId:{value:null},authorId:{valueFn:function(){var c=a.Object.getValue(Static,["SQUARESPACE_CONTEXT","authenticatedAccount"]);return c?c.id:null}},proxyForId:{value:null},recordType:{validator:a.Squarespace.AttrValidators.isValueIn(k),
writeOnce:!0},childType:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},addedOn:{valueFn:function(){return(new Date).getTime()},validator:a.Squarespace.AttrValidators.isNumber,writeOnce:"initOnly"},updatedOn:{value:null,validator:a.Squarespace.AttrValidators.isNullOrNumber,writeOnce:"initOnly"},publishOn:{valueFn:function(){return(new Date).getTime()},validator:a.Squarespace.AttrValidators.isNumber},unsaved:{value:null,validator:a.Squarespace.AttrValidators.isNullOrBoolean},urlId:{value:null,
validator:a.Squarespace.AttrValidators.isNullOrString},title:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},body:{value:null,setter:function(c){return a.merge(this.get("body"),c)},validator:a.Squarespace.AttrValidators.isNullOrObject},excerpt:{value:{html:"",raw:!1},validator:a.Squarespace.AttrValidators.isNullOrObject},displayIndex:{value:0,validator:a.Squarespace.AttrValidators.isNumber},starred:{value:!1,validator:a.Squarespace.AttrValidators.isBoolean},passthrough:{value:!1,
validator:a.Squarespace.AttrValidators.isBoolean},tags:{value:[],validator:a.Squarespace.AttrValidators.isArray},categories:{value:[],validator:a.Squarespace.AttrValidators.isArray},workflowState:{value:c.DRAFT,validator:a.Squarespace.AttrValidators.isValueIn(c)},systemDataId:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},systemDataVariants:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},systemDataOrigin:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},
contentType:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},filename:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},dataSize:{value:null,validator:a.Squarespace.AttrValidators.isNullOrNumber},sourceUrl:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},mediaProcessingState:{value:null,validator:a.Squarespace.AttrValidators.isNullOr(a.Squarespace.AttrValidators.isValueIn(g))},mediaFocalPoint:{value:{x:0.5,y:0.5},setter:function(c){if(a.Lang.isString(c)){c=
c.split(",");var d=parseFloat(c[0]);c=parseFloat(c[1]);return{x:!isNaN(d)&&1>=d?d:0.5,y:!isNaN(c)&&1>=c?c:0.5}}return c}},colorData:{value:null,validator:a.Squarespace.AttrValidators.isNullOrObject},clickthroughUrl:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},location:{value:null,validator:a.Squarespace.AttrValidators.isNullOrObject},customContent:{value:null},likeCount:{value:0,validator:a.Squarespace.AttrValidators.isNumber},dislikeCount:{value:0,validator:a.Squarespace.AttrValidators.isNumber},
commentCount:{value:0,validator:a.Squarespace.AttrValidators.isNumber},publicCommentCount:{value:0,validator:a.Squarespace.AttrValidators.isNumber},commentState:{valueFn:function(){var c=a.Object.getValue(Static,["SQUARESPACE_CONTEXT","websiteSettings"]),d=c.commentsEnabled;return c.commentEnableByDefault&&d?q.ENABLED:q.DISABLED},validator:a.Squarespace.AttrValidators.isValueIn(q)},commentDisableOn:{valueFn:function(){var c=a.Object.getValue(Static,["SQUARESPACE_CONTEXT","websiteSettings","commentDisableAfterDaysDefault"]);
return c?a.Date.addDays(new Date,c).getTime():null},validator:a.Squarespace.AttrValidators.isNullOrNumber},pushedServices:{value:{},validator:a.Squarespace.AttrValidators.isObject},shareStates:{value:[]},structuredContent:{valueFn:function(){var c=this._getStructuredContentCtor();return a.Lang.isNull(c)?null:new c},setter:function(c){if(c instanceof a.Squarespace.Models.StructuredContent)return c;var d=this._getStructuredContentCtor();return a.Lang.isNull(d)?null:new d(c)}},items:{valueFn:function(){return new a.Squarespace.Models.ContentItemList({parent:this})},
setter:function(c){var d=this.get("items");return a.Lang.isValue(d)?(d.reset(c),d):c instanceof a.Squarespace.Models.ContentItemList?c:new a.Squarespace.Models.ContentItemList({items:c,parent:this})}},childrenGroups:{value:{},validator:a.Squarespace.AttrValidators.isObject},author:{value:null,validator:a.Squarespace.AttrValidators.isNullOrObject},fullUrl:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},assetUrl:{value:null,getter:function(c){return a.Squarespace.UrlUtils.isSecure()?
a.Squarespace.UrlUtils.securifyURL(c):c},validator:a.Squarespace.AttrValidators.isNulLOrString},resolved:{value:!1,validator:a.Squarespace.AttrValidators.isBoolean},postItemInjectCode:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},promotedBlock:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},promotedBlockType:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},nextDisplayIndex:{value:0,validator:a.Squarespace.AttrValidators.isNumber,readOnly:!0},
mediaIsUploading:{value:!1,validator:a.Squarespace.AttrValidators.isBoolean},hasFileData:{value:!1,validator:a.Squarespace.AttrValidators.isBoolean},isGlobalFakeContentItem:{value:!1,validator:a.Squarespace.AttrValidators.isBoolean},licensedAssetPreview:{value:null,validator:a.Squarespace.AttrValidators.isNullOrObject},licensedAssetId:{value:null,validator:a.Lang.isString},name:{getter:function(){return this.get("id")}},isPusher:{value:!0,readOnly:!0,validator:a.Squarespace.AttrValidators.isBoolean},
dirty:{getter:function(){return l.getItemDirtyState(this.get("id"))}}}})},"1.0",{requires:"base json model squarespace-attr-validators squarespace-model-sync-rest squarespace-models-audio squarespace-models-calendar-event squarespace-models-check-in squarespace-models-content-item-list squarespace-models-content-collection squarespace-models-embed squarespace-models-instagram squarespace-models-kb-article squarespace-models-link squarespace-models-quote squarespace-models-store-item squarespace-models-tweet squarespace-url-utils squarespace-util".split(" ")})},
988:function(r,n){YUI.add("squarespace-models-embed",function(a){a.namespace("Squarespace.Models");a.Squarespace.Models.Embed=a.Base.create("Embed",a.Squarespace.Models.StructuredContent,[],{},{ATTRS:{_type:{value:"Embed",validator:function(a){return"Embed"===a},readOnly:!0},embed:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},oembed:{value:null,validator:a.Squarespace.AttrValidators.isNullOrObject},overlay:{value:!0,validator:a.Squarespace.AttrValidators.isBoolean}}})},"1.0",
{requires:["base","squarespace-attr-validators","squarespace-models-structured-content"]})},989:function(r,n){YUI.add("squarespace-models-instagram",function(a){a.namespace("Squarespace.Models");a.Squarespace.Models.Instagram=a.Base.create("Instagram",a.Squarespace.Models.StructuredContent,[],{},{ATTRS:{_type:{value:"Instagram",validator:function(a){return"Instagram"===a},readOnly:!0},instagramId:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},timeZone:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},
imageLowResolutionUrl:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},imageThumbnailUrl:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},imageStandardUrl:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},width:{value:null,validator:a.Squarespace.AttrValidators.isNullOrNumber},height:{value:null,validator:a.Squarespace.AttrValidators.isNullOrNumber},filter:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},userProfilePictureUrl:{value:null,
validator:a.Squarespace.AttrValidators.isNullOrString},userAccountName:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},userDisplayName:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString}}})},"1.0",{requires:["base","squarespace-attr-validators","squarespace-models-structured-content"]})},990:function(r,n){YUI.add("squarespace-models-kb-article",function(a){a.namespace("Squarespace.Models");a.Squarespace.Models.KBArticle=a.Base.create("KBArticle",a.Squarespace.Models.StructuredContent,
[],{},{ATTRS:{_type:{value:"KBArticle",validator:function(a){return"KBArticle"===a},readOnly:!0},upVotes:{value:0,validator:a.Squarespace.AttrValidators.isNumber},downVotes:{value:0,validator:a.Squarespace.AttrValidators.isNumber}}})},"1.0",{requires:["base","squarespace-attr-validators","squarespace-models-structured-content"]})},991:function(r,n){YUI.add("squarespace-models-link",function(a){a.namespace("Squarespace.Models");a.Squarespace.Models.Link=a.Base.create("Link",a.Squarespace.Models.StructuredContent,
[],{},{ATTRS:{_type:{value:"Link",validator:function(a){return"Link"===a},readOnly:!0},url:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString}}})},"1.0",{requires:["base","squarespace-attr-validators","squarespace-models-structured-content"]})},992:function(r,n){YUI.add("squarespace-models-quote",function(a){a.namespace("Squarespace.Models");a.Squarespace.Models.Quote=a.Base.create("Quote",a.Squarespace.Models.StructuredContent,[],{},{ATTRS:{_type:{value:"Quote",validator:function(a){return"Quote"===
a},readOnly:!0},quote:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString}}})},"1.0",{requires:["base","squarespace-attr-validators","squarespace-models-structured-content"]})},993:function(r,n,a){var q=a(110);YUI.add("squarespace-models-store-item",function(a){a.namespace("Squarespace.Models");a.Squarespace.Models.StoreItem=a.Base.create("StoreItem",a.Squarespace.Models.StructuredContent,[],{},{ATTRS:{_type:{value:"StoreItem",validator:function(a){return"StoreItem"===a},readOnly:!0},
productType:{value:q.PHYSICAL,validator:a.Squarespace.AttrValidators.isValueIn(q)},priceCents:{value:0,validator:a.Squarespace.AttrValidators.isNumber},salePriceCents:{value:0,validator:a.Squarespace.AttrValidators.isNumber},onSale:{value:!1,validator:a.Squarespace.AttrValidators.isBoolean},variants:{value:[],validator:a.Squarespace.AttrValidators.isArray},originalVariants:{value:[],validator:a.Squarespace.AttrValidators.isArray},variantOptionOrdering:{value:[],validator:a.Squarespace.AttrValidators.isArray},
additionalFieldsFormId:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},customAddButtonText:{value:"Add to Cart",validator:a.Squarespace.AttrValidators.isString},useCustomAddButtonText:{value:!1,validator:a.Squarespace.AttrValidators.isBoolean},additionalFieldsForm:{value:null}}})},"1.0",{requires:["base","squarespace-attr-validators","squarespace-models-structured-content"]})},994:function(r,n){YUI.add("squarespace-models-structured-content",function(a){a.namespace("Squarespace.Models");
a.Squarespace.Models.StructuredContent=a.Base.create("StructuredContent",a.Model,[],{},{ATTRS:{_type:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString,writeOnce:"initOnly"}}})},"1.0",{requires:["base","model","squarespace-attr-validators"]})},995:function(r,n){YUI.add("squarespace-models-tweet",function(a){a.namespace("Squarespace.Models");a.Squarespace.Models.Tweet=a.Base.create("Tweet",a.Squarespace.Models.StructuredContent,[],{},{ATTRS:{_type:{value:"Tweet",validator:function(a){return"Tweet"===
a},readOnly:!0},tweetId:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},timeZone:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},accountId:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},displayName:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},accountName:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},tweet:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},profileImageUrl:{value:null,
validator:a.Squarespace.AttrValidators.isNullOrString},profileImageUrlHttps:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString},userLocation:{value:null,validator:a.Squarespace.AttrValidators.isNullOrString}}})},"1.0",{requires:["base","squarespace-attr-validators","squarespace-models-structured-content"]})},2403:function(r,n){YUI.add("squarespace-simple-liking",function(a){var n=a.config.win.Static;a.Squarespace.SimpleLike={TEXT_LIKE_VERB_NONE:"No Likes",TEXT_LIKE_VERB_SINGULAR:"Like",
TEXT_LIKE_VERB_PLURAL:"Likes",TEXT_LIKE_ACTIVATED:"You like this",TEXT_LIKE_SUGGEST:"Click to like",attached:!1,attach:function(){if(!this.attached){this.attached=!0;var g;try{localStorage&&((g=a.JSON.parse(localStorage.getItem("squarespace-likes")))||(g={}),localStorage.setItem("squarespace-likes",a.JSON.stringify(g)))}catch(k){g={}}this.eventHandlers=[];var c=a.delegate("click",function(c){c=c.currentTarget;var d=c.getAttribute("data-item-id");if(d){for(var k=0;5>k;++k)a.Squarespace.SimpleLike.burst(c);
if(!c.hasClass("clicked")&&!c.hasClass("float")){k=parseInt(c.getAttribute("data-like-count"),10);c.setAttribute("data-like-count",k+1);a.Squarespace.SimpleLike.renderLikeCount(c);c.addClass("clicked");try{localStorage&&(g[d]=!0,localStorage.setItem("squarespace-likes",a.JSON.stringify(g)))}catch(l){console.warn("Unable to save like to local storage: ",l)}(new a.Squarespace.Models.ContentItem({id:d})).like(function(c,d){d.commited&&console.log("Like was counted!");a.Lang.isValue(c)&&c.crumbFail&&
!a.Squarespace.Utils.areCookiesEnabled()&&alert("You need to enable cookies to be able to like something.")})}}},"body",".sqs-simple-like");this.eventHandlers.push(c);a.all(".sqs-simple-like").each(function(c){var d=c.getAttribute("data-item-id");d&&(n.SQUARESPACE_CONTEXT.websiteSettings.simpleLikingEnabled||c.remove(),g[d]&&c.addClass("clicked"),a.Squarespace.SimpleLike.renderLikeCount(c))})}},detach:function(){this.attached=!1;this.eventHandlers.forEach(function(a){a.detach()})},renderLikeCount:function(g){var k=
g.getAttribute("data-item-id"),c=g.getAttribute("data-like-count");g=g.one(".like-count");k&&g&&(k="",k=0===c?a.Squarespace.SimpleLike.TEXT_LIKE_VERB_NONE:1==c?"1 "+a.Squarespace.SimpleLike.TEXT_LIKE_VERB_SINGULAR:c+" "+a.Squarespace.SimpleLike.TEXT_LIKE_VERB_PLURAL,g.setContent(k))},burst:function(g){var k=g.cloneNode(!0);k.one(".like-count")&&k.one(".like-count").remove();var c=g.one(".like-icon");if(!c||"none"===c.getStyle("display"))c=g;k.setStyles({position:"absolute",left:c.getX()+"px",top:c.getY()+
"px"});a.one(a.config.doc.body).append(k);g=new a.Anim({node:k,duration:2,easing:a.Easing.easeOut});g.set("to",{curve:a.Squarespace.SimpleLike.randomCurve(k)});g.on("end",function(){this.get("node").remove()});g.run();k.removeClass("clicked");k.addClass("float")},randomCurve:function(a){var k=[],c=Math.floor(2*Math.random())?1:-1,e=Math.floor(2*Math.random())?1:-1,d=a.getX();a=a.getY();for(var n=0;3>n;++n)d+=Math.floor(30*Math.random())*c,a+=Math.floor(30*Math.random())*e,k.push([d,a]);return k}};
a.config.win.Squarespace.onInitialize(a,function(){n.SQUARESPACE_CONTEXT.websiteSettings.simpleLikingEnabled&&a.Squarespace.SimpleLike.attach()});a.config.win.Squarespace.onDestroy(a,function(){!0===a.Squarespace.SimpleLike.attached&&a.Squarespace.SimpleLike.detach()})},1,{requires:["anim","node","json","squarespace-models-content-item","squarespace-util"]})}});

}